About this set
Markov chains, classification of states, Chapman–Kolmogorov equations, limiting and stationary distributions, gambler's ruin, random walks, the Poisson process and its waiting times, birth and death processes and the M/M/1 queue.
These are model questions written for practice at the standard of the paper; they are not questions from a past paper. Try each one before opening the answer. Every answer gives the working and a link to the section of the Unit IX notes that teaches it.
The questions
Show Answer
Answer: (B) 0.565.
The distribution after one step is $(0.5,0.5)P=(0.55,0.45)$, and after two steps $$\begin{aligned}&P(X_2=0) \\[4pt] &\quad = 0.55(0.7)+0.45(0.4) \\[4pt] &\quad = 0.565\text{.}\end{aligned}$$ ($0.610$ is $p_{00}^{(2)}$, the value when the chain starts in state 0; $0.571$ is the limiting value $\tfrac47$.)
Read this in the notes: Unit IX, Markov Chains: Definitions
Show Answer
Answer: (D) 0.09.
By the Markov property the joint probability is the initial probability times the successive transition probabilities: $$\begin{aligned}0.5\times p_{01}\times p_{11} &= 0.5\times0.3\times0.6 \\[4pt] &= 0.09\text{.}\end{aligned}$$
Read this in the notes: Unit IX, Markov Chains: Definitions
Show Answer
Answer: (A) I, II and III only.
Rows are probability distributions: (I). A product of stochastic matrices is stochastic: (II). $P\mathbf 1=\mathbf 1$, so 1 is a characteristic root with the vector of ones: (III). Columns need not sum to 1; when they do the matrix is doubly stochastic, a special case: (IV) is false.
Read this in the notes: Unit IX, Markov Chains: Definitions
Show Answer
Answer: (C) $Y_n=X_n+X_{n-1}$.
$S_n$ and $M_n$ are functions of their previous value and a fresh independent variable, so they are Markov; an independent sequence is trivially Markov. For $Y_n$: given $Y_n=1$, the value of $Y_{n-1}$ helps to tell whether $X_n=1$ (if $Y_{n-1}=2$ then $X_{n-1}=1$, so $X_n=0$), and that changes the distribution of $Y_{n+1}$. The past matters beyond the present.
Read this in the notes: Unit IX, Markov Chains: Definitions
Show Answer
Answer: (B) 0.39.
$$\begin{aligned}p_{01}^{(2)} &= p_{00}p_{01}+p_{01}p_{11} \\[4pt] &= 0.7(0.3)+0.3(0.6) = 0.39\text{.}\end{aligned}$$ The first row of $P^2$ is $(0.61,0.39)$.
Read this in the notes: Unit IX, Markov Chains: Definitions
Show Answer
Answer: (D) 3 only.
$\{1,2\}$ is a closed class and $\{4\}$ is absorbing; both are recurrent. From state 3 the chain leaves with probability $\tfrac23$ at each step and can never come back, so 3 is transient: the probability of ever returning to 3 is $\tfrac13\lt1$.
Read this in the notes: Unit IX, Classification of States
Show Answer
Answer: (A) 2.
The chain alternates between the set $\{0,2\}$ and the state 1, so a return to any state is possible only after an even number of steps, and $p_{00}^{(2)}=\tfrac12\gt0$: the period is 2. The chain is irreducible, and period is a class property.
Read this in the notes: Unit IX, Classification of States
Show Answer
Answer: (C) I, II and III only.
(I) and (II): communicating states are all recurrent or all transient, and have the same period. (III) A finite chain cannot have null recurrent states. (IV) is false: a finite chain must spend infinitely much time somewhere, so at least one state is recurrent.
Read this in the notes: Unit IX, Classification of States
Show Answer
Answer: (B) transient.
A state is recurrent if and only if $\sum_np_{ii}^{(n)}=\infty$. Here $\sum_{n\ge2}\tfrac1{n^2}\lt\infty$, so the expected number of returns is finite and the state is transient. (With $p_{ii}^{(n)}\sim\tfrac1n$ the state would be recurrent.)
Read this in the notes: Unit IX, Classification of States
Show Answer
Answer: (A) null recurrent, null recurrent, transient.
Pólya's theorem: $p_{00}^{(2n)}$ is of order $n^{-d/2}$ in $d$ dimensions, and $\sum n^{-d/2}$ diverges for $d=1,2$ and converges for $d\ge3$. In one and two dimensions the walk returns with probability 1, but the mean return time is infinite (null recurrent); in three dimensions it returns with probability about 0.34 only.
Read this in the notes: Unit IX, Classification of States
Show Answer
Answer: (D) 2.
For a positive recurrent state $\mu_j=\dfrac{1}{\pi_j}=\dfrac{1}{1/2}=2$: a state visited half the time is revisited on average every 2 steps. The other two states have mean recurrence time 4.
Read this in the notes: Unit IX, Classification of States
Show Answer
Answer: (C) $\dfrac47$.
Let $h_i$ be the probability of absorption at 3 from $i$. First-step analysis: $h_1=\tfrac23h_2$ and $h_2=\tfrac23+\tfrac13h_1$. So $h_1=\tfrac49+\tfrac29h_1$, giving $h_1=\tfrac47$ (and $h_2=\tfrac67$). $\tfrac49$ counts only the direct path $1\to2\to3$.
Read this in the notes: Unit IX, Classification of States
Show Answer
Answer: (B) $\dfrac14$.
$$\begin{aligned}&P^2 \\[4pt] &\quad = \begin{pmatrix}\tfrac12&\tfrac12\\\tfrac14&\tfrac34\end{pmatrix}\end{aligned}$$ and, by the Chapman–Kolmogorov equations, $$\begin{aligned}&p_{00}^{(3)} \\[4pt] &\quad = p_{00}^{(2)}p_{00}+p_{01}^{(2)}p_{10} \\[4pt] &\quad = \tfrac12(0)+\tfrac12\cdot\tfrac12 = \tfrac14\text{.}\end{aligned}$$ The only path is $0\to1\to1\to0$.
Read this in the notes: Unit IX, Chapman–Kolmogorov Equations
Show Answer
Answer: (A) Both (A) and (R) are true and (R) is the correct explanation of (A).
(R) is the Chapman–Kolmogorov equation. A sum of non-negative terms is at least as large as any one of them, which gives (A). This inequality is the tool for proving that communication is transitive and that recurrence and period are class properties. Both are true and (R) explains (A).
Read this in the notes: Unit IX, Chapman–Kolmogorov Equations
Show Answer
Answer: (D) $\left(\tfrac47,\tfrac37\right)$.
The chain is irreducible and aperiodic, so $P^n$ converges to a matrix with identical rows $\pi$, where $\pi=\pi P$: $0.3\pi_0=0.4\pi_1$ with $\pi_0+\pi_1=1$ gives $\pi=\left(\tfrac47,\tfrac37\right)$. For a two-state chain $\pi_0=\dfrac{p_{10}}{p_{01}+p_{10}}$.
Read this in the notes: Unit IX, Limiting Behaviour of $n$-Step Probabilities
Show Answer
Answer: (C) $\lim P^n$ does not exist, but $\tfrac1n\sum_{k=1}^{n}P^k$ converges to the matrix with rows $\left(\tfrac12,\tfrac12\right)$.
$P^n$ is $P$ for odd $n$ and $I$ for even $n$, so it oscillates: the chain has period 2. The stationary distribution $\left(\tfrac12,\tfrac12\right)$ exists and is unique, and it gives the long-run proportion of time in each state: the averages of the powers converge although the powers themselves do not.
Read this in the notes: Unit IX, Limiting Behaviour of $n$-Step Probabilities
Show Answer
Answer: (A) 0.3.
The characteristic roots of $P$ are 1 and $1-p_{01}-p_{10}=1-0.3-0.4=0.3$ (trace $1.3$ minus 1). So $p_{00}^{(n)}=\tfrac47+\tfrac37(0.3)^n$; check $n=2$: $0.571+0.039=0.61$. The second largest root governs the speed of convergence.
Read this in the notes: Unit IX, Limiting Behaviour of $n$-Step Probabilities
Show Answer
Answer: (B) I, II and IV only.
(I), (II) and (IV) are the ergodic theorem for Markov chains. (III) is false: for a chain of period $d$, $p_{jj}^{(n)}=0$ unless $d$ divides $n$, while $p_{jj}^{(nd)}\to d/\mu_j\gt0$, so the sequence has no limit.
Read this in the notes: Unit IX, Limiting Behaviour of $n$-Step Probabilities
Show Answer
Answer: (C) $\left(\tfrac14,\tfrac12,\tfrac14\right)$.
Solve $\pi=\pi P$: $\pi_0=0.5\pi_0+0.25\pi_1$ gives $\pi_1=2\pi_0$, and by symmetry $\pi_2=\pi_0$. With $\sum\pi_i=1$: $\left(\tfrac14,\tfrac12,\tfrac14\right)$. The matrix is not doubly stochastic (the middle column sums to 1.5), so the uniform distribution is not stationary.
Read this in the notes: Unit IX, Stationary Distribution
Show Answer
Answer: (A) $\dfrac15$.
If the columns also sum to 1, then $$\begin{aligned}&\left(\tfrac1N,\dots,\tfrac1N\right)P \\[4pt] &\quad = \left(\tfrac1N,\dots,\tfrac1N\right)\text{,}\end{aligned}$$ so the uniform distribution is stationary, and for an irreducible finite chain the stationary distribution is unique.
Read this in the notes: Unit IX, Stationary Distribution
Show Answer
Answer: (D) $\dfrac13$.
With states rain, dry: $\pi_R=0.6\pi_R+0.2\pi_D$, so $0.4\pi_R=0.2\pi_D$, $\pi_D=2\pi_R$ and $\pi_R=\tfrac13$. Equivalently $$\begin{aligned}\pi_R &= \dfrac{p_{DR}}{p_{DR}+p_{RD}} \\[4pt] &= \dfrac{0.2}{0.2+0.4}\text{.}\end{aligned}$$
Read this in the notes: Unit IX, Stationary Distribution
Show Answer
Answer: (B) $\left(\tfrac14,\tfrac12,\tfrac14\right)$.
$p_{01}=1$, $p_{10}=p_{12}=\tfrac12$, $p_{21}=1$. Detailed balance $\pi_0p_{01}=\pi_1p_{10}$ gives $\pi_1=2\pi_0$, and similarly $\pi_1=2\pi_2$: the $\text{Bin}(2,\tfrac12)$ distribution $\left(\tfrac14,\tfrac12,\tfrac14\right)$. The chain has period 2, so this is the long-run proportion of time, not a limit of $p_{ij}^{(n)}$.
Read this in the notes: Unit IX, Stationary Distribution
Show Answer
Answer: (C) I, III and IV only.
(I) and (III) are basic. (II) is false: an irreducible chain has a stationary distribution only if it is positive recurrent; the symmetric random walk on the integers has none. (IV) Every mixture $\alpha\pi^{(1)}+(1-\alpha)\pi^{(2)}$ of the stationary distributions of the two classes is stationary.
Read this in the notes: Unit IX, Stationary Distribution
Show Answer
Answer: (A) 0.7.
For a fair game the probability of reaching $N$ before 0 from $i$ is $\dfrac iN=0.3$, so the probability of ruin is $1-\dfrac iN=0.7$.
Read this in the notes: Unit IX, Gambler's Ruin Problem
Show Answer
Answer: (D) $\dfrac17$.
With $r=\dfrac qp=2$: $$\begin{aligned}P(\text{reach }N) &= \dfrac{1-r^i}{1-r^N} \\[4pt] &= \dfrac{1-2}{1-8} = \dfrac17\text{.}\end{aligned}$$ Check by first-step analysis: $h_1=\tfrac13h_2$, $h_2=\tfrac13+\tfrac23h_1$ give $h_1=\tfrac17$.
Read this in the notes: Unit IX, Gambler's Ruin Problem
Show Answer
Answer: (B) 21.
For $p=\tfrac12$ the expected duration from $i$ is $D_i=i(N-i)=3\times7=21$ plays. It satisfies $D_i=1+\tfrac12D_{i+1}+\tfrac12D_{i-1}$ with $D_0=D_N=0$.
Read this in the notes: Unit IX, Gambler's Ruin Problem
Show Answer
Answer: (C) $\dfrac49$.
Letting $N\to\infty$ in the ruin formula with $p\gt q$: $$\begin{aligned}P(\text{ruin}) &= \left(\dfrac qp\right)^i = \left(\dfrac23\right)^2 \\[4pt] &= \dfrac49\text{.}\end{aligned}$$ If $p\le\tfrac12$ ruin is certain.
Read this in the notes: Unit IX, Gambler's Ruin Problem
Show Answer
Answer: (A) $\dfrac38$.
It must take two steps up and two down: $u_4=\binom42\left(\tfrac12\right)^4=\dfrac{6}{16}=\dfrac38$.
Read this in the notes: Unit IX, Simple Random Walk
Show Answer
Answer: (D) 20 and 96.
Each step has mean $p-q=0.2$ and variance $1-(p-q)^2=4pq=0.96$. So $E(S_{100})=20$ and $V(S_{100})=96$. ($24=npq$ is the variance of the number of upward steps.)
Read this in the notes: Unit IX, Simple Random Walk
Show Answer
Answer: (B) 0.8.
The probability of eventual return is $1-|p-q|=1-0.2=0.8$. It equals 1 only for the symmetric walk; for $p\ne q$ the walk drifts away and every state is transient.
Read this in the notes: Unit IX, Simple Random Walk
Show Answer
Answer: (C) $\dfrac18$.
The walk must stay strictly on one side for steps 1 to 3 and return at step 4: the paths $++--$ and $--++$, each of probability $\tfrac1{16}$, total $\tfrac18$. In general $f_{2n}=\dfrac{u_{2n}}{2n-1}$; here $\dfrac{3/8}{3}$.
Read this in the notes: Unit IX, Simple Random Walk
Show Answer
Answer: (A) 0.195.
By independent and stationary increments this is $P\{N(3)-N(1)=3\}=P\{N(2)=3\}$ with mean $2\times2=4$: $e^{-4}\dfrac{4^3}{3!}=0.195$.
Read this in the notes: Unit IX, Poisson Process
Show Answer
Answer: (D) $\dfrac49$.
Given $N(t)=n$, the $n$ events are independently and uniformly placed on $(0,t)$, so $N(s)\sim\text{Bin}\left(n,\tfrac st\right)$. Here $\text{Bin}\left(2,\tfrac13\right)$: $2\cdot\tfrac13\cdot\tfrac23=\tfrac49$. The answer does not involve the rate.
Read this in the notes: Unit IX, Poisson Process
Show Answer
Answer: (B) $\dfrac25$.
The first events occur after independent exponential times with rates 2 and 3, and $P(T_1\lt T_2)=\dfrac{\lambda_1}{\lambda_1+\lambda_2}=\dfrac25$. The superposed process is Poisson with rate 5.
Read this in the notes: Unit IX, Poisson Process
Show Answer
Answer: (C) 0.135.
Thinning a Poisson process gives a Poisson process: type A customers arrive at rate $6\times\tfrac13=2$ per hour, independently of the others. $P(\text{none})=e^{-2}=0.135$.
Read this in the notes: Unit IX, Poisson Process
Show Answer
Answer: (A) 6.
For $s\lt t$, $N(t)=N(s)+[N(t)-N(s)]$ with independent parts, so $$\begin{aligned}\operatorname{Cov}(N(s),N(t)) &= V(N(s)) \\[4pt] &= \lambda s = 6\text{;}\end{aligned}$$ in general $\lambda\min(s,t)$. The correlation is $\sqrt{s/t}=\sqrt{0.6}$.
Read this in the notes: Unit IX, Poisson Process
Show Answer
Answer: (D) 12 and 30.
For a compound Poisson process $E[X(t)]=\lambda tE(Y)=6\times2=12$ and $$\begin{aligned}V[X(t)] &= \lambda tE(Y^2) = 6\,(1+4) \\[4pt] &= 30\text{.}\end{aligned}$$ Note $E(Y^2)$, not $V(Y)$.
Read this in the notes: Unit IX, Poisson Process
Show Answer
Answer: (B) I, III and IV only.
(I) and (III) are defining properties, and (IV) follows from independent increments with $E[N(t)-N(s)]=\lambda(t-s)$. (II) is false: the increments are stationary, but the process itself has mean $\lambda t$ and variance $\lambda t$ that grow with $t$.
Read this in the notes: Unit IX, Poisson Process
Show Answer
Answer: (C) 1.5 and 0.75.
The waiting time to the $n$th event is the sum of $n$ independent exponential times: gamma with shape $n$ and rate $\lambda$. Mean $\dfrac n\lambda=1.5$, variance $\dfrac{n}{\lambda^2}=0.75$.
Read this in the notes: Unit IX, Inter-arrival and Waiting Time Distributions
Show Answer
Answer: (A) 2.
Given $N(t)=n$, the event times are distributed as the order statistics of $n$ independent uniform variables on $(0,t)$. The smallest has expectation $\dfrac{t}{n+1}=\dfrac{10}{5}=2$.
Read this in the notes: Unit IX, Inter-arrival and Waiting Time Distributions
Show Answer
Answer: (B) 0.368.
The exponential distribution has no memory: $$\begin{aligned}P(T\gt1\mid T\gt0.5) &= P(T\gt0.5) \\[4pt] &= e^{-2(0.5)} = e^{-1} = 0.368\text{.}\end{aligned}$$ The unconditional $P(T\gt1)=e^{-2}=0.135$.
Read this in the notes: Unit IX, Inter-arrival and Waiting Time Distributions
Show Answer
Answer: (D) 0.264.
$$\begin{aligned}P(S_2\le1) &= P\{N(1) \ge 2\} \\[4pt] &= 1-e^{-1}(1+1) = 1-0.736 \\[4pt] &= 0.264\text{.}\end{aligned}$$ The waiting time to the second event exceeds $t$ exactly when fewer than two events have occurred by time $t$.
Read this in the notes: Unit IX, Inter-arrival and Waiting Time Distributions
Show Answer
Answer: (C) geometric on $\{1,2,\dots\}$ with mean 2.
For the Yule process with $X(0)=1$, $$\begin{aligned}P\{X(t) &= n\} \\[4pt] &= e^{-\lambda t}(1-e^{-\lambda t})^{n-1}\text{,}\end{aligned}$$ $n\ge1$: geometric with success probability $e^{-\lambda t}=\tfrac12$ and mean $e^{\lambda t}=2$.
Read this in the notes: Unit IX, Birth and Death Processes
Show Answer
Answer: (A) 5.
Each individual survives to time $t$ with probability $e^{-\mu t}=\tfrac12$, independently, so the number alive is $\text{Bin}(10,\tfrac12)$ with mean 5.
Read this in the notes: Unit IX, Birth and Death Processes
Show Answer
Answer: (B) $\dfrac12$.
If $\lambda\le\mu$ extinction is certain; if $\lambda\gt\mu$ the probability of extinction from $i$ individuals is $\left(\dfrac\mu\lambda\right)^i=\dfrac12$. The mean population size $e^{(\lambda-\mu)t}$ grows without bound although extinction still has probability $\tfrac12$.
Read this in the notes: Unit IX, Birth and Death Processes
Show Answer
Answer: (D) 0.135.
$$\begin{aligned}\pi_n &= \pi_0\prod_{k=1}^{n}\dfrac{\lambda_{k-1}}{\mu_k} \\[4pt] &= \pi_0\dfrac{(\lambda/\mu)^n}{n!}\text{,}\end{aligned}$$ so the stationary distribution is Poisson with mean $\dfrac\lambda\mu=2$, and $\pi_0=e^{-2}=0.135$.
Read this in the notes: Unit IX, Birth and Death Processes
Show Answer
Answer: (A) 4 and 0.8.
$\rho=0.8$. $L=\dfrac{\rho}{1-\rho}=4$; $W=\dfrac{1}{\mu-\lambda}=1$ hour in the system; $W_q=W-\dfrac1\mu=0.8$ hour; $L_q=\lambda W_q=3.2$. Little's formula $L=\lambda W$ ties them together.
Read this in the notes: Unit IX, M/M/1 Queue
Show Answer
Answer: (C) 0.512.
The stationary distribution is geometric, $\pi_n=(1-\rho)\rho^n$, so $P(N\ge n)=\rho^n=(0.8)^3=0.512$. ($0.102$ is $P(N=3)$.)
Read this in the notes: Unit IX, M/M/1 Queue
Show Answer
Answer: (B) 0.135.
In the steady state the time in the system (waiting plus service) is exponential with rate $\mu-\lambda=1$. $P(W\gt2)=e^{-2}=0.135$.
Read this in the notes: Unit IX, M/M/1 Queue
Show Answer
Answer: (D) I, II and III only.
(I) and (II): $\pi_n=(1-\rho)\rho^n$, summable only for $\rho\lt1$. (III) is Burke's theorem. (IV) is false: the server is idle with probability $\pi_0=1-\rho$ and busy with probability $\rho$.
Read this in the notes: Unit IX, M/M/1 Queue