BCS301 - Module 2
BCS301 - Module 2
__________________________________________________________________
Syllabus:
Important results:
❖ Expectations:
𝑚 𝑛 𝑚 𝑛
❖ Covariance:
𝐶𝑜𝑣(𝑥, 𝑦) = 𝐸(𝑥𝑦) − 𝐸(𝑥)𝐸(𝑦)
❖ Variance:
𝑉𝑎𝑟(𝑥) = 𝐸(𝑥 2 ) − [𝐸(𝑥)]2 𝑉𝑎𝑟(𝑦) = 𝐸(𝑦 2 ) − [𝐸(𝑦)]2
❖ Standard deviation:
𝜎𝑥 = √𝑉𝑎𝑟(𝑥) 𝜎𝑦 = √𝑉𝑎𝑟(𝑦)
❖ Correlation of X and Y:
𝐶𝑜𝑣(𝑥, 𝑦)
𝜌(𝑥, 𝑦) =
𝜎𝑥 𝜎𝑦
𝑥\𝑦 −4 2 7 𝑓(𝑥)
1 1/8 1/4 1/8 1/2
5 1/4 1/8 1/8 1/2
𝑔(𝑦) 3/8 3/8 1/4 𝑇𝑜𝑡𝑎𝑙 = 1
𝐶𝑜𝑣(𝑥,𝑦) 1.5
(vi) 𝜌(𝑥, 𝑦) = = − 8.66 = −0.1732
𝜎𝑥 𝜎𝑦
Find (i) Marginal distribution of X and Y. (ii) 𝑬(𝒙), 𝑬(𝒚) (iii) Are X and Y
independent random variables? (iv) 𝑪𝒐𝒗(𝒙, 𝒚) (v) 𝝈𝒙 , 𝝈𝒚 (vi) 𝝆(𝒙, 𝒚)
𝑥\𝑦 −3 2 4 𝑓(𝑥)
1 0.1 0.2 0.2 0.5
3 0.3 0.1 0.1 0.5
𝑔(𝑦) 0.4 0.3 0.3 𝑇𝑜𝑡𝑎𝑙 = 1
(i) Marginal probability distribution of X: 𝑥 1 3
𝑓(𝑥) 0.5 0.5
𝑦 −3 2 4
Marginal probability distribution of Y:
𝑔(𝑦) 0.4 0.3 0.3
𝒙𝒊 1 2 𝒚𝒋 -2 5 8
𝒇(𝒙𝒊 ) 0.7 0.3 𝒈(𝒚𝒋 ) 0.3 0.5 0.2
(iv) If 𝑋 + 𝑌 ≥ 2 then 𝑋 + 𝑌 = 0 + 2 𝑜𝑟 0 + 3 𝑜𝑟 1 + 1 𝑜𝑟 1 + 2 𝑜𝑟 1 + 3
𝑃(𝑋 + 𝑌 ≥ 2) = 𝑃(0, 2) + 𝑃(0, 3) + 𝑃(1, 1) + 𝑃(1, 2) + 𝑃(1, 3)
1 1 1 1 3
=4+8+4+8+0= 4
0 1 0 1 2 3
1/2 1/2 1/8 3/8 3/8 1/8
0 1 2 3
Marginal probability distribution of Y: 6/42 9/42 12/42 15/42
(ii) 𝑥 = 0, 𝑦 = {−1, 2}
Home work:
8. Two cards are selected from a box which contains 5 cards numbered 1, 1, 2, 2, 3. Find
the joint distribution of X and Y, where X denote the sum and Y denote the maximum of
two numbers drawn. Also determine 𝐶𝑜𝑣(𝑥, 𝑦).
3 1
To find: 𝑉
𝑉𝑃 = 𝑉, 𝑤ℎ𝑒𝑟𝑒 𝑉 = (𝑥 𝑦), 𝑥 + 𝑦 = 1.
3/4 1/4
(𝑥 𝑦) ( ) = (𝑥 𝑦), 𝑥 + 𝑦 = 1.
1/2 1/2
3𝑥 𝑦 𝑥 𝑦
( + + ) = (𝑥 𝑦), 𝑥 + 𝑦 = 1.
4 2 4 2
3𝑥 𝑦 2 1
Solve + 2 = 𝑥 𝑎𝑛𝑑 𝑥 + 𝑦 = 1, we get 𝑥 = 3 , 𝑦 = 3
4
2/3 1/3
(ii) Let 𝑃 = ( ) and 𝑉 be the unique fixed probability vector.
2/5 3/5
To find: 𝑉
𝑉𝑃 = 𝑉, 𝑤ℎ𝑒𝑟𝑒 𝑉 = (𝑥 𝑦), 𝑥 + 𝑦 = 1.
2/3 1/3
(𝑥 𝑦) ( ) = (𝑥 𝑦), 𝑥 + 𝑦 = 1.
2/5 3/5
2𝑥 2𝑦 𝑥 3𝑦
( + + ) = (𝑥 𝑦), 𝑥 + 𝑦 = 1.
3 5 3 5
2𝑥 2𝑦 6 5
Solve + = 𝑥, 𝑥 + 𝑦 = 1 we get 𝑥 = 11 , 𝑦 = 11
3 5
0 1 0
(ii) Let 𝑃 = (1/6 1/2 1/3) and 𝑉 be the unique fixed probability vector.
0 2/3 1/3
To find: 𝑉
𝑉𝑃 = 𝑉, 𝑤ℎ𝑒𝑟𝑒 𝑉 = (𝑥 𝑦 𝑧), 𝑥 + 𝑦 + 𝑧 = 1.
0 1 0
(𝑥 𝑦 𝑧) (1/6 1/2 1/3) = (𝑥 𝑦 𝑧), 𝑥 + 𝑦 + 𝑧 = 1.
0 2/3 1/3
𝑦 𝑦 𝑦 𝑧
( 𝑥+ +𝑧 + ) = (𝑥 𝑦 𝑧), 𝑥 + 𝑦 + 𝑧 = 1.
6 2 3 3
𝑦 𝑦 𝑧
Solve = 𝑥, + 3 = 𝑧 𝑎𝑛𝑑 𝑥 + 𝑦 + 𝑧 = 1.
6 3
1 6 3
We get 𝑥 = 10 , 𝑦 = 10 , 𝑧 = 10
❖ A stochastic process which is such that the generation of the probability distribution
depend only on the present state is called a Markov process.
❖ If this state space is discrete, then Markov process is called Markov chain.
❖ Transition probability matrix of a Markov chain is a Stochastic matrix.
❖ n step transition matrix of 𝑃 = 𝑃𝑛 .
❖ A Markov chain is said to be regular if the associated transition matrix is regular.
❖ If a transition probability matrix is regular, then it is irreducible.
❖ Unique fixed probability vector is also called as stationary probability vector.
❖ In the long run, we get a stationary probability vector.
--------------------------------------------------------------------------------------------------------
18 6 12
2 1
𝑃 = 36 ( 9 21 6 )
9 12 15
∴ 𝑃 is regular ⇒ 𝑃 is irreducible.
To find: 𝑉
𝑉𝑃 = 𝑉, 𝑤ℎ𝑒𝑟𝑒 𝑉 = (𝑥 𝑦 𝑧), 𝑥 + 𝑦 + 𝑧 = 1.
2 1
0
3 3
1 1
(𝑥 𝑦 𝑧 ) 0 = (𝑥 𝑦 𝑧), 𝑥 + 𝑦 + 𝑧 = 1.
2 2
1 1
(2 2 0)
𝑦 𝑧 2𝑥 𝑧 𝑥 𝑦
( + + + ) = (𝑥 𝑦 𝑧), 𝑧 = 1 − 𝑥 − 𝑦.
2 2 3 2 3 2
𝑦 𝑧 2𝑥 𝑧 𝑥 𝑦
+ = 𝑥, + = 𝑦, + = 𝑧 𝑎𝑛𝑑 𝑧 = 1 − 𝑥 − 𝑦.
2 2 3 2 3 2
1 10 8 1 10 8
By solving we get 𝑥 = 3 , 𝑦 = 27 , 𝑧 = 27. Therefore, 𝑉 = (3 27 27
).
1
(i) 𝑃(𝐴 ℎ𝑎𝑠 𝑡ℎ𝑒 𝑏𝑎𝑙𝑙) = 4
1
(ii) 𝑃(𝐵 ℎ𝑎𝑠 𝑡ℎ𝑒 𝑏𝑎𝑙𝑙) = 4
1
(iii) 𝑃(𝐶 ℎ𝑎𝑠 𝑡ℎ𝑒 𝑏𝑎𝑙𝑙) = 2
--------------------------------------------------------------------------------------------------------
𝑉𝑃 = 𝑉, 𝑤ℎ𝑒𝑟𝑒 𝑉 = (𝑥 𝑦 𝑧), 𝑥 + 𝑦 + 𝑧 = 1.
0 1 0
0 0 1
(𝑥 𝑦 𝑧) (1 1 1) = (𝑥 𝑦 𝑧), 𝑥 + 𝑦 + 𝑧 = 1.
3 3 3
𝑧 𝑧 𝑧
( 𝑥+ 𝑦 + ) = (𝑥 𝑦 𝑧), 𝑧 = 1 − 𝑥 − 𝑦.
3 3 3
𝑧 𝑧 𝑧
= 𝑥, 𝑥 + = 𝑦, 𝑦 + = 𝑧 𝑎𝑛𝑑 𝑧 = 1 − 𝑥 − 𝑦.
3 3 3
𝑧 = 3𝑥, 𝑦 = 2𝑥, 𝑧 = 1 − 2𝑥 − 3𝑥.
1 1 1
By solving we get 𝑥 = 6 , 𝑦 = 3 , 𝑧 = 2.
1 1 1
Therefore, 𝑉 = (6 3
)
2
Conclusion: In the long run, 3/5 of the times he smokes filter cigarettes.
--------------------------------------------------------------------------------------------------------