UNIHIVE

Study Hub UNIPORT ENG 301

ENG 301 · Engineering Mathematics IV (Probability and Statistics)

Markov chains

The Markov property, transition matrices, n-step probabilities, steady-state distributions, and continuous-time chains for availability.

Our notes

2 min read

The Markov property

The future depends on the present state only, not on how the process got there: P(Xₙ₊₁ = j | Xₙ = i, earlier states) = P(Xₙ₊₁ = j | Xₙ = i) = pᵢⱼ.

  • Transition matrix P = [pᵢⱼ]: each row sums to 1.
  • Drawn as a state diagram (circles for states, arrows labelled with probabilities).

n-step transitions

P⁽ⁿ⁾ = Pⁿ (Chapman-Kolmogorov). If the starting distribution is the row vector π⁽⁰⁾, then π⁽ⁿ⁾ = π⁽⁰⁾Pⁿ.
Worked example. A machine is Working (W) or Broken (B) each day:

from \ toWB
W0.90.1
B0.50.5

Working today, P(working in 2 days) = 0.9 × 0.9 + 0.1 × 0.5 = 0.81 + 0.05 = 0.86.

Steady state

For a regular chain (some power of P has all entries positive), π⁽ⁿ⁾ tends to a unique stationary distribution π with πP = π and Σπᵢ = 1, whatever the start.
Worked example (continued). π_W = 0.9π_W + 0.5π_B → 0.1π_W = 0.5π_B → π_W = 5π_B. With π_W + π_B = 1: π_W = 5/6 ≈ 0.833, π_B = 1/6. In the long run the machine works 83% of days.

  • The mean return time to state i is 1/πᵢ (the machine returns to "broken" every 6 days on average).

Classifying states

  • Accessible / communicating states; a chain is irreducible if every state can reach every other.
  • Absorbing state: pᵢᵢ = 1 (once in, never leaves): "scrapped", "graduated", "debt written off".
  • Transient (may never return) and recurrent (certain to return) states; periodic states (return only at multiples of some d > 1).
  • In absorbing chains we compute the probability of ending in each absorbing state and the expected steps before absorption (using the fundamental matrix N = (I − Q)⁻¹).

Continuous-time Markov chains

State changes happen after exponential times, with rates instead of probabilities.
Worked example. A repairable unit fails at rate λ and is repaired at rate μ. Balance: flow out of "up" = flow in: λπ_up = μπ_down. So availability π_up = μ/(λ + μ). With MTTF = 1/λ = 990 h and MTTR = 1/μ = 10 h: A = (1/10)/(1/990 + 1/10) = 990/1,000 = 0.99, as in the reliability topic.

  • Birth-death processes and queues (M/M/1: arrivals rate λ, service rate μ, traffic intensity ρ = λ/μ < 1; P(n customers) = (1 − ρ)ρⁿ; mean number in the system ρ/(1 − ρ)) come from the same balance equations.

Worked example. A single ATM: customers arrive at 20 an hour and each takes 2 minutes on average (μ = 30 an hour). ρ = 2/3; mean number at the ATM = (2/3)/(1/3) = 2 people.

Exams usually ask: write a transition matrix from a story; draw the state diagram; n-step probabilities; steady-state distribution; classify states; availability from a two-state continuous chain; simple M/M/1 results.

Common mistake: writing the transition matrix with columns summing to 1. In the usual convention each row (the "from" state) sums to 1, and distributions are row vectors multiplied on the left.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All ENG 301 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.