The solution to the problem is to calculate the state vector of the transition matrix of the Markov chain.
Simulate this problem using the following matrix:
T = "\\begin{bmatrix}\n 0.8 & 0.3&0.2 \\\\\n 0.1&0.2&0.6\\\\\n 0.1&0.5&0.2\\\\\n\n\\end{bmatrix}"
where initial state vector is X0 = [0, 1, 0]
If Xn+1 and Xn are two consecutive state vectors of a Markov chain with transition matrix T, then Xn+1=T Xn
calculate X1:
X1 = X0*T =[0.8*0+0.3*1+0.2*0, 0.1*0+0.2*1+0.6*0, 0.1*0+0.5*1+0.2*0] =[0.3,0.2,0.5]
X1 = [0.3,0.2,0.5]
calculate X2 to three decimal places:
X2 =X1*T = [0.8*0.3+0.3*0.2+0.2*0.2, 0.1*0.3+0.2*0.2+0.6*0.5, 0.1*0.3+0.5*0.2+0.2*0.5] =
[0.4 , 0.37, 0.23]
X2 = [0.4 , 0.37, 0.23]
calculate X3 to three decimal places:
X3 =X2*T = [0.8*0.4+0.3*0.37+0.2*0.23, 0.1*0.4+0.2*0.37+0.6*0.23 0.1*0.4+0.5*0.37+0.2*0.23] =
[0.477, 0.252, 0.271]
X3 = [0.477, 0.252, 0.271]
Comments
Leave a comment