Professional Documents
Culture Documents
&
Expectation of a Random
Variable
TB ch-5
Function of a Random Variable
Ans:
Possible sums: 2,3,4,5,6,7,8,9,10,11,12
Respective prob: 1/36, 2/36, 3,4,5,6,5,4,3,2,1/36
Expected value: σ 𝑥. 𝑃(𝑥) = 2x1/36 + 3x2/36 +….+ 12x1/36 = 252/36 = 7
Example-3
The sale of petrol in a petrol pump on average is Rs. 80,000 on a rainy day and Rs.
95000 on a clear day. The forecast predicted for the weather on coming Monday
says that the prob. Is 0.76 for a clear day. Find the expected value of petrol sale on
the coming Monday.
Sol to Example-3
The sale of petrol in a petrol pump on average is Rs. 80,000 on a rainy
day and Rs. 95000 on a clear day. The forecast predicted for the
weather on coming Monday says that the prob. Is 0.76 for a clear day.
Find the expected value of petrol sale on the coming Monday.
1 2 7
So, 𝐸 𝑥 = 𝑓 𝑥1 . 𝑋1 +𝑓 𝑥2 . 𝑋2 = 5 + 1 =
3 3 3
Case (i): Both of Rs. 1
Random variable X1 = 1 + 1 = 2
4𝐶2
f(x1) =
6𝐶2
2. E X + Y = E X + E(Y)
7. 𝑉 𝑋 = 𝐸 𝑋 2 − 𝐸 𝑋 2
8. 𝑉 𝑎𝑋 + 𝑏 = 𝑎2 . 𝑉(𝑋)
Example-6
The probability distribution of a random variable X is as follows:
Xi 0 1 2 3 4
Probability 1/10 P 3/10 p 1/10
f(Xi)
Solution:
(i) We know that σ𝑥∈𝑆 𝑓 𝑥 = 1
0 1/8 0 0 0
2 1/4 1/2 4 1
12
Mean = E(X) = σ 𝑥𝑖 ∗ 𝑓 𝑥𝑖 = = 1.5
8
Now, E(x2 ) =
36 2
σ 𝑥𝑖 2 ∗ 𝑓 𝑥𝑖 = = 4.5 𝑎𝑛𝑑 𝑉𝑎𝑟𝑖𝑎𝑛𝑐𝑒 = 𝐸 𝑋2 − 𝐸 𝑋 = 4.5 − 1.52 = 2.25
8
Example-8
𝑥
Let X have the pmf 𝑓 𝑥 = , 𝑥 = 1,2,3,4.
10
Find the mean, 𝐸 𝑋 2 , 𝐸 𝑋 5 − 𝑋 , 𝐸 𝑋 − 2 2 , 𝑉 𝑋 , 𝑉 −3𝑋 + 5 .
Sol to Example-8
𝑥
Let X have the pmf 𝑓 𝑥 = , 𝑥 = 1,2,3,4.
10
Find the mean, 𝐸 𝑋 2 , 𝐸[𝑋 5 − 𝑋 ].
Solution:
𝑥
The mean of X is 𝐸 𝑋 = σ4𝑥=1 𝑥. 𝑓 𝑥 = σ4𝑥=1 𝑥.
10
1 2 3 4
= 1. + 2. + 3. + 4.
10 10 10 10
=3
4 4
𝑥
𝐸 𝑋2 = 𝑥 2. 𝑓 𝑥 = 𝑥 2.
10
𝑥=1 𝑥=1
2 1 2 3 4
= 1 . + 22 . + 32 . + 42 .
10 10 10 10
= 10
𝐸 𝑋(5 − 𝑋 = 𝐸 5𝑋 − 𝑋 2 = 5𝐸 𝑋 − 𝐸 𝑋 2 = 5 3 − 10 = 5
Example-9
𝑥 2 −5
Let X have the pmf 𝑓 𝑥 = , 𝑥 = 1,2,3,4.
10
2
Find the value of 𝐸 (𝑋 − 2) and V 3 − 5X .
Example-10
Let the random variable X have the pmf
( 𝑥 +1)2
𝑓 𝑥 = , 𝑥 = −1, 0, 1
9
Compute 𝐸 𝑋 , 𝐸 𝑋 2 , 𝐸 3𝑋 2 − 2𝑋 + 4 , 𝑉 𝑋 , 𝑉 5 − 7𝑋 , 𝑎𝑛𝑑 𝑉(4 + 5𝑋).
Example-11
Let X equal the number visible on the side facing upwards after a fair six –
sided die is cast at random. A reasonable probability model is given by the
pmf
1
𝑓 𝑥 =𝑃 𝑋=𝑥 = , 𝑥 = 1,2,3,4,5,6
6
Find mean, variance and standard deviation.
Solution:
1 1+2+3+4+5+6 7
Mean = 𝐸 𝑋 = σ6𝑥=1 𝑥 = =
6 6 2
V(X) = 𝐸 𝑋 2 − (𝐸 𝑋 )2
6
1 12 + 22 + 32 + 42 + 52 + 62 91
𝐸 𝑋2 = 𝑥2 = =
6 6 6
𝑥=1
Variance = V(X) = 𝐸 𝑋 2 − (𝐸 𝑋 )2
2
91 7 35
= − =
6 2 12
Example-12
Let X have the pmf
1
𝑓 𝑥 = , 𝑥 = −2,0,2
5
Find mean, variance and standard deviation.
1 −2+0+2
Solution: Mean = 𝐸 𝑋 = σ2𝑥=−2 𝑥 = =0
5 5
Variance = V(X) = 𝐸 𝑋 2 − (𝐸 𝑋 )2 ]
2
1 −22 + 02 + 22 8
𝐸 𝑋2 = 𝑥2 = =
5 5 5
𝑥=−2
8 8
Variance = − 0 =
5 5
Standard deviation 𝜎 = 8/5
Example-13
Let X have the pmf
2−𝑥
𝑓 𝑥 = , 𝑥 = 1, 2, 3, 4
3
Find 𝐸 𝑋 , 𝐸 𝑋 𝑋 − 1 𝑎𝑛𝑑 𝑉 𝑋 .
Example-14
Let X have the pmf
2−|𝑥|
𝑓 𝑥 = , 𝑥 = −1, 0, 1
4
Find 𝐸 𝑋 , 𝐸 𝑋 𝑋 − 1 𝑎𝑛𝑑 𝑉 𝑋 .
Example-15
If 𝐸 2𝑥 − 5 = 11, 𝑉 5 − 3𝑥 = 81, 𝐸 𝑎 − 𝑏𝑥 = −14, 𝑎𝑛𝑑
𝑉 𝑎𝑥 − 𝑏 2 = 36, then find a and b given they are positive.
Solution:
We know that, 𝐸 𝑎𝑥 + 𝑏 = 𝑎 𝐸 𝑋 + 𝑏
∴ 𝐸 2𝑥 − 5 = 2𝐸 𝑋 − 5 = 11
∴𝐸 𝑋 =8
𝑉 𝑎𝑥 + 𝑏 = 𝑎2 𝑉 𝑋
∴ 𝑉 5 − 3𝑥 = 9. 𝑉 𝑋 = 81
∴𝑉 𝑥 =94
Sol to Example-15
If 𝐸 2𝑥 − 5 = 11, 𝑉 5 − 3𝑥 = 81, 𝐸 𝑎 − 𝑏𝑥 = −14, 𝑎𝑛𝑑
𝑉 𝑎𝑥 − 𝑏 2 = 36, then find a and b given they are positive.
Solution:
We know that, 𝑬 𝒂𝒙 + 𝒃 = 𝒂 𝑬 𝑿 + 𝒃
∴ 𝐸 2𝑥 − 5 = 2𝐸 𝑋 − 5 = 11
∴𝐸 𝑋 =8
𝑽 𝒂𝒙 + 𝒃 = 𝒂𝟐 𝑽 𝑿
∴ 𝑉 5 − 3𝑥 = 9. 𝑉 𝑋 = 81
∴𝑉 𝑥 =9
Now, 𝑬 𝒂 − 𝒃𝒙 = −𝒃 𝑬 𝑿 + 𝒂 = −14
∴ −8𝑏 + 𝑎 = −14 … … … … … … … … … . (1)
𝑽 𝒂𝒙 − 𝒃𝟐 = 36
∴ 𝒂𝟐 𝑽 𝑿 = 36
∴ 9𝑎2 = 36 (since V(x) = 9)
∴ 𝑎2 = 4
∴ 𝑎 = ±2
But 𝑎 = −2 𝑖𝑠 𝑛𝑜𝑡 𝑝𝑜𝑠𝑠𝑖𝑏𝑙𝑒 (according to the ques a and b are positive)
∴𝑎=2
From (1), b = 2
Example-16
A vendor can purchase a newspaper at a concession rate of 0.25 Rs. Per
copy against the selling price Rs. 0.40. Any unsold copies are however a
dead loss. He has estimated the following distribution for the number of
copies demanded.
No. of 15 16 17 18 19 20
Copies
Probability 0.04 0.19 0.33 0.26 0.11 0.07
35