Mid Term (2018)
Mid Term (2018)
1. Let (X, Y ) be a pair of random variables with values in {1, 2, 3, . . .} × (0, 1)such that
Solution.
1−Y
Since X|Y = y ∼ Geoy, E(X|Y ) = 1/Y and var(X|Y ) = Y .
So finally,
β β(α + β − 1)
var(X) = + .
α − 1 (α − 1)2 (α − 2)
1−Y
Remark. With the correct formula of var(X|Y ) = Y2
, we have
And
β(α + β − 1) β(α + β − 1) αβ(α + β − 1)
var(X) = + = .
(α − 1)(α − 2) (α − 1)2 (α − 2) (α − 1)2 (α − 2)
1
Typo: the variance is in fact (1 − p)/p2 but we will continue with this (wrong) assumption.
1
2. Consider a Markov chain consisting of the six states 0, 1, 2, 3, 4, 5, and having transition
probability matrix
state 0 1 2 3 4 5
0 0.2 0 0.2 0 0 0.6
1 0.6 0.2 0.2 0 0
0
P =
2 0
0 0 0 1 0 .
3 0.25 0.25 0.25 0 0 0.25
4 0
0 1 0 0 0
5 0 0 0 0 0 1
Specify the classes and determine whether they are transient or recurrent.
[16 marks]
Solution.
• Class {5}: Absorbing state, recurrent ( pn55 = 1 for all n ≥ 1, so n pn55 = ∞).
P
3. Jerry the mouse likes very much resting at the four corners of a square table. The corners
are labeled as A, B, C and D (clockwise). Once a minute, she moves from where she is
to one of the two nearest corners randomly with equal probability.
• Give the transition matrix of the Markov chain representing the successive positions
of Jerry.
• Is the Markov chain ergodic?
• Find the limiting probabilities of the chain.
• Initially, Jerry is at corner D. Find the expected number of moves until she returns
to D.
[24 marks]
2
Solution.
0
2 2
S 0 = (I − PT0 )−1 =
1 1 1
I − PT = 2 0 2 = − 2 1 − 21
, 1 2 1 ,
0 21 0 0 − 12 1 1 3
2 1 2
If we call m0iD the expected number of moves before absoption at D when this chain
starts at i, then we have
3 1
m0AD = SAA
0 0
+ SAB 0
+ SAC = + 1 + = 3,
2 2
1 3
m0CD = SCA
0 0
+ SCB 0
+ SCC = + 1 + = 3.
2 2
Now we go back to the original chain. By first-step analysis, for the first step, Jerry
will move to A or C with probability 12 . Then the expected number before returning
to D is equal to
1 1
E(N ) = (1 + m0AD ) + (1 + m0CD ) = 4.
2 2
Note. As an alternative solution, one can apply First Step Analysis to derive a system
of equations involving first entrance times to state D with different initial states.