Menu Close

Markov chains and Poisson process: UPSC Statistics Optional PYQ Solutions (1995–2026)

All 44 questions UPSC has asked on Markov chains and Poisson process in the Statistics Optional (Paper II, Optimization Techniques) from 1995 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Optimization Techniques topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
  • ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
  • ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
  • ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 1d 2026 · 4c(i) 2025 · 3c 2024 · 3b 2023 · 1e 2022 · 1c 2021 · 1d 2020 · 1d 2019 · 2c 2019 · 3a 2018 · 1b 2018 · 3a 2017 · 1d 2017 · 4b 2016 · 1c 2014 · 1b 2012 · 4b 2011 · 1a 2011 · 2d 2010 · 1a 2010 · 2d 2009 · 1a 2009 · 2b 2007 · 1f 2007 · 3b 2006 · 1f 2006 · 3c 2005 · 1d 2004 · 1f 2004 · 3c 2004 · 4c 2003 · 1f 2003 · 4a 2002 · 1f 2001 · 4c 2000 · 1c 2000 · 1d 2000 · 3b 1999 · 8c 1998 · 9c 1997 · 9a 1997 · 9b 1995 · 9b 1995 · 9c

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Given a transition probability matrix with three states {1,2,3} as: P=(0⋅60⋅30⋅10⋅20⋅60⋅20⋅40⋅40⋅2) Find the value of P(X5=2∣X3=3) and P(X3=1∣X0=3).

2026 · Paper II · Q1d · 10 marks

Solution

Idea. For a homogeneous chain, P(Xm+n=j∣Xm=i)=pij(n)P(X_{m+n}=j\mid X_m=i)=p^{(n)}_{ij}, the (i,j)(i,j) entry of PnP^n.

P=(0.60.30.10.20.60.20.40.40.2)P=\begin{pmatrix}0.6&0.3&0.1\\0.2&0.6&0.2\\0.4&0.4&0.2\end{pmatrix}

(a) P(X5=2∣X3=3)=p32(2)P(X_5=2\mid X_3=3)=p^{(2)}_{32} — row 3 of PP times column 2 of PP: p32(2)=0.4(0.3)+0.4(0.6)+0.2(0.4)=0.12+0.24+0.08=0.44.p^{(2)}_{32}=0.4(0.3)+0.4(0.6)+0.2(0.4)=0.12+0.24+0.08=\boxed{0.44}.

(b) P(X3=1∣X0=3)=p31(3)P(X_3=1\mid X_0=3)=p^{(3)}_{31}. First row 3 of P2P^2:

  • p31(2)=0.4(0.6)+0.4(0.2)+0.2(0.4)=0.40p^{(2)}_{31}=0.4(0.6)+0.4(0.2)+0.2(0.4)=0.40
  • p32(2)=0.44p^{(2)}_{32}=0.44
  • p33(2)=0.4(0.1)+0.4(0.2)+0.2(0.2)=0.16p^{(2)}_{33}=0.4(0.1)+0.4(0.2)+0.2(0.2)=0.16

Then, multiplying by column 1 of PP: p31(3)=0.40(0.6)+0.44(0.2)+0.16(0.4)=0.240+0.088+0.064=0.392.p^{(3)}_{31}=0.40(0.6)+0.44(0.2)+0.16(0.4)=0.240+0.088+0.064=\boxed{0.392}.

✓ Checked by computer We checked in Python (exact fractions): p₃₂⁽²⁾ = 11/25 = 0.44 and p₃₁⁽³⁾ = 49/125 = 0.392.

↑ Back to the question list

Define a Poisson process and state at least three applications of the same.

2026 · Paper II · Q4c(i) · 5 marks

Solution

Definition. A counting process {N(t),t≥0}\{N(t),t\ge0\} (N(t)N(t) = number of events in (0,t](0,t]) is a Poisson process with rate λ>0\lambda>0 if

  1. N(0)=0N(0)=0;
  2. it has independent increments — counts in disjoint intervals are independent;
  3. it has stationary increments, and the number of events in any interval of length tt is Poisson: P{N(s+t)−N(s)=n}=e−λt(λt)nn!,n=0,1,2,…P\{N(s+t)-N(s)=n\}=e^{-\lambda t}\frac{(\lambda t)^n}{n!},\quad n=0,1,2,\dots

Equivalently, in a short interval hh: P(one event)=λh+o(h)P(\text{one event})=\lambda h+o(h) and P(two or more)=o(h)P(\text{two or more})=o(h). The times between events are independent exponential variables with mean 1/λ1/\lambda; EN(t)=VarN(t)=λtE\,N(t)=\operatorname{Var}N(t)=\lambda t.

Applications.

  1. Queues — arrivals of customers at a bank, calls at a telephone exchange, patients at a hospital (the “M” in M/M/1).
  2. Reliability — failures of a repairable system over time; shocks to equipment.
  3. Physics — emission of particles from a radioactive source (counts on a Geiger counter).
  4. Insurance — arrival of claims (the Cramér–Lundberg risk model).
  5. Traffic and networks — vehicles passing a point, packets arriving at a router, hits on a website.
  6. Biology — mutations along a DNA sequence; spatial Poisson processes for plant or star positions.

✓ Answer checked step by step Every point was checked against the standard definition of the Poisson process (counting process with independent, stationary increments and Poisson counts).

↑ Back to the question list

On January 1 (this year), brands A, B and C of a commodity had 40, 40 and 20 percent of the market share. Basing upon a market research, it is compiled that brand A retains 90 percent of its customers, while gaining 5 percent of B’s customers and 10 percent of C’s customers. Brand B retains 85 percent of its customers, while gaining 5 percent of A’s customers and 7 percent of C’s customers. Brand C retains 83 percent of its customers and gains 5 percent of A’s customers and 10 percent of B’s customers. What will be each brand’s share on January 1 (next year) and what will be each brand’s share in the market at equilibrium?

2025 · Paper II · Q3c · 20 marks

Solution

Transition matrix (rows: this year’s brand; columns: next year’s brand). Each row lists where a brand’s customers go: A keeps 90% and loses 5% each to B and C (since B gains 5% of A, and C gains 5% of A); similarly for B and C.

P=|ABCA|0.900.050.05B|0.050.850.10C|0.100.070.83P=\begin{array}{ccccc}&\vert&A&B&C\\\hline A&\vert&0.90&0.05&0.05\\B&\vert&0.05&0.85&0.10\\C&\vert&0.10&0.07&0.83\end{array} (Check: B keeps 85%, gives 5% to A and 10% to C; C keeps 83%, gives 10% to A and 7% to B. Each row sums to 1.)

Shares on January 1 next year. v1=v0Pv_1=v_0P with v0=(0.40,0.40,0.20)v_0=(0.40,0.40,0.20):

  • A: 0.40(0.90)+0.40(0.05)+0.20(0.10)=0.36+0.02+0.02=0.4000.40(0.90)+0.40(0.05)+0.20(0.10)=0.36+0.02+0.02=0.400
  • B: 0.40(0.05)+0.40(0.85)+0.20(0.07)=0.02+0.34+0.014=0.3740.40(0.05)+0.40(0.85)+0.20(0.07)=0.02+0.34+0.014=0.374
  • C: 0.40(0.05)+0.40(0.10)+0.20(0.83)=0.02+0.04+0.166=0.2260.40(0.05)+0.40(0.10)+0.20(0.83)=0.02+0.04+0.166=0.226

So A 40%, B 37.4%, C 22.6%.

Equilibrium. The chain is regular (all entries positive), so the shares tend to the unique π=(a,b,c)\pi=(a,b,c) with π=πP\pi=\pi P, a+b+c=1a+b+c=1: a=0.90a+0.05b+0.10c,a=0.90a+0.05b+0.10c, b=0.05a+0.85b+0.07c.b=0.05a+0.85b+0.07c . That is 0.10a=0.05b+0.10c0.10a=0.05b+0.10c and 0.15b=0.05a+0.07c0.15b=0.05a+0.07c. From the first, b=2a−2cb=2a-2c; substituting in the second, 0.30a−0.30c=0.05a+0.07c0.30a-0.30c=0.05a+0.07c, so 0.25a=0.37c0.25a=0.37c, c=2537ac=\frac{25}{37}a, b=2437ab=\frac{24}{37}a. Then a(1+2437+2537)=1a\left(1+\frac{24}{37}+\frac{25}{37}\right)=1 gives a=3786a=\frac{37}{86}. π=(3786,2486,2586)=(43.0%,27.9%,29.1%).\pi=\Big(\frac{37}{86},\frac{24}{86},\frac{25}{86}\Big)=(43.0\%,\ 27.9\%,\ 29.1\%).

In the long run A holds about 43%, B about 28% and C about 29% of the market.

✓ Checked by computer We checked in Python (exact fractions): next year’s shares (0.40, 0.374, 0.226) and the equilibrium (37/86, 24/86, 25/86) = (43.0%, 27.9%, 29.1%) solving π = πP.

↑ Back to the question list

Define a Transition Probability Matrix (TPM). When is it said to be Regular and Ergodic? Check whether the following TPM is Regular or Ergodic. Hence or otherwise obtain the limn→∞Pn, where P=(0⋅880⋅120⋅150⋅85).

2024 · Paper II · Q3b · 15 marks

Solution

Transition probability matrix. For a Markov chain with states 1,…,k1,\dots,k, the TPM is P=(pij)P=(p_{ij}) with pij=P(Xn+1=j∣Xn=i)p_{ij}=P(X_{n+1}=j\mid X_n=i). Its entries are non-negative and each row sums to 1 (a stochastic matrix).

Regular. PP is regular if some power PmP^m has all entries strictly positive. Then PnP^n converges to a matrix with identical rows π\pi, the unique stationary distribution.

Ergodic. A chain is ergodic if it is possible to go from every state to every state (irreducible), not necessarily in a fixed number of steps; for a finite chain its states are then positive recurrent, and with aperiodicity the limit exists. Every regular chain is ergodic; an ergodic chain need not be regular (for example, a periodic chain — see Q34).

The given matrix. P=(0.880.120.150.85)P=\begin{pmatrix}0.88&0.12\\0.15&0.85\end{pmatrix} already has all entries positive (m=1m=1), so it is regular, and hence ergodic.

Limit. Solve π=πP\pi=\pi P, π1+π2=1\pi_1+\pi_2=1: π1=0.88π1+0.15π2\pi_1=0.88\pi_1+0.15\pi_2 ⇒0.12π1=0.15π2\Rightarrow\ 0.12\pi_1=0.15\pi_2 ⇒π1:π2=15:12=5:4.\Rightarrow\ \pi_1:\pi_2=15:12=5:4 . So π=(59,49)\pi=\left(\frac59,\frac49\right) and limn→∞Pn=(5/94/95/94/9)=(0.5560.4440.5560.444).\lim_{n\to\infty}P^n=\begin{pmatrix}5/9&4/9\\5/9&4/9\end{pmatrix}=\begin{pmatrix}0.556&0.444\\0.556&0.444\end{pmatrix}. (Using the two-state formula of Q9 with a=0.12a=0.12, b=0.15b=0.15: limit rows (ba+b,aa+b)=(0.150.27,0.120.27)\left(\frac b{a+b},\frac a{a+b}\right)=\left(\frac{0.15}{0.27},\frac{0.12}{0.27}\right); the convergence is at rate (1−a−b)n=0.73n(1-a-b)^n=0.73^n.)

✓ Checked by computer We checked in Python: P has all entries positive, and Pⁿ for large n has both rows equal to (5/9, 4/9) = (0.5556, 0.4444).

↑ Back to the question list

Let Xt be the state of a flea at time t

[Figure: transition diagram with three states drawn as boxes 1 (bottom left), 2 (top) and 3 (bottom right); arrows: 1 → 1 (self-loop) 0.6, 1 → 2 0.2, 1 → 3 0.2, 2 → 1 0.4, 2 → 3 0.6, 3 → 2 0.8, 3 → 3 (self-loop) 0.2]

Find the transition Matrix P. Also obtain Pr[X2=3∣X0=1].

2023 · Paper II · Q1e · 10 marks

Solution

Transition matrix. Reading the arrows (rows = from, columns = to; each row sums to 1): P=|1231|0.60.20.22|0.400.63|00.80.2P=\begin{array}{ccccc}&\vert&1&2&3\\\hline1&\vert&0.6&0.2&0.2\\2&\vert&0.4&0&0.6\\3&\vert&0&0.8&0.2\end{array}

P[X2=3∣X0=1]=p13(2)P[X_2=3\mid X_0=1]=p^{(2)}_{13}: sum over the intermediate state kk of p1kpk3p_{1k}p_{k3}: p13(2)=p11p13+p12p23+p13p33=0.6(0.2)+0.2(0.6)+0.2(0.2)=0.12+0.12+0.04=0.28.p^{(2)}_{13}=p_{11}p_{13}+p_{12}p_{23}+p_{13}p_{33}=0.6(0.2)+0.2(0.6)+0.2(0.2)=0.12+0.12+0.04=\boxed{0.28}.

✓ Checked by computer We checked in Python (exact fractions): p₁₃⁽²⁾ = 7/25 = 0.28.

↑ Back to the question list

If N(t) is a Poisson process and s<t, find P(N(s)=k∣N(t)=n) and comment.

2022 · Paper II · Q1c · 10 marks

Solution

Working. For 0≤k≤n0\le k\le n, the event {N(s)=k,N(t)=n}\{N(s)=k,N(t)=n\} is the same as {N(s)=k,N(t)−N(s)=n−k}\{N(s)=k,\ N(t)-N(s)=n-k\}. By independent and stationary increments, P{N(s)=k∣N(t)=n}=P{N(s)=k}P{N(t)−N(s)=n−k}P{N(t)=n}P\{N(s)=k\mid N(t)=n\}=\frac{P\{N(s)=k\}\,P\{N(t)-N(s)=n-k\}}{P\{N(t)=n\}} =e−λs(λs)kk!⋅e−λ(t−s)(λ(t−s))n−k(n−k)!e−λt(λt)nn!=\frac{e^{-\lambda s}\frac{(\lambda s)^k}{k!}\cdot e^{-\lambda(t-s)}\frac{(\lambda(t-s))^{n-k}}{(n-k)!}}{e^{-\lambda t}\frac{(\lambda t)^n}{n!}} =(nk)(st)k(1−st)n−k,=\binom nk\left(\frac st\right)^k\left(1-\frac st\right)^{n-k}, k=0,1,…,n.k=0,1,\dots,n .

So, given N(t)=nN(t)=n, N(s)∼Binomial(n,st)N(s)\sim\text{Binomial}\left(n,\frac st\right).

Comment.

  • The result does not depend on λ\lambda: once we know nn events occurred in (0,t](0,t], the rate tells us nothing more.
  • It says that the nn event times behave like nn independent points uniformly distributed on (0,t](0,t]: each falls in (0,s](0,s] with probability s/ts/t, independently. (Indeed, given N(t)=nN(t)=n, the arrival times are distributed as the order statistics of nn uniform variables on (0,t)(0,t).)
  • E[N(s)∣N(t)=n]=ns/tE[N(s)\mid N(t)=n]=ns/t: events are spread evenly, on average, over the interval.

✓ Derivation checked step by step Every step was checked: independence of N(s) and N(t) − N(s), the Poisson probabilities, and the cancellation giving the Binomial(n, s/t) law.

↑ Back to the question list

Consider the Markov Chain with transition probability matrix: 01200101120122010 Show that the states are periodic and persistent non-null.

2021 · Paper II · Q1d · 10 marks

Solution

P=(01012012010),P=\begin{pmatrix}0&1&0\\\tfrac12&0&\tfrac12\\0&1&0\end{pmatrix}, P2=(1201201012012),P^2=\begin{pmatrix}\tfrac12&0&\tfrac12\\0&1&0\\\tfrac12&0&\tfrac12\end{pmatrix}, P3=P.P^3=P .

Irreducible. 0→1→20\to1\to2 and 2→1→02\to1\to0, so all states communicate.

Periodic. From 0 or 2 the chain must go to 1, and from 1 it must go to 0 or 2. So the chain alternates between {1}\{1\} and {0,2}\{0,2\}, and a return to any state is possible only in an even number of steps. Since P2n=P2P^{2n}=P^2 and P2n+1=PP^{2n+1}=P:

  • p00(n)>0p^{(n)}_{00}>0 only for even nn (and p00(2)=12>0p^{(2)}_{00}=\tfrac12>0), so d(0)=gcd{2,4,6,…}=2d(0)=\gcd\{2,4,6,\dots\}=2;
  • likewise d(1)=d(2)=2d(1)=d(2)=2.

All states are periodic with period 2.

Persistent non-null.

  • Persistent: for state 1, f11(2)=1f^{(2)}_{11}=1 (from 1 the chain goes to 0 or 2 and returns to 1 next step for certain), so f11=1f_{11}=1. For state 0: f00(2)=12f^{(2)}_{00}=\frac12, f00(4)=12⋅12f^{(4)}_{00}=\frac12\cdot\frac12, …, f00(2n)=(12)nf^{(2n)}_{00}=\left(\frac12\right)^n, so f00=∑(12)n=1f_{00}=\sum\left(\frac12\right)^n=1; similarly f22=1f_{22}=1. (Also ∑np00(n)=∑12=∞\sum_np^{(n)}_{00}=\sum\frac12=\infty.)
  • Non-null: mean recurrence times μ11=2,\mu_{11}=2, μ00=∑n2n(12)n=4,\mu_{00}=\sum_n2n\left(\tfrac12\right)^n=4, μ22=4,\mu_{22}=4, all finite.

Check with the stationary distribution: π=πP\pi=\pi P gives π=(14,12,14)\pi=\left(\frac14,\frac12,\frac14\right), and μii=1/πi=4,2,4\mu_{ii}=1/\pi_i=4,2,4 ✓. (In general a finite irreducible chain has all states persistent non-null.)

✓ Proof checked step by step Every step was checked: irreducibility, p_ii^(n) > 0 only for even n (period 2), and the stationary distribution (1/4, 1/2, 1/4) giving finite mean recurrence times 4, 2, 4.

↑ Back to the question list

Discuss Markov chain and transition probability matrix with an example. For the following transition probability matrix, determine the market share of brands A and B from period 0 to 1, when their initial market share breakdown is 50%:

From \ To A B
A 0.9 0.1
B 0.5 0.5

Solution

Markov chain. A sequence of random variables X0,X1,X2,…X_0,X_1,X_2,\dots (the states of a system at successive times) is a Markov chain if the future depends on the past only through the present: P(Xn+1=j∣Xn=i,Xn−1,…,X0)=P(Xn+1=j∣Xn=i)=pij.P(X_{n+1}=j\mid X_n=i,X_{n-1},\dots,X_0)=P(X_{n+1}=j\mid X_n=i)=p_{ij}. Transition probability matrix. The matrix P=(pij)P=(p_{ij}) of one-step transition probabilities; pij≥0p_{ij}\ge0 and each row sums to 1. If vnv_n is the row vector of state probabilities at time nn, then vn+1=vnPv_{n+1}=v_nP and vn=v0Pnv_n=v_0P^n.

Example. Weather each day is Dry (D) or Wet (W): P=(0.80.20.40.6)P=\begin{pmatrix}0.8&0.2\\0.4&0.6\end{pmatrix} means a dry day is followed by a dry day with probability 0.8, a wet day by a wet day with probability 0.6.

Market shares. With v0=(0.5,0.5)v_0=(0.5,0.5) for brands (A,B)(A,B): v1=v0P=(0.5,0.5)(0.90.10.50.5)=(0.45+0.25,0.05+0.25)=(0.70,0.30).v_1=v_0P=(0.5,0.5)\begin{pmatrix}0.9&0.1\\0.5&0.5\end{pmatrix}=(0.45+0.25,\ 0.05+0.25)=(0.70,\ 0.30). After one period, A has 70% and B has 30% of the market. A keeps 90% of its own customers and wins 50% of B’s.

✓ Checked by computer We checked in Python: (0.5, 0.5)P = (0.7, 0.3).

2020 · Paper II · Q1d · 10 marks

↑ Back to the question list

Show that in an irreducible Markov chain, all the states are of the same type. Define the transition probability of a Markov chain. Find the higher transition matrix Pn of a Markov chain with t.p.m. P=[1−aab1−b];0<a,b<1 Hence, obtain limn→∞Pn.

2019 · Paper II · Q2c · 20 marks

Solution

All states of an irreducible chain are of the same type. Let ii and jj communicate: pij(r)=α>0p^{(r)}_{ij}=\alpha>0 and pji(s)=β>0p^{(s)}_{ji}=\beta>0 for some r,sr,s. Going i→ji\to j, then nn steps from jj to jj, then j→ij\to i: pii(r+n+s)≥αpjj(n)β,p^{(r+n+s)}_{ii}\ge\alpha\,p^{(n)}_{jj}\,\beta, pjj(s+n+r)≥βpii(n)α.p^{(s+n+r)}_{jj}\ge\beta\,p^{(n)}_{ii}\,\alpha .

  • Recurrence: ii is recurrent iff ∑npii(n)=∞\sum_np^{(n)}_{ii}=\infty. The inequalities show ∑pii(n)\sum p^{(n)}_{ii} and ∑pjj(n)\sum p^{(n)}_{jj} converge or diverge together, so i,ji,j are both recurrent or both transient.
  • Null/non-null: pii(n)→0p^{(n)}_{ii}\to0 (null) iff pjj(n)→0p^{(n)}_{jj}\to0, by the same inequalities.
  • Period: pii(r+s)≥αβ>0p^{(r+s)}_{ii}\ge\alpha\beta>0, so d(i)∣r+sd(i)\mid r+s; if pjj(n)>0p^{(n)}_{jj}>0 then pii(r+n+s)>0p^{(r+n+s)}_{ii}>0, so d(i)∣r+n+sd(i)\mid r+n+s, hence d(i)∣nd(i)\mid n. Thus d(i)∣d(j)d(i)\mid d(j), and by symmetry d(i)=d(j)d(i)=d(j).

In an irreducible chain every pair of states communicates, so all states are of the same type (see Q27 for details).

Transition probability. pij=P(Xn+1=j∣Xn=i)p_{ij}=P(X_{n+1}=j\mid X_n=i), the probability of moving from ii to jj in one step (independent of nn for a homogeneous chain); pij(n)=P(Xm+n=j∣Xm=i)p^{(n)}_{ij}=P(X_{m+n}=j\mid X_m=i) is the nn-step transition probability, the (i,j)(i,j) entry of PnP^n.

PnP^n for P=(1−aab1−b)P=\begin{pmatrix}1-a&a\\b&1-b\end{pmatrix}. The eigenvalues are the roots of det(P−λI)=0\det(P-\lambda I)=0: (1−a−λ)(1−b−λ)−ab=0(1-a-\lambda)(1-b-\lambda)-ab=0 ⇒λ1=1,λ2=1−a−b.\Rightarrow\ \lambda_1=1,\quad\lambda_2=1-a-b . Write P=λ1A+λ2BP=\lambda_1A+\lambda_2B with the projections A=1a+b(baba),A=\frac1{a+b}\begin{pmatrix}b&a\\b&a\end{pmatrix}, B=1a+b(a−a−bb).B=\frac1{a+b}\begin{pmatrix}a&-a\\-b&b\end{pmatrix}. (Check: A+B=IA+B=I, A+(1−a−b)B=PA+(1-a-b)B=P, A2=AA^2=A, B2=BB^2=B, AB=BA=0AB=BA=0.) Hence Pn=A+(1−a−b)nBP^n=A+(1-a-b)^nB: Pn=1a+b(baba)P^n=\frac1{a+b}\begin{pmatrix}b&a\\b&a\end{pmatrix} +(1−a−b)na+b(a−a−bb).\qquad+\frac{(1-a-b)^n}{a+b}\begin{pmatrix}a&-a\\-b&b\end{pmatrix}.

Limit. Since 0<a,b<10<a,b<1, |1−a−b|<1|1-a-b|<1, so (1−a−b)n→0(1-a-b)^n\to0 and limn→∞Pn=(ba+baa+bba+baa+b).\lim_{n\to\infty}P^n=\begin{pmatrix}\dfrac b{a+b}&\dfrac a{a+b}\\[2mm]\dfrac b{a+b}&\dfrac a{a+b}\end{pmatrix}. Both rows are the stationary distribution π=(ba+b,aa+b)\pi=\left(\frac b{a+b},\frac a{a+b}\right); the initial state is forgotten.

✓ Derivation checked step by step We checked in Python (sympy) that the formula for Pⁿ agrees with P, P² and P³ for symbolic a, b; the class-property argument was checked step by step.

↑ Back to the question list

Show that the difference of two independent Poisson processes is not a Poisson process.

2019 · Paper II · Q3a · 15 marks

Solution

Let N1(t)N_1(t) and N2(t)N_2(t) be independent Poisson processes with rates λ1,λ2>0\lambda_1,\lambda_2>0, and X(t)=N1(t)−N2(t)X(t)=N_1(t)-N_2(t).

1. It is not a counting process. A Poisson process counts events, so it takes only values 0,1,2,…0,1,2,\dots and never decreases. But P{X(t)<0}≥P{N1(t)=0,N2(t)=1}=e−λ1t⋅λ2te−λ2t>0,P\{X(t)<0\}\ge P\{N_1(t)=0,N_2(t)=1\}=e^{-\lambda_1t}\cdot\lambda_2te^{-\lambda_2t}>0, so X(t)X(t) is negative with positive probability, and its paths jump down whenever N2N_2 has an event.

2. Its distribution is not Poisson. By independence, EX(t)=(λ1−λ2)t,E\,X(t)=(\lambda_1-\lambda_2)t, VarX(t)=(λ1+λ2)t.\operatorname{Var}X(t)=(\lambda_1+\lambda_2)t . For a Poisson variable the mean equals the variance; here they differ (λ2>0\lambda_2>0). Also the probability generating function is EsX(t)=eλ1t(s−1)eλ2t(s−1−1),E\,s^{X(t)}=e^{\lambda_1t(s-1)}\,e^{\lambda_2t(s^{-1}-1)}, which contains negative powers of ss and is not of the Poisson form eμt(s−1)e^{\mu t(s-1)}.

Hence X(t)X(t) is not a Poisson process. (It does have independent, stationary increments; its distribution is the Skellam distribution.) By contrast, the sum N1+N2N_1+N_2 is a Poisson process with rate λ1+λ2\lambda_1+\lambda_2.

✓ Proof checked step by step Every step was checked: the difference takes negative values, and its mean λ₁ − λ₂ differs from its variance λ₁ + λ₂, which a Poisson variable cannot have.

↑ Back to the question list

Let {Xn,n≥0} be a Markov chain having a sample space S={1,2,3,4} and transition probability matrix P=[1323001000120120001212] Show that states 3 and 4 are transient states.

2018 · Paper II · Q1b · 10 marks

Solution

P=|12341|1323002|10003|1201204|001212P=\begin{array}{cccccc}&\vert&1&2&3&4\\\hline1&\vert&\tfrac13&\tfrac23&0&0\\2&\vert&1&0&0&0\\3&\vert&\tfrac12&0&\tfrac12&0\\4&\vert&0&0&\tfrac12&\tfrac12\end{array}

Structure. From 1 and 2 the chain moves only among {1,2}\{1,2\}: this is a closed set. From 3 the chain either stays at 3 or goes to 1 (and then can never come back). From 4 it stays at 4 or goes to 3 (and can never come back to 4, since no state leads to 4).

State 3. The only way to be at 3 at time nn starting from 3 is to stay there every step: p33(n)=(12)n.p^{(n)}_{33}=\left(\tfrac12\right)^n . The first-return probability is f33=f33(1)=12f_{33}=f^{(1)}_{33}=\frac12 (once the chain leaves 3 it is in the closed set {1,2}\{1,2\}). Since f33=12<1f_{33}=\frac12<1, state 3 is transient. Equivalently, ∑n=0∞p33(n)=∑n=0∞(12)n=2<∞.\sum_{n=0}^\infty p^{(n)}_{33}=\sum_{n=0}^\infty\left(\tfrac12\right)^n=2<\infty .

State 4. Similarly p44(n)=(12)np^{(n)}_{44}=\left(\frac12\right)^n and f44=12<1f_{44}=\frac12<1, ∑p44(n)=2<∞\sum p^{(n)}_{44}=2<\infty; so state 4 is transient.

(States 1 and 2 form a finite closed irreducible class, so they are persistent non-null; the chain eventually leaves {3,4}\{3,4\} for ever and settles in {1,2}\{1,2\}.)

✓ Proof checked step by step Every step was checked: f₃₃ = f₄₄ = 1/2 < 1, and Σ p₃₃⁽ⁿ⁾ = Σ p₄₄⁽ⁿ⁾ = 1 + Σ(1/2)ⁿ = 2 < ∞.

↑ Back to the question list

Stating the underlying assumptions, find the expression of the probability of happening n events in the time interval (0,t) in Poisson process. Hence obtain the distribution of inter-arrival times.

2018 · Paper II · Q3a · 15 marks

Solution

Assumptions (postulates). N(t)N(t) = number of events in (0,t](0,t], N(0)=0N(0)=0, and

  1. Independence: the numbers of events in non-overlapping intervals are independent.
  2. Homogeneity: the probability of nn events in an interval depends only on its length.
  3. Orderliness / regularity: in a small interval (t,t+h](t,t+h], P(1 event)=λh+o(h),P(\text{1 event})=\lambda h+o(h), P(≥2 events)=o(h),P(\ge2\text{ events})=o(h), so P(0 events)=1−λh+o(h)P(\text{0 events})=1-\lambda h+o(h).

Equations. Let Pn(t)=P{N(t)=n}P_n(t)=P\{N(t)=n\}. For N(t+h)=nN(t+h)=n, either there were nn events by tt and none in (t,t+h](t,t+h], or n−1n-1 and one, or fewer and two or more. By independence, Pn(t+h)=Pn(t)(1−λh)+Pn−1(t)λh+o(h),P_n(t+h)=P_n(t)(1-\lambda h)+P_{n-1}(t)\lambda h+o(h), n≥1,n\ge1, P0(t+h)=P0(t)(1−λh)+o(h).P_0(t+h)=P_0(t)(1-\lambda h)+o(h). Subtract Pn(t)P_n(t), divide by hh and let h→0h\to0: P0′(t)=−λP0(t),P_0'(t)=-\lambda P_0(t), Pn′(t)=−λPn(t)+λPn−1(t),n≥1,P_n'(t)=-\lambda P_n(t)+\lambda P_{n-1}(t),\quad n\ge1, with P0(0)=1P_0(0)=1 and Pn(0)=0P_n(0)=0 for n≥1n\ge1.

Solution.

  • P0(t)=e−λtP_0(t)=e^{-\lambda t}.
  • Put Qn(t)=eλtPn(t)Q_n(t)=e^{\lambda t}P_n(t); then Qn′(t)=λQn−1(t)Q_n'(t)=\lambda Q_{n-1}(t), Qn(0)=0Q_n(0)=0, Q0=1Q_0=1. So Q1=λtQ_1=\lambda t, Q2=(λt)22!Q_2=\frac{(\lambda t)^2}{2!}, and by induction Qn=(λt)nn!Q_n=\frac{(\lambda t)^n}{n!}.

P{N(t)=n}=e−λt(λt)nn!,n=0,1,2,…\boxed{P\{N(t)=n\}=e^{-\lambda t}\frac{(\lambda t)^n}{n!},\quad n=0,1,2,\dots} The number of events in (0,t)(0,t) is Poisson with mean λt\lambda t.

Inter-arrival times. Let T1T_1 be the time of the first event. T1>tT_1>t exactly when there is no event in (0,t](0,t]: P(T1>t)=P0(t)=e−λtP(T_1>t)=P_0(t)=e^{-\lambda t} ⇒fT1(t)=λe−λt,t>0.\Rightarrow\ f_{T_1}(t)=\lambda e^{-\lambda t},\quad t>0 . Given the kkth event occurs at time ss, the next gap Tk+1T_{k+1} exceeds tt iff there is no event in (s,s+t](s,s+t]; by independence and homogeneity this has probability e−λte^{-\lambda t} whatever happened before ss. Hence the inter-arrival times T1,T2,…T_1,T_2,\dots are independent, each exponential with mean 1/λ1/\lambda: f(t)=λe−λt,t>0.f(t)=\lambda e^{-\lambda t},\quad t>0 . (The waiting time to the nnth event, T1+…+TnT_1+\dots+T_n, is then Gamma(n,λ)(n,\lambda).)

✓ Derivation checked step by step Every step was checked: the postulates, the differential-difference equations P′ₙ(t) = −λPₙ(t) + λPₙ₋₁(t), their solution by induction, and P(T > t) = e^(−λt) with independence of successive gaps.

↑ Back to the question list

Define a transition probability matrix of a Markov chain and state some of its properties. For a Markov chain with three states 0, 1 and 2, the transition probability matrix is given by.

State 0 1 2
0 0.4 0.3 0.3
1 0.4 0.4 0.2
2 0.2 0.4 0.4

Obtain p00(2) and p12(3).

2017 · Paper II · Q1d · 10 marks

Solution

TPM and its properties. For a Markov chain, P=(pij)P=(p_{ij}) with pij=P(Xn+1=j∣Xn=i)p_{ij}=P(X_{n+1}=j\mid X_n=i). Properties:

  1. pij≥0p_{ij}\ge0 and ∑jpij=1\sum_jp_{ij}=1 for every row ii (a stochastic matrix).
  2. nn-step probabilities are the entries of PnP^n (Chapman–Kolmogorov: Pm+n=PmPnP^{m+n}=P^mP^n).
  3. State probabilities evolve as vn=v0Pnv_{n}=v_0P^n.
  4. PP always has eigenvalue 1; a stationary distribution satisfies π=πP\pi=\pi P.
  5. If some PmP^m is all positive (regular), PnP^n tends to a matrix with equal rows π\pi.

Calculations with P=|0120|0.40.30.31|0.40.40.22|0.20.40.4P=\begin{array}{ccccc}&\vert&0&1&2\\\hline0&\vert&0.4&0.3&0.3\\1&\vert&0.4&0.4&0.2\\2&\vert&0.2&0.4&0.4\end{array}

p00(2)p^{(2)}_{00} = row 0 × column 0: p00(2)=0.4(0.4)+0.3(0.4)+0.3(0.2)=0.16+0.12+0.06=0.34.p^{(2)}_{00}=0.4(0.4)+0.3(0.4)+0.3(0.2)=0.16+0.12+0.06=\boxed{0.34}.

p12(3)p^{(3)}_{12}: first row 1 of P2P^2:

  • p10(2)=0.4(0.4)+0.4(0.4)+0.2(0.2)=0.36p^{(2)}_{10}=0.4(0.4)+0.4(0.4)+0.2(0.2)=0.36
  • p11(2)=0.4(0.3)+0.4(0.4)+0.2(0.4)=0.36p^{(2)}_{11}=0.4(0.3)+0.4(0.4)+0.2(0.4)=0.36
  • p12(2)=0.4(0.3)+0.4(0.2)+0.2(0.4)=0.28p^{(2)}_{12}=0.4(0.3)+0.4(0.2)+0.2(0.4)=0.28

Then with column 2 of PP: p12(3)=0.36(0.3)+0.36(0.2)+0.28(0.4)=0.108+0.072+0.112=0.292.p^{(3)}_{12}=0.36(0.3)+0.36(0.2)+0.28(0.4)=0.108+0.072+0.112=\boxed{0.292}.

✓ Checked by computer We checked in Python (exact fractions): p₀₀⁽²⁾ = 17/50 = 0.34 and p₁₂⁽³⁾ = 73/250 = 0.292.

↑ Back to the question list

Define n-step transition probability in a Markov chain. Prove the following Chapman-Kolmogorov equation: pij(n+1)=∑kpik(n)pkj=∑kpikpkj(n)

2017 · Paper II · Q4b · 15 marks

Solution

nn-step transition probability. pij(n)=P(Xm+n=j∣Xm=i),p^{(n)}_{ij}=P(X_{m+n}=j\mid X_m=i), the probability of going from ii to jj in exactly nn steps (for a homogeneous chain it does not depend on mm). pij(1)=pijp^{(1)}_{ij}=p_{ij}, pij(0)=δijp^{(0)}_{ij}=\delta_{ij}; pij(n)p^{(n)}_{ij} is the (i,j)(i,j) entry of PnP^n.

Chapman–Kolmogorov equations.

First form: condition on the state after nn steps. pij(n+1)=P(Xn+1=j∣X0=i)=∑kP(Xn+1=j,Xn=k∣X0=i)p^{(n+1)}_{ij}=P(X_{n+1}=j\mid X_0=i)=\sum_kP(X_{n+1}=j,X_n=k\mid X_0=i) =∑kP(Xn=k∣X0=i)P(Xn+1=j∣Xn=k,X0=i).=\sum_kP(X_n=k\mid X_0=i)\,P(X_{n+1}=j\mid X_n=k,X_0=i). By the Markov property, P(Xn+1=j∣Xn=k,X0=i)=P(Xn+1=j∣Xn=k)=pkjP(X_{n+1}=j\mid X_n=k,X_0=i)=P(X_{n+1}=j\mid X_n=k)=p_{kj}. Hence pij(n+1)=∑kpik(n)pkj.p^{(n+1)}_{ij}=\sum_kp^{(n)}_{ik}\,p_{kj}.

Second form: condition on the state after the first step. pij(n+1)=∑kP(X1=k∣X0=i)P(Xn+1=j∣X1=k,X0=i)=∑kpikpkj(n),p^{(n+1)}_{ij}=\sum_kP(X_1=k\mid X_0=i)\,P(X_{n+1}=j\mid X_1=k,X_0=i)=\sum_kp_{ik}\,p^{(n)}_{kj}, using the Markov property and homogeneity (P(Xn+1=j∣X1=k)=pkj(n)P(X_{n+1}=j\mid X_1=k)=p^{(n)}_{kj}).

Together: pij(n+1)=∑kpik(n)pkj=∑kpikpkj(n).\boxed{p^{(n+1)}_{ij}=\sum_kp^{(n)}_{ik}p_{kj}=\sum_kp_{ik}p^{(n)}_{kj}}. In matrix form, P(n+1)=P(n)P=PP(n)P^{(n+1)}=P^{(n)}P=PP^{(n)}; by induction P(n)=PnP^{(n)}=P^n. More generally pij(m+n)=∑kpik(m)pkj(n)p^{(m+n)}_{ij}=\sum_kp^{(m)}_{ik}p^{(n)}_{kj}, i.e. Pm+n=PmPnP^{m+n}=P^mP^n. ∎

✓ Proof checked step by step Every step was checked: conditioning on the state after the first (or the nth) step, and the Markov property used to drop the earlier history.

↑ Back to the question list

Given the following Transition Probability Matrix of a Markov chain having three states 1, 2 and 3 with initial distribution π0={0.7,0.2,0.1}, find the value of P[X3=2,X2=3,X1=3,X0=2]: [0.10.50.40.60.20.20.30.40.3]

2016 · Paper II · Q1c · 10 marks

Solution

Rule. For a Markov chain, the probability of a path is the initial probability times the product of the one-step transition probabilities: P[X0=i0,X1=i1,…,Xn=in]=π0(i0)pi0i1pi1i2⋯pin−1in.P[X_0=i_0,X_1=i_1,\dots,X_n=i_n]=\pi_0(i_0)\,p_{i_0i_1}p_{i_1i_2}\cdots p_{i_{n-1}i_n}.

Here the path is 2→3→3→22\to3\to3\to2: P[X3=2,X2=3,X1=3,X0=2]=π0(2)p23p33p32P[X_3=2,X_2=3,X_1=3,X_0=2]=\pi_0(2)\,p_{23}\,p_{33}\,p_{32} =0.2×0.2×0.3×0.4=0.0048.=0.2\times0.2\times0.3\times0.4=\boxed{0.0048}. (From the matrix: p23=0.2p_{23}=0.2 (row 2, column 3), p33=0.3p_{33}=0.3, p32=0.4p_{32}=0.4; π0(2)=0.2\pi_0(2)=0.2.)

✓ Checked by computer We checked in Python: 0.2 × 0.2 × 0.3 × 0.4 = 0.0048.

↑ Back to the question list

Let {Xn,n=0,1,2,…} be a Markov chain on the state space {a,b,c} with initial probability values qa=25, qb=15, qc=25 and one-step transition probability matrix ((pij)) given by (013231434023013) Compute (i) Pr[X1=b,X2=b,X3=b,X4=a,X5=C∣X0=a]. (ii) Pr[X1=b,X2=b,X3=a].

2014 · Paper II · Q1b · 10 marks

Solution

P=|abca|01323b|14340c|23013,P=\begin{array}{ccccc}&\vert&a&b&c\\\hline a&\vert&0&\tfrac13&\tfrac23\\b&\vert&\tfrac14&\tfrac34&0\\c&\vert&\tfrac23&0&\tfrac13\end{array}, q=(25,15,25).q=\left(\tfrac25,\tfrac15,\tfrac25\right). (We read “X5=CX_5=C” as X5=cX_5=c.)

(i) Given X0=aX_0=a, the path a→b→b→b→a→ca\to b\to b\to b\to a\to c: pabpbbpbbpbapac=13⋅34⋅34⋅14⋅23=18576=132.p_{ab}\,p_{bb}\,p_{bb}\,p_{ba}\,p_{ac}=\frac13\cdot\frac34\cdot\frac34\cdot\frac14\cdot\frac23=\frac{18}{576}=\boxed{\frac1{32}}.

(ii) X0X_0 is not given, so we sum over it: P[X1=b]=∑iqipib=25⋅13+15⋅34+25⋅0=215+320=1760.P[X_1=b]=\sum_iq_ip_{ib}=\frac25\cdot\frac13+\frac15\cdot\frac34+\frac25\cdot0=\frac2{15}+\frac3{20}=\frac{17}{60}. P[X1=b,X2=b,X3=a]=1760⋅pbb⋅pba=1760⋅34⋅14=17320≈0.053.P[X_1=b,X_2=b,X_3=a]=\frac{17}{60}\cdot p_{bb}\cdot p_{ba}=\frac{17}{60}\cdot\frac34\cdot\frac14=\boxed{\frac{17}{320}}\approx0.053 .

✓ Checked by computer We checked in Python (exact fractions): (i) 1/32 and (ii) (17/60)(3/4)(1/4) = 17/320.

↑ Back to the question list

Consider a Markov chain with three states 0, 1 and 2. The state 0 is an absorbing state, while from any of the other two states the chain moves into any of the three states with equal probability (i.e. p(a∣b)=13 for a=0,1,2 and b=1,2). Starting from either state 1 or 2, let N= the number of steps or transitions needed before absorption into state 0 takes place. Derive the probability distribution of N. What is the expected number of steps or transitions before absorption into state 0?

2012 · Paper II · Q4b · 30 marks

Solution

Transition matrix. P=|0120|1001|1313132|131313P=\begin{array}{ccccc}&\vert&0&1&2\\\hline0&\vert&1&0&0\\1&\vert&\tfrac13&\tfrac13&\tfrac13\\2&\vert&\tfrac13&\tfrac13&\tfrac13\end{array}

Distribution of NN. Whether the chain is in state 1 or state 2, at every step it is absorbed into 0 with probability 13\frac13 and stays in {1,2}\{1,2\} with probability 23\frac23, independently of the past. So the number of steps until absorption is the number of trials up to the first “success” with success probability 13\frac13: P(N=n)=(23)n−113,n=1,2,3,…\boxed{P(N=n)=\left(\frac23\right)^{n-1}\frac13,\quad n=1,2,3,\dots} a geometric distribution, the same whether we start from 1 or 2. Check: ∑n(23)n−113=1/31−2/3=1\sum_n\left(\frac23\right)^{n-1}\frac13=\frac{1/3}{1-2/3}=1.

Expected number of steps. E(N)=∑nn(23)n−113=1/3(1−2/3)2=3.E(N)=\sum_nn\left(\frac23\right)^{n-1}\frac13=\frac{1/3}{(1-2/3)^2}=\boxed{3}.

Check by the fundamental matrix. With Q=(1/31/31/31/3)Q=\begin{pmatrix}1/3&1/3\\1/3&1/3\end{pmatrix} (transitions among the transient states 1, 2): (I−Q)−1=(2/3−1/3−1/32/3)−1=(2112),(I-Q)^{-1}=\begin{pmatrix}2/3&-1/3\\-1/3&2/3\end{pmatrix}^{-1}=\begin{pmatrix}2&1\\1&2\end{pmatrix}, whose row sums, 3 and 3, are the expected numbers of steps to absorption from states 1 and 2 ✓.

(If “before absorption” is meant to exclude the final step into 0, the count is N−1N-1, with P(N−1=k)=(23)k13P(N-1=k)=\left(\frac23\right)^k\frac13, k=0,1,…k=0,1,\dots, and mean 2.)

✓ Checked by computer We checked in Python: P(N = n) = (2/3)^(n−1)(1/3), Σ P(N = n) = 1 and E(N) = 3; the fundamental matrix (I − Q)⁻¹ = [[2, 1], [1, 2]] gives 3 steps from each state.

↑ Back to the question list

For a finite irreducible aperiodic Markov chain with n-step transition probabilities Pij(n), show that limn→∞Pij(n) exists and is independent of the initial state.

2011 · Paper II · Q1a · 12 marks

Solution

Setting. A finite chain with states 1,…,N1,\dots,N (N≥2N\ge2), irreducible and aperiodic. We show that limn→∞pij(n)=πj\lim_{n\to\infty}p^{(n)}_{ij}=\pi_j exists and does not depend on ii.

Step 1: some power of PP is strictly positive. For each ii, the set {n:pii(n)>0}\{n:p^{(n)}_{ii}>0\} is closed under addition (pii(m+n)≥pii(m)pii(n)p^{(m+n)}_{ii}\ge p^{(m)}_{ii}p^{(n)}_{ii}) and has gcd 1 (aperiodic), so by a standard number-theory lemma it contains every n≥nin\ge n_i. Since i→ji\to j, pij(rij)>0p^{(r_{ij})}_{ij}>0 for some rijr_{ij}, and then pij(n)≥pij(rij)pjj(n−rij)>0p^{(n)}_{ij}\ge p^{(r_{ij})}_{ij}p^{(n-r_{ij})}_{jj}>0 for all large nn. The chain is finite, so there is one mm with pij(m)≥δ>0p^{(m)}_{ij}\ge\delta>0 for all i,ji,j. (Clearly δ≤12\delta\le\frac12.)

Step 2: max and min are monotone. Fix jj; let Mn=maxipij(n)M_n=\max_ip^{(n)}_{ij} and mn=minipij(n)m_n=\min_ip^{(n)}_{ij}. Since pij(n+1)=∑kpikpkj(n)p^{(n+1)}_{ij}=\sum_kp_{ik}p^{(n)}_{kj} is a weighted average of the pkj(n)p^{(n)}_{kj} (weights pik≥0p_{ik}\ge0 summing to 1), mn≤pij(n+1)≤Mn⇒mn≤mn+1≤Mn+1≤Mn.m_n\le p^{(n+1)}_{ij}\le M_n\quad\Rightarrow\quad m_n\le m_{n+1}\le M_{n+1}\le M_n . So MnM_n decreases and mnm_n increases; both converge.

Step 3: the gap shrinks geometrically. pij(n+m)=∑kpik(m)pkj(n)p^{(n+m)}_{ij}=\sum_kp^{(m)}_{ik}p^{(n)}_{kj}. Let k0k_0 be a state where pk0j(n)=mnp^{(n)}_{k_0j}=m_n. Every weight pik(m)≥δp^{(m)}_{ik}\ge\delta, so pij(n+m)≤δmn+(1−δ)Mn,p^{(n+m)}_{ij}\le\delta\,m_n+(1-\delta)M_n, and similarly, using a state where the value is MnM_n, pij(n+m)≥δMn+(1−δ)mn.p^{(n+m)}_{ij}\ge\delta\,M_n+(1-\delta)m_n . Hence Mn+m−mn+m≤(1−2δ)(Mn−mn),M_{n+m}-m_{n+m}\le(1-2\delta)(M_n-m_n), and, by Step 2, Mn−mn≤(1−2δ)⌊n/m⌋→0M_n-m_n\le(1-2\delta)^{\lfloor n/m\rfloor}\to0.

Conclusion. MnM_n and mnm_n have the same limit πj\pi_j, and every pij(n)p^{(n)}_{ij} lies between them. So limn→∞pij(n)=πjfor every i,\lim_{n\to\infty}p^{(n)}_{ij}=\pi_j\quad\text{for every }i, independent of the initial state. Moreover πj≥mm≥δ>0\pi_j\ge m_m\ge\delta>0, ∑jπj=1\sum_j\pi_j=1 (finite sum of rows), and letting n→∞n\to\infty in pij(n+1)=∑kpik(n)pkjp^{(n+1)}_{ij}=\sum_kp^{(n)}_{ik}p_{kj} gives π=πP\pi=\pi P: the limit is the unique stationary distribution, with πj=1/μjj\pi_j=1/\mu_{jj}. ∎

✓ Proof checked step by step Every step was checked: regularity of a finite irreducible aperiodic chain (Pᵐ > 0), the monotone max/min sequences, and the contraction factor (1 − 2δ) that forces them to a common limit.

↑ Back to the question list

Explain the concept of recurrence and transience in the case of finite Markov chains.

2011 · Paper II · Q2d · 20 marks

Solution

First-return probability. For a state ii, let fii(n)f^{(n)}_{ii} be the probability that, starting from ii, the chain returns to ii for the first time at step nn, and fii=∑n≥1fii(n)=P(ever return to i∣X0=i).f_{ii}=\sum_{n\ge1}f^{(n)}_{ii}=P(\text{ever return to }i\mid X_0=i).

Recurrent (persistent) state: fii=1f_{ii}=1 — return is certain, and so the chain returns infinitely often. Its mean recurrence time is μii=∑nfii(n)\mu_{ii}=\sum nf^{(n)}_{ii}; the state is positive (non-null) recurrent if μii<∞\mu_{ii}<\infty and null recurrent if μii=∞\mu_{ii}=\infty.

Transient state: fii<1f_{ii}<1 — there is a positive probability 1−fii1-f_{ii} of never returning, so the chain visits ii only finitely often (the number of returns is geometric).

Criterion. ii is recurrent iff ∑npii(n)=∞\sum_np^{(n)}_{ii}=\infty, and transient iff ∑npii(n)<∞\sum_np^{(n)}_{ii}<\infty (the expected number of visits); for transient jj, pij(n)→0p^{(n)}_{ij}\to0 (see Q30).

In a finite Markov chain.

  1. Recurrence and transience are class properties: all states in a communicating class are of the same type.
  2. A class is recurrent if and only if it is closed (cannot be left); a class from which the chain can escape is transient.
  3. Not all states can be transient: there is at least one recurrent class (see Q35).
  4. There are no null-recurrent states: every recurrent state is positive recurrent.
  5. An irreducible finite chain therefore has all states positive recurrent.
  6. Starting anywhere, the chain eventually enters a recurrent (closed) class and stays there; time spent in transient states is finite.

Example. P=(0.50.500.30.700.20.30.5)P=\begin{pmatrix}0.5&0.5&0\\0.3&0.7&0\\0.2&0.3&0.5\end{pmatrix}: {1,2}\{1,2\} is closed, so 1 and 2 are recurrent; from 3 the chain leaks into {1,2}\{1,2\}, f33=0.5<1f_{33}=0.5<1, so 3 is transient.

✓ Answer checked step by step Every point was checked: the definitions via f_ii, the criterion Σ p_ii⁽ⁿ⁾ = ∞, the class property and the finite-chain facts, with the worked example.

↑ Back to the question list

If i is a recurrent state with period t with a given mean recurrence time μii, then show that limn→∞piint=tμii

2010 · Paper II · Q1a · 12 marks

Solution

Notation. fii(n)f^{(n)}_{ii} = probability of first return to ii at step nn; ii is recurrent, so ∑nfii(n)=1\sum_nf^{(n)}_{ii}=1; μii=∑nnfii(n)\mu_{ii}=\sum_nnf^{(n)}_{ii} is the mean recurrence time. The period of ii is t=gcd{n:pii(n)>0}t=\gcd\{n:p^{(n)}_{ii}>0\}, so pii(n)=0p^{(n)}_{ii}=0 and fii(n)=0f^{(n)}_{ii}=0 unless t∣nt\mid n.

Tool: the discrete renewal theorem (Erdős–Feller–Pollard). If g1,g2,…≥0g_1,g_2,\dots\ge0, ∑gk=1\sum g_k=1, gcd{k:gk>0}=1\gcd\{k:g_k>0\}=1, and u0=1u_0=1, un=∑k=1ngkun−ku_n=\sum_{k=1}^ng_ku_{n-k} (n≥1n\ge1), then limn→∞un=1∑kkgk(=0 if the mean is infinite).\lim_{n\to\infty}u_n=\frac1{\sum_kk\,g_k}\qquad(=0\text{ if the mean is infinite}).

Renewal equation for pii(n)p^{(n)}_{ii}. Splitting according to the time kk of the first return: pii(n)=∑k=1nfii(k)pii(n−k),p^{(n)}_{ii}=\sum_{k=1}^nf^{(k)}_{ii}\,p^{(n-k)}_{ii}, n≥1,pii(0)=1.n\ge1,\quad p^{(0)}_{ii}=1 .

Reduce to the aperiodic case. Put un=pii(nt)u_n=p^{(nt)}_{ii} and gk=fii(kt)g_k=f^{(kt)}_{ii}. Since only multiples of tt contribute, un=∑k=1ngkun−k,u_n=\sum_{k=1}^ng_ku_{n-k}, u0=1.u_0=1 . Here ∑gk=∑nfii(n)=1\sum g_k=\sum_nf^{(n)}_{ii}=1 (recurrent), gcd{k:gk>0}=1\gcd\{k:g_k>0\}=1 (because the period of ii is exactly tt), and ∑kkgk=∑kkfii(kt)=1t∑k(kt)fii(kt)=μiit.\sum_kk\,g_k=\sum_kk\,f^{(kt)}_{ii}=\frac1t\sum_k(kt)f^{(kt)}_{ii}=\frac{\mu_{ii}}t .

Conclusion. By the renewal theorem, limn→∞pii(nt)=tμii.\boxed{\lim_{n\to\infty}p^{(nt)}_{ii}=\frac{t}{\mu_{ii}}}.

  • If ii is aperiodic (t=1t=1): pii(n)→1/μiip^{(n)}_{ii}\to1/\mu_{ii}.
  • If ii is null recurrent (μii=∞\mu_{ii}=\infty): the limit is 0.
  • And pii(n)=0p^{(n)}_{ii}=0 for nn not a multiple of tt. ∎

Example. In Q7, state 0 has period 2 and μ00=4\mu_{00}=4; indeed p00(2n)=12=24p^{(2n)}_{00}=\frac12=\frac24 ✓.

✓ Proof checked step by step Every step was checked: the renewal equation for p_ii^(nt), its use of the first-return distribution g_k = f_ii^(kt) (aperiodic, total mass 1, mean μ_ii/t), and the discrete renewal theorem it relies on.

↑ Back to the question list

Suppose there is a product of brands A and B respectively. Let each of these two brands have exactly 50 per cent of the total market in same period and let the market be of a fixed size. The transition matrix is given below:

From \ To A B
A 0·9 0·1
B 0·5 0·5

If the initial market share breakdown is 50% for each brand, then determine their market shares in the steady-state.

2010 · Paper II · Q2d · 20 marks

Solution

Set-up. P=(0.90.10.50.5)P=\begin{pmatrix}0.9&0.1\\0.5&0.5\end{pmatrix} (rows: from A, B), initial shares v0=(0.5,0.5)v_0=(0.5,0.5). All entries are positive, so the chain is regular and the shares converge to the stationary π=(πA,πB)\pi=(\pi_A,\pi_B) whatever the start.

Steady state. π=πP\pi=\pi P, πA+πB=1\pi_A+\pi_B=1: πA=0.9πA+0.5πB\pi_A=0.9\pi_A+0.5\pi_B ⇒0.1πA=0.5πB\Rightarrow\ 0.1\pi_A=0.5\pi_B ⇒πA=5πB.\Rightarrow\ \pi_A=5\pi_B . πA=56≈83.3%,\pi_A=\frac56\approx83.3\%, πB=16≈16.7%.\pi_B=\frac16\approx16.7\%.

Path to the steady state. v1=(0.70,0.30)v_1=(0.70,0.30), v2=(0.78,0.22)v_2=(0.78,0.22), v3=(0.812,0.188)v_3=(0.812,0.188), … The gap to 56\frac56 shrinks by the factor 1−a−b=1−0.1−0.5=0.41-a-b=1-0.1-0.5=0.4 each period.

In the long run brand A holds about 83% and brand B about 17% of the market (the initial 50–50 split does not matter).

✓ Checked by computer We checked in Python: π = πP with P = [[0.9, 0.1], [0.5, 0.5]] gives π = (5/6, 1/6).

↑ Back to the question list

Describe classification of states in a Markov chain. Define n-step transition probability. Prove the following Chapman – Kolmogorov equation for the transition probabilities: pij(n+1)=∑kpikpkj(n)

2009 · Paper II · Q1a · 12 marks

Solution

Classification of states.

  1. Accessible: jj is accessible from ii (i→ji\to j) if pij(n)>0p^{(n)}_{ij}>0 for some n≥0n\ge0.
  2. Communicating: i↔ji\leftrightarrow j if each is accessible from the other. This splits the states into communicating classes. A chain with only one class is irreducible.
  3. Closed set: a set CC with pij=0p_{ij}=0 for i∈Ci\in C, j∉Cj\notin C. An absorbing state is a closed set of one state (pii=1p_{ii}=1).
  4. Recurrent (persistent) and transient: ii is recurrent if return is certain (fii=1f_{ii}=1) and transient if fii<1f_{ii}<1. Recurrent states are positive (non-null) if the mean recurrence time μii<∞\mu_{ii}<\infty and null if μii=∞\mu_{ii}=\infty.
  5. Periodic and aperiodic: the period d(i)=gcd{n:pii(n)>0}d(i)=\gcd\{n:p^{(n)}_{ii}>0\}; periodic if d(i)>1d(i)>1, aperiodic if d(i)=1d(i)=1.
  6. Ergodic state: positive recurrent and aperiodic; for it pii(n)→1/μiip^{(n)}_{ii}\to1/\mu_{ii}.

These properties are shared by all states of a communicating class.

nn-step transition probability. pij(n)=P(Xm+n=j∣Xm=i)p^{(n)}_{ij}=P(X_{m+n}=j\mid X_m=i), the (i,j)(i,j) entry of PnP^n.

Chapman–Kolmogorov. Condition on the state after the first step: pij(n+1)=∑kP(X1=k∣X0=i)P(Xn+1=j∣X1=k,X0=i).p^{(n+1)}_{ij}=\sum_kP(X_1=k\mid X_0=i)\,P(X_{n+1}=j\mid X_1=k,X_0=i). By the Markov property and homogeneity, the second factor is P(Xn+1=j∣X1=k)=pkj(n)P(X_{n+1}=j\mid X_1=k)=p^{(n)}_{kj}. Hence pij(n+1)=∑kpikpkj(n).\boxed{p^{(n+1)}_{ij}=\sum_kp_{ik}\,p^{(n)}_{kj}}. ∎ (Conditioning instead on XnX_n gives ∑kpik(n)pkj\sum_kp^{(n)}_{ik}p_{kj}; in matrix form P(n+1)=PP(n)P^{(n+1)}=PP^{(n)}, so P(n)=PnP^{(n)}=P^n.)

✓ Answer checked step by step Every point was checked: the definitions of accessibility, communication, closed sets, periodicity, recurrence types and ergodicity, and the Chapman–Kolmogorov proof by conditioning.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Define transient and persistent states in a Markov chain. Let {Xn,n>0} be a Markov chain with three states {0,1,2} and with transition matrix [3/41/401/41/21/403/41/4] The initial probability distribution is P{X0=i}=1/3,i=0,1,2 Find (i) P[X2=2,X1=1∣X0=2] and (ii) P[X3=1,X2=2,X1=1,X0=2]

2009 · Paper II · Q2b · 20 marks

Solution

Transient and persistent states. A state ii is persistent (recurrent) if, starting from ii, the chain returns to ii with probability 1 (fii=1f_{ii}=1); equivalently ∑npii(n)=∞\sum_np^{(n)}_{ii}=\infty. It is transient if the return probability fii<1f_{ii}<1 (∑npii(n)<∞\sum_np^{(n)}_{ii}<\infty): the chain visits it only finitely often.

Here P=|0120|341401|1412142|03414P=\begin{array}{ccccc}&\vert&0&1&2\\\hline0&\vert&\tfrac34&\tfrac14&0\\1&\vert&\tfrac14&\tfrac12&\tfrac14\\2&\vert&0&\tfrac34&\tfrac14\end{array} is finite and irreducible (0↔1↔20\leftrightarrow1\leftrightarrow2), so all three states are persistent (non-null) and aperiodic.

(i) P[X2=2,X1=1∣X0=2]=p21p12=34⋅14=316.P[X_2=2,X_1=1\mid X_0=2]=p_{21}\,p_{12}=\frac34\cdot\frac14=\boxed{\frac3{16}}.

(ii) P[X3=1,X2=2,X1=1,X0=2]=P(X0=2)p21p12p21P[X_3=1,X_2=2,X_1=1,X_0=2]=P(X_0=2)\,p_{21}\,p_{12}\,p_{21} =13⋅34⋅14⋅34=364≈0.047.=\frac13\cdot\frac34\cdot\frac14\cdot\frac34=\boxed{\frac3{64}}\approx0.047 .

✓ Checked by computer We checked in Python (exact fractions): (i) p₂₁p₁₂ = 3/16 and (ii) (1/3)(3/4)(1/4)(3/4) = 3/64; the class structure was checked by hand.

↑ Back to the question list

If states i and j of a Markov chain communicate with each other, then show that if state i is recurrent then state j is also recurrent.

2007 · Paper II · Q1f · 12 marks

Solution

Given. i↔ji\leftrightarrow j, so there are r,s≥1r,s\ge1 with pij(r)=α>0p^{(r)}_{ij}=\alpha>0 and pji(s)=β>0p^{(s)}_{ji}=\beta>0; and ii is recurrent, i.e. ∑npii(n)=∞\sum_np^{(n)}_{ii}=\infty.

Key inequality. One way to go from jj back to jj in s+n+rs+n+r steps is: j→ij\to i in ss steps, i→ii\to i in nn steps, i→ji\to j in rr steps. By Chapman–Kolmogorov (all terms non-negative), pjj(s+n+r)≥pji(s)pii(n)pij(r)=αβpii(n).p^{(s+n+r)}_{jj}\ge p^{(s)}_{ji}\,p^{(n)}_{ii}\,p^{(r)}_{ij}=\alpha\beta\,p^{(n)}_{ii}.

Sum over nn. ∑m=1∞pjj(m)≥∑n=1∞pjj(s+n+r)≥αβ∑n=1∞pii(n)=∞.\sum_{m=1}^\infty p^{(m)}_{jj}\ \ge\ \sum_{n=1}^\infty p^{(s+n+r)}_{jj}\ \ge\ \alpha\beta\sum_{n=1}^\infty p^{(n)}_{ii}=\infty . So ∑mpjj(m)=∞\sum_mp^{(m)}_{jj}=\infty, and jj is recurrent. ∎

(By symmetry, if ii is transient so is jj: otherwise jj recurrent would force ii recurrent. Recurrence is a class property.)

✓ Proof checked step by step Every step was checked: p_jj^(s+n+r) ≥ p_ji^(s) p_ii^(n) p_ij^(r) and the divergence criterion for recurrence.

↑ Back to the question list

Show that, for a Markov chain, if state j is persistent non-null, then as n→∞ pjj(nt)→tμjj when state j is periodic with period t; & pjj(n)→tμjj when state j is aperiodic.

2007 · Paper II · Q3b · 25 marks

Solution

(This is the same question as Q20 (2010, 1a) above. The worked solution is repeated here so that each question is complete.)

Notation. fii(n)f^{(n)}_{ii} = probability of first return to ii at step nn; ii is recurrent, so ∑nfii(n)=1\sum_nf^{(n)}_{ii}=1; μii=∑nnfii(n)\mu_{ii}=\sum_nnf^{(n)}_{ii} is the mean recurrence time. The period of ii is t=gcd{n:pii(n)>0}t=\gcd\{n:p^{(n)}_{ii}>0\}, so pii(n)=0p^{(n)}_{ii}=0 and fii(n)=0f^{(n)}_{ii}=0 unless t∣nt\mid n.

Tool: the discrete renewal theorem (Erdős–Feller–Pollard). If g1,g2,…≥0g_1,g_2,\dots\ge0, ∑gk=1\sum g_k=1, gcd{k:gk>0}=1\gcd\{k:g_k>0\}=1, and u0=1u_0=1, un=∑k=1ngkun−ku_n=\sum_{k=1}^ng_ku_{n-k} (n≥1n\ge1), then limn→∞un=1∑kkgk(=0 if the mean is infinite).\lim_{n\to\infty}u_n=\frac1{\sum_kk\,g_k}\qquad(=0\text{ if the mean is infinite}).

Renewal equation for pii(n)p^{(n)}_{ii}. Splitting according to the time kk of the first return: pii(n)=∑k=1nfii(k)pii(n−k),p^{(n)}_{ii}=\sum_{k=1}^nf^{(k)}_{ii}\,p^{(n-k)}_{ii}, n≥1,pii(0)=1.n\ge1,\quad p^{(0)}_{ii}=1 .

Reduce to the aperiodic case. Put un=pii(nt)u_n=p^{(nt)}_{ii} and gk=fii(kt)g_k=f^{(kt)}_{ii}. Since only multiples of tt contribute, un=∑k=1ngkun−k,u_n=\sum_{k=1}^ng_ku_{n-k}, u0=1.u_0=1 . Here ∑gk=∑nfii(n)=1\sum g_k=\sum_nf^{(n)}_{ii}=1 (recurrent), gcd{k:gk>0}=1\gcd\{k:g_k>0\}=1 (because the period of ii is exactly tt), and ∑kkgk=∑kkfii(kt)=1t∑k(kt)fii(kt)=μiit.\sum_kk\,g_k=\sum_kk\,f^{(kt)}_{ii}=\frac1t\sum_k(kt)f^{(kt)}_{ii}=\frac{\mu_{ii}}t .

Conclusion. By the renewal theorem, limn→∞pii(nt)=tμii.\boxed{\lim_{n\to\infty}p^{(nt)}_{ii}=\frac{t}{\mu_{ii}}}.

  • If ii is aperiodic (t=1t=1): pii(n)→1/μiip^{(n)}_{ii}\to1/\mu_{ii}.
  • If ii is null recurrent (μii=∞\mu_{ii}=\infty): the limit is 0.
  • And pii(n)=0p^{(n)}_{ii}=0 for nn not a multiple of tt. ∎

Example. In Q7, state 0 has period 2 and μ00=4\mu_{00}=4; indeed p00(2n)=12=24p^{(2n)}_{00}=\frac12=\frac24 ✓.

✓ Proof checked step by step Every step was checked: the renewal equation for p_ii^(nt), its use of the first-return distribution g_k = f_ii^(kt) (aperiodic, total mass 1, mean μ_ii/t), and the discrete renewal theorem it relies on.

↑ Back to the question list

For the Markov chain with transition probability matrix P=[1−aab1−b], 0<a<b<1 obtain pn.

2006 · Paper II · Q1f · 12 marks

Solution

Eigenvalues. det(P−λI)=(1−a−λ)(1−b−λ)−ab=0\det(P-\lambda I)=(1-a-\lambda)(1-b-\lambda)-ab=0, i.e. λ2−(2−a−b)λ+(1−a−b)=0\lambda^2-(2-a-b)\lambda+(1-a-b)=0, with roots λ1=1,\lambda_1=1, λ2=1−a−b.\lambda_2=1-a-b .

Spectral form. Pn=A+λ2nBP^n=A+\lambda_2^nB, where AA and BB are fixed by n=0n=0 (A+B=IA+B=I) and n=1n=1 (A+λ2B=PA+\lambda_2B=P): B=I−Pa+b=1a+b(a−a−bb),B=\frac{I-P}{a+b}=\frac1{a+b}\begin{pmatrix}a&-a\\-b&b\end{pmatrix}, A=I−B=1a+b(baba).A=I-B=\frac1{a+b}\begin{pmatrix}b&a\\b&a\end{pmatrix}.

Pn=1a+b(b+aλna−aλnb−bλna+bλn),\boxed{P^n=\frac1{a+b}\begin{pmatrix}b+a\lambda^n&a-a\lambda^n\\b-b\lambda^n&a+b\lambda^n\end{pmatrix}}, where λ=1−a−b\lambda=1-a-b.

Proof by induction. True for n=0,1n=0,1. Since AP=AAP=A and BP=λBBP=\lambda B (check: row of AA is the stationary vector; (I−P)P=P−P2=λ(I−P)(I-P)P=P-P^2=\lambda(I-P) because P2−(1+λ)P+λI=0P^2-(1+\lambda)P+\lambda I=0 by Cayley–Hamilton), Pn+1=PnP=A+λn+1BP^{n+1}=P^nP=A+\lambda^{n+1}B.

Check n=1n=1: entry (1,1)(1,1) is b+a(1−a−b)a+b=(a+b)(1−a)a+b=1−a\frac{b+a(1-a-b)}{a+b}=\frac{(a+b)(1-a)}{a+b}=1-a ✓.

Limit. As 0<a<b<10<a<b<1, |λ|<1|\lambda|<1, so Pn→1a+b(baba).P^n\to\frac1{a+b}\begin{pmatrix}b&a\\b&a\end{pmatrix}.

✓ Checked by computer We checked in Python (sympy) that the formula reproduces P, P² and P³ exactly for symbolic a and b.

↑ Back to the question list

Show that in an irreducible Markov chain, all the states are of the same type – these are all transient or all persistent null or all persistent non-null.

2006 · Paper II · Q3c · 25 marks

Solution

Setting. In an irreducible chain every two states i,ji,j communicate: there are r,sr,s with pij(r)=α>0,p^{(r)}_{ij}=\alpha>0, pji(s)=β>0.p^{(s)}_{ji}=\beta>0 . By Chapman–Kolmogorov (going through the other state), pii(r+n+s)≥αpjj(n)β,p^{(r+n+s)}_{ii}\ge\alpha\,p^{(n)}_{jj}\,\beta, pjj(s+n+r)≥βpii(n)α.(*)p^{(s+n+r)}_{jj}\ge\beta\,p^{(n)}_{ii}\,\alpha .\qquad(*)

1. Transient or persistent. ii is persistent iff ∑npii(n)=∞\sum_np^{(n)}_{ii}=\infty. Summing (*)(*) over nn: if ∑pii(n)=∞\sum p^{(n)}_{ii}=\infty then ∑pjj(n)=∞\sum p^{(n)}_{jj}=\infty, and conversely. So ii and jj are both persistent or both transient.

2. Same period. pii(r+s)≥αβ>0p^{(r+s)}_{ii}\ge\alpha\beta>0, so d(i)∣(r+s)d(i)\mid(r+s). If pjj(n)>0p^{(n)}_{jj}>0, then by (*)(*) pii(r+n+s)>0p^{(r+n+s)}_{ii}>0, so d(i)∣(r+n+s)d(i)\mid(r+n+s) and hence d(i)∣nd(i)\mid n. Thus d(i)d(i) divides every nn with pjj(n)>0p^{(n)}_{jj}>0, so d(i)∣d(j)d(i)\mid d(j). By symmetry d(j)∣d(i)d(j)\mid d(i); hence d(i)=d(j)=dd(i)=d(j)=d.

3. Null or non-null. Suppose both are persistent with period dd. By the limit theorem (Q20), pii(nd)→d/μiip^{(nd)}_{ii}\to d/\mu_{ii} and pjj(nd)→d/μjjp^{(nd)}_{jj}\to d/\mu_{jj} (0 if null). As r+sr+s is a multiple of dd, apply (*)(*) along multiples of dd: pii(r+nd+s)≥αβpjj(nd)p^{(r+nd+s)}_{ii}\ge\alpha\beta\,p^{(nd)}_{jj} ⇒dμii≥αβdμjj.\Rightarrow\ \frac d{\mu_{ii}}\ge\alpha\beta\frac d{\mu_{jj}} . If jj is non-null (μjj<∞\mu_{jj}<\infty) the right side is positive, so μii<∞\mu_{ii}<\infty: ii is non-null. If jj is null, then pjj(nd)→0p^{(nd)}_{jj}\to0, and the second inequality in (*)(*), pjj(nd)≥αβpii(nd−r−s)p^{(nd)}_{jj}\ge\alpha\beta\,p^{(nd-r-s)}_{ii}, forces pii(nd)→0p^{(nd)}_{ii}\to0: ii is null.

Conclusion. All states of an irreducible chain are of the same type: all transient, or all persistent null, or all persistent non-null, and all have the same period. ∎

✓ Proof checked step by step Every step was checked: the inequalities p_ii^(r+n+s) ≥ αβ p_jj^(n) and the reverse, the divergence criterion, the limit theorem for null/non-null, and the divisibility argument for the period.

↑ Back to the question list

Define irreducible Markov chain. Show that in an irreducible Markov chain, all states are of the same type.

2005 · Paper II · Q1d · 12 marks

Solution

Irreducible Markov chain. A chain is irreducible if every state can be reached from every other state: for all i,ji,j there is an n≥1n\ge1 with pij(n)>0p^{(n)}_{ij}>0. Equivalently, the only closed set is the whole state space — the states form a single communicating class.

Example: P=(0110)P=\begin{pmatrix}0&1\\1&0\end{pmatrix} is irreducible; P=(101212)P=\begin{pmatrix}1&0\\\tfrac12&\tfrac12\end{pmatrix} is not (state 1 cannot be reached from 0).

All states are of the same type. Take any i,ji,j; by irreducibility pij(r)=α>0p^{(r)}_{ij}=\alpha>0 and pji(s)=β>0p^{(s)}_{ji}=\beta>0 for some r,sr,s. Then pii(r+n+s)≥αβpjj(n),p^{(r+n+s)}_{ii}\ge\alpha\beta\,p^{(n)}_{jj}, pjj(s+n+r)≥αβpii(n).p^{(s+n+r)}_{jj}\ge\alpha\beta\,p^{(n)}_{ii}.

  • Persistent/transient: ∑npii(n)\sum_np^{(n)}_{ii} and ∑npjj(n)\sum_np^{(n)}_{jj} diverge together, so both states are persistent or both transient.
  • Null/non-null: pii(n)→0p^{(n)}_{ii}\to0 along the relevant subsequence iff pjj(n)→0p^{(n)}_{jj}\to0, so both are null or both non-null (using pii(nd)→d/μiip^{(nd)}_{ii}\to d/\mu_{ii}).
  • Period: d(i)∣r+sd(i)\mid r+s, and pjj(n)>0⇒d(i)∣r+n+s⇒d(i)∣np^{(n)}_{jj}>0\Rightarrow d(i)\mid r+n+s\Rightarrow d(i)\mid n; so d(i)∣d(j)d(i)\mid d(j) and by symmetry they are equal.

Hence in an irreducible chain all states are transient, or all persistent null, or all persistent non-null, with a common period. ∎ (Full details in Q27.)

✓ Proof checked step by step Every step was checked: the definition of irreducibility and the class-property argument through p_ii^(r+n+s) ≥ αβ p_jj^(n).

↑ Back to the question list

Consider the Markov chain {Xn,n≥0} with the states (0, 1, 2) and with transition probability matrix [3/41/401/41/21/403/41/3] and the initial distribution P{X0=i}=1/3;i=0,1,2 Obtain the value of: P{X0=1,X2=2,X1=1,X0=2}

2004 · Paper II · Q1f · 12 marks

Solution

Note on the question. The matrix as printed has p22=13p_{22}=\frac13, so row 2 sums to 0+34+13=1312≠10+\frac34+\frac13=\frac{13}{12}\ne1; this is a misprint for 14\frac14 (the same matrix appears in Q23). The event “X0=1,X2=2,X1=1,X0=2X_0=1,X_2=2,X_1=1,X_0=2” also repeats X0X_0; the intended event is {X3=1,X2=2,X1=1,X0=2}\{X_3=1,X_2=2,X_1=1,X_0=2\}. We solve that version with P=|0120|341401|1412142|03414.P=\begin{array}{ccccc}&\vert&0&1&2\\\hline0&\vert&\tfrac34&\tfrac14&0\\1&\vert&\tfrac14&\tfrac12&\tfrac14\\2&\vert&0&\tfrac34&\tfrac14\end{array}.

Path probability. Path 2→1→2→12\to1\to2\to1, with P(X0=2)=13P(X_0=2)=\frac13: P{X3=1,X2=2,X1=1,X0=2}=13p21p12p21=13⋅34⋅14⋅34=364.P\{X_3=1,X_2=2,X_1=1,X_0=2\}=\frac13\,p_{21}\,p_{12}\,p_{21}=\frac13\cdot\frac34\cdot\frac14\cdot\frac34=\boxed{\frac3{64}}.

(As printed, with both X0=1X_0=1 and X0=2X_0=2, the event is impossible and its probability is 0.)

✓ Checked by computer We checked in Python (exact fractions): with p₂₂ = 1/4, the path probability (1/3)(3/4)(1/4)(3/4) = 3/64.

↑ Back to the question list

What do you understand by ‘recurrent’ and ‘transient’ states of a discrete parameter Markov chain? Show that a state j is recurrent if and only if ∑n=0∞pjj(n)=∞ & if a state j is transient, then pij(n)→0 for all i.

2004 · Paper II · Q3c · 20 marks

Solution

Recurrent and transient. Let fjj(n)f^{(n)}_{jj} be the probability that the first return to jj is at step nn, and fjj=∑nfjj(n)f_{jj}=\sum_nf^{(n)}_{jj} the probability of ever returning. State jj is recurrent if fjj=1f_{jj}=1 (return is certain, so it happens infinitely often) and transient if fjj<1f_{jj}<1 (finitely many visits).

First-passage decomposition. Splitting by the time kk of the first return, pjj(n)=∑k=1nfjj(k)pjj(n−k),p^{(n)}_{jj}=\sum_{k=1}^nf^{(k)}_{jj}\,p^{(n-k)}_{jj}, n≥1,pjj(0)=1.n\ge1,\quad p^{(0)}_{jj}=1 .

Generating functions. For |s|<1|s|<1 let Pjj(s)=∑n≥0pjj(n)sn,P_{jj}(s)=\sum_{n\ge0}p^{(n)}_{jj}s^n, Fjj(s)=∑n≥1fjj(n)sn.F_{jj}(s)=\sum_{n\ge1}f^{(n)}_{jj}s^n . Multiplying the decomposition by sns^n and summing over n≥1n\ge1 (a convolution): Pjj(s)−1=Fjj(s)Pjj(s)P_{jj}(s)-1=F_{jj}(s)\,P_{jj}(s) ⇒Pjj(s)=11−Fjj(s).\Longrightarrow\ P_{jj}(s)=\frac1{1-F_{jj}(s)} .

Let s↑1s\uparrow1. Both series have non-negative coefficients, so by Abel’s theorem Pjj(s)↑∑npjj(n)P_{jj}(s)\uparrow\sum_np^{(n)}_{jj} and Fjj(s)↑fjjF_{jj}(s)\uparrow f_{jj}. Hence ∑n=0∞pjj(n)=11−fjj(=∞ if fjj=1).\sum_{n=0}^\infty p^{(n)}_{jj}=\frac1{1-f_{jj}}\qquad(=\infty\text{ if }f_{jj}=1). So j is recurrent⇔∑n=0∞pjj(n)=∞,\boxed{j\text{ is recurrent}\iff\sum_{n=0}^\infty p^{(n)}_{jj}=\infty}, and jj is transient iff the sum is finite. (The sum is the expected number of visits to jj.)

If jj is transient, pij(n)→0p^{(n)}_{ij}\to0 for every ii. With fij(k)f^{(k)}_{ij} the first-passage probabilities from ii to jj (i≠ji\ne j), pij(n)=∑k=1nfij(k)pjj(n−k).p^{(n)}_{ij}=\sum_{k=1}^nf^{(k)}_{ij}\,p^{(n-k)}_{jj}. Summing over nn: ∑n≥1pij(n)=(∑kfij(k))(∑m≥0pjj(m))=fij1−fjj<∞.\sum_{n\ge1}p^{(n)}_{ij}=\Big(\sum_kf^{(k)}_{ij}\Big)\Big(\sum_{m\ge0}p^{(m)}_{jj}\Big)=\frac{f_{ij}}{1-f_{jj}}<\infty . A convergent series has terms tending to 0, so pij(n)→0p^{(n)}_{ij}\to0. (For i=ji=j this is the first part.) ∎

✓ Proof checked step by step Every step was checked: the first-passage decomposition, the generating-function identity P_ii(s) = 1/(1 − F_ii(s)), Abel’s theorem as s ↑ 1, and Σ p_ij^(n) = f_ij Σ p_jj^(n) for the transient case.

↑ Back to the question list

Describe a Poisson process. Obtain the distribution of interarrival times in a Poisson process.

2004 · Paper II · Q4c · 15 marks

Solution

(This is the same question as Q12 (2018, 3a) above. The worked solution is repeated here so that each question is complete.)

Assumptions (postulates). N(t)N(t) = number of events in (0,t](0,t], N(0)=0N(0)=0, and

  1. Independence: the numbers of events in non-overlapping intervals are independent.
  2. Homogeneity: the probability of nn events in an interval depends only on its length.
  3. Orderliness / regularity: in a small interval (t,t+h](t,t+h], P(1 event)=λh+o(h),P(\text{1 event})=\lambda h+o(h), P(≥2 events)=o(h),P(\ge2\text{ events})=o(h), so P(0 events)=1−λh+o(h)P(\text{0 events})=1-\lambda h+o(h).

Equations. Let Pn(t)=P{N(t)=n}P_n(t)=P\{N(t)=n\}. For N(t+h)=nN(t+h)=n, either there were nn events by tt and none in (t,t+h](t,t+h], or n−1n-1 and one, or fewer and two or more. By independence, Pn(t+h)=Pn(t)(1−λh)+Pn−1(t)λh+o(h),P_n(t+h)=P_n(t)(1-\lambda h)+P_{n-1}(t)\lambda h+o(h), n≥1,n\ge1, P0(t+h)=P0(t)(1−λh)+o(h).P_0(t+h)=P_0(t)(1-\lambda h)+o(h). Subtract Pn(t)P_n(t), divide by hh and let h→0h\to0: P0′(t)=−λP0(t),P_0'(t)=-\lambda P_0(t), Pn′(t)=−λPn(t)+λPn−1(t),n≥1,P_n'(t)=-\lambda P_n(t)+\lambda P_{n-1}(t),\quad n\ge1, with P0(0)=1P_0(0)=1 and Pn(0)=0P_n(0)=0 for n≥1n\ge1.

Solution.

  • P0(t)=e−λtP_0(t)=e^{-\lambda t}.
  • Put Qn(t)=eλtPn(t)Q_n(t)=e^{\lambda t}P_n(t); then Qn′(t)=λQn−1(t)Q_n'(t)=\lambda Q_{n-1}(t), Qn(0)=0Q_n(0)=0, Q0=1Q_0=1. So Q1=λtQ_1=\lambda t, Q2=(λt)22!Q_2=\frac{(\lambda t)^2}{2!}, and by induction Qn=(λt)nn!Q_n=\frac{(\lambda t)^n}{n!}.

P{N(t)=n}=e−λt(λt)nn!,n=0,1,2,…\boxed{P\{N(t)=n\}=e^{-\lambda t}\frac{(\lambda t)^n}{n!},\quad n=0,1,2,\dots} The number of events in (0,t)(0,t) is Poisson with mean λt\lambda t.

Inter-arrival times. Let T1T_1 be the time of the first event. T1>tT_1>t exactly when there is no event in (0,t](0,t]: P(T1>t)=P0(t)=e−λtP(T_1>t)=P_0(t)=e^{-\lambda t} ⇒fT1(t)=λe−λt,t>0.\Rightarrow\ f_{T_1}(t)=\lambda e^{-\lambda t},\quad t>0 . Given the kkth event occurs at time ss, the next gap Tk+1T_{k+1} exceeds tt iff there is no event in (s,s+t](s,s+t]; by independence and homogeneity this has probability e−λte^{-\lambda t} whatever happened before ss. Hence the inter-arrival times T1,T2,…T_1,T_2,\dots are independent, each exponential with mean 1/λ1/\lambda: f(t)=λe−λt,t>0.f(t)=\lambda e^{-\lambda t},\quad t>0 . (The waiting time to the nnth event, T1+…+TnT_1+\dots+T_n, is then Gamma(n,λ)(n,\lambda).)

✓ Derivation checked step by step Every step was checked: the postulates, the differential-difference equations P′ₙ(t) = −λPₙ(t) + λPₙ₋₁(t), their solution by induction, and P(T > t) = e^(−λt) with independence of successive gaps.

↑ Back to the question list

Consider the following transition probability matrix of a Markov chain P=[1313130001313130000001313130001313130000121200001212] Classify the states of the associated MC.

2003 · Paper II · Q1f · 12 marks

Solution

Reading the matrix (states 1–6):

  • 1 and 2 go to {1,2,3}\{1,2,3\};
  • 3 and 4 go to {4,5,6}\{4,5,6\};
  • 5 and 6 go to {5,6}\{5,6\}.

So 1↔21\leftrightarrow2; 1,2→3→4→5↔61,2\to3\to4\to5\leftrightarrow6; nothing returns to an earlier group, and nothing leads back to 3.

Communicating classes.

Class Closed? Type Period
{1,2}\{1,2\} No (leaks to 3) Transient Aperiodic (p11=13>0p_{11}=\frac13>0)
{3}\{3\} No; p33=0p_{33}=0 and no return Transient (return impossible, f33=0f_{33}=0) No return, period undefined
{4}\{4\} No (leaks to 5, 6) Transient, f44=13f_{44}=\frac13 Aperiodic (p44=13p_{44}=\frac13)
{5,6}\{5,6\} Yes Persistent non-null (ergodic) Aperiodic (p55=12p_{55}=\frac12)

Details.

  • For states 5 and 6, the closed class has PC=(12121212)P_C=\begin{pmatrix}\frac12&\frac12\\\frac12&\frac12\end{pmatrix}; return to 5 has f55(1)=12f^{(1)}_{55}=\frac12, f55(n)=(12)nf^{(n)}_{55}=\left(\frac12\right)^n, so f55=1f_{55}=1 and μ55=2\mu_{55}=2; the stationary distribution on {5,6}\{5,6\} is (12,12)\left(\frac12,\frac12\right).
  • From {1,2}\{1,2\} the chain leaves with probability 13\frac13 per step and never returns, so f11<1f_{11}<1; similarly for 4.

Conclusion. The chain is not irreducible. States 1, 2, 3, 4 are transient; states 5 and 6 form the only closed class and are persistent non-null and aperiodic (ergodic). Wherever it starts, the chain is eventually absorbed into {5,6}\{5,6\}, and PnP^n tends to a matrix in which every row is (0,0,0,0,12,12)(0,0,0,0,\frac12,\frac12).

✓ Answer checked step by step Every step was checked: the accessibility relations read from the matrix, the communicating classes {1, 2}, {3}, {4}, {5, 6}, and which are closed.

↑ Back to the question list

Let N(t), the number of times a system fails upto time t, be a Poisson process with E(N(t))=μt. Show that the system does not fail in an interval of length Δ with probability e−μΔ

2003 · Paper II · Q4a · 15 marks

Solution

Given. N(t)N(t) is a Poisson process with EN(t)=μtE\,N(t)=\mu t, i.e. rate μ\mu.

Proof. Take any interval (t,t+Δ](t,t+\Delta]. By stationary increments, the number of failures in it, N(t+Δ)−N(t)N(t+\Delta)-N(t), has the same distribution as N(Δ)N(\Delta), which is Poisson with mean μΔ\mu\Delta: P{N(t+Δ)−N(t)=k}=e−μΔ(μΔ)kk!.P\{N(t+\Delta)-N(t)=k\}=e^{-\mu\Delta}\frac{(\mu\Delta)^k}{k!}. “No failure in the interval” is k=0k=0: P{no failure in an interval of length Δ}=e−μΔ.\boxed{P\{\text{no failure in an interval of length }\Delta\}=e^{-\mu\Delta}}.

From the postulates directly. Let P0(Δ)P_0(\Delta) = probability of no failure in an interval of length Δ\Delta. For a small hh, by independence, P0(Δ+h)=P0(Δ)(1−μh+o(h))P_0(\Delta+h)=P_0(\Delta)\,(1-\mu h+o(h)). So P0′(Δ)=−μP0(Δ)P_0'(\Delta)=-\mu P_0(\Delta) with P0(0)=1P_0(0)=1, giving P0(Δ)=e−μΔP_0(\Delta)=e^{-\mu\Delta}. ∎

Interpretation. The time to the next failure, measured from any instant, is exponential with mean 1/μ1/\mu (the memoryless property): the reliability of the system over a mission of length Δ\Delta is R(Δ)=e−μΔR(\Delta)=e^{-\mu\Delta}.

✓ Proof checked step by step Every step was checked: stationary increments give N(t + Δ) − N(t) ~ Poisson(μΔ), whose zero-term is e^(−μΔ); the differential-equation route gives the same.

↑ Back to the question list

The following is the transition probability matrix of a Markov chain:

P 1 2 3
1 0 1 0
2 1/2 0 1/2
3 0 1 0

Examine whether the Markov chain is regular and ergodic.

2002 · Paper II · Q1f · 12 marks

Solution

P=(01012012010),P=\begin{pmatrix}0&1&0\\\tfrac12&0&\tfrac12\\0&1&0\end{pmatrix}, P2=(1201201012012),P^2=\begin{pmatrix}\tfrac12&0&\tfrac12\\0&1&0\\\tfrac12&0&\tfrac12\end{pmatrix}, P3=P.P^3=P .

Regular? A chain is regular if some power PmP^m has all entries positive. Here the powers alternate between PP (odd powers) and P2P^2 (even powers), and both have zero entries. So no power is strictly positive: the chain is not regular. The reason is periodicity: the chain alternates between state 2 and the set {1,3}\{1,3\}, so it has period 2.

Ergodic? A chain is ergodic (in the sense used for finite chains: irreducible) if every state can be reached from every other. Here 1→2→31\to2\to3 and 3→2→13\to2\to1, so the chain is ergodic. Its states are positive recurrent, and there is a unique stationary distribution: π=πP\pi=\pi P ⇒π1=12π2,π3=12π2\Rightarrow\ \pi_1=\tfrac12\pi_2,\ \pi_3=\tfrac12\pi_2 ⇒π=(14,12,14).\Rightarrow\ \pi=\left(\tfrac14,\tfrac12,\tfrac14\right).

But PnP^n does not converge (it oscillates between PP and P2P^2). Only the averages 1n∑k=1nPk\frac1n\sum_{k=1}^nP^k converge, to a matrix with every row π\pi.

(If “ergodic” is taken in the stricter sense of irreducible, positive recurrent and aperiodic, then this chain is not ergodic either, because of period 2.)

✓ Answer checked step by step We checked in Python: P² and P³ = P both contain zeros, so no power of P is positive; the chain is irreducible with period 2 and stationary distribution (1/4, 1/2, 1/4).

↑ Back to the question list

Define a Markov chain. How are the states of a Markov chain classified? In a finite Markov chain, can all the states be transient? Justify.

2001 · Paper II · Q4c · 15 marks

Solution

Markov chain. A sequence of random variables {Xn,n≥0}\{X_n,n\ge0\} taking values in a countable state space SS is a Markov chain if P(Xn+1=j∣Xn=i,Xn−1=in−1,…,X0=i0)=P(Xn+1=j∣Xn=i)P(X_{n+1}=j\mid X_n=i,X_{n-1}=i_{n-1},\dots,X_0=i_0)=P(X_{n+1}=j\mid X_n=i) for all states and all nn: given the present, the future is independent of the past. If these probabilities pijp_{ij} do not depend on nn, the chain is homogeneous, with transition matrix P=(pij)P=(p_{ij}).

Classification of states.

  • By communication: i→ji\to j if pij(n)>0p^{(n)}_{ij}>0 for some nn; i↔ji\leftrightarrow j if both ways. Classes; closed sets; absorbing states (pii=1p_{ii}=1); irreducible chain (one class).
  • By recurrence: with fiif_{ii} = probability of ever returning, ii is persistent (recurrent) if fii=1f_{ii}=1 and transient if fii<1f_{ii}<1; persistent states are non-null if the mean recurrence time μii<∞\mu_{ii}<\infty, null if μii=∞\mu_{ii}=\infty.
  • By periodicity: period d(i)=gcd{n:pii(n)>0}d(i)=\gcd\{n:p^{(n)}_{ii}>0\}; aperiodic if d(i)=1d(i)=1.
  • Ergodic state: persistent non-null and aperiodic.

Can all states of a finite chain be transient? No.

Proof. Suppose all states of the finite set SS were transient. For a transient state jj, pij(n)→0p^{(n)}_{ij}\to0 as n→∞n\to\infty for every ii (Q30). Fix ii. Each row of PnP^n sums to 1: ∑j∈Spij(n)=1for all n.\sum_{j\in S}p^{(n)}_{ij}=1\quad\text{for all }n . Since SS is finite, we may take the limit term by term: the left side tends to ∑j∈S0=0\sum_{j\in S}0=0. This contradicts 1→01\to0. ∎

Intuition. Each transient state is visited only finitely often; with finitely many states the chain would run out of states to be in. So a finite chain has at least one persistent state (indeed at least one closed persistent class), and all its persistent states are non-null. (In an infinite chain all states can be transient — e.g. a random walk on the integers drifting to +∞+\infty.)

✓ Answer checked step by step Every step was checked: the classification definitions and the argument that Σⱼ pᵢⱼ⁽ⁿ⁾ = 1 cannot hold if every pᵢⱼ⁽ⁿ⁾ → 0 over a finite state space.

↑ Back to the question list

State and prove Chapman-Kolmogorov equation.

2000 · Paper II · Q1c · 12 marks

Solution

(This is the same question as Q14 (2017, 4b) above. The worked solution is repeated here so that each question is complete.)

nn-step transition probability. pij(n)=P(Xm+n=j∣Xm=i),p^{(n)}_{ij}=P(X_{m+n}=j\mid X_m=i), the probability of going from ii to jj in exactly nn steps (for a homogeneous chain it does not depend on mm). pij(1)=pijp^{(1)}_{ij}=p_{ij}, pij(0)=δijp^{(0)}_{ij}=\delta_{ij}; pij(n)p^{(n)}_{ij} is the (i,j)(i,j) entry of PnP^n.

Chapman–Kolmogorov equations.

First form: condition on the state after nn steps. pij(n+1)=P(Xn+1=j∣X0=i)=∑kP(Xn+1=j,Xn=k∣X0=i)p^{(n+1)}_{ij}=P(X_{n+1}=j\mid X_0=i)=\sum_kP(X_{n+1}=j,X_n=k\mid X_0=i) =∑kP(Xn=k∣X0=i)P(Xn+1=j∣Xn=k,X0=i).=\sum_kP(X_n=k\mid X_0=i)\,P(X_{n+1}=j\mid X_n=k,X_0=i). By the Markov property, P(Xn+1=j∣Xn=k,X0=i)=P(Xn+1=j∣Xn=k)=pkjP(X_{n+1}=j\mid X_n=k,X_0=i)=P(X_{n+1}=j\mid X_n=k)=p_{kj}. Hence pij(n+1)=∑kpik(n)pkj.p^{(n+1)}_{ij}=\sum_kp^{(n)}_{ik}\,p_{kj}.

Second form: condition on the state after the first step. pij(n+1)=∑kP(X1=k∣X0=i)P(Xn+1=j∣X1=k,X0=i)=∑kpikpkj(n),p^{(n+1)}_{ij}=\sum_kP(X_1=k\mid X_0=i)\,P(X_{n+1}=j\mid X_1=k,X_0=i)=\sum_kp_{ik}\,p^{(n)}_{kj}, using the Markov property and homogeneity (P(Xn+1=j∣X1=k)=pkj(n)P(X_{n+1}=j\mid X_1=k)=p^{(n)}_{kj}).

Together: pij(n+1)=∑kpik(n)pkj=∑kpikpkj(n).\boxed{p^{(n+1)}_{ij}=\sum_kp^{(n)}_{ik}p_{kj}=\sum_kp_{ik}p^{(n)}_{kj}}. In matrix form, P(n+1)=P(n)P=PP(n)P^{(n+1)}=P^{(n)}P=PP^{(n)}; by induction P(n)=PnP^{(n)}=P^n. More generally pij(m+n)=∑kpik(m)pkj(n)p^{(m+n)}_{ij}=\sum_kp^{(m)}_{ik}p^{(n)}_{kj}, i.e. Pm+n=PmPnP^{m+n}=P^mP^n. ∎

✓ Proof checked step by step Every step was checked: conditioning on the state after the first (or the nth) step, and the Markov property used to drop the earlier history.

↑ Back to the question list

Show that the inter-occurrence time follows the exponential distribution in the case of a Poisson process.

2000 · Paper II · Q1d · 12 marks

Solution

Set-up. {N(t)}\{N(t)\} is a Poisson process with rate λ\lambda: independent and stationary increments, and P{N(t)=n}=e−λt(λt)n/n!P\{N(t)=n\}=e^{-\lambda t}(\lambda t)^n/n!. Let T1T_1 be the time to the first event and TkT_k the time between the (k−1)(k-1)th and kkth events.

First inter-occurrence time. T1>tT_1>t if and only if no event occurs in (0,t](0,t]: P(T1>t)=P{N(t)=0}=e−λt,P(T_1>t)=P\{N(t)=0\}=e^{-\lambda t}, t≥0.t\ge0 . So F(t)=1−e−λtF(t)=1-e^{-\lambda t} and fT1(t)=λe−λt,t>0,f_{T_1}(t)=\lambda e^{-\lambda t},\quad t>0, the exponential distribution with mean 1/λ1/\lambda.

Later inter-occurrence times. Given that the (k−1)(k-1)th event occurred at time ss (and given the whole history up to ss), P(Tk>t∣history up to s)=P{no event in (s,s+t]}=P{N(t)=0}=e−λt,P(T_k>t\mid\text{history up to }s)=P\{\text{no event in }(s,s+t]\}=P\{N(t)=0\}=e^{-\lambda t}, by independent increments (the future count does not depend on the past) and stationary increments (it depends only on the length tt). This does not depend on ss or on the earlier gaps.

Conclusion. The inter-occurrence times T1,T2,…T_1,T_2,\dots are independent and identically distributed, each exponential with parameter λ\lambda: f(t)=λe−λt,t>0,f(t)=\lambda e^{-\lambda t},\quad t>0, E(T)=1λ.E(T)=\frac1\lambda . ∎ (Conversely, i.i.d. exponential gaps generate a Poisson process.)

✓ Proof checked step by step Every step was checked: P(T > t) = P(N(t) = 0) = e^(−λt) for the first gap, and independent, stationary increments for the later gaps.

↑ Back to the question list

For a finite irreducible aperiodic Markov chain with n-step transition probabilities pij(n) show that limn→∞pij(n) exists and is independent of the initial state.

2000 · Paper II · Q3b · 20 marks

Solution

(This is the same question as Q18 (2011, 1a) above. The worked solution is repeated here so that each question is complete.)

Setting. A finite chain with states 1,…,N1,\dots,N (N≥2N\ge2), irreducible and aperiodic. We show that limn→∞pij(n)=πj\lim_{n\to\infty}p^{(n)}_{ij}=\pi_j exists and does not depend on ii.

Step 1: some power of PP is strictly positive. For each ii, the set {n:pii(n)>0}\{n:p^{(n)}_{ii}>0\} is closed under addition (pii(m+n)≥pii(m)pii(n)p^{(m+n)}_{ii}\ge p^{(m)}_{ii}p^{(n)}_{ii}) and has gcd 1 (aperiodic), so by a standard number-theory lemma it contains every n≥nin\ge n_i. Since i→ji\to j, pij(rij)>0p^{(r_{ij})}_{ij}>0 for some rijr_{ij}, and then pij(n)≥pij(rij)pjj(n−rij)>0p^{(n)}_{ij}\ge p^{(r_{ij})}_{ij}p^{(n-r_{ij})}_{jj}>0 for all large nn. The chain is finite, so there is one mm with pij(m)≥δ>0p^{(m)}_{ij}\ge\delta>0 for all i,ji,j. (Clearly δ≤12\delta\le\frac12.)

Step 2: max and min are monotone. Fix jj; let Mn=maxipij(n)M_n=\max_ip^{(n)}_{ij} and mn=minipij(n)m_n=\min_ip^{(n)}_{ij}. Since pij(n+1)=∑kpikpkj(n)p^{(n+1)}_{ij}=\sum_kp_{ik}p^{(n)}_{kj} is a weighted average of the pkj(n)p^{(n)}_{kj} (weights pik≥0p_{ik}\ge0 summing to 1), mn≤pij(n+1)≤Mn⇒mn≤mn+1≤Mn+1≤Mn.m_n\le p^{(n+1)}_{ij}\le M_n\quad\Rightarrow\quad m_n\le m_{n+1}\le M_{n+1}\le M_n . So MnM_n decreases and mnm_n increases; both converge.

Step 3: the gap shrinks geometrically. pij(n+m)=∑kpik(m)pkj(n)p^{(n+m)}_{ij}=\sum_kp^{(m)}_{ik}p^{(n)}_{kj}. Let k0k_0 be a state where pk0j(n)=mnp^{(n)}_{k_0j}=m_n. Every weight pik(m)≥δp^{(m)}_{ik}\ge\delta, so pij(n+m)≤δmn+(1−δ)Mn,p^{(n+m)}_{ij}\le\delta\,m_n+(1-\delta)M_n, and similarly, using a state where the value is MnM_n, pij(n+m)≥δMn+(1−δ)mn.p^{(n+m)}_{ij}\ge\delta\,M_n+(1-\delta)m_n . Hence Mn+m−mn+m≤(1−2δ)(Mn−mn),M_{n+m}-m_{n+m}\le(1-2\delta)(M_n-m_n), and, by Step 2, Mn−mn≤(1−2δ)⌊n/m⌋→0M_n-m_n\le(1-2\delta)^{\lfloor n/m\rfloor}\to0.

Conclusion. MnM_n and mnm_n have the same limit πj\pi_j, and every pij(n)p^{(n)}_{ij} lies between them. So limn→∞pij(n)=πjfor every i,\lim_{n\to\infty}p^{(n)}_{ij}=\pi_j\quad\text{for every }i, independent of the initial state. Moreover πj≥mm≥δ>0\pi_j\ge m_m\ge\delta>0, ∑jπj=1\sum_j\pi_j=1 (finite sum of rows), and letting n→∞n\to\infty in pij(n+1)=∑kpik(n)pkjp^{(n+1)}_{ij}=\sum_kp^{(n)}_{ik}p_{kj} gives π=πP\pi=\pi P: the limit is the unique stationary distribution, with πj=1/μjj\pi_j=1/\mu_{jj}. ∎

✓ Proof checked step by step Every step was checked: regularity of a finite irreducible aperiodic chain (Pᵐ > 0), the monotone max/min sequences, and the contraction factor (1 − 2δ) that forces them to a common limit.

↑ Back to the question list

Write notes on any three of the following (i) Discrete-time Markov Chains (ii) Transition Probability Matrix. (iii) G/M/1 and M/G/1 queues. (iv) Uses of SPSS.

1999 · Paper II · Q8c · 20 marks

Solution

We write notes on (i), (ii) and (iii).

(i) Discrete-time Markov chains. A sequence X0,X1,…X_0,X_1,\dots of random variables on a countable state space is a Markov chain if P(Xn+1=j∣Xn=i,Xn−1,…,X0)=P(Xn+1=j∣Xn=i)P(X_{n+1}=j\mid X_n=i,X_{n-1},\dots,X_0)=P(X_{n+1}=j\mid X_n=i) — the future depends on the past only through the present. It is homogeneous if these pijp_{ij} do not depend on nn. The chain is described by an initial distribution and the transition matrix. States are classified as communicating, closed, absorbing; recurrent (positive or null) or transient; periodic or aperiodic. For an irreducible, aperiodic, positive recurrent chain, pij(n)→πj=1/μjjp^{(n)}_{ij}\to\pi_j=1/\mu_{jj}, where π=πP\pi=\pi P is the stationary distribution. Uses: brand switching, weather, manpower planning, queues, inventories, genetics (Wright–Fisher), random walks, page-ranking.

(ii) Transition probability matrix. P=(pij)P=(p_{ij}), pij=P(Xn+1=j∣Xn=i)p_{ij}=P(X_{n+1}=j\mid X_n=i). It is a stochastic matrix: pij≥0p_{ij}\ge0, rows sum to 1. Properties:

  • nn-step probabilities: P(n)=PnP^{(n)}=P^n (Chapman–Kolmogorov, Pm+n=PmPnP^{m+n}=P^mP^n).
  • State probabilities: vn=v0Pnv_n=v_0P^n.
  • 1 is always an eigenvalue (with right eigenvector 𝟏\mathbf1); all eigenvalues satisfy |λ|≤1|\lambda|\le1.
  • Regular if some Pm>0P^m>0; then Pn→𝟏πP^n\to\mathbf1\pi (all rows equal to π\pi).
  • A doubly stochastic matrix (columns also sum to 1) has the uniform stationary distribution (finite chain).
  • An absorbing chain has the canonical form (I0RQ)\begin{pmatrix}I&0\\R&Q\end{pmatrix}, with fundamental matrix (I−Q)−1(I-Q)^{-1}.

(iii) M/G/1 and G/M/1 queues. Both are single-server queues where one of the two distributions is general, so the queue length is not itself Markov; Kendall’s embedded Markov chain method makes them tractable.

M/G/1: Poisson arrivals (rate λ\lambda), general service time SS (mean 1/μ1/\mu, variance σ2\sigma^2), ρ=λ/μ<1\rho=\lambda/\mu<1. Observe the number left behind at departure instants: Xn+1=max(Xn−1,0)+An+1X_{n+1}=\max(X_n-1,0)+A_{n+1}, where AA is the number of arrivals during a service. Results (Pollaczek–Khinchine): Lq=λ2σ2+ρ22(1−ρ),L_q=\frac{\lambda^2\sigma^2+\rho^2}{2(1-\rho)}, Wq=Lqλ,W_q=\frac{L_q}\lambda, P0=1−ρ.P_0=1-\rho . The variance of service time increases congestion; M/D/1 (σ2=0\sigma^2=0) has half the M/M/1 queue.

G/M/1: general i.i.d. inter-arrival times TT (mean 1/λ1/\lambda), exponential service (rate μ\mu). Observe the number found by an arrival. The stationary distribution is geometric, P(arrival finds n)=(1−σ)σn,P(\text{arrival finds }n)=(1-\sigma)\sigma^n, where σ∈(0,1)\sigma\in(0,1) is the root of σ=E[e−μ(1−σ)T]\sigma=E\big[e^{-\mu(1-\sigma)T}\big] (it exists when ρ=λ/μ<1\rho=\lambda/\mu<1). The waiting time of an arrival is 0 with probability 1−σ1-\sigma and otherwise exponential with rate μ(1−σ)\mu(1-\sigma), so Wq=σμ(1−σ)W_q=\dfrac{\sigma}{\mu(1-\sigma)}. For Poisson arrivals σ=ρ\sigma=\rho, recovering M/M/1.

✓ Answer checked step by step Every point was checked against the standard definitions of Markov chains, transition matrices and the M/G/1 and G/M/1 queues (embedded chains, Pollaczek–Khinchine formula, the root σ).

↑ Back to the question list

What do you understand by Markov chains? Explain how it can be used for predicting sales-force needs.

1998 · Paper II · Q9c · 20 marks

Solution

Markov chains. A Markov chain models a system that moves between a set of states at successive times, where the probability of the next state depends only on the present state (pij=P(Xn+1=j∣Xn=i)p_{ij}=P(X_{n+1}=j\mid X_n=i)). With the transition matrix PP, the distribution after nn periods is vn=v0Pnv_n=v_0P^n, and the long-run distribution solves π=πP\pi=\pi P.

Predicting sales-force needs (manpower planning). Treat each salesperson’s career as a Markov chain:

  1. States = grades or categories, e.g. Trainee (T), Sales Executive (S), Sales Manager (M), plus an absorbing state “Left” (L: resigned, retired, dismissed).
  2. Transition matrix — estimated from past personnel records: the proportions promoted, staying in grade and leaving each year.
  3. Projection — if ntn_t is the vector of numbers in each grade and rtr_t the recruitment vector, then nt+1=ntP0+rt,n_{t+1}=n_tP_0+r_t, where P0P_0 is PP restricted to the working grades. Without recruitment we see how the force shrinks; then we choose rtr_t to reach the required strength in each grade.
  4. Long-run results — the expected length of service in each grade, from the fundamental matrix N=(I−Q)−1N=(I-Q)^{-1}; the steady-state grade structure under a recruitment policy, n=r(I−P0)−1n=r(I-P_0)^{-1}; and the promotion prospects of a new entrant.

Example. Annual transitions:

From  To T S M Left
T 0.30 0.50 0 0.20
S 0 0.70 0.10 0.20
M 0 0 0.85 0.15

Present force n0=(20,50,10)n_0=(20,50,10). Next year, with no recruitment:

  • T: 20(0.30)=620(0.30)=6
  • S: 20(0.50)+50(0.70)=4520(0.50)+50(0.70)=45
  • M: 50(0.10)+10(0.85)=13.550(0.10)+10(0.85)=13.5

To keep 20 trainees the firm must recruit 20−6=1420-6=14 trainees; the executive grade falls to 45, so to keep 50 executives it needs 5 more (by lateral hiring or by recruiting more trainees earlier). Repeating year by year gives a recruitment plan for the sales force, and the long-run structure shows whether the promotion rates fit the needs of the organisation.

✓ Answer checked step by step We checked the example: n₁ = n₀P with n₀ = (20, 50, 10) gives (6, 45, 13.5), and keeping 20 trainees needs 14 recruits; the absorbing-chain formula was checked.

↑ Back to the question list

With reference to a homogeneous Markov chain, define a recurrent state. Also prove that a state i is recurrent if and only if the series ∑pii(n) is divergent, where (pii(n)) is the matrix of n-step transition probabilities of the Markov chain.

1997 · Paper II · Q9a · 20 marks

Solution

(This is the same question as Q30 (2004, 3c) above. The worked solution is repeated here so that each question is complete.)

Recurrent and transient. Let fjj(n)f^{(n)}_{jj} be the probability that the first return to jj is at step nn, and fjj=∑nfjj(n)f_{jj}=\sum_nf^{(n)}_{jj} the probability of ever returning. State jj is recurrent if fjj=1f_{jj}=1 (return is certain, so it happens infinitely often) and transient if fjj<1f_{jj}<1 (finitely many visits).

First-passage decomposition. Splitting by the time kk of the first return, pjj(n)=∑k=1nfjj(k)pjj(n−k),p^{(n)}_{jj}=\sum_{k=1}^nf^{(k)}_{jj}\,p^{(n-k)}_{jj}, n≥1,pjj(0)=1.n\ge1,\quad p^{(0)}_{jj}=1 .

Generating functions. For |s|<1|s|<1 let Pjj(s)=∑n≥0pjj(n)sn,P_{jj}(s)=\sum_{n\ge0}p^{(n)}_{jj}s^n, Fjj(s)=∑n≥1fjj(n)sn.F_{jj}(s)=\sum_{n\ge1}f^{(n)}_{jj}s^n . Multiplying the decomposition by sns^n and summing over n≥1n\ge1 (a convolution): Pjj(s)−1=Fjj(s)Pjj(s)P_{jj}(s)-1=F_{jj}(s)\,P_{jj}(s) ⇒Pjj(s)=11−Fjj(s).\Longrightarrow\ P_{jj}(s)=\frac1{1-F_{jj}(s)} .

Let s↑1s\uparrow1. Both series have non-negative coefficients, so by Abel’s theorem Pjj(s)↑∑npjj(n)P_{jj}(s)\uparrow\sum_np^{(n)}_{jj} and Fjj(s)↑fjjF_{jj}(s)\uparrow f_{jj}. Hence ∑n=0∞pjj(n)=11−fjj(=∞ if fjj=1).\sum_{n=0}^\infty p^{(n)}_{jj}=\frac1{1-f_{jj}}\qquad(=\infty\text{ if }f_{jj}=1). So j is recurrent⇔∑n=0∞pjj(n)=∞,\boxed{j\text{ is recurrent}\iff\sum_{n=0}^\infty p^{(n)}_{jj}=\infty}, and jj is transient iff the sum is finite. (The sum is the expected number of visits to jj.)

If jj is transient, pij(n)→0p^{(n)}_{ij}\to0 for every ii. With fij(k)f^{(k)}_{ij} the first-passage probabilities from ii to jj (i≠ji\ne j), pij(n)=∑k=1nfij(k)pjj(n−k).p^{(n)}_{ij}=\sum_{k=1}^nf^{(k)}_{ij}\,p^{(n-k)}_{jj}. Summing over nn: ∑n≥1pij(n)=(∑kfij(k))(∑m≥0pjj(m))=fij1−fjj<∞.\sum_{n\ge1}p^{(n)}_{ij}=\Big(\sum_kf^{(k)}_{ij}\Big)\Big(\sum_{m\ge0}p^{(m)}_{jj}\Big)=\frac{f_{ij}}{1-f_{jj}}<\infty . A convergent series has terms tending to 0, so pij(n)→0p^{(n)}_{ij}\to0. (For i=ji=j this is the first part.) ∎

✓ Proof checked step by step Every step was checked: the first-passage decomposition, the generating-function identity P_ii(s) = 1/(1 − F_ii(s)), Abel’s theorem as s ↑ 1, and Σ p_ij^(n) = f_ij Σ p_jj^(n) for the transient case.

↑ Back to the question list

If X(t), t>0, is a Poisson process then obtain the distribution of X(s) given X(t)=n, 0<s<1

1997 · Paper II · Q9b · 20 marks

Solution

Note on the question. “0<s<10<s<1” should read 0<s<t0<s<t (or the question takes t=1t=1). We find the distribution of X(s)X(s) given X(t)=nX(t)=n for 0<s<t0<s<t.

Let X(t)X(t) be a Poisson process with rate λ\lambda. For k=0,1,…,nk=0,1,\dots,n, by independent and stationary increments, P{X(s)=k∣X(t)=n}=P{X(s)=k}P{X(t)−X(s)=n−k}P{X(t)=n}P\{X(s)=k\mid X(t)=n\}=\frac{P\{X(s)=k\}\,P\{X(t)-X(s)=n-k\}}{P\{X(t)=n\}} =e−λs(λs)kk!⋅e−λ(t−s)[λ(t−s)]n−k(n−k)!e−λt(λt)nn!=\frac{e^{-\lambda s}\frac{(\lambda s)^k}{k!}\cdot e^{-\lambda(t-s)}\frac{[\lambda(t-s)]^{n-k}}{(n-k)!}}{e^{-\lambda t}\frac{(\lambda t)^n}{n!}} =(nk)(st)k(1−st)n−k.=\binom nk\left(\frac st\right)^k\left(1-\frac st\right)^{n-k}.

So, given X(t)=nX(t)=n, X(s)∼Binomial(n,st)\boxed{X(s)\sim\text{Binomial}\left(n,\ \tfrac st\right)}, with mean ns/tns/t and variance nst(1−st)n\frac st\left(1-\frac st\right). It does not involve λ\lambda: given nn events in (0,t](0,t], each falls in (0,s](0,s] independently with probability s/ts/t, as if the events were uniformly scattered over (0,t](0,t]. (With t=1t=1: Binomial(n,s)(n,s).)

✓ Derivation checked step by step Every step was checked: independent, stationary increments, the Poisson probabilities, and the Binomial(n, s/t) result.

↑ Back to the question list

Define recurrent and transient states in a finite Markov chain, if C is a communicating class of states, then show that the states of C are either all recurrent or all transient.

1995 · Paper II · Q9b · 20 marks

Solution

Recurrent and transient states in a finite chain. State ii is recurrent if the chain, started at ii, returns to ii with probability 1 (fii=1f_{ii}=1, equivalently ∑npii(n)=∞\sum_np^{(n)}_{ii}=\infty), and transient if fii<1f_{ii}<1 (∑npii(n)<∞\sum_np^{(n)}_{ii}<\infty). In a finite chain, a state is recurrent exactly when its class is closed, and every recurrent state is positive recurrent.

Communicating class. CC is a communicating class if every two states of CC communicate (i→ji\to j and j→ij\to i).

Claim: the states of CC are all recurrent or all transient. Take i,j∈Ci,j\in C. There are r,sr,s with pij(r)=α>0p^{(r)}_{ij}=\alpha>0, pji(s)=β>0p^{(s)}_{ji}=\beta>0. Going j→ij\to i (ss steps), i→ii\to i (nn steps), i→ji\to j (rr steps): pjj(s+n+r)≥βpii(n)α,p^{(s+n+r)}_{jj}\ge\beta\,p^{(n)}_{ii}\,\alpha, and similarlypii(r+n+s)≥αpjj(n)β.\text{and similarly}\qquad p^{(r+n+s)}_{ii}\ge\alpha\,p^{(n)}_{jj}\,\beta . Summing over nn:

  • if ii is recurrent, ∑npjj(n)≥αβ∑npii(n)=∞\sum_np^{(n)}_{jj}\ge\alpha\beta\sum_np^{(n)}_{ii}=\infty, so jj is recurrent;
  • if jj is recurrent, by the same argument ii is recurrent.

Hence ii is recurrent iff jj is: the states of CC are either all recurrent or all transient. ∎

✓ Proof checked step by step Every step was checked: within a communicating class the inequality p_jj^(s+n+r) ≥ αβ p_ii^(n) makes Σ p_ii⁽ⁿ⁾ and Σ p_jj⁽ⁿ⁾ diverge or converge together.

↑ Back to the question list

What is an absorbing Markov chain? How is its study useful?

1995 · Paper II · Q9c · 20 marks

Solution

Absorbing Markov chain. A state ii is absorbing if pii=1p_{ii}=1 (once entered, it is never left). A chain is absorbing if it has at least one absorbing state and from every state it is possible to reach some absorbing state. All non-absorbing states are then transient, and the chain is absorbed with probability 1.

Canonical form. Listing the absorbing states first, P=(I0RQ),P=\begin{pmatrix}I&0\\R&Q\end{pmatrix}, where QQ gives transitions among the transient states and RR from transient to absorbing states. Then Qn→0Q^n\to0, and the fundamental matrix is N=(I−Q)−1=I+Q+Q2+⋯.N=(I-Q)^{-1}=I+Q+Q^2+\cdots .

  • NijN_{ij} = expected number of visits to transient state jj starting from ii;
  • t=N𝟏t=N\mathbf1 = expected number of steps before absorption from each transient state;
  • B=NRB=NR, with BikB_{ik} = probability of ending in absorbing state kk starting from ii;
  • the variance of the time to absorption is (2N−I)t−t2(2N-I)t-t^2 (squares taken entry by entry).

Example (Q17): Q=(13131313)Q=\begin{pmatrix}\frac13&\frac13\\\frac13&\frac13\end{pmatrix}, N=(2112)N=\begin{pmatrix}2&1\\1&2\end{pmatrix}, t=(3,3)t=(3,3): absorption takes 3 steps on average from either state.

Why it is useful. Many processes end in a final state, and the questions are “how long?” and “which end?”:

  1. Accounts receivable — states: current, 1–30 days overdue, 31–60 days, …, with absorbing states “paid” and “bad debt”; BB gives the expected bad debts, used to set the allowance for doubtful accounts.
  2. Manpower and student flows — absorbing states “left”, “retired”, “graduated”, “dropped out”; NN gives expected years in each grade or class.
  3. Gambler’s ruin and random walks — probability of ruin and the expected duration of play.
  4. Reliability and medicine — machines or patients moving through condition states until failure/recovery or death: expected time to failure, survival.
  5. Genetics — fixation of a gene in a population (Wright–Fisher model).
  6. Queues and inventories with finite horizons, and learning models.

So the theory of absorbing chains gives simple matrix formulas for the expected time to absorption and the probabilities of the possible outcomes.

✓ Answer checked step by step We checked the fundamental-matrix formulas on the Q17 chain: (I − Q)⁻¹ = [[2, 1], [1, 2]], expected steps 3 from each state, absorption probability 1.

↑ Back to the question list

More on Optimization Techniques

Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted