Stochastic Processes · free preview

Chapter 5 Problem Set. Continuous-Time Markov Chains

Problem set for this chapter. Continuous-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, Mean and variance of passed dogs

If he starts out with exactly mm cans, determine the expected value and variance of DmD_m, the number of homes with dogs which he passes up (because of no answer) before he needs a new supply.

3. Problem 2, 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.

4. Problem 3, MAP and conditional expectation estimation of Poisson parameter

Caleb builds a particle detector and uses it to measure radiation from far stars. On any given day, the number of particles YY that hit the detector is conditionally distributed according to a Poisson distribution conditioned on parameter xx. The parameter xx is unknown and is modeled as the value of a random variable XX, exponentially distributed with parameter μ\mu as follows.

fX(x)={μe−μxx≥00otherwisef_X(x) = \begin{cases} \mu e^{-\mu x} & x \ge 0 \\ 0 & \text{otherwise} \end{cases}

Then, the conditional PDF of the number of particles hitting the detector is,

pY∣X(y∣x)={e−xxyy!y=0,1,2,…0otherwisep_{Y|X}(y \mid x) = \begin{cases} \frac{e^{-x} x^y}{y!} & y = 0, 1, 2, \ldots \\ 0 & \text{otherwise} \end{cases}

(a) Find the MAP estimate of XX from the observed particle count yy.

(b) Our goal is to find the conditional expectation estimator for XX from the observed particle count yy.

i. Show that the posterior probability distribution for XX given YY is of the form

fX∣Y(x∣y)=λy+1y!xye−λx,x>0f_{X|Y}(x \mid y) = \frac{\lambda^{y+1}}{y!} x^y e^{-\lambda x}, \quad x > 0

and find the parameter λ\lambda. You may find the following equality useful (it is obviously true if the equation above describes a true PDF).

∫0∞ay+1xye−axy! dx=1for any a>0\int_0^\infty \frac{a^{y+1} x^y e^{-ax}}{y!} \, dx = 1 \quad \text{for any } a > 0

ii. Find the conditional expectation estimate of XX from the observed particle count yy. Hint, you might want to express xfX∣Y(x∣y)x f_{X|Y}(x \mid y) in terms of fX∣Y(x∣y+1)f_{X|Y}(x \mid y+1).

(c) Compare the two estimators you constructed in part (a) and part (b).

5. Problem 4, Probability Stephen's commute no longer than Jon's

What is the probability that Stephen's commute takes at most as long as Jon's commute?

6. Problem 5, Expected matches in hat problem

Consider the following variant of the hat problem NN people put their hats in a closet at the start of a party, where each hat is uniquely identified. At the end of the party each person randomly selects a hat from the closet. Suppose NN is a Poisson random variable with parameter λ\lambda. If XX is the number of people who pick their own hats, then E[X]E[X] is equal to \\ (i) λ\lambda \\ (ii) 1/λ21/\lambda^2 \\ (iii) 1/λ1/\lambda \\ (iv) 11

7. Problem 6, Ergodic Markov Chain Reward and Renewal Limits

a) Suppose that an ergodic Markov chain with MM states is started at time 0 in steady state, with probabilities π1,…,πM\pi_1, \ldots, \pi_M. Consider a reward process in which unit reward occurs on each entry (at positive integer times) to state 1 and 0 reward occurs otherwise. Find ENs(t)\mathbb{E}N_s(t) for positive integers tt where Ns(t)N_s(t) is the accumulated reward up to and including time tt. Hint. Reason directly from first principles, no need for Section 3.5.

Let N1(t)N_1(t) be the renewal process where a renewal occurs at each entry to state 1 and where X0=1X_0 = 1. Argue why

lim⁡t→∞N1(t)t=lim⁡t→∞Ns(t)t=lim⁡t→∞ENs(t)t\lim_{t \to \infty} \frac{N_1(t)}{t} = \lim_{t \to \infty} \frac{N_s(t)}{t} = \lim_{t \to \infty} \frac{\mathbb{E}N_s(t)}{t}

(no need for rigor here).

b) Find the expected inter-renewal time between successive entries to state 1. Hint. Use the strong law for renewals.

8. Problem 7, Markov chains for M/M queues

You need not show your work here.

a) Draw the Markov chain diagrams for M/M/1, M/M/m, and M/M/\infty queues and determine their steady-state probabilities.

b) Determine the conditions for transience, null recurrence, and positive recurrence for each queue.

c) Assume positive recurrence and find the expected number of customers LL, the expected queue length LqL_q, the expected waiting time WW, and the expected queueing delay WqW_q for each queue.

9. Problem 8, Markov process discouraged arrivals steady state

Consider the Markov process illustrated below. The transitions are labelled by the rate qijq_{ij} at which those transitions occur. The process can be viewed as a single server queue where arrivals become increasingly discouraged as the queue lengthens. The word time-average below refers to the limiting time-average over each sample-path of the process, except for a set of sample paths of probability 0.

Part a) Find the time-average fraction of time pip_i spent in each state i>0i > 0 in terms of p0p_0 and then solve for p0p_0. Hint. First find an equation relating pip_i to pi+1p_{i+1} for each ii. It also may help to recall the power series expansion of exe^x.

Part b) Find a closed form solution to ∑ipivi\sum_i p_i v_i where viv_i is the departure rate from state ii. Show that the process is positive recurrent for all choices of λ>0\lambda > 0 and μ>0\mu > 0 and explain intuitively why this must be so.

Part c) For the embedded Markov chain corresponding to this process, find the steady state probabilities πi\pi_i for each i≥0i \ge 0 and the transition probabilities PijP_{ij} for each i,ji, j.

Part d) For each ii, find both the time-average interval and the time-average number of overall state transitions between successive visits to ii.

10. Problem 9, Bookie shop steady state turn away rate

A small bookie shop has room for at most two customers. Potential customers arrive at a Poisson rate of 10 customers per hour; They enter if there is room and are turned away, never to return, otherwise. The bookie serves the admitted customers in order, requiring an exponentially distributed time of mean 4 minutes per customer.

Part a) Find the steady state distribution of the number of customers in the shop.

Part b) Find the rate at which potential customers are turned away.

Part c) Suppose the bookie hires an assistant; the bookie and assistant, working together, now serve each customer in an exponentially distributed time of mean 2 minutes, but there is only room for one customer (i.e., the customer being served) in the shop. Find the new rate at which customers are turned away.

11. Problem 10, Job sharing computer system steady state PMF

Consider the job sharing computer system illustrated below. Incoming jobs arrive from the left in a Poisson stream. Each job, independently of other jobs, requires pre-processing in system 1 with probability QQ. Jobs in system 1 are served FCFS and the service times for successive jobs entering system 1 are IID with an exponential distribution of mean 1/μ11/\mu_1. The jobs entering system 2 are also served FCFS and successive service times are IID with an exponential distribution of mean 1/μ21/\mu_2. The service times in the two systems are independent of each other and of the arrival times. Assume that μ1>λQ\mu_1 > \lambda Q and that μ2>λ\mu_2 > \lambda. Assume that the combined system is in steady state.

Part a) Is the input to system 1 Poisson? Explain.

Part b) Are each of the two input processes coming into system 2 Poisson?

Part d) Give the joint steady-state PMF of the number of jobs in the two systems. Explain briefly.

Part e) What is the probability that the first job to leave system 1 after time tt is the same as the first job that entered the entire system after time tt?

Part f) What is the probability that the first job to leave system 2 after time tt both passed through system 1 and arrived at system 1 after time tt?

Practice this interactively

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

Start this course for free