Topics Covered
Contents
- 1. Markov Chains: Definitions
- 2. Classification of States
- 3. Chapman–Kolmogorov Equations
- 4. Limiting Behaviour of $n$-step Probabilities
- 5. Stationary Distribution
- 6. Gambler's Ruin Problem
- 7. Simple Random Walk
- 8. Poisson Process
- 9. Inter-arrival & Waiting Time Distributions
- 10. Birth and Death Processes
- 11. M/M/1 Queue
Topic Overview — What & Why
Unit IX generalises a single random variable to families of random variables indexed by time. The structure of dependence across time enables modelling of dynamic phenomena: weather, stock prices, queues, populations, epidemics.
- Markov chains: the future depends on the past only through the present — the simplest non-trivial form of dependence. Transition probability matrices encode the dynamics.
- Classification of states: recurrent vs transient, periodic vs aperiodic, ergodic — determines long-run behaviour.
- Chapman-Kolmogorov equations: state how multi-step probabilities decompose; matrix form $P^{m+n}=P^mP^n$.
- Limiting behaviour & stationary distribution: for ergodic chains, $p_{ij}^{(n)}\to\pi_j$ regardless of starting state — long-run equilibrium.
- Gambler's ruin & simple random walk: classic problems giving closed-form ruin probabilities and expected durations — templates for many applications.
- Poisson process: the canonical model for random arrivals; inter-arrival times are exponential, count process has stationary independent increments.
- Inter-arrival & waiting time distributions: Exp / Gamma; the memoryless property characterises exponential.
- Birth and death processes: continuous-time Markov chains with nearest-neighbour transitions on $\mathbb N$; backbone of queueing and population models.
- M/M/1 queue: single-server queue with Poisson arrivals and exponential service; performance measures via Little's Law.
1. Markov Chains: Definitions
Why this section? The Markov property — "the future is independent of the past given the present" — is one of the most powerful simplifying assumptions in probability. It makes high-dimensional dynamics tractable.
$n$-step Probabilities
$p_{ij}^{(n)}=P(X_n=j\mid X_0=i).$ Matrix $P^n=(p_{ij}^{(n)}).$Initial Distribution
$\pi_i^{(0)}=P(X_0=i).$ State distribution after $n$ steps: $\boldsymbol\pi^{(n)}=\boldsymbol\pi^{(0)}P^n.$🌍 Where it's used in real life
- Day-to-day weather modelling.
- Google PageRank web surfing.
- Board games like Snakes and Ladders.
- Customer state (active vs churned).
- Text prediction and autocomplete.
2. Classification of States
Accessibility & Communication
$j$ is accessible from $i$ ($i\to j$) if $p_{ij}^{(n)}>0$ for some $n\ge 0.$ States $i,j$ communicate ($i\leftrightarrow j$) if mutually accessible. Equivalence relation → communicating classes.Irreducibility
Chain is irreducible if all states form one class.Recurrence vs Transience
Let $f_{ii}=P(\text{ever return to }i\mid X_0=i).$- Recurrent: $f_{ii}=1$ ⇔ $\sum_n p_{ii}^{(n)}=\infty.$
- Transient: $f_{ii}<1$ ⇔ $\sum_n p_{ii}^{(n)}<\infty.$
- Positive recurrent: $E(\text{return time}\mid X_0=i)<\infty.$
- Null recurrent: recurrent but expected return time infinite.
Intuition. A recurrent state is one the chain is certain to revisit (infinitely often); a transient state is eventually abandoned forever. Positive vs null recurrence is the finer question of whether the average time between visits is finite — and that is exactly what decides whether a proper long-run stationary distribution exists ($\pi_j=1/\mu_{jj}$, which is $0$ in the null-recurrent case).
Periodicity
$d(i)=\gcd\{n\ge 1:p_{ii}^{(n)}>0\}.$ State aperiodic if $d(i)=1.$Ergodic States
Aperiodic + positive recurrent.Class Properties
Recurrence, periodicity, transience are class properties — all states in same class share them.🌍 Where it's used in real life
- Will a system return to a state? (reliability).
- Absorbing states like game-over or default.
- Which conditions are reachable long term.
- Detecting permanent failure states.
- Recurrent vs transient behaviour.
3. Chapman–Kolmogorov Equations
🌍 Where it's used in real life
- Multi-step weather or market predictions.
- n-step transition probabilities in PageRank.
- Reliability over several periods.
- Multi-step customer-journey modelling.
- Genetics across several generations.
4. Limiting Behaviour of $n$-Step Probabilities
For an irreducible aperiodic positive-recurrent chain: $$\lim_{n\to\infty}p_{ij}^{(n)}=\pi_j,\,\text{independent of }i.$$ $\pi_j>0,\,\sum\pi_j=1$ — stationary distribution.
For periodic recurrent chain: limit $p_{ii}^{(nd)}$ exists. For transient: $p_{ij}^{(n)}\to 0.$
🌍 Where it's used in real life
- Long-run market share.
- Steady-state page popularity.
- Equilibrium proportions of weather types.
- Long-run machine up/down time.
- Eventual customer distribution.
5. Stationary Distribution
Existence & Uniqueness
- Finite irreducible chain: unique stationary distribution.
- Infinite irreducible: stationary distribution exists iff chain is positive recurrent.
- For ergodic chain: $\pi_j=1/\mu_{jj}$ where $\mu_{jj}$ is mean recurrence time.
Detailed Balance
$\pi_i p_{ij}=\pi_j p_{ji}\,\forall i,j$ → reversible chain. Sufficient (not necessary) for $\boldsymbol\pi$ stationary.🌍 Where it's used in real life
- Long-run fraction of sunny days.
- Equilibrium market shares.
- Steady-state PageRank scores.
- Long-run queue occupancy.
- Equilibrium genotype frequencies.
6. Gambler's Ruin Problem
Gambler starts with Rs. $i$, plays until reaching Rs. $0$ (ruin) or Rs. $N$ (target). Each round: wins Re. $1$ with probability $p$, loses Re. $1$ with probability $q=1-p.$ States: $\{0,1,\ldots,N\}$, with $0$ and $N$ absorbing.
Probability of Ruin (Reaching 0)
$$P_i=\begin{cases}\dfrac{(q/p)^i-(q/p)^N}{1-(q/p)^N},&p\ne q,\\[6pt]\dfrac{N-i}{N},&p=q=1/2.\end{cases}$$Probability of Reaching $N$
$Q_i=1-P_i.$Expected Duration
For $p=q=1/2$: $D_i=i(N-i).$ For $p\ne q$: $D_i=\frac{1}{q-p}\Big[i-N\frac{1-(q/p)^i}{1-(q/p)^N}\Big].$🌍 Where it's used in real life
- A casino gambler's chance of going broke.
- Risk of ruin for a trading account.
- An insurer's chance of insolvency.
- Win/lose streaks in sport.
- How long a startup's cash lasts.
7. Simple Random Walk
Properties
- Symmetric ($p=q=1/2$) on $\mathbb Z$: null recurrent, $E(X_n)=0,\text{Var}(X_n)=n.$
- Asymmetric: transient, drifts to $\pm\infty.$
- 2D symmetric: null recurrent.
- $d\ge 3$ symmetric: transient.
First Passage Time
For symmetric random walk, $T_a=\inf\{n:X_n=a\}.$ Reflection principle: $P(\max_{k\le n}X_k\ge a)=2P(X_n\ge a)-P(X_n=a).$🌍 Where it's used in real life
- Stock-price movements.
- Diffusion of particles in physics.
- Animal foraging paths.
- Randomised search algorithms.
- Spread of a pollutant.
8. Poisson Process
- $N(0)=0.$
- Independent increments.
- $N(t+s)-N(s)\sim\text{Poisson}(\lambda t).$
Equivalent Definitions
Stationary independent increments with $P(N(h)=1)=\lambda h+o(h),\,P(N(h)\ge 2)=o(h).$Properties
- $E(N(t))=\lambda t,\,\text{Var}(N(t))=\lambda t.$
- $\text{Cov}(N(s),N(t))=\lambda\min(s,t).$
- Sum of independent Poisson processes is Poisson with sum of rates.
- Conditional on $N(t)=n$, the $n$ event times are distributed as order statistics of $n$ iid Uniform$(0,t).$
🌍 Where it's used in real life
- Calls arriving at a call centre.
- Customers entering a store.
- Website hits per minute.
- Radioactive-decay events.
- Accidents at a junction per month.
9. Inter-arrival and Waiting Time Distributions
Inter-arrival Times
$T_n$ = time between $(n-1)$th and $n$th event. $T_n\overset{\text{iid}}{\sim}\text{Exp}(\lambda)$ — memoryless property.Waiting Time
$W_n=T_1+\cdots+T_n\sim\text{Gamma}(n,\lambda)$ (Erlang). pdf: $$f_{W_n}(t)=\frac{\lambda^n t^{n-1}e^{-\lambda t}}{(n-1)!},\,t\ge 0.$$ $E(W_n)=n/\lambda,\,V(W_n)=n/\lambda^2.$Memoryless
$P(T>s+t\mid T>s)=P(T>t).$ Only continuous distribution with this property.🌍 Where it's used in real life
- Time between customer arrivals.
- Time until the next machine failure.
- Waiting time for a bus or train.
- Time between website visits.
- Time between insurance claims.
10. Birth and Death Processes
Continuous-time Markov chain on $\{0,1,2,\ldots\}$ with transitions $i\to i+1$ at rate $\lambda_i$ (birth) and $i\to i-1$ at rate $\mu_i$ (death). $\lambda_i,\mu_i\ge 0,\,\mu_0=0.$
Stationary Distribution
For positive recurrent process: $$\pi_n=\pi_0\prod_{k=0}^{n-1}\frac{\lambda_k}{\mu_{k+1}},\quad \pi_0=\Big[1+\sum_{n=1}^\infty\prod_{k=0}^{n-1}\frac{\lambda_k}{\mu_{k+1}}\Big]^{-1}.$$ Stationary distribution exists iff series converges.Pure Birth (Yule)
$\mu_i=0,\lambda_i=i\lambda$ → linear birth process. $E(N(t))=N_0 e^{\lambda t}.$Pure Death
$\lambda_i=0,\,\mu_i=i\mu$ → linear death process.Linear Birth–Death
$\lambda_i=i\lambda,\,\mu_i=i\mu.$ Population grows or dies depending on $\lambda$ vs $\mu.$🌍 Where it's used in real life
- Population growth and decline.
- Changing queue length.
- Spread of an epidemic.
- Count of machines in service vs failed.
- Bacteria-colony dynamics.
11. M/M/1 Queue
Single-server queue with Poisson arrivals at rate $\lambda$ and exponential service at rate $\mu.$ Traffic intensity $\rho=\lambda/\mu.$
Stationary Distribution (when $\rho<1$)
$\pi_n=(1-\rho)\rho^n,\,n=0,1,2,\ldots$ — geometric.Performance Measures (Little's Law)
- Average number in system: $L=\rho/(1-\rho).$
- Average number in queue: $L_q=\rho^2/(1-\rho).$
- Average time in system: $W=1/(\mu-\lambda)=L/\lambda.$
- Average waiting time in queue: $W_q=\rho/(\mu-\lambda)=L_q/\lambda.$
- $P(\text{server busy})=\rho.$
- $P(\text{system empty})=1-\rho.$
Distribution of Wait Times
Wait in system: exponential with rate $\mu-\lambda.$🌍 Where it's used in real life
- A single-teller bank queue.
- One-server supermarket checkout.
- A single printer's job queue.
- A single-lane toll booth.
- A help-desk with one agent.