Module-1 Part-1 - Merged
Module-1 Part-1 - Merged
Thus, the random variable X(s) maps every point in the sample space
to a real value.
The sample space for an experiment is S = {0, 2, 4, 6}. List all the
possible values of the following random variable
Solution:
𝐏(𝐗 > 𝐱) is the probability that X takes a value greater than x. This
is equal to 𝟏 − 𝐏(𝐗 < 𝐱)
3. A mixed random variable is one for which some of its values are
discrete and some are continuous.
0 ≤ 𝑝𝑖 ≤ 1 and 𝑝𝑖 = 1
Probability : P X = 𝑥𝑖 = 𝑝𝑖
0.3
0.2
𝐅𝐱 𝐗 = 𝐏(𝐗 = 𝐲)
𝐲:𝐲≤𝐱
1.0
0.5
0.3
1. 𝟎 ≤ 𝐅𝐱 𝐗 ≤ 𝟏
Since PDF is a probability, it must take on values between 0 and 1.
2. 𝐅𝐱 −∞ = 𝟎 and 𝐅𝐱 ∞ = 𝟏
Hence, 𝐅𝐱 𝐱 𝟏 < 𝐅𝐱 𝐱 𝟐
6. 𝐏(𝐗 < 𝒙) = 𝟏 − 𝐅𝐱 𝒙
21 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Cumulative Distribution Function
For a discrete random variable X1 the probability mass function
(pmf), 𝑃𝑋 𝑥 is defined as follows:
𝑃𝑋 𝑥 = 𝑃(𝑋 = 𝑥)
𝐹𝑋 𝑥 = 𝑃𝑋 𝑋 = 𝑥𝑖 𝑢[𝑥 − 𝑥𝑖 ]
𝑖=1
𝒇 𝒙 𝒅𝒙 = 𝟏
𝒔𝒕𝒂𝒕𝒆 𝒔𝒑𝒂𝒄𝒆
f ( x)
49.5 50.5 x
25 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Probability Density Function
This is a valid p.d.f.
50.5
49.5
(1.5 6( x 50.0)2 )dx [1.5 x 2( x 50.0)3 ]50.5
49.5
50.1
49.8
(1.5 6( x 50.0) 2 )dx [1.5 x 2( x 50.0)3 ]50.1
49.8
The area under the density function is unity. This property along with
the property 1 can be used to
This property states that the probability that the value of x lies
between a and b is the area under the density curve from a to b.
dF ( x)
f ( x)
dx
That is, the probability density function (PDF) of a random variable is
the derivative of its CDF.
P ( a X b) P (a X b)
P( X 50.0) 0.5
F ( x)
P( X 49.7) 0.104
𝐸 𝑋 = 𝒑𝒊 𝒙𝒊
𝑖
𝐸 𝑋 = 𝑥𝑓 𝑥 𝑑𝑥
𝑠𝑡𝑎𝑡𝑒 𝑠𝑝𝑎𝑐𝑒
Change of variable:𝑦 = 𝑥 − 50
0.5
E ( x) ( y 50)(1.5 6 y 2 )dy
0.5
0.5
(6 y 3 300 y 2 1.5 y 75)dy
0.5
x
37 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Medians of Random Variables
Median
Information about the “middle” value of the random variable
F ( x) 0.5
Symmetric Random Variable
If a continuous random variable is symmetric about a point 𝜇, then
both the median and the expectation of the random variable are equal
to 𝜇
x 50.0
38 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Moments
Moments of a random variable X are of two types:
For a random variable X with pdf 𝑓𝑋 (𝑥), the nth order central
moment is given by
Var( X ) E (( X E ( X )) 2 )
E ( X 2 ) ( E ( X )) 2
Standard Deviation
Denoted by 𝜎
Example 1 Var( X ) E (( X E ( X )) 2 ) pi ( xi E ( X )) 2
i
1. Bernoulli Distribution
2. Binomial Distribution
3. Poisson Distribution
4. Hypergeometric Distribution
6. Geometric Distribution
The trials of this type are called Bernoulli trials, which form the basis
for many distributions discussed below.
0 𝑖𝑓 𝑥 < 0
𝐹𝑋 𝑥 = 1 − 𝑝 𝑖𝑓0 ≤ 𝑥 < 1
1 𝑖𝑓𝑥 ≥ 1
Example
1. Uniform Distribution
2. Normal/Gaussian Distribution
3. Exponential Distribution
4. Rayleigh Distribution
5. Gamma Distribution
6. Weibull Distribution
The most common example is flipping a fair die. Here, all 6 outcomes
are equally likely to happen. Hence, the probability is constant.
𝒃+𝒂
Mean of Uniform Distribution: 𝑬[𝑿] =
𝟐
(𝒃+𝒂)𝟐
Variance of Uniform Distribution: 𝑽𝒂𝒓[𝑿] =
𝟐
57 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Normal/Gaussian Distribution
This is the most commonly discussed distribution and most often
found in the real world.
On the other hand, if we collect details like age, weight and height
then we deal with multiple random variables.
Similarly,
where k is constant.
Assuming a = 0.6,
= 1 − 𝑒 −2 0.6
− 1 − 𝑒− 0.6
= 0.2476
The joint CDF can be obtained in terms of joint pdf using the
equation
pdf
CDF
1 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Joint Density Function and its Properties
1. For all x and y, fXY (x, y) ≥ 0
∞ ∞
2. f
−∞ −∞ XY
x, y dx dy = 1
x y
3. FXY x, y = f
−∞ −∞ XY
u, v du dv - JCDF
∞ x
4. FX x = f
−∞ −∞ XY
u, v du dv - MCDF of X
y ∞
5. FY y = f
−∞ −∞ XY
u, v du dv - MCDF of Y
∞
6. fX x = f (x, y)dy
−∞ XY
- Mpdf of X
∞
7. fY y = f (x, y)dx
−∞ XY
- Mpdf of Y
8. fXY (x, y) is continuous for all except possibly finite values of x and
y.
y2 x2
9. P(x1 < X ≤ x2 , y1 < Y ≤ y2 = f
y1 x1 XY
x, y dx dy
𝐹𝑌 𝑦 = 𝐹𝑋 ∞, 𝑦
= 0.2 𝑢 𝑦 – 1 + 0.1 𝑢 𝑦 – 1 + 0.2 𝑢 𝑦 – 1 + 0.15 𝑢 𝑦 – 2
+ 0.2 𝑢 𝑦 – 2 + 0.15 𝑢 𝑦 – 2 = 0.5 u(y – 1) + 0.5 u(y – 2)
Find 𝑃(𝑋 > 1, 𝑌 < 1), 𝑃(𝑋 < 𝑌) and 𝑃(𝑋 ≤ 2).
0.865
0.865
28 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Tutorial Example
pdf/pmf
3
Find the marginal distribution function of X1.
1 1
Find 𝑃 𝑌 < ∕ 𝑋 < .
8 2
If the input is a set of random variables (RVs), then the output will
also be a set of RVs.
In the analysis of electrical systems, we will be often interested in
finding the properties of a signal after it has been processed by a
system.
These signal processing operations may be viewed as
transformations of a set of input variables to a set of output
variables.
1 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Function of One Random Variable
Let X be an RV with the associated sample space Sx and a known
probability distribution.
If two RVs are independent, then the density function of their sum is
given by the convolution of their density functions.
xy = z is a rectangular hyperbola
10 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
One Function of Two Random Variables
Solution:
Solution:
𝑓𝑋 𝑥 = 𝑥𝑒 −𝑥 𝑥 > 0 ; 𝑓𝑌 𝑦 = 1 (0 ≤ 𝑦 ≤ 1)
Solution:
Solution:
s = standard deviation
1 xm 2
1 ( )
f ( x) e 2 s
s 2
This is a bell shaped
Note constants: curve with different
=3.14159 centers and spreads
e=2.71828 depending on m and s
5 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
The Central Limit Theorem is not a
result about
individual observations
X 1 , X 2 , X 3 , , X n
Values of X:
1 p(x)
μ i X i
N
.25
18 20 22 24
21
4
0
1 18 20 22 24 x
σ
N
i ( X i μ) 2.236
2
A B C D
Uniform Distribution
1 18 19 21 24
E(X)
N
Xi 16
21 μ
1
σX
N
( X i μ) 2
.2 .2
.1 .1
0
18 20 22 24 X
0
18 19 20 21 22 23 24
_
X
A B C D
12 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Central Limit Theorem (CLT)
Expected Value of Sample Mean
Let X1, X2, . . ., Xn represent a random sample from a
population
That is, each observation is the realization of a random variable Xi
If the sample is random all Xi are independent and follow the same
distribution.
1 n
X Xi
n i1
13 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Central Limit Theorem (CLT)
Standard Error of the Mean
Different samples of the same size from the same population will
yield different sample means
A measure of the variability in the mean from sample to sample is
given by the Standard Error of the Mean:
σ
σX
n
Note that the standard error of the mean decreases as the sample
size increases
σ
μX μ σX
n
Smaller
sample size
μ x
16 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Central Limit Theorem (CLT)
We can apply the Central Limit Theorem:
σ
μx μ σx
n
17 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Central Limit Theorem (CLT)
Population Distribution
μ x
Sampling Distribution
(becomes normal as n increases)
Larger
Smaller sample
sample size size
μx x
18 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Central Limit Theorem (CLT)
Example Using Sample Mean X
Population: 65 Random Process Students.
17 18 18 18 19 19 19 19
Variable: CAT-1 marks
20 20 20 20 20 20 20 20
20 20 21 21 21 21 21 21
21 21 21 21 22 22 22 22
22 22 22 22 22 23 23 23
23 23 24 24 24 24 24 25
25 25 26 26 27 27 29 29
30 32 32 33 33 34 38 43
50
19 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Central Limit Theorem (CLT)
Displaying the population using a histogram
Population skewed right
marks
20 Dr. R.K.Mugelan, Associate Professor, SENSE, VIT
Central Limit Theorem (CLT)
Sample of Size 1
Note: range of
sample mean is
decreasing.
The larger the sample size, the more closely the distribution
resembles the normal distribution.
mX m
sX s / n
The standard deviation of the
sampling distribution
decreases as n increases.
SOLUTION
Let Xi be the event of throwing a dice. Then we can define the sum
as a random variable 𝑌𝑁 = 𝑁 𝑖=1 𝑋𝑖 .
𝜎𝑌2𝑁
SOLUTION
Estimate,
(a) The probability that the first 100 customers spend a total of more
than Rs. 840,
What is the probability that the absolute error in the sum of 1000
numbers is less than 1?
SOLUTION
0.816
Solution
If the sum approximates the normal random variable, the CDF of the
normalized random variable of YN becomes