I will be doing Exercise 3, Page 414
Exercise 3: In Example 11.5 find P, \(P^2,\) and \(P^3\). What is \(P^n?\)
Example 11.5 Each time a certain horse runs in a three-horse race, he has proba- bility 1/2 of winning, 1/4 of coming in second, and 1/4 of coming in third, indepen- dent of the outcome of any previous race. We have an independent trials process, but it can also be considered from the point of view of Markov chain theory. The transition matrix is
P = matrix(c(.5, .25, .25,
.5, .25, .25,
.5, .25, .25), nrow = 3, ncol = 3, byrow=T)
P
## [,1] [,2] [,3]
## [1,] 0.5 0.25 0.25
## [2,] 0.5 0.25 0.25
## [3,] 0.5 0.25 0.25
\(P^2\):
P2 = P %*% P
P2
## [,1] [,2] [,3]
## [1,] 0.5 0.25 0.25
## [2,] 0.5 0.25 0.25
## [3,] 0.5 0.25 0.25
\(P^3\):
P3 = P2 %*% P
P3
## [,1] [,2] [,3]
## [1,] 0.5 0.25 0.25
## [2,] 0.5 0.25 0.25
## [3,] 0.5 0.25 0.25
Suppose n = 4 then \(P^n\):
\(P^4\):
P4 = P3 %*% P
P4
## [,1] [,2] [,3]
## [1,] 0.5 0.25 0.25
## [2,] 0.5 0.25 0.25
## [3,] 0.5 0.25 0.25
Therefore \(P^n\) will be equal to P.