Seyed Masoud Hosseini · Overview · Study log · Weekly summaries · Ideas · Search · Transcript · RSS feed

Probability · Lecture 60 of 76 · 51:49

Lecture 18: Markov Chains III

18. Markov Chains III on YouTube

Study guide

What this lecture covers

This lecture first shows how steady-state probabilities let you approximate long-horizon transition probabilities and reasons about how quickly a chain "mixes." It then applies Markov chains to a classic real-world design problem: how many phone lines a community needs so that callers rarely get a busy signal, a problem originally solved by Erlang before Markov chains existed as a named theory.

The second half introduces two new calculations for chains with transient states: the probability of eventually being absorbed into a particular recurrent class starting from a given state, and the expected number of steps until absorption (or until first reaching a target state). Both are solved by setting up linear equations that condition on the first transition, extending the divide-and-conquer approach used throughout the Markov chains unit.

Key ideas

  • Steady-state independence: as n grows large, X_n becomes approximately independent of the initial state X_0, which is why r_ij(n) can be approximated by pi_j for large n.
  • Mixing time: how large n needs to be before the steady-state approximation is accurate depends on how quickly the chain forgets its initial state; chains with small transition probabilities between regions mix slowly and need much larger n.
  • The Erlang phone-line problem: phone calls arrive as a Poisson process with rate lambda, and call durations are exponential with rate mu, giving a birth-death Markov chain over the number of busy lines from 0 to B.
  • Blocking probability: the probability an arriving call finds all B lines busy is the steady-state probability pi_B, which a system designer wants to keep small (e.g. around 1%) by choosing B appropriately larger than the average number of simultaneous calls lambda/mu.
  • Absorption probabilities: for a chain with transient states leading into one of several recurrent classes, the probability a_i of eventually being absorbed into a specific class, starting from transient state i, satisfies a linear system a_i = sum_j p_ij * a_j with known boundary values at the recurrent states.
  • Expected time to absorption: the expected number of steps mu_i to reach an absorbing state from transient state i satisfies mu_i = 1 + sum_j p_ij * mu_j, derived by conditioning on the first transition.
  • First-passage and recurrence time: the expected time to first reach a specific state s, and the mean recurrence time (starting at s, the expected time to return to s), are computed with the same conditioning technique, distinguishing whether the count starts before or after the first step.

Walkthrough

Steady-state approximation and mixing time (0:37)

The lecture reviews that for a chain with a single, aperiodic recurrent class, X_n becomes approximately independent of the starting state as n grows, justifying the approximation r_ij(n) ~ pi_j. Using the familiar two-state example, it shows how to approximate probabilities like being at a state at both time 100 and time 200, then contrasts a fast-mixing chain with a slow-mixing one (transition probabilities like 0.001) to illustrate that the required n for a good approximation depends on the chain's internal transition rates.

Setting up the Erlang phone-line model (15:04)

The lecture poses the classic problem of dimensioning B phone lines for a community so that calls rarely get blocked. Call arrivals are modeled as a Poisson process with rate lambda, and call durations as exponential with rate mu. Time is discretized into small slots to build a discrete-time birth-death Markov chain whose state is the number of currently busy lines, with upward transition probability lambda*delta and downward probability i*mu*delta from state i.

Solving for blocking probability (24:44)

Using the cut argument for birth-death chains from the previous lecture, the lecture derives a recursion for the steady-state probabilities pi_i and shows that the probability of a new call finding the system busy is pi_B. A numerical example with lambda=30 calls/minute and mean call duration 3 minutes (so about 90 calls active on average) shows that achieving roughly a 1% blocking probability requires about 106 lines, more than the naive average-based estimate.

Absorption probabilities (22:44) and worked example (26:11)

Returning to the general theory, the lecture defines a_i, the probability of eventually being absorbed into a particular recurrent state or class starting from transient state i, and derives the linear equation a_i = sum_j p_ij * a_j by conditioning on the first transition. A worked example with three transient states sets up and solves the resulting system, and the lecture notes that a recurrent class with multiple states can be treated as a single lumped state for this calculation.

Expected time to absorption (33:46)

For chains with a single absorbing state, the lecture defines mu_i, the expected number of steps to absorption from state i, and derives mu_i = 1 + sum_j p_ij * mu_j using the same conditioning approach, illustrated with a small numerical example. It notes that multiple absorbing states can again be lumped into one for this calculation.

First-passage time and mean recurrence time (48:01)

The lecture closes by distinguishing two related quantities: the expected time to first reach a target state s from any other state, and the mean recurrence time, the expected time to return to s given that the chain starts there. Both are solved with the same first-transition conditioning technique, with the key difference being whether the starting state already counts as having reached s.

Before you watch

  • Watch the previous two lectures on Markov chain basics and the steady-state convergence theorem, including birth-death processes and the cut argument.
  • Review the Poisson process and exponential distribution, since the phone-line model relies on both.
  • Be comfortable setting up and solving small linear systems of equations.

Check your understanding

  1. Why does a chain with very small transition probabilities between regions require a much larger n before the steady-state approximation becomes accurate?
  2. In the Erlang phone-line model, why is the blocking probability equal to the steady-state probability of state B?
  3. How is the absorption probability equation a_i = sum_j p_ij * a_j derived from conditioning on the first transition?
  4. Why can multiple recurrent classes, or multiple absorbing states, be lumped into a single state when calculating absorption probabilities or expected absorption times?
  5. What is the key difference between the expected first-passage time to a state s and its mean recurrence time?

Vocabulary

mixing time (phrase)
How long it takes a random process to forget its starting point.
A slow chain has a long mixing time.
dimensioning (noun)
Choosing the right size or capacity for a system.
Dimensioning phone lines means choosing enough capacity for demand.
blocking probability (phrase)
The chance that a new arrival finds no space available.
The blocking probability should stay below about 1%.
busy signal (phrase)
The sound a caller hears when all lines are in use.
Too few lines lead to many busy signals.
absorption probability (phrase)
The chance of eventually ending up in a particular final group of states.
We compute the absorption probability into each recurrent class.
lump (verb)
To treat several separate things as if they were one single thing.
We can lump multiple absorbing states into one for the calculation.
linear system (phrase)
A set of equations with variables that appear only to the first power.
The absorption probabilities are found by solving a linear system.
mean recurrence time (phrase)
The average number of steps it takes a process to return to a state it started at.
The mean recurrence time measures how often a state is revisited.
Markov chain (phrase)
A random process that moves between states, where the next state depends only on the current one.
The number of busy phone lines is modeled as a Markov chain.
steady-state probability (phrase)
The long-run chance of being in a particular state, once a process has settled down.
The blocking probability equals the steady-state probability of state B.
transient state (phrase)
A state that a process will eventually leave forever and never return to.
Absorption probabilities are defined starting from a transient state.
recurrent class (phrase)
A group of states that a process keeps returning to once it enters.
The chain is eventually absorbed into one recurrent class.
transition probability (phrase)
The chance of moving from one state to another in a single step.
A slow-mixing chain has very small transition probabilities between regions.
Poisson process (phrase)
A random process describing events that happen independently at a constant average rate.
Phone calls arrive according to a Poisson process with rate lambda.
birth-death chain (phrase)
A Markov chain whose state can only increase or decrease by one at each step.
The number of busy lines forms a birth-death chain.
first transition (phrase)
The very next step a process takes from its current state.
Absorption probabilities are derived by conditioning on the first transition.
boundary value (phrase)
A known, fixed value used as a starting point for solving a system of equations.
The linear system for absorption probabilities uses known boundary values.
aperiodic (adjective)
Not settling into a fixed repeating cycle.
The approximation requires a single, aperiodic recurrent class.
divide-and-conquer (phrase)
A strategy that solves a big problem by breaking it into smaller, related sub-problems.
The chapter uses a divide-and-conquer approach based on conditioning.
forget (verb)
To lose the influence of an earlier state over time.
A fast-mixing chain forgets its initial state quickly.
approximate (verb)
To estimate a value closely without being exactly precise.
Steady-state probabilities approximate long-horizon transition probabilities.
horizon (noun)
The length of time being considered into the future.
Steady-state probabilities help with long-horizon predictions.
naive (adjective)
Overly simple, ignoring important complications.
The naive average-based estimate underestimates the lines needed.
appropriately (adverb)
In a fitting and suitable way for the situation.
B should be chosen appropriately larger than the average number of calls.
distinguish (verb)
To recognize the difference between two similar things.
The lecture distinguishes first-passage time from mean recurrence time.

Chapters

From the YouTube description

MIT 6.041 Probabilistic Systems Analysis and Applied Probability, Fall 2010
View the complete course: http://ocw.mit.edu/6-041F10
Instructor: John Tsitsiklis

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

← Lecture 17: Markov Chains II · Mean First Passage and Recurrence Times →