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
Given a transition probability matrix with three states as: Find the value of and .
Solution
Idea. For a homogeneous chain, , the entry of .
(a) — row 3 of times column 2 of :
(b) . First row 3 of :
Then, multiplying by column 1 of :
✓ Checked by computer We checked in Python (exact fractions): p₃₂⁽²⁾ = 11/25 = 0.44 and p₃₁⁽³⁾ = 49/125 = 0.392.
Define a Poisson process and state at least three applications of the same.
Solution
Definition. A counting process ( = number of events in ) is a Poisson process with rate if
- ;
- it has independent increments — counts in disjoint intervals are independent;
- it has stationary increments, and the number of events in any interval of length is Poisson:
Equivalently, in a short interval : and . The times between events are independent exponential variables with mean ; .
Applications.
- Queues — arrivals of customers at a bank, calls at a telephone exchange, patients at a hospital (the “M” in M/M/1).
- Reliability — failures of a repairable system over time; shocks to equipment.
- Physics — emission of particles from a radioactive source (counts on a Geiger counter).
- Insurance — arrival of claims (the Cramér–Lundberg risk model).
- Traffic and networks — vehicles passing a point, packets arriving at a router, hits on a website.
- 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).
On January 1 (this year), brands , and of a commodity had 40, 40 and 20 percent of the market share. Basing upon a market research, it is compiled that brand retains 90 percent of its customers, while gaining 5 percent of ’s customers and 10 percent of ’s customers. Brand retains 85 percent of its customers, while gaining 5 percent of ’s customers and 7 percent of ’s customers. Brand retains 83 percent of its customers and gains 5 percent of ’s customers and 10 percent of ’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?
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.
(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. with :
- A:
- B:
- C:
So A 40%, B 37.4%, C 22.6%.
Equilibrium. The chain is regular (all entries positive), so the shares tend to the unique with , : That is and . From the first, ; substituting in the second, , so , , . Then gives .
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.
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 , where .
Solution
Transition probability matrix. For a Markov chain with states , the TPM is with . Its entries are non-negative and each row sums to 1 (a stochastic matrix).
Regular. is regular if some power has all entries strictly positive. Then converges to a matrix with identical rows , 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. already has all entries positive (), so it is regular, and hence ergodic.
Limit. Solve , : So and (Using the two-state formula of Q9 with , : limit rows ; the convergence is at rate .)
✓ 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).
Let be the state of a flea at time
[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 . Also obtain .
Solution
Transition matrix. Reading the arrows (rows = from, columns = to; each row sums to 1):
: sum over the intermediate state of :
✓ Checked by computer We checked in Python (exact fractions): p₁₃⁽²⁾ = 7/25 = 0.28.
If is a Poisson process and , find and comment.
Solution
Working. For , the event is the same as . By independent and stationary increments,
So, given , .
Comment.
- The result does not depend on : once we know events occurred in , the rate tells us nothing more.
- It says that the event times behave like independent points uniformly distributed on : each falls in with probability , independently. (Indeed, given , the arrival times are distributed as the order statistics of uniform variables on .)
- : 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.
Consider the Markov Chain with transition probability matrix: Show that the states are periodic and persistent non-null.
Solution
Irreducible. and , 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 and , and a return to any state is possible only in an even number of steps. Since and :
- only for even (and ), so ;
- likewise .
All states are periodic with period 2.
Persistent non-null.
- Persistent: for state 1, (from 1 the chain goes to 0 or 2 and returns to 1 next step for certain), so . For state 0: , , …, , so ; similarly . (Also .)
- Non-null: mean recurrence times all finite.
Check with the stationary distribution: gives , and ✓. (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.
Discuss Markov chain and transition probability matrix with an example. For the following transition probability matrix, determine the market share of brands and from period 0 to 1, when their initial market share breakdown is 50%:
| From \ To | ||
| 0.9 | 0.1 | |
| 0.5 | 0.5 |
Solution
Markov chain. A sequence of random variables (the states of a system at successive times) is a Markov chain if the future depends on the past only through the present: Transition probability matrix. The matrix of one-step transition probabilities; and each row sums to 1. If is the row vector of state probabilities at time , then and .
Example. Weather each day is Dry (D) or Wet (W): 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 for brands : 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).
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 of a Markov chain with t.p.m. Hence, obtain .
Solution
All states of an irreducible chain are of the same type. Let and communicate: and for some . Going , then steps from to , then :
- Recurrence: is recurrent iff . The inequalities show and converge or diverge together, so are both recurrent or both transient.
- Null/non-null: (null) iff , by the same inequalities.
- Period: , so ; if then , so , hence . Thus , and by symmetry .
In an irreducible chain every pair of states communicates, so all states are of the same type (see Q27 for details).
Transition probability. , the probability of moving from to in one step (independent of for a homogeneous chain); is the -step transition probability, the entry of .
for . The eigenvalues are the roots of : Write with the projections (Check: , , , , .) Hence :
Limit. Since , , so and Both rows are the stationary distribution ; 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.
Show that the difference of two independent Poisson processes is not a Poisson process.
Solution
Let and be independent Poisson processes with rates , and .
1. It is not a counting process. A Poisson process counts events, so it takes only values and never decreases. But so is negative with positive probability, and its paths jump down whenever has an event.
2. Its distribution is not Poisson. By independence, For a Poisson variable the mean equals the variance; here they differ (). Also the probability generating function is which contains negative powers of and is not of the Poisson form .
Hence is not a Poisson process. (It does have independent, stationary increments; its distribution is the Skellam distribution.) By contrast, the sum is a Poisson process with rate .
✓ 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.
Let be a Markov chain having a sample space and transition probability matrix Show that states 3 and 4 are transient states.
Solution
Structure. From 1 and 2 the chain moves only among : 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 starting from 3 is to stay there every step: The first-return probability is (once the chain leaves 3 it is in the closed set ). Since , state 3 is transient. Equivalently,
State 4. Similarly and , ; 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 for ever and settles in .)
✓ Proof checked step by step Every step was checked: f₃₃ = f₄₄ = 1/2 < 1, and Σ p₃₃⁽ⁿ⁾ = Σ p₄₄⁽ⁿ⁾ = 1 + Σ(1/2)ⁿ = 2 < ∞.
Stating the underlying assumptions, find the expression of the probability of happening events in the time interval in Poisson process. Hence obtain the distribution of inter-arrival times.
Solution
Assumptions (postulates). = number of events in , , and
- Independence: the numbers of events in non-overlapping intervals are independent.
- Homogeneity: the probability of events in an interval depends only on its length.
- Orderliness / regularity: in a small interval , so .
Equations. Let . For , either there were events by and none in , or and one, or fewer and two or more. By independence, Subtract , divide by and let : with and for .
Solution.
- .
- Put ; then , , . So , , and by induction .
The number of events in is Poisson with mean .
Inter-arrival times. Let be the time of the first event. exactly when there is no event in : Given the th event occurs at time , the next gap exceeds iff there is no event in ; by independence and homogeneity this has probability whatever happened before . Hence the inter-arrival times are independent, each exponential with mean : (The waiting time to the th event, , is then Gamma.)
✓ 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.
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 and .
Solution
TPM and its properties. For a Markov chain, with . Properties:
- and for every row (a stochastic matrix).
- -step probabilities are the entries of (Chapman–Kolmogorov: ).
- State probabilities evolve as .
- always has eigenvalue 1; a stationary distribution satisfies .
- If some is all positive (regular), tends to a matrix with equal rows .
Calculations with
= row 0 × column 0:
: first row 1 of :
Then with column 2 of :
✓ Checked by computer We checked in Python (exact fractions): p₀₀⁽²⁾ = 17/50 = 0.34 and p₁₂⁽³⁾ = 73/250 = 0.292.
Define -step transition probability in a Markov chain. Prove the following Chapman-Kolmogorov equation:
Solution
-step transition probability. the probability of going from to in exactly steps (for a homogeneous chain it does not depend on ). , ; is the entry of .
Chapman–Kolmogorov equations.
First form: condition on the state after steps. By the Markov property, . Hence
Second form: condition on the state after the first step. using the Markov property and homogeneity ().
Together: In matrix form, ; by induction . More generally , i.e. . ∎
✓ 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.
Given the following Transition Probability Matrix of a Markov chain having three states 1, 2 and 3 with initial distribution , find the value of :
Solution
Rule. For a Markov chain, the probability of a path is the initial probability times the product of the one-step transition probabilities:
Here the path is : (From the matrix: (row 2, column 3), , ; .)
✓ Checked by computer We checked in Python: 0.2 × 0.2 × 0.3 × 0.4 = 0.0048.
Let be a Markov chain on the state space with initial probability values , , and one-step transition probability matrix given by Compute (i) . (ii) .
Solution
(We read “” as .)
(i) Given , the path :
(ii) is not given, so we sum over it:
✓ Checked by computer We checked in Python (exact fractions): (i) 1/32 and (ii) (17/60)(3/4)(1/4) = 17/320.
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. for and ). Starting from either state 1 or 2, let the number of steps or transitions needed before absorption into state 0 takes place. Derive the probability distribution of . What is the expected number of steps or transitions before absorption into state 0?
Solution
Transition matrix.
Distribution of . Whether the chain is in state 1 or state 2, at every step it is absorbed into 0 with probability and stays in with probability , independently of the past. So the number of steps until absorption is the number of trials up to the first “success” with success probability : a geometric distribution, the same whether we start from 1 or 2. Check: .
Expected number of steps.
Check by the fundamental matrix. With (transitions among the transient states 1, 2): 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 , with , , 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.
For a finite irreducible aperiodic Markov chain with -step transition probabilities , show that exists and is independent of the initial state.
Solution
Setting. A finite chain with states (), irreducible and aperiodic. We show that exists and does not depend on .
Step 1: some power of is strictly positive. For each , the set is closed under addition () and has gcd 1 (aperiodic), so by a standard number-theory lemma it contains every . Since , for some , and then for all large . The chain is finite, so there is one with for all . (Clearly .)
Step 2: max and min are monotone. Fix ; let and . Since is a weighted average of the (weights summing to 1), So decreases and increases; both converge.
Step 3: the gap shrinks geometrically. . Let be a state where . Every weight , so and similarly, using a state where the value is , Hence and, by Step 2, .
Conclusion. and have the same limit , and every lies between them. So independent of the initial state. Moreover , (finite sum of rows), and letting in gives : the limit is the unique stationary distribution, with . ∎
✓ 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.
Explain the concept of recurrence and transience in the case of finite Markov chains.
Solution
First-return probability. For a state , let be the probability that, starting from , the chain returns to for the first time at step , and
Recurrent (persistent) state: — return is certain, and so the chain returns infinitely often. Its mean recurrence time is ; the state is positive (non-null) recurrent if and null recurrent if .
Transient state: — there is a positive probability of never returning, so the chain visits only finitely often (the number of returns is geometric).
Criterion. is recurrent iff , and transient iff (the expected number of visits); for transient , (see Q30).
In a finite Markov chain.
- Recurrence and transience are class properties: all states in a communicating class are of the same type.
- A class is recurrent if and only if it is closed (cannot be left); a class from which the chain can escape is transient.
- Not all states can be transient: there is at least one recurrent class (see Q35).
- There are no null-recurrent states: every recurrent state is positive recurrent.
- An irreducible finite chain therefore has all states positive recurrent.
- Starting anywhere, the chain eventually enters a recurrent (closed) class and stays there; time spent in transient states is finite.
Example. : is closed, so 1 and 2 are recurrent; from 3 the chain leaks into , , 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.
If is a recurrent state with period with a given mean recurrence time , then show that
Solution
Notation. = probability of first return to at step ; is recurrent, so ; is the mean recurrence time. The period of is , so and unless .
Tool: the discrete renewal theorem (Erdős–Feller–Pollard). If , , , and , (), then
Renewal equation for . Splitting according to the time of the first return:
Reduce to the aperiodic case. Put and . Since only multiples of contribute, Here (recurrent), (because the period of is exactly ), and
Conclusion. By the renewal theorem,
- If is aperiodic (): .
- If is null recurrent (): the limit is 0.
- And for not a multiple of . ∎
Example. In Q7, state 0 has period 2 and ; indeed ✓.
✓ 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.
Suppose there is a product of brands and 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.
Solution
Set-up. (rows: from A, B), initial shares . All entries are positive, so the chain is regular and the shares converge to the stationary whatever the start.
Steady state. , :
Path to the steady state. , , , … The gap to shrinks by the factor 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).
Describe classification of states in a Markov chain. Define -step transition probability. Prove the following Chapman – Kolmogorov equation for the transition probabilities:
Solution
Classification of states.
- Accessible: is accessible from () if for some .
- Communicating: if each is accessible from the other. This splits the states into communicating classes. A chain with only one class is irreducible.
- Closed set: a set with for , . An absorbing state is a closed set of one state ().
- Recurrent (persistent) and transient: is recurrent if return is certain () and transient if . Recurrent states are positive (non-null) if the mean recurrence time and null if .
- Periodic and aperiodic: the period ; periodic if , aperiodic if .
- Ergodic state: positive recurrent and aperiodic; for it .
These properties are shared by all states of a communicating class.
-step transition probability. , the entry of .
Chapman–Kolmogorov. Condition on the state after the first step: By the Markov property and homogeneity, the second factor is . Hence ∎ (Conditioning instead on gives ; in matrix form , so .)
✓ 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.
Define transient and persistent states in a Markov chain. Let be a Markov chain with three states and with transition matrix The initial probability distribution is Find (i) and (ii)
Solution
Transient and persistent states. A state is persistent (recurrent) if, starting from , the chain returns to with probability 1 (); equivalently . It is transient if the return probability (): the chain visits it only finitely often.
Here is finite and irreducible (), so all three states are persistent (non-null) and aperiodic.
(i)
(ii)
✓ 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.
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.
Solution
Given. , so there are with and ; and is recurrent, i.e. .
Key inequality. One way to go from back to in steps is: in steps, in steps, in steps. By Chapman–Kolmogorov (all terms non-negative),
Sum over . So , and is recurrent. ∎
(By symmetry, if is transient so is : otherwise recurrent would force 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.
Show that, for a Markov chain, if state j is persistent non-null, then as when state j is periodic with period t; & when state j is aperiodic.
Solution
(This is the same question as Q20 (2010, 1a) above. The worked solution is repeated here so that each question is complete.)
Notation. = probability of first return to at step ; is recurrent, so ; is the mean recurrence time. The period of is , so and unless .
Tool: the discrete renewal theorem (Erdős–Feller–Pollard). If , , , and , (), then
Renewal equation for . Splitting according to the time of the first return:
Reduce to the aperiodic case. Put and . Since only multiples of contribute, Here (recurrent), (because the period of is exactly ), and
Conclusion. By the renewal theorem,
- If is aperiodic (): .
- If is null recurrent (): the limit is 0.
- And for not a multiple of . ∎
Example. In Q7, state 0 has period 2 and ; indeed ✓.
✓ 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.
For the Markov chain with transition probability matrix , obtain .
Solution
Eigenvalues. , i.e. , with roots
Spectral form. , where and are fixed by () and ():
where .
Proof by induction. True for . Since and (check: row of is the stationary vector; because by Cayley–Hamilton), .
Check : entry is ✓.
Limit. As , , so
✓ Checked by computer We checked in Python (sympy) that the formula reproduces P, P² and P³ exactly for symbolic a and b.
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.
Solution
Setting. In an irreducible chain every two states communicate: there are with By Chapman–Kolmogorov (going through the other state),
1. Transient or persistent. is persistent iff . Summing over : if then , and conversely. So and are both persistent or both transient.
2. Same period. , so . If , then by , so and hence . Thus divides every with , so . By symmetry ; hence .
3. Null or non-null. Suppose both are persistent with period . By the limit theorem (Q20), and (0 if null). As is a multiple of , apply along multiples of : If is non-null () the right side is positive, so : is non-null. If is null, then , and the second inequality in , , forces : 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.
Define irreducible Markov chain. Show that in an irreducible Markov chain, all states are of the same type.
Solution
Irreducible Markov chain. A chain is irreducible if every state can be reached from every other state: for all there is an with . Equivalently, the only closed set is the whole state space — the states form a single communicating class.
Example: is irreducible; is not (state 1 cannot be reached from 0).
All states are of the same type. Take any ; by irreducibility and for some . Then
- Persistent/transient: and diverge together, so both states are persistent or both transient.
- Null/non-null: along the relevant subsequence iff , so both are null or both non-null (using ).
- Period: , and ; so 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).
Consider the Markov chain with the states (0, 1, 2) and with transition probability matrix and the initial distribution Obtain the value of:
Solution
Note on the question. The matrix as printed has , so row 2 sums to ; this is a misprint for (the same matrix appears in Q23). The event “” also repeats ; the intended event is . We solve that version with
Path probability. Path , with :
(As printed, with both and , 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.
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 & if a state j is transient, then for all i.
Solution
Recurrent and transient. Let be the probability that the first return to is at step , and the probability of ever returning. State is recurrent if (return is certain, so it happens infinitely often) and transient if (finitely many visits).
First-passage decomposition. Splitting by the time of the first return,
Generating functions. For let Multiplying the decomposition by and summing over (a convolution):
Let . Both series have non-negative coefficients, so by Abel’s theorem and . Hence So and is transient iff the sum is finite. (The sum is the expected number of visits to .)
If is transient, for every . With the first-passage probabilities from to (), Summing over : A convergent series has terms tending to 0, so . (For 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.
Describe a Poisson process. Obtain the distribution of interarrival times in a Poisson process.
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). = number of events in , , and
- Independence: the numbers of events in non-overlapping intervals are independent.
- Homogeneity: the probability of events in an interval depends only on its length.
- Orderliness / regularity: in a small interval , so .
Equations. Let . For , either there were events by and none in , or and one, or fewer and two or more. By independence, Subtract , divide by and let : with and for .
Solution.
- .
- Put ; then , , . So , , and by induction .
The number of events in is Poisson with mean .
Inter-arrival times. Let be the time of the first event. exactly when there is no event in : Given the th event occurs at time , the next gap exceeds iff there is no event in ; by independence and homogeneity this has probability whatever happened before . Hence the inter-arrival times are independent, each exponential with mean : (The waiting time to the th event, , is then Gamma.)
✓ 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.
Consider the following transition probability matrix of a Markov chain Classify the states of the associated MC.
Solution
Reading the matrix (states 1–6):
- 1 and 2 go to ;
- 3 and 4 go to ;
- 5 and 6 go to .
So ; ; nothing returns to an earlier group, and nothing leads back to 3.
Communicating classes.
| Class | Closed? | Type | Period |
|---|---|---|---|
| No (leaks to 3) | Transient | Aperiodic () | |
| No; and no return | Transient (return impossible, ) | No return, period undefined | |
| No (leaks to 5, 6) | Transient, | Aperiodic () | |
| Yes | Persistent non-null (ergodic) | Aperiodic () |
Details.
- For states 5 and 6, the closed class has ; return to 5 has , , so and ; the stationary distribution on is .
- From the chain leaves with probability per step and never returns, so ; 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 , and tends to a matrix in which every row is .
✓ 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.
Let N(t), the number of times a system fails upto time t, be a Poisson process with . Show that the system does not fail in an interval of length with probability
Solution
Given. is a Poisson process with , i.e. rate .
Proof. Take any interval . By stationary increments, the number of failures in it, , has the same distribution as , which is Poisson with mean : “No failure in the interval” is :
From the postulates directly. Let = probability of no failure in an interval of length . For a small , by independence, . So with , giving . ∎
Interpretation. The time to the next failure, measured from any instant, is exponential with mean (the memoryless property): the reliability of the system over a mission of length is .
✓ 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.
The following is the transition probability matrix of a Markov chain:
| 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.
Solution
Regular? A chain is regular if some power has all entries positive. Here the powers alternate between (odd powers) and (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 , 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 and , so the chain is ergodic. Its states are positive recurrent, and there is a unique stationary distribution:
But does not converge (it oscillates between and ). Only the averages converge, to a matrix with every row .
(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).
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.
Solution
Markov chain. A sequence of random variables taking values in a countable state space is a Markov chain if for all states and all : given the present, the future is independent of the past. If these probabilities do not depend on , the chain is homogeneous, with transition matrix .
Classification of states.
- By communication: if for some ; if both ways. Classes; closed sets; absorbing states (); irreducible chain (one class).
- By recurrence: with = probability of ever returning, is persistent (recurrent) if and transient if ; persistent states are non-null if the mean recurrence time , null if .
- By periodicity: period ; aperiodic if .
- 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 were transient. For a transient state , as for every (Q30). Fix . Each row of sums to 1: Since is finite, we may take the limit term by term: the left side tends to . This contradicts . ∎
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 .)
✓ 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.
State and prove Chapman-Kolmogorov equation.
Solution
(This is the same question as Q14 (2017, 4b) above. The worked solution is repeated here so that each question is complete.)
-step transition probability. the probability of going from to in exactly steps (for a homogeneous chain it does not depend on ). , ; is the entry of .
Chapman–Kolmogorov equations.
First form: condition on the state after steps. By the Markov property, . Hence
Second form: condition on the state after the first step. using the Markov property and homogeneity ().
Together: In matrix form, ; by induction . More generally , i.e. . ∎
✓ 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.
Show that the inter-occurrence time follows the exponential distribution in the case of a Poisson process.
Solution
Set-up. is a Poisson process with rate : independent and stationary increments, and . Let be the time to the first event and the time between the th and th events.
First inter-occurrence time. if and only if no event occurs in : So and the exponential distribution with mean .
Later inter-occurrence times. Given that the th event occurred at time (and given the whole history up to ), by independent increments (the future count does not depend on the past) and stationary increments (it depends only on the length ). This does not depend on or on the earlier gaps.
Conclusion. The inter-occurrence times are independent and identically distributed, each exponential with parameter : ∎ (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.
For a finite irreducible aperiodic Markov chain with n-step transition probabilities show that exists and is independent of the initial state.
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 (), irreducible and aperiodic. We show that exists and does not depend on .
Step 1: some power of is strictly positive. For each , the set is closed under addition () and has gcd 1 (aperiodic), so by a standard number-theory lemma it contains every . Since , for some , and then for all large . The chain is finite, so there is one with for all . (Clearly .)
Step 2: max and min are monotone. Fix ; let and . Since is a weighted average of the (weights summing to 1), So decreases and increases; both converge.
Step 3: the gap shrinks geometrically. . Let be a state where . Every weight , so and similarly, using a state where the value is , Hence and, by Step 2, .
Conclusion. and have the same limit , and every lies between them. So independent of the initial state. Moreover , (finite sum of rows), and letting in gives : the limit is the unique stationary distribution, with . ∎
✓ 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.
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.
Solution
We write notes on (i), (ii) and (iii).
(i) Discrete-time Markov chains. A sequence of random variables on a countable state space is a Markov chain if — the future depends on the past only through the present. It is homogeneous if these do not depend on . 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, , where is the stationary distribution. Uses: brand switching, weather, manpower planning, queues, inventories, genetics (Wright–Fisher), random walks, page-ranking.
(ii) Transition probability matrix. , . It is a stochastic matrix: , rows sum to 1. Properties:
- -step probabilities: (Chapman–Kolmogorov, ).
- State probabilities: .
- 1 is always an eigenvalue (with right eigenvector ); all eigenvalues satisfy .
- Regular if some ; then (all rows equal to ).
- A doubly stochastic matrix (columns also sum to 1) has the uniform stationary distribution (finite chain).
- An absorbing chain has the canonical form , with fundamental matrix .
(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 ), general service time (mean , variance ), . Observe the number left behind at departure instants: , where is the number of arrivals during a service. Results (Pollaczek–Khinchine): The variance of service time increases congestion; M/D/1 () has half the M/M/1 queue.
G/M/1: general i.i.d. inter-arrival times (mean ), exponential service (rate ). Observe the number found by an arrival. The stationary distribution is geometric, where is the root of (it exists when ). The waiting time of an arrival is 0 with probability and otherwise exponential with rate , so . For Poisson arrivals , 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 σ).
What do you understand by Markov chains? Explain how it can be used for predicting sales-force needs.
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 (). With the transition matrix , the distribution after periods is , and the long-run distribution solves .
Predicting sales-force needs (manpower planning). Treat each salesperson’s career as a Markov chain:
- States = grades or categories, e.g. Trainee (T), Sales Executive (S), Sales Manager (M), plus an absorbing state “Left” (L: resigned, retired, dismissed).
- Transition matrix — estimated from past personnel records: the proportions promoted, staying in grade and leaving each year.
- Projection — if is the vector of numbers in each grade and the recruitment vector, then where is restricted to the working grades. Without recruitment we see how the force shrinks; then we choose to reach the required strength in each grade.
- Long-run results — the expected length of service in each grade, from the fundamental matrix ; the steady-state grade structure under a recruitment policy, ; 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 . Next year, with no recruitment:
- T:
- S:
- M:
To keep 20 trainees the firm must recruit 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.
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 is divergent, where is the matrix of n-step transition probabilities of the Markov chain.
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 be the probability that the first return to is at step , and the probability of ever returning. State is recurrent if (return is certain, so it happens infinitely often) and transient if (finitely many visits).
First-passage decomposition. Splitting by the time of the first return,
Generating functions. For let Multiplying the decomposition by and summing over (a convolution):
Let . Both series have non-negative coefficients, so by Abel’s theorem and . Hence So and is transient iff the sum is finite. (The sum is the expected number of visits to .)
If is transient, for every . With the first-passage probabilities from to (), Summing over : A convergent series has terms tending to 0, so . (For 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.
If , , is a Poisson process then obtain the distribution of given ,
Solution
Note on the question. “” should read (or the question takes ). We find the distribution of given for .
Let be a Poisson process with rate . For , by independent and stationary increments,
So, given , , with mean and variance . It does not involve : given events in , each falls in independently with probability , as if the events were uniformly scattered over . (With : Binomial.)
✓ Derivation checked step by step Every step was checked: independent, stationary increments, the Poisson probabilities, and the Binomial(n, s/t) result.
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.
Solution
Recurrent and transient states in a finite chain. State is recurrent if the chain, started at , returns to with probability 1 (, equivalently ), and transient if (). In a finite chain, a state is recurrent exactly when its class is closed, and every recurrent state is positive recurrent.
Communicating class. is a communicating class if every two states of communicate ( and ).
Claim: the states of are all recurrent or all transient. Take . There are with , . Going ( steps), ( steps), ( steps): Summing over :
- if is recurrent, , so is recurrent;
- if is recurrent, by the same argument is recurrent.
Hence is recurrent iff is: the states of 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.
What is an absorbing Markov chain? How is its study useful?
Solution
Absorbing Markov chain. A state is absorbing if (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, where gives transitions among the transient states and from transient to absorbing states. Then , and the fundamental matrix is
- = expected number of visits to transient state starting from ;
- = expected number of steps before absorption from each transient state;
- , with = probability of ending in absorbing state starting from ;
- the variance of the time to absorption is (squares taken entry by entry).
Example (Q17): , , : 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?”:
- Accounts receivable — states: current, 1–30 days overdue, 31–60 days, …, with absorbing states “paid” and “bad debt”; gives the expected bad debts, used to set the allowance for doubtful accounts.
- Manpower and student flows — absorbing states “left”, “retired”, “graduated”, “dropped out”; gives expected years in each grade or class.
- Gambler’s ruin and random walks — probability of ruin and the expected duration of play.
- Reliability and medicine — machines or patients moving through condition states until failure/recovery or death: expected time to failure, survival.
- Genetics — fixation of a gene in a population (Wright–Fisher model).
- 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.
More on Optimization Techniques
- All Statistics PYQ solutions, topic by topic
- Optimization Techniques topic-wise PYQs (questions only, for practice)
- Statistics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Statistics booklist
Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

