Unit 2
Unit 2
Random variables
Introduction to Random variables, - One dimensional Random Variables, Discrete and Continuous
RV- Density and Distribution function of RV, Expectation, Variance, and its properties, Covariance,
and Moments. Moment Generating function
rand
Probability distribution function for R.V
Probability density function
Distribution function or Cumulative Distrbution function (c.d.f)
Discrete Case
Distribution function or Cumulative Distrbution function (c.d.f)
Continuous Case
4 𝑐 2 2𝑐 1 3
Probability of one defective cars = =
6𝑐 3 5
4 c 1 2c 2 1
Probability of two defective cars = =
6c 3 5
n
Clearly, i i=1 i
Probability distribution of defective cars is
𝑥𝑖 0 1 2
𝑝(𝑥𝑖 ) 1 3 1
5 5 5
n 1 3 1
Expected number of defective cars = i=1 i i 5 5 5
2. Let X be a random variable of sum of two numbers in throwing two fair dice. Find
the probability distribution of X, mean ,variance.
8 (6,2),(5,3),(4,4),(3,5),(2,6) 5 6
36
9 (6,3),(5,4),(4,5),(3,6) 4 5
36
10 (6,4),(5,5),(4,6) 3
4
11 (6,5),(5,6) 2 36
3
12 (6,6) 1 36
2
36
1
36
n
Clearly, i i=1 i
Probability distribution is given by
xi 2 3 4 5 6 7 8 9 10 11 12
p(xi ) 1 2 3 4 5 6 5 4 3 2 1
36 36 36 36 36 36 36 36 36 36 36
Mean = μ = xp x
=2 +3 +4 +5 +6 +7 +8 + 10 + 11 + 12( ) +9
= 7.
Variance = V X =∑ x p − μ
=4 +9 + 16 + 25 + 36 + 49 + 64 +
81 + 100 + 121 + 144 − 49
∴ Variance = 5.83
3. Let X be a random variable of maximum of two numbers in throwing two fair dice simultaneously.
Find the
a)Probability distribution of X
b)Mean
c)Variance
d)P(1<x<4)
e)P(2≤ 𝑥 ≤ 4).
∴ 𝑛(𝑆) = 36.
Let X = Maximum of two numbers in throwing two dice. So, the range of
X={1,2,3,4,5,6,}
X Favorable cases No of 𝑝(𝑥)
Favorable
cases
1 (1,1) 1 1
36
2 (2,1),)(1,2),(2,2) 3 3
36
3 (3,1),(1,3),(2,3)(3,3),(3,2) 5
5
4 (1,4),(4,1),(4,2),(2,4)(4,3),(3,4),(4,4) 7 36
7
5 (1,5),(5,1),(2,5),(5,2)(3,5),(5,3),(5,4),(4,5),(5,5) 9 36
9
6 (1,6)(6,1),(6,2),(2,6),(6,3),(3,6),(4,6),(6,4),(6,5)(5,6),(6,6) 11
36
11
36
n
Clearly, i i=1 i
n
i i
i=1
= 4.4 7.
= i2 i
2
1 3 5 7 9 11
36 36 36 36 36 36
-(4.47)2
4.A random variable X has the following probability function
𝑥𝑖 -3 -2 -1 0 1 2 3
𝑝(𝑥𝑖 ) K 0.1 k 0.2 2k 0.4 2k
Find k,mean,variance.
Sol: We know that ni=1 i
i.e., k+0.1+k+0.2+2k+0.4+2k = 1
i.e., 6k+0.7 = 1
n
i i
i=1
= 0.8.
= i2 i
2
2 2 2 -0.64
measures of central dispersion
Mean: The mean of the continuous Probability Distribution is defined as
μ= xf x dx.
Expectation: The Expectation of the continuous Probability Distribution is defined as
E(X) =∫ xf x dx.
In general,E(g(x)) = ∫ g(x) f x dx.
Variance: The variance of the Continuous Probability Distribution is defined as
Var(X) = V(X) = x f x dx − μ .
x − μ f x dx.
Median: Median is the point which divides the entire distribution in to two equal parts. In case of continuous distribution,
median is the point which divides the total area in to two equal parts. i.e,∫ f x dx = ∫ f x dx = ∀ x ∈ (a, b) .
Mode: Mode is the value of x for which f x is maximum.
i.ef x = 0 and f " x < 0 for x ∈ (a, b)
1.If the probability density function 𝑓 𝑥 = − ∞ < 𝑥 < ∞. Find the value of ‘k’ and cumulative
distribution function of F x .
i. e, f x dx = 1.
𝐱
𝐜𝐞 dx = 1
2 𝐜𝐞 𝐱 dx = 1
𝐞 𝐱
2c ( ) =1
1
∴c=
2
𝐱 𝐱
Mean=μ = ∫ xf x dx = ∫ x𝐞 dx = 0. sincex𝐞 is an odd function .
variance = V(X)
1 𝐱
1
= x f x dx − μ = x 𝐞 dx = −0 = 2x 𝐞 𝐱 dx = [x −𝐞 𝐱
− 2x 𝐞 𝐱
2 2
∞
+ 2 −𝐞 𝐱 ] = 2 .
0
3. If the probability density function f x = if 0 ≤ x ≤ π .
0 otherwise
Find mean, median, mode and P(0 < x < ).
𝐬𝐢𝐧𝐱
Sol: Mean=μ = ∫ xf x dx = ∫ x dx = −xcosx + sinx = .
𝟐
Let M be the Median then
1
f x dx = f x dx = ∀ x ∈ −∞, ∞
2
𝐬𝐢𝐧𝐱 𝐬𝐢𝐧𝐱 1
dx = dx = ∀ x ∈ −∞, ∞
𝟐 𝟐 2
𝐬𝐢𝐧𝐱
consider∫ 𝟐
dx = then (−cosx) =1
π
∴M=
2
Since f x = if 0 ≤ x ≤ π
0 otherwise
To find maximum, we have f x = 0
i.e, cosx = 0 impliesthatx =
and f x =− whichislessthan 0 atx =
∴ Mode = .
0 ifx ≤ 1
4.If the distributed function is given by F x = k(x − 1) if 1 ≤ x ≤ 3. Find k, f x , mean.
1 ifx > 3
Sol: Cumulative distribution function of f x is given by
∫ f x dx i.e, f x = F(x)
0 ifx ≤ 1
i.e, f x = 4k(x − 1) if 1 ≤ x ≤ 3
0 ifx > 3
Since total area under the probability curve is 1i. e, ∫ f x dx = 1
4k(x − 1) dx = 1
[k(x − 1) ] = 1
1
∴k=
16
1 0 ifx ≤ 1
∴f x = (x − 1) if 1 ≤ x ≤ 3
4
0 ifx > 3