Stochastic Processes · free preview

Chapter 2 Problem Set. Discrete-Time Markov Chains

Problem set for this chapter. Discrete-Time Markov Chains.

1. How this assessment works

This lesson is a curated assessment adapted from MIT OpenCourseWare 6.262 Discrete Stochastic Processes (Spring 2011) (https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/), used under CC BY-NC-SA 4.0. 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, Convergence in probability of sequences

Random variable XX is uniformly distributed between −1.0-1.0 and 1.01.0. Let X1,X2,…X_1, X_2, \ldots be independent identically distributed random variables with the same distribution as XX. Determine which, if any, of the following sequences (all with i=1,2,…i = 1, 2, \ldots) are convergent in probability. Fully justify your answers. Include the limits if they exist.

(a) Ui=X1+X2+…+XiiU_i = \displaystyle\frac{X_1 + X_2 + \ldots + X_i}{i} (b) Wi=max⁡(X1,…,Xi)W_i = \max(X_1, \ldots, X_i) (c) Vi=X1⋅X2⋅…⋅XiV_i = X_1 \cdot X_2 \cdot \ldots \cdot X_i

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, Gambler with switching decks and card insertion

Jack is a gambler who pays for his MIT tuition by spending weekends in Las Vegas. Lately he's been playing 21 at a table that returns cards to the deck and reshuffles them all before each hand. As he has a fixed policy in how he plays, his probability of winning a particular hand remains constant, and is independent of all other hands. There is a wrinkle, however; the dealer switches between two decks (deck #2 is more unfair to Jack than deck #1), depending on whether or not Jack wins. Jack's wins and losses can be modeled via the transitions of the following Markov chain, whose states correspond to the particular deck being used.

(a) What is Jack's long term probability of winning?

Given that Jack loses and the dealer is not occupied with switching decks, with probability 28\frac{2}{8} the dealer looks away for one second and with probability 18\frac{1}{8} the dealer looks away for two seconds, independently of everything else. When this happens, Jack secretly inserts additional cards into both of the dealer's decks, transforming the decks into types 1A & 2A (when he has 1 second) or 1B & 2B (when he has 2 seconds). Jack slips cards into the decks at most once. The process can be described by the modified Markov chain in the picture. Assume in all future problems that play begins with the dealer using deck #1.

(b) What is the probability of Jack eventually playing with decks 1A and 2A?

(c) What is Jack's long-term probability of winning?

(d) What is the expected time (as in number of hands) until Jack slips additional cards into the deck?

(e) What is the distribution of the number of times that the dealer switches from deck 2 to deck 1?

(f) What is the distribution of the number of wins that Jack has before he slips extra cards into the deck? Hint. Note that after some conditioning, we have a geometric number of geometric random variables, all of which are independent.

(g) What is the average net losses (number of losses minus the number of wins, sometimes negative) prior to Jack slipping additional cards into the deck?

(h) Given that after a very long period of time Jack is playing a hand with deck 1A, what is the approximate probability that his previous hand was played with deck 2A?

10. Problem 9, 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.

11. Problem 10, Recurrent state definitions and transient paths

Exercise 3.2 in text.

Practice this interactively

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

Start this course for free