Introduction to Probability · free preview

Chapter 11 Problem Set. Markov Chains

Problem set for this chapter. Markov Chains.

1. How this assessment works

This lesson is a curated assessment adapted from MIT OpenCourseWare 6.041SC Probabilistic Systems Analysis and Applied Probability (Fall 2013), supplemented by a university mathematics question bank (https://ocw.mit.edu/courses/6-041sc-probabilistic-systems-analysis-and-applied-probability-fall-2013/), used under CC BY-NC-SA 4.0 for the MIT items. Work through the 10 problems in order, for each problem, type your reasoning in the answer box or write it on the handwriting pad, then submit it for AI grading.

How the grading works Every problem is graded by an AI mathematics teacher that reads the official solution shipped with the course. It checks your work criterion by criterion, awards partial credit for correct steps, and returns written feedback. Equivalent mathematics and valid alternative methods are accepted, a different route to the same result can still earn full marks.

If your answer is incomplete, the feedback names exactly which steps are missing, so you can correct them and try again.

2. Problem 1, Oscar's running shoes Markov chain

Oscar goes for a run each morning. When he leaves his house for his run, he is equally likely to go out either the front or back door; and similarly, when he returns, he is equally likely to go to either the front or back door. Oscar owns only five pairs of running shoes which he takes off immediately after the run at whichever door he happens to be. If there are no shoes at the door from which he leaves to go running, he runs barefooted. We are interested in determining the long-term proportion of time that he runs barefooted. (a) Set the scenario up as a Markov chain, specifying the states and transition probabilities. (b) Determine the long-run proportion of time Oscar runs barefooted.

3. Problem 2, Absolute value of random walk Markov property

Consider a Markov chain X1,X2,…X_1, X_2, \ldots modeling a symmetric simple random walk with barriers, as shown below (reflecting boundaries at −m-m and mm, with transition probabilities 12\frac12 to neighboring states and 00 at the absorbing boundary condition). Explain why ∣X1∣,∣X2∣,∣X3∣,…|X_1|, |X_2|, |X_3|, \ldots also satisfies the Markov property and draw the associated chain.

4. Problem 3, Largest deviation Markov chain Markov property

Suppose that we also wish to keep track of the largest deviation from the origin, i.e., define the largest deviation at time tt as Yt=max⁡{∣X1∣,∣X2∣,…,∣Xt∣}Y_t = \max\{|X_1|, |X_2|, \ldots, |X_t|\}. Draw a Markov chain that keeps track of the largest deviation and explain why it satisfies the Markov property.

5. Problem 4, SIS and SIR flu epidemic Markov models

As flu season is upon us, we wish to have a Markov chain that models the spread of a flu virus. Assume a population of nn individuals. At the beginning of each day, each individual is either infected or susceptible (capable of contracting the flu). Suppose that each pair (i,j)(i,j), i≠ji\ne j, independently comes into contact with one another during the daytime with probability pp. Whenever an infected individual comes into contact with a susceptible individual, he/she infects him/her. In addition, assume that overnight, any individual who has been infected for at least 24 hours will recover with probability 0<q<10<q<1 and return to being susceptible, independently of everything else (i.e., assume that a newly infected individual will spend at least one restless night battling the flu).

(a) Suppose that there are mm infected individuals at daybreak. What is the distribution of the number of new infections by day end?

(b) Draw a Markov chain with as few states as possible to model the spread of the flu for n=2n=2. In epidemiology, this is called an SIS (Susceptible-Infected-Susceptible) model.

(c) Identify all recurrent states.

Due to the nature of the flu virus, individuals almost always develop immunity after contracting the virus. Consequently, we improve our model and assume that individuals become infected at most one time. Thus, we consider individuals as either infected, susceptible, or recovered.

(d) Draw a Markov chain to model the spread of the flu for n=2n=2. In epidemiology, this is called an SIR (Susceptible-Infected-Recovered) model.

(e) Identify all recurrent states.

6. Problem 5, Markov chain variance expectation steady-state probabilities

Consider the Markov chain below. For all parts of this problem, the process is in state 3 immediately before the first transition. Be sure to comment on any unusual results.

(partial transition probabilities p3,1=1/10p_{3,1}=1/10, p3,2=2/10p_{3,2}=2/10, p3,3=3/10p_{3,3}=3/10, parteries3,7=4/10p_{ arteries 3,7}=4/10; details in figure.)

(a) Find the variance for JJ, the number of transitions up to and including the transition on which the process leaves state 3 for the last time.

(b) Find the expectation for KK, the number of transitions up to and including the transition on which the process enters state 4 for the first time.

(c) Find πi\pi_i for i=1,2,…,7i=1,2,\ldots,7, the probability that the process is in state ii after 101010^{10} transitions.

(d) Given that the process never enters state 4, find the πi\pi_i's as defined in part (c).

7. Problem 6, Recursions for reward mean and variance

Consider a Markov chain {Xk}\{X_k\} on the state space {1,…,n}\{1,\ldots,n\}, and suppose that whenever the state is ii, a reward g(i)g(i) is obtained. Let RkR_k be the total reward obtained over the time interval {0,1,…,k}\{0,1,\ldots,k\}, that is, Rk=g(X0)+g(X1)+⋯+g(Xk)R_k=g(X_0)+g(X_1)+\cdots+g(X_k). For every state ii, let

mk(i)=E[Rk∣X0=i],m_k(i)=E[R_k\mid X_0=i],

and

vk(i)=var⁡(Rk∣X0=i)v_k(i)=\operatorname{var}(R_k\mid X_0=i)

respectively be the conditional mean and conditional variance of RkR_k, conditioned on the initial state being ii.

(a) Find a recursion that, given the values of mk(1),…,mk(n)m_k(1),\ldots,m_k(n), allows the computation of mk+1(1),…,mk+1(n)m_{k+1}(1),\ldots,m_{k+1}(n).

(b) Find a recursion that, given the values of mk(1),…,mk(n)m_k(1),\ldots,m_k(n) and vk(1),…,vk(n)v_k(1),\ldots,v_k(n), allows the computation of vk+1(1),…,vk+1(n)v_{k+1}(1),\ldots,v_{k+1}(n). Hint. Use the law of total variance.

8. Problem 7, Expected tosses for patterns HT and TT

Assume that a fair coin is tossed repeatedly, with the tosses being independent. We want to determine the expected number of tosses necessary to first observe a head directly followed by a tail. To do so, we define a Markov chain with states SS, HH, TT, HTHT, where SS is a starting state, HH indicates a head on the current toss, TT indicates a tail on the current toss (without heads on the previous toss), and HTHT indicates heads followed by tails over the last two tosses.

(a) What is the expected number of tosses necessary to first observe a head directly followed by tails?

(b) Assuming we have just observed a head followed by a tail, what is the expected number of additional tosses until we again observe a head followed directly by a tail?

Next, we want to answer the same questions for the event tails directly followed by tails. Set up a different Markov chain from which we could calculate the expected number of tosses necessary to first observe tails directly followed by tails.

(c) What is the expected number of tosses necessary to first observe a tail directly followed by a tail?

(d) Assuming we have just observed a tail followed by a tail, what is the expected number of additional tosses until we again observe a tail followed directly by a tail? Note that the number of additional tosses could be as little as one, if tails were to come up again.

9. Problem 8, Markov chain two-step transition probability

Part 1. (4 points) Given that the chain starts with X0=1X_0 = 1, find the probability that X2=2X_2 = 2. In case you did not do part (b) correctly, in all subsequent parts of this problem you can just use the symbols πi\pi_i, you do not need to plug in actual numbers.

10. Problem 9, Independent binomial and Poisson variables

Let random variables XX and YY be independent, where XX follows the binomial distribution B(4,12)B({4,\frac{1}{2}}), and YY follows the Poisson distribution λ=1\lambda=1. Then the probability P{1<  max⁡{X,Y}≤3}=P\{ 1 < \; \max \{ X,Y\} \leq 3\}=‾\underline{\hspace{7.5em}}.

11. Problem 10, Type of E[E[X|Y,N]|N]

Let XX and YY be continuous random variables and NN a discrete random variable. The quantity E[ E[X∣Y,N]∣N ]E[\,E[X\mid Y,N]\mid N\,] is always, (i) A number. (ii) A discrete random variable. (iii) A continuous random variable. (iv) Not enough information to choose between (i)-(iii).

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free