Every problem in the chapter beside the book’s answer, a chapter at a time as you scroll.
Chapter 11: Markov Chains
14 problems · 0 figuresExercise 11.3.1 §11.3 source ↗
Which of the following matrices are transition matrices for regular Markov chains?
(a) .
(b) .
(c) .
(d) .
(e) .
Answer
(a), (f)
Exercise 11.3.3 §11.3 source ↗
Consider the Markov chain with general transition matrix
(a) Under what conditions is absorbing?
(b) Under what conditions is ergodic but not regular?
(c) Under what conditions is regular?
Answer
(a) or
(b)
(c) or or .
Exercise 11.3.5 §11.3 source ↗
Find the fixed probability vector for each of the following regular matrices.
(a) .
(b) .
(c) .
Answer
(a)
(b)
(c)
Exercise 11.3.7 §11.3 source ↗
Consider the Markov chain with transition matrix of Exercise 3, with and . Compute directly the unique fixed probability vector, and use your result to prove that the chain is not ergodic.
Consider the Markov chain with general transition matrix
(a) Under what conditions is absorbing?
(b) Under what conditions is ergodic but not regular?
(c) Under what conditions is regular?
Answer
The fixed vector is and the entries of this vector are not strictly positive, as required for the fixed vector of an ergodic chain.
Exercise 11.3.9 §11.3 source ↗
Prove that, if a 3-by-3 transition matrix has the property that its column sums are 1, then is a fixed probability vector. State a similar result for -by- transition matrices. Interpret these results for ergodic chains.
Answer
Let with column sums equal to 1. Then The same argument shows that if is an transition matrix with columns that add to 1 then is a fixed probability vector. For an ergodic chain this means the the average number of times in each state is .
Exercise 11.3.11 §11.3 source ↗
Is the Markov chain in Example 11.11 ergodic?
We start with two animals of opposite sex, mate them, select two of their offspring of opposite sex, and mate those, and so forth. To simplify the example, we will assume that the trait under consideration is independent of sex.
Here a state is determined by a pair of animals. Hence, the states of our process will be: , , , , , and .
We illustrate the calculation of transition probabilities in terms of the state . When the process is in this state, one parent has GG genes, the other Gg. Hence, the probability of a dominant offspring is 1/2. Then the probability of transition to (selection of two dominants) is 1/4, transition to is 1/2, and to is 1/4. The other states are treated the same way. The transition matrix of this chain is:
Answer
In Example 11.11 of Section 11.1, the state is absorbing, and the same reasoning as in the immediately preceding answer applies to show that this chain is not ergodic.
Exercise 11.3.13 §11.3 source ↗
For Example 11.4 when is ergodic, what is the proportion of people who are told that the President will run? Interpret the fact that this proportion is independent of the starting state.
The President of the United States tells person A his or her intention to run or not to run in the next election. Then A relays the news to B, who in turn relays the message to C, and so forth, always to some new person. We assume that there is a probability that a person will change the answer from yes to no when transmitting it to the next person and a probability that he or she will change it from no to yes. We choose as states the message, either yes or no. The transition matrix is then The initial state represents the President’s choice.
Answer
The fixed vector is . Thus in the long run a proportion of the people will be told that the President will run. The fact that this is independent of the starting state means it is independent of the decision that the President actually makes. (See Exercise 2 of Section 11.1)
Exercise 11.3.15 §11.3 source ↗
Show that Example 11.8 is an ergodic chain, but not a regular chain. Show that its fixed probability vector is a binomial distribution.
(Ehrenfest Model) The following is a special case of a model, called the Ehrenfest model, (P. and T. Ehrenfest, “Über zwei bekannte Einwände gegen das Boltzmannsche H-Theorem," Physikalishce Zeitschrift, vol. 8 (1907), pp. 311-314.) that has been used to explain diffusion of gases. The general model will be discussed in detail in Section 11.5. We have two urns that, between them, contain four balls. At each step, one of the four balls is chosen at random and moved from the urn that it is in into the other urn. We choose, as states, the number of balls in the first urn. The transition matrix is then
Answer
It is clearly possible to go between any two states, so the chain is ergodic. From 0 it is possible to go to states 0, 2, and 4 only in an even number of steps, so the chain is not regular. For the general Erhrenfest Urn model the fixed vector must statisfy the following equations: It is easy to check that the binomial coefficients satisfy these conditions.
Exercise 11.3.17 §11.3 source ↗
Toss a fair die repeatedly. Let denote the total of the outcomes through the th toss. Show that there is a limiting value for the proportion of the first values of that are divisible by 7, and compute the value for this limit. Hint: The desired limit is an equilibrium probability vector for an appropriate seven state Markov chain.
Answer
Consider the Markov chain whose state is the value of , that is, the remainder when is divided by 7. Then the transition matrix for this chain is Since the column sums of this matrix are 1, the fixed vector is
Exercise *11.3.19 §11.3 source ↗
Define to be the smallest integer such that for all regular Markov chains with states, the th power of the transition matrix has all entries positive. It has been shown, (E. Seneta, Non-Negative Matrices: An Introduction to Theory and Applications, Wiley, New York, 1973, pp. 52-54.) that .
(a) Define the transition matrix of an -state Markov chain as follows: For states , with , 2, …, , , , and . Show that this is a regular Markov chain.
(b) For , verify that the fifth power is the first power that has no zeros.
(c) Show that, for general , the smallest such that has all entries positive is .
Answer
(a) For the general chain it is possible to go from any state to any other state in steps. We show how this can be done starting in state 1. To return to 1, circle times ( steps) and once ( steps). For to reach state , circle times ( steps) then times ( steps) and then move to in steps.You have taken steps in all. The argument is the same for any other starting state with everything translated the appropriate amount.
(b)
Exercise 11.3.25 §11.3 source ↗
Prove that, in an -state ergodic chain, it is possible to go from any state to any other state in at most steps.
Answer
To each Markov chain we can associate a directed graph, whose vertices are the states of the chain, and whose edges are determined by the transition matrix: the graph has an edge from to if and only if . Then to say that is ergodic means that from any state you can find a path following the arrows until you reach any state . If you cut out all the loops in this path you will then have a path that never interesects itself, but still leads from to . This path will have at most edges, since each edge leads to a different state and none leads to . Following this path requires at most steps.
Exercise 11.3.27 §11.3 source ↗
Prove that if is the transition matrix of an ergodic chain, then is the transition matrix of a regular chain. Hint: Use Exercise 26.
Let be the transition matrix of an -state ergodic chain. Prove that, if the diagonal entries are positive, then the chain is regular.
Answer
If is ergodic it is possible to go between any two states. The same will be true for the chain with transition matrix . But for this chain it is possible to remain in any state; therefore, by Exercise 26, this chain is regular.
Exercise 11.3.29 §11.3 source ↗
Distribution of chips.
In his book, Wahrscheinlichkeitsrechnung und Statistik, (A. Engle, Wahrscheinlichkeitsrechnung und Statistik, vol. 2 (Stuttgart: Klett Verlag, 1976).) A. Engle proposes an algorithm for finding the fixed vector for an ergodic Markov chain when the transition probabilities are rational numbers. Here is his algorithm: For each state , let be the least common multiple of the denominators of the non-zero entries in the th row. Engle describes his algorithm in terms of moving chips around on the states—indeed, for small examples, he recommends implementing the algorithm this way. Start by putting chips on state for all . Then, at each state, redistribute the chips, sending to state . The number of chips at state after this redistribution need not be a multiple of . For each state , add just enough chips to bring the number of chips at state up to a multiple of . Then redistribute the chips in the same manner. This process will eventually reach a point where the number of chips at each state, after the redistribution, is the same as before redistribution. At this point, we have found a fixed vector. Here is an example: We start with . The chips after successive redistributions are shown in Table 11.4.
Distribution of chips.
We find that is a fixed vector.
(a) Write a computer program to implement this algorithm.
(b) Prove that the algorithm will stop. Hint: Let be a vector with integer components that is a fixed vector for and such that each coordinate of the starting vector is less than or equal to the corresponding component of . Show that, in the iteration, the components of the vectors are always increasing, and always less than or equal to the corresponding component of .
Answer
(b) Since has rational transition probabilities, when you solve for the fixed vector you will get a vector with rational components. We can multiply through by a sufficiently large integer to obtain a fixed vector with integer components such that each component of is an integer multiple of the corresponding component of . Let be the vector resulting from the th iteration. Let . Then is obtained by adding chips to . We want to prove that . This is true for by construction. Assume that it is true for . Then multiplying the inequality by gives that . Consider the component . This is obtained by adding chips to until we get a multiple of . Since , any multiple of that could be obtained in this manner to define could also have been obtained to define by adding more chips if necessary. Since we take the smallest possible multiple , we must have . Thus the results after each iteration are monotone increasing. On the other hand, they are always less than or equal to . Since there are only a finite number of integers between components of and , the iteration will have to stop after a finite number of steps.
Exercise *11.3.31 §11.3 source ↗
(Alternate proof of Theorem 11.8) Let be the transition matrix of an ergodic Markov chain. Let be any column vector such that . Let be the maximum value of the components of . Assume that . Show that if then . Use this to prove that must be a constant vector.
Let be a regular transition matrix, let let be the common row of , and let be the column vector all of whose components are 1. Then
(a) , and any row vector such that is a constant multiple of .
(b) , and any column vector x such that is a multiple of .
Proof. To prove part (a), we note that from Theorem 11.7, Thus, But , and so , and .
Let be any vector with . Then , and passing to the limit, . Let be the sum of the components of . Then it is easily checked that . So, .
To prove part (b), assume that . Then , and again passing to the limit, . Since all rows of are the same, the components of are all equal, so is a multiple of .
Let be the transition matrix for a regular chain. Then, as , the powers approach a limiting matrix with all rows the same vector . The vector is a strictly positive probability vector (i.e., the components are all positive and they sum to one).
Answer
If the maximum of a set of numbers is an average of other elements of the set, then each of the elements with positive weight in this average must also be maximum. By assumption, . This implies for all . Assume that , where is the maximum value for the ’s, and let be any other state. Then there is an such that . The th row of the equation presents as an average of values of with positive weight,one of which is . Thus , and is constant.
End of the book.
Exercises and answers are adapted from Grinstead and Snell's Introduction to Probability by The CHANCE Project, which is free to read and download, and are used under the GNU FDL licence. They are taken from the GNU version’s LaTeX source (4 July 2006), with answers from the authors’ published answers to the odd-numbered exercises, and set for the web, so they may differ slightly from the printed page. This adaptation is released under the same licence and is neither affiliated with nor endorsed by Grinstead and Snell or American Mathematical Society. Copyright (C) 2006 Peter G. Doyle. This work is a version of Grinstead and Snell's ‘Introduction to Probability, 2nd edition’, published by the American Mathematical Society, Copyright (C) 2003 Charles M. Grinstead and J. Laurie Snell.