MGU Mathematics Series — Probability and Statistics
Part V: Advanced Topics, Stochastic Models, and Capstone Applications
Bernoulli · Random Walks · Markov Chains · Poisson Processes · Waiting Times
Chapter 13 of 14
MGU Mathematics Series  ·  Probability and Statistics  ·  Library Textbook Edition

Chapter 13:
Stochastic Processes
and Time-Dependent Models

Bernoulli processes, random walks, Markov chains, Poisson processes, and waiting times — probability that evolves over time

■ Math Level: Probability and Statistics ■

■ 14 Sections  •  Part V of 5 ■

Follows Chapter 12: Multiple Regression and ANOVA  ·  Prepares students for Chapter 14 and Advanced Probability

Purpose and Overview

"Randomness is not merely an imperfection in our knowledge. It is woven into the fabric of how systems change over time."

Every model studied so far in this book has treated randomness as something that happens once. A coin flip produces a single outcome. A continuous random variable takes on a value drawn from a density function. A sample yields data used to estimate a parameter. In each case, randomness occurs and then the story ends.

But many of the most important processes in science, finance, engineering, biology, and computing involve randomness that unfolds over time. A stock price does not simply land on a value; it rises and falls through each trading hour. An epidemic does not reach its size in an instant; it spreads from person to person across days and weeks. Customers do not all arrive at a counter simultaneously; they stream in one by one as time passes.

These are stochastic processes: collections of random variables indexed by time. Chapter 13 develops the mathematical foundations of stochastic processes at a level appropriate for a first calculus-based course. The chapter begins by defining what a stochastic process is, then builds three fundamental classes of models — Bernoulli processes and random walks, Markov chains, and Poisson processes — before connecting them to waiting time distributions, reliability, queueing, and applications across science and computing.

Opening Question

A machine in a factory can be Working, Under Repair, or Failed on any given day. Each day, there is a chance the machine transitions between these states. In the long run, what fraction of days is the machine Working? What fraction is it Failed? By the end of this chapter, you will have the tools to answer such questions exactly — and to understand why the answers do not depend on what state the machine is in today.

14Sections
12Objectives
40+Key Terms
20+Worked Examples

Learning Objectives

  1. 1Define a stochastic process and distinguish discrete- from continuous-time processes and discrete- from continuous-state processes.
  2. 2Analyze Bernoulli processes and derive their count and waiting time distributions.
  3. 3Compute expected value, variance, and the drift of a random walk; solve Gambler's Ruin problems.
  4. 4State the Markov property and identify when a process satisfies it.
  5. 5Construct a transition matrix and verify it is row-stochastic.
  6. 6Compute multi-step transition probabilities using matrix powers (Chapman-Kolmogorov).
  7. 7Find the stationary distribution of a finite, irreducible, aperiodic Markov chain and interpret it as a long-run average.
  8. 8Define the Poisson process and compute probabilities using the Poisson distribution.
  9. 9Derive interarrival time and waiting time distributions (Exponential and Gamma) for the Poisson process.
  10. 10Apply the memoryless property of the exponential distribution.
  11. 11Use reliability functions, hazard rates, and M/M/1 queueing results in applied settings.
  12. 12Identify and avoid common errors in stochastic process analysis.

Sections at a Glance

Sections 13.1 – 13.3
Stochastic Processes and the Bernoulli Process
What a Process Is · Variables Indexed by Time · Bernoulli Processes

What a Stochastic Process Is

A stochastic process asks a different kind of question from a single random variable. Instead of one random outcome, we have an entire trajectory: how does the system evolve? What is the probability of visiting certain states? Where does the process end up in the long run?

Definition — Stochastic Process

A stochastic process is a collection of random variables {X(t) : t ∈ T} defined on a common probability space, where T is an index set representing time.

When T = {0, 1, 2, …} the process is discrete-time. When T = [0, ∞) the process is continuous-time. The set of values each X(t) can take is the state space.

Time IndexState SpaceExample
DiscreteDiscreteMarkov chain — weather states each day
DiscreteContinuousRandom walk on the real line
ContinuousDiscretePoisson process — count of arrivals up to time t
ContinuousContinuousBrownian motion — particle position at each instant
Sample Paths

For a fixed outcome ω in the sample space, the function t ↦ X(t, ω) is called a sample path or realization of the process. When you watch a stock price move through a trading day, you are observing one sample path drawn from a probability model governing all possible paths.

Why Stochastic Processes Matter

Finance
Stock prices, interest rates, option pricing. The Black-Scholes model is built on a stochastic process.
Physics
Brownian motion, diffusion, radioactive decay. Einstein's 1905 paper explained Brownian motion with stochastic arguments.
Biology
Genetic drift, epidemic spread, neural firing. The SIR model is a stochastic process over time.
Computing
Randomized algorithms, MCMC, hidden Markov models, reinforcement learning — all built on stochastic process foundations.
Practice 13.1Concept Check
  1. In your own words, explain the difference between a single random variable and a stochastic process.
  2. Classify each of the following as discrete-time or continuous-time, and discrete-state or continuous-state: (a) the number of emails in your inbox at the end of each day; (b) the temperature of a room at any moment; (c) the state of a traffic light at the end of each minute; (d) the position of a dust particle in water at any time t ≥ 0.
  3. What is a sample path? Describe an everyday situation in which you observe one sample path of a stochastic process.

Random Variables Indexed by Time

For a stochastic process, we need a way to describe how random variables at different times relate to one another. Two key structural properties appear in the most important processes.

Two Key Properties

Stationary increments: The distribution of X(t+s) − X(t) depends only on s, not on where in time t we are. What happens over any interval of length s looks the same statistically.

Independent increments: For non-overlapping intervals [t₁,t₂] and [t₃,t₄], the changes X(t₂)−X(t₁) and X(t₄)−X(t₃) are independent. Knowing what happened in one interval tells you nothing about a separate interval.

Example 13.2.1
Distribution at a fixed time — simple random walk preview
  • SetupSuppose X(0) = 0 and at each step n = 1, 2, 3, …, the value of X(n) increases by 1 or decreases by 1 with equal probability.
  • MeanE[X(n)] = 0 for all n.Each step has expected change 0; the walk is centered at the origin.
  • VarianceVar(X(n)) = n.The spread grows. After 100 steps the standard deviation is √100 = 10; after 10,000 steps, √10,000 = 100.
  • InterpretThe walk does not stay near the origin forever, but its mean stays at 0. Uncertainty grows at rate √n, not n.
Practice 13.2Structural Properties
  1. Explain in plain language what "independent increments" means. Give an example of a process you would expect to have this property, and one you would not.
  2. For the process in Example 13.2.1, find the standard deviation after 25 steps and after 225 steps. By what factor does it increase?
  3. A stationary process has the same statistical properties at any time. Give an example of a real-world process that might be approximately stationary over short time windows but not over long ones.

Bernoulli Processes

The Bernoulli process is the simplest discrete-time stochastic process. It is built entirely from the Bernoulli trials studied in Chapter 3: independent coin flips with the same bias at every step.

Definition — Bernoulli Process

A Bernoulli process is a sequence of independent Bernoulli random variables X₁, X₂, X₃, … each with P(Xₙ = 1) = p and P(Xₙ = 0) = 1 − p = q for some fixed p ∈ (0, 1).

Derived Distributions

QuantityDistributionMeanVariance
Successes in n trials: Sₙ = X₁ + … + XₙBinomial(n, p)npnpq
Time of first success: T = min{n ≥ 1 : Xₙ = 1}Geometric(p)1/pq/p²
Time between the (k−1)-th and k-th successesGeometric(p)1/pq/p²
Example 13.3.1
Basketball free throws as a Bernoulli process
  • SetupA player makes each free throw independently with probability p = 0.75. Attempts form a Bernoulli process.
  • Part aExpected shots until the first made free throw: E[T] = 1/p = 1/0.75 = 4/3 ≈ 1.33 shots.
  • Part bExpected makes in 10 attempts: E[S₁₀] = 10(0.75) = 7.5.
  • Part cProbability of making at least 8 of 10: P(S₁₀ ≥ 8) = C(10,8)(0.75)⁸(0.25)² + C(10,9)(0.75)⁹(0.25)¹ + C(10,10)(0.75)¹⁰ ≈ 0.2816 + 0.1877 + 0.0563 ≈ 0.5256.
About 52.6% chance of making at least 8 of 10 free throws.
Foundation for Everything Ahead

The Bernoulli process is the building block for random walks (sums of ±1 outcomes), the discrete analogue of the Poisson process, and the simplest example of a process with independent, identically distributed components. Every result here will reappear in continuous-time versions later in the chapter.

Practice 13.3Bernoulli Process Problems
  1. A quality inspector examines items with independent defect probability 0.04. (a) Find the expected number of defective items in a run of 200. (b) Find the probability that the first defective item is item 5 or later. (c) Find the variance of the number of defectives in 200 items.
  2. A server successfully handles each request independently with probability 0.92. Find the expected number of requests until the first failure. What is the standard deviation?
  3. Explain why interarrival times in a Bernoulli process are independent. How does this relate to the memoryless property of the geometric distribution?
Section 13.4
Random Walks
Definition · Mean and Variance · Gambler's Ruin · Recurrence · CLT Connection

Random Walks

A random walk models motion through discrete steps where each step is determined by a random variable. The running sum S₀ = 0, Sₙ = Z₁ + Z₂ + ⋯ + Zₙ with i.i.d. steps Zₙ is the general form. The most studied case is the simple symmetric random walk on the integers, where P(Zₙ = +1) = P(Zₙ = −1) = 1/2.

Simple Symmetric Random Walk — Key Facts

E[Sₙ] = 0    The walk is centered at 0 for all n. Steps average to zero.

Var(Sₙ) = n    Standard deviation is √n. The walk spreads at rate √n, not n.

Sₙ/√n → N(0,1)    By the CLT, properly scaled walks converge to standard normal.

Example 13.4.1
Asymmetric random walk — drift
  • SetupP(Zₙ = +1) = p, P(Zₙ = −1) = q = 1 − p, p ≠ 1/2.
  • MeanE[Zₙ] = p − q = 2p − 1. E[Sₙ] = n(2p − 1).If p > 1/2 the walk drifts right; if p < 1/2 it drifts left.
  • VarianceVar(Sₙ) = 4npq.
The drift term n(2p−1) dominates the random fluctuations for large n when p ≠ 1/2.
Example 13.4.2
Gambler's Ruin — asymmetric case
  • SetupA gambler starts with $10 and wants to reach $50 before going broke, with p = 0.48 per round.
  • FormulaRuin probability formula with k = 10 (start), N = 50 (target): P(reach N before 0 | S₀ = k) = (1 − (q/p)^k) / (1 − (q/p)^N)
  • Compute q/p = 0.52/0.48 ≈ 1.0833 (q/p)^10 ≈ 2.158, (q/p)^50 ≈ 60.34 P = (1 − 2.158) / (1 − 60.34) = −1.158 / −59.34 ≈ 0.0195.
  • InterpretLess than a 2% chance of success. Even a small house advantage over many trials leads to near-certain ruin.
P(success) ≈ 1.95%. A small unfavorable edge is devastating over many trials.
Recurrence of Random Walks

A striking result: the simple symmetric random walk in one dimension is recurrent — it returns to the origin with probability 1. No matter how far it strays, it always comes back. In three or more dimensions, the walk has positive probability of wandering off to infinity and never returning (transient). The boundary is dimension 2, which is also recurrent but barely.

Student Warning — Spread vs. Drift

Do not confuse the expected position E[Sₙ] = n(2p−1) with the spread Var(Sₙ) = 4npq. For a symmetric walk (p = 1/2), the expected position is always 0, but the walk still spreads — the standard deviation grows as √n. "Expected to return to 0" does not mean "stays near 0."

Practice 13.4Random Walk Problems
  1. A symmetric random walk starts at 0. (a) Find E[S₂₅] and Var(S₂₅). (b) Use the CLT approximation to estimate P(S₁₀₀ > 15). (c) After how many steps is the standard deviation equal to 8?
  2. A gambler starts with $5 and targets $20, playing a fair game (p = 1/2). (a) Find the probability of reaching $20 before going broke. (b) Find the probability of reaching $20 if p = 0.46 instead.
  3. An asymmetric walk has P(+1) = 0.6 and P(−1) = 0.4. After n = 100 steps: (a) Find E[S₁₀₀]. (b) Find the standard deviation. (c) In which direction is the drift, and how large is it compared to the spread?
Sections 13.5 – 13.8
Markov Chains
The Markov Property · Transition Matrices · Long-Run Behavior · Stationary Distributions

Markov Chains

The random walk has independent steps. But many real-world processes have a weaker structure: the future depends on the past, but only through the present. Weather tomorrow depends on weather today, not on weather three weeks ago. This is the Markov property.

Definition — The Markov Property

A discrete-time process {Xₙ} with state space S satisfies the Markov property if for all n ≥ 0 and all states i, j, i₀, …, iₙ₋₁ in S:

P(Xₙ₊₁ = j | Xₙ = i, Xₙ₋₁ = iₙ₋₁, …, X₀ = i₀) = P(Xₙ₊₁ = j | Xₙ = i).

A process satisfying the Markov property is called a Markov chain. The transition probability pᵢⱼ = P(Xₙ₊₁ = j | Xₙ = i) gives the probability of moving from state i to state j in one step. For a time-homogeneous chain, these probabilities do not depend on n.

Student Warning — Markov ≠ Independent

The Markov property is weaker than independence. In a Markov chain, X₀ and X₂ are not generally independent — knowing X₀ gives information about X₁, which gives information about X₂. The Markov property says only that given X₁, knowing X₀ adds nothing. Correlation across time is allowed; only long-range memory is excluded.

Example 13.5.1
Two-state weather chain
  • SetupWeather is Sunny (S) or Rainy (R) each day. Transition probabilities: p_SS = 0.8, p_SR = 0.2, p_RS = 0.5, p_RR = 0.5.
  • InterpretIf today is sunny: 80% chance tomorrow is sunny, 20% rainy. If today is rainy: 50% chance tomorrow is sunny.
  • Markov?Yes. Tomorrow's weather depends only on today's weather, not on the weather a week ago.
Example 13.5.2
Three-state machine reliability chain
  • SetupA machine is Working (W), Under Repair (U), or Failed awaiting parts (F) each day.
  • Transitions From W: p_WW = 0.90, p_WU = 0.07, p_WF = 0.03 From U: p_UW = 0.60, p_UU = 0.30, p_UF = 0.10 From F: p_FW = 0.00, p_FU = 0.40, p_FF = 0.60
  • InterpretA failed machine cannot jump directly back to working; it must first enter repair. This reflects a realistic constraint.
Practice 13.5Markov Chains — Setup and Interpretation
  1. A student either studies or does not study each evening. If they studied last night, they study tonight with probability 0.7. If they did not study, they study tonight with probability 0.4. Write the transition probabilities pᵢⱼ for all pairs (i, j). Is this chain time-homogeneous?
  2. Explain why the simple symmetric random walk is a Markov chain. What is its state space? What are its transition probabilities?
  3. Give an example of a real process you encounter in daily life that is approximately Markovian. Then give an example that is clearly not Markovian (explain what "memory" it requires).

Transition Matrices

When the state space S = {1, 2, …, k} is finite, all transition probabilities can be organized into a transition matrix P, where entry pᵢⱼ in row i, column j gives the probability of moving from state i to state j in one step. Every row must sum to 1.

Example 13.6.1
Computing multi-step probabilities via matrix powers
  • MatrixThe weather chain transition matrix is: P = | 0.8 0.2 | | 0.5 0.5 | Row 1 = Sunny, Row 2 = Rainy.
  • Two-stepCompute P² by matrix multiplication: P² = | 0.74 0.26 | | 0.65 0.35 |
  • InterpretThe (1,2) entry of P² is 0.26: if today is Sunny, probability of Rainy in two days is 0.26.
  • Three-step P³ = | 0.722 0.278 | | 0.695 0.305 | The rows are converging — the chain is "forgetting" its starting state.
Theorem
Chapman-Kolmogorov Equations

For a time-homogeneous Markov chain with transition matrix P, the probability of going from state i to state j in exactly n steps is the (i, j) entry of Pⁿ:

P(Xₙ = j | X₀ = i) = (Pⁿ)ᵢⱼ.

The state distribution after n steps is π⁽ⁿ⁾ = π⁽⁰⁾ Pⁿ, where π⁽⁰⁾ is the initial distribution row vector.

Practice 13.6Transition Matrix Practice
  1. Write the transition matrix for the machine reliability chain in Example 13.5.2. Verify each row sums to 1.
  2. Using the weather chain matrix P above, compute P² and find the probability that, starting Rainy, the weather is Sunny two days later.
  3. The initial distribution is π⁽⁰⁾ = (0.3, 0.7) (30% chance of Sunny on Day 0). Find the distribution on Day 1 and Day 2 using π⁽ⁿ⁾ = π⁽⁰⁾Pⁿ.
  4. A chain on {1, 2, 3} has p₁₂ = 0.6, p₁₁ = 0.4, p₂₃ = 0.5, p₂₁ = 0.5, p₃₃ = 1. Write the transition matrix. Identify any absorbing states.

Long-Term Behavior of Markov Chains

As n → ∞, the entries of Pⁿ often converge to limiting values. These represent the long-run fraction of time the chain spends in each state, regardless of starting state. Whether this happens depends on two structural properties.

PropertyDefinitionWhy It Matters
IrreducibleEvery state can be reached from every other state.Ensures the chain does not get trapped in a subset of states.
AperiodicNo state has a period greater than 1. (Return is possible at consecutive times.)Ensures probabilities converge rather than oscillate.
Absorbing stateA state i with pᵢᵢ = 1 — once entered, never left.Absorbing chains require a different analysis (absorption probabilities).
Theorem
Convergence to Stationary Distribution

Let {Xₙ} be an irreducible, aperiodic Markov chain with finite state space. Then:

lim_{n→∞} p_{ij}^{(n)} = πⱼ for all states i and j,

where π = (π₁, π₂, …, πₖ) is the unique probability distribution satisfying πP = π and Σⱼ πⱼ = 1. The chain converges to π regardless of starting state.

Example 13.7.1
Checking irreducibility and aperiodicity — weather chain
  • Irreducible?From Sunny we can reach Rainy (p_SR = 0.2 > 0). From Rainy we can reach Sunny (p_RS = 0.5 > 0). All states communicate. Yes.
  • Aperiodic?p_SS = 0.8 > 0, so the chain can return to Sunny in 1 step. Period of Sunny = gcd{1, 2, 3, …} = 1. Aperiodic. Yes.
  • ConclusionThe weather chain satisfies both conditions. The convergence theorem applies and a unique stationary distribution exists.
Practice 13.7Long-Run Behavior
  1. A chain on {1, 2, 3} has p₁₂ = p₂₃ = p₃₁ = 1. (a) Is this chain irreducible? (b) What is the period of state 1? Is the chain aperiodic? (c) Does the convergence theorem apply?
  2. A chain has one absorbing state. (a) Can it be irreducible? (b) Will the convergence theorem apply? (c) What is the appropriate analysis instead?
  3. For the machine reliability chain in Example 13.5.2, argue informally that the chain is irreducible. (Hint: can the machine eventually reach Working from Failed?)

Stationary Distributions as an Introduction

The stationary distribution π satisfies πP = π: if the chain starts in distribution π, it remains there forever. To find π, solve the balance equations πP = π together with the normalization condition Σⱼ πⱼ = 1.

Example 13.8.1
Finding the stationary distribution — weather chain
  • SetupLet π = (π_S, π_R). The equation πP = π gives: π_S = 0.8π_S + 0.5π_R π_R = 0.2π_S + 0.5π_R
  • SolveFrom the first equation: 0.2π_S = 0.5π_R, so π_S = 2.5π_R. Apply normalization: 2.5π_R + π_R = 1 → π_R = 2/7 ≈ 0.286, π_S = 5/7 ≈ 0.714.
  • VerifyCheck πP = π: (5/7)(0.8) + (2/7)(0.5) = 4/7 + 1/7 = 5/7 = π_S. ✓ (5/7)(0.2) + (2/7)(0.5) = 1/7 + 1/7 = 2/7 = π_R. ✓
  • InterpretIn the long run, about 71.4% of days are Sunny and 28.6% Rainy — regardless of whether today is Sunny or Rainy.
Stationary distribution: π_S = 5/7 ≈ 0.714, π_R = 2/7 ≈ 0.286.
Example 13.8.2
Stationary distribution — machine reliability chain
  • Balance equationsLet π = (π_W, π_U, π_F): π_W = 0.90π_W + 0.60π_U + 0.00π_F → 0.10π_W = 0.60π_U → π_W = 6π_U π_F = 0.03π_W + 0.10π_U + 0.60π_F → 0.40π_F = 0.28π_U → π_F = 0.70π_U
  • Normalization 6π_U + π_U + 0.70π_U = 1 → 7.70π_U = 1 → π_U ≈ 0.1299.
  • Result π_W ≈ 0.779, π_U ≈ 0.130, π_F ≈ 0.091.
  • InterpretThe machine is Working about 77.9% of all days, Under Repair 13.0%, and Failed awaiting parts about 9.1% — in the long run, from any starting state.
π_W ≈ 0.779, π_U ≈ 0.130, π_F ≈ 0.091.
Two Common Mistakes

Mistake 1: Reading the stationary distribution directly from a row of P. A row gives transition probabilities from one state, not the long-run balance. Solve πP = π.

Mistake 2: Forgetting normalization. The equations πP = π alone do not uniquely determine π — one equation is redundant and must be replaced by Σⱼ πⱼ = 1.

Practice 13.8Stationary Distribution Problems
  1. A Markov chain on {1, 2} has P = [[0.6, 0.4], [0.3, 0.7]]. (a) Find the stationary distribution. (b) Verify by checking πP = π. (c) In the long run, what fraction of time is spent in state 1?
  2. The student study chain from Practice 13.5 has P = [[0.7, 0.3], [0.4, 0.6]]. Find the stationary distribution and interpret it.
  3. An insect colony has states Small, Medium, Large with transition matrix P = [[0.5, 0.3, 0.2], [0.2, 0.5, 0.3], [0.1, 0.3, 0.6]]. Set up the balance equations and solve for the stationary distribution.
  4. A machine earns $1000/day when Working, $0/day otherwise. Using the stationary distribution from Example 13.8.2, find the long-run expected daily revenue.
Sections 13.9 – 13.10
Poisson Processes and Waiting Times
Definition and Count Distribution · Interarrival Times · Memoryless Property · Gamma Distribution

Poisson Processes

The Poisson process is the continuous-time analogue of the Bernoulli process. Instead of checking for events at each integer time step, events can occur at any moment t ≥ 0, at a constant average rate λ, and what happens in non-overlapping intervals is independent.

Definition — Poisson Process

A stochastic process {N(t) : t ≥ 0} is a Poisson process with rate λ > 0 if:

1. N(0) = 0.

2. Independent increments: changes over non-overlapping intervals are independent.

3. Stationary increments: the distribution of N(t+s) − N(t) depends only on s.

4. For small h: P(N(h) = 1) = λh + o(h) and P(N(h) ≥ 2) = o(h).

Under these conditions, N(t) − N(s) ~ Poisson(λt) for any interval of length t − s.

Theorem
Count Distribution of a Poisson Process

The number of events in any interval of length t follows a Poisson distribution:

P(N(t) = k) = e^{-λt}(λt)^k / k! for k = 0, 1, 2, … E[N(t)] = λt, Var(N(t)) = λt.

The parameter λ is the rate: the expected number of events per unit time.

Example 13.9.1
Bakery arrivals — Poisson probability computations
  • SetupCustomers arrive at rate λ = 5 per hour.
  • Part aProbability of exactly 3 arrivals in the next 30 minutes (t = 0.5, λt = 2.5): P(N(0.5) = 3) = e^{-2.5}(2.5)³ / 3! ≈ (0.0821)(15.625)/6 ≈ 0.2138.
  • Part bExpected customers in 2 hours: E[N(2)] = λ · 2 = 5 × 2 = 10.
  • Part cProbability of no arrivals in 15 minutes (t = 0.25, λt = 1.25): P(N(0.25) = 0) = e^{-1.25} ≈ 0.2865.
Part a: ≈ 0.214. Part b: 10 customers. Part c: ≈ 28.7% chance of no arrivals.

Superposition and Thinning

If N₁(t) and N₂(t) are independent Poisson processes with rates λ₁ and λ₂, their superposition N(t) = N₁(t) + N₂(t) is Poisson with rate λ₁ + λ₂. Conversely, if events from a Poisson process with rate λ are independently classified as Type 1 (probability p) or Type 2 (probability 1−p), the two types form independent Poisson processes with rates λp and λ(1−p).

Practice 13.9Poisson Process Problems
  1. Emails arrive at rate λ = 10 per hour. (a) Expected emails in a 90-minute window. (b) Probability of exactly 12 emails in the next hour. (c) Probability of at least 2 emails in the next 15 minutes.
  2. Defects in a roll of fabric occur at rate 0.5 per meter. (a) Probability of no defects in a 4-meter piece. (b) Probability of more than 3 defects in a 4-meter piece.
  3. Two call centers merge. Center A receives calls at rate 8/hr, Center B at rate 12/hr. (a) What is the combined rate? (b) Is the combined arrival process still Poisson? (c) What is the probability of exactly 25 calls in the next hour?

Waiting Times

The Poisson count and the waiting time between events are two views of the same process. The interarrival time T₁ is the time until the first event; T₂ the time between the first and second; and so on. A fundamental theorem connects these waiting times to the exponential distribution.

Theorem
Interarrival Times of a Poisson Process

In a Poisson process with rate λ, the interarrival times T₁, T₂, T₃, … are independent and identically distributed Exponential(λ) random variables.

P(T₁ > t) = P(N(t) = 0) = e^{-λt}. E[Tₖ] = 1/λ, Var(Tₖ) = 1/λ².

The time until the n-th event, Sₙ = T₁ + … + Tₙ, follows a Gamma(n, λ) distribution with E[Sₙ] = n/λ.

The Memoryless Property

For an Exponential(λ) waiting time T:

P(T > s+t | T > s) = P(T > t) for all s, t > 0.

If you have already waited s units of time for the next event, the additional waiting time still has the same Exponential(λ) distribution. The distribution has no memory of the time already elapsed. This is the continuous-time analogue of the geometric distribution's memoryless property.

Example 13.10.1
Memoryless property — waiting for a bus
  • SetupBuses arrive as a Poisson process with rate λ = 2 per hour. You have been waiting 10 minutes already.
  • QuestionWhat is the probability of waiting more than 5 additional minutes?
  • Key ideaBy the memoryless property, the additional waiting time is still Exponential(2). Convert 5 minutes = 1/12 hour.
  • Compute P(T > 1/12) = e^{-2 · (1/12)} = e^{-1/6} ≈ 0.8465.
  • InterpretAbout 84.6% chance of waiting more than 5 more minutes — regardless of how long you have already waited. The 10 minutes of past waiting is irrelevant.
P(wait more than 5 more minutes) ≈ 84.6%. Past waiting time has no effect.
Example 13.10.2
Gamma distribution — time to the n-th event
  • SetupCosmic ray particles hit a detector at rate λ = 3 per second.
  • Part aExpected time until the 10th particle: E[S₁₀] = 10/λ = 10/3 ≈ 3.33 seconds.
  • Part bProbability that the 10th particle arrives within 4 seconds. Use the duality: P(S₁₀ ≤ 4) = P(N(4) ≥ 10) where N(4) ~ Poisson(12). P(N(4) ≥ 10) = 1 − Σₖ₌₀⁹ e^{-12}(12)^k/k! ≈ 0.7576.
Expected time to 10th particle: 3.33 sec. Probability of arrival within 4 sec: ≈ 75.8%.
The Count-Waiting Duality

These two facts are equivalent and can be used interchangeably: P(N(t) < n) = P(Sₙ > t). "Fewer than n events by time t" is the same event as "the n-th event occurs after time t." This duality lets you switch between the Poisson CDF and the Gamma CDF depending on which is easier to compute.

Practice 13.10Waiting Time Problems
  1. Traffic accidents occur at rate λ = 2 per week on a stretch of highway. (a) Expected waiting time between accidents. (b) Expected time until the 3rd accident. (c) Standard deviation of time until the 3rd accident. (d) Probability of no accidents in a given week.
  2. Emergency calls arrive at a dispatch center at rate λ = 6 per hour. (a) Find P(S₃ ≤ 0.5) — probability of 3 calls within 30 minutes. (b) Verify using the duality: P(S₃ ≤ 0.5) = P(N(0.5) ≥ 3).
  3. You arrive at a doctor's office. Patients are called at rate λ = 4 per hour. You have already waited 20 minutes. (a) What is the probability you wait more than 15 additional minutes? (b) What would the probability be if you had just arrived? (c) Explain why your answers are the same.
Sections 13.11 – 13.12
Reliability, Queueing, and Applications
Survival Functions · Hazard Rates · Series/Parallel Systems · M/M/1 Queue · Finance, Physics, Biology, Computing

Reliability and Queueing as an Introduction

Reliability Theory

Let T be the lifetime of a component. The reliability function is R(t) = P(T > t) = 1 − F(t). The hazard rate h(t) = f(t)/R(t) gives the instantaneous failure rate at time t given survival to t.

DistributionHazard Rate h(t)Interpretation
Exponential(λ)λ (constant)Memoryless — equally likely to fail at any age. Models electronic components without wear.
Weibull (β > 1)Increasing in tComponents wear out — more likely to fail with age. Standard in reliability engineering.
Weibull (β < 1)Decreasing in tInfant mortality — high early failure rate that decreases over time.
Example 13.11.1
Series and parallel systems — exponential components
  • SetupThree components each with Exponential lifetime, λ = 0.01 failures per hour.
  • SeriesAll three must work. System fails at first component failure: R_series(t) = (e^{-0.01t})³ = e^{-0.03t}. Mean system lifetime = 1/0.03 ≈ 33.3 hours.
  • ParallelAt least one must work. System fails only when all three fail: R_parallel(t) = 1 − (1 − e^{-0.01t})³. At t = 50: R_parallel(50) = 1 − (1 − e^{-0.5})³ ≈ 1 − (0.3935)³ ≈ 0.939.
  • InterpretThe parallel system survives 50 hours with 93.9% probability — far better than the series system.
Series: mean lifetime ≈ 33 hrs. Parallel: 93.9% chance of surviving 50 hrs.

Queueing Theory — The M/M/1 Queue

The M/M/1 queue has Poisson arrivals (rate λ), exponential service (rate μ), and one server. The key parameter is the traffic intensity ρ = λ/μ. The queue is stable — waiting times stay bounded — if and only if ρ < 1.

M/M/1 Queue — Key Results (when ρ < 1)

Stationary distribution: πₙ = (1−ρ)ρⁿ for n = 0, 1, 2, … (geometric)

Expected number in system: E[L] = ρ/(1−ρ)

Expected number in queue: E[L_q] = ρ²/(1−ρ)

Little's Law: L = λW where W is the expected time in the system.

Example 13.11.2
Bank teller — M/M/1 queue analysis
  • SetupOne teller. Arrivals: λ = 10/hr. Service: μ = 15/hr (mean = 4 min).
  • Stabilityρ = 10/15 = 2/3 < 1. The queue is stable.
  • In system E[L] = ρ/(1−ρ) = (2/3)/(1/3) = 2 customers.
  • Wait timeBy Little's Law: W = L/λ = 2/10 = 0.2 hours = 12 minutes total time in system.
  • Queue onlyW_q = W − 1/μ = 12 − 4 = 8 minutes waiting before service begins.
Average 2 customers in system; 12 min total wait; 8 min waiting before service.

Stochastic Models in Finance, Physics, Biology, and Computing

Finance
Geometric Brownian Motion: S(t) = S(0)exp[(μ − σ²/2)t + σW(t)]. The log-price follows a random walk with normal increments. Forms the basis of Black-Scholes option pricing.
Physics
Brownian motion models diffusion. Einstein's 1905 paper explained the irregular motion of pollen grains as the result of random molecular collisions. The diffusion equation describes the spreading of the particle's probability density over time.
Biology
The Wright-Fisher model treats allele frequencies as a Markov chain across generations. The stochastic SIR model tracks susceptible, infected, and recovered counts as a CTMC — crucial for small populations where randomness can extinguish a disease the deterministic model predicts will persist.
Computing
PageRank computes the stationary distribution of a Markov chain over web pages. MCMC methods sample from complex posteriors by designing chains whose stationary distributions match the target. Hidden Markov Models power speech recognition and bioinformatics.
Practice 13.11–13.12Applications Practice
  1. A hospital ER serves patients at rate μ = 8/hr. Patients arrive at rate λ = 6/hr. (a) Find ρ. (b) Find E[L] and E[L_q]. (c) Find the expected total time a patient spends in the system. (d) The hospital wants average total wait under 20 minutes. Is this achieved?
  2. A communications system has two independent links, each with Exponential lifetime (mean = 500 hours), connected in parallel. (a) Find R_system(t). (b) Find P(system lasts more than 400 hours). (c) How does this compare to a single-link system?
  3. In your own words, explain why the PageRank algorithm is an application of Markov chain stationary distributions. What does the stationary distribution represent in the context of web pages?
Sections 13.13 – 13.14
Common Mistakes and the Road Ahead
Eight Common Errors · Continuous-Time Chains · Brownian Motion · MCMC · Reinforcement Learning

Common Stochastic Process Mistakes

Mistake 1 — Confusing Markov with Independence
"Since the chain is Markov, X₀ and X₂ are independent." Correct: X₀ and X₂ are conditionally independent given X₁, not marginally independent. The Markov property restricts long-range memory, not correlation.
Mistake 2 — Reading the Stationary Distribution from a Row
Row (0.6, 0.3, 0.1) → concluding π = (0.6, 0.3, 0.1). Correct: A row gives transition probabilities from one state, not the long-run distribution. Solve πP = π with normalization Σⱼ πⱼ = 1.
Mistake 3 — Forgetting the Normalization Condition
Solving πP = π to get π₁ = 2π₂, then stopping without normalizing. Correct: From π₁ = 2π₂ and π₁ + π₂ = 1, conclude π₂ = 1/3 and π₁ = 2/3. The balance equations alone never determine π uniquely.
Mistake 4 — Confusing Rate and Mean Waiting Time
"Average rate is 4 calls/hr, so average waiting time between calls is 4 hours." Correct: Rate λ = 4 calls/hr means average waiting time = 1/λ = 1/4 hour = 15 minutes. Rate and mean waiting time are reciprocals.
Mistake 5 — "I Am Due" Fallacy with Exponential Waiting
"I have waited 30 minutes, so I'm due for a bus — additional wait is less than 30 min." Correct: By the memoryless property, P(T > s+t | T > s) = P(T > t). Additional waiting time has exactly the same Exponential distribution regardless of how long you have already waited.
Mistake 6 — Transposing the Transition Matrix
Setting up the matrix so that column i gives outgoing probabilities from state i (column-stochastic instead of row-stochastic). Correct: Row i of P gives the outgoing transition probabilities from state i. The equation is πP = π (row vector π left-multiplied). Columns need not sum to 1.
Mistake 7 — Applying Convergence Without Checking Conditions
Computing a stationary distribution for a chain with an absorbing state and claiming all starting states converge to it. Correct: First check irreducibility and aperiodicity. Chains with absorbing states are not irreducible. Compute absorption probabilities instead.
Mistake 8 — Stationarity vs. Limiting Distribution
"I found the stationary distribution, so the chain converges to it." Correct: A stationary distribution always exists for a finite irreducible chain. But convergence to it requires aperiodicity as well. A periodic irreducible chain has a unique stationary distribution but does not converge to it.

Preparing for Advanced Probability and Data Science

Chapter 13 is an entry point into a vast landscape. The vocabulary established here — process, state space, Markov property, transition matrix, stationary distribution, Poisson arrivals, interarrival times — is the foundation for many directions of further study.

TopicWhat It Builds OnWhere It Leads
Continuous-Time Markov ChainsMarkov chains, Poisson processHolding times in states are Exponential; described by a generator matrix Q rather than P. Used in M/M/1 and epidemic models.
Brownian Motion and Stochastic CalculusRandom walks, CLTThe continuous limit of the random walk. Itô's formula extends calculus to stochastic differential equations. Foundation for financial mathematics.
MartingalesConditional expectationProcesses where E[Xₙ₊₁ | X₀, …, Xₙ] = Xₙ. Powerful tools for convergence theorems and stopping times.
Hidden Markov ModelsMarkov chains, conditional probabilityObserved data are noisy functions of a hidden state. Viterbi and Baum-Welch algorithms. Used in speech recognition and bioinformatics.
MCMCStationary distributions, Bayesian inferenceDesign Markov chains whose stationary distribution is the target posterior. Metropolis-Hastings, Gibbs sampling. Workhorse of Bayesian computation.
Reinforcement LearningMarkov chains, expected valueAgent navigates a Markov Decision Process to maximize long-run reward. Q-learning and policy gradient methods.
A Final Reflection

The central insight of this chapter is that randomness can be structured. A stochastic process is not chaos; it is uncertainty organized by rules. Those rules — the Markov property, independent increments, the Poisson rate — make processes mathematically tractable while remaining rich enough to model the real world. Students who have worked through this chapter can describe how uncertainty evolves, analyze long-run behavior, compute probabilities for random arrivals and waiting times, and connect the mathematics to applications across science and computing.

Practice 13.13–13.14Error Analysis and Readiness
  1. A student computes the stationary distribution of a chain and obtains π₁ = 2π₃ and π₂ = 3π₃, then concludes π = (2, 3, 1). Identify all errors and write the correct stationary distribution.
  2. A student analyzes reliability of a 3-component series system, each with R(t) = e^{−0.01t}, and writes R_system(50) = 3e^{−0.5}. Identify the error and compute the correct value.
  3. A student writes: "In a Poisson process with rate λ = 3/hr, the probability of exactly 3 events in 2 hours is e^{−3}(3)³/3! ≈ 0.224." Identify the error and write the correct computation.
  4. Among the advanced topics listed in 13.14, choose one that interests you. Explain in 3–4 sentences how it connects to material in this chapter and where you might encounter it in a field you care about.

Chapter Summary

Key Terms Review

stochastic process
A collection of random variables {X(t) : t ∈ T} indexed by time.
state space
The set of values a stochastic process can take at each time point.
sample path
A single realization (trajectory) of a stochastic process: t ↦ X(t, ω) for one fixed outcome ω.
independent increments
Changes over non-overlapping time intervals are independent random variables.
stationary increments
The distribution of X(t+s) − X(t) depends only on the length s, not on the starting time t.
Bernoulli process
A sequence of independent, identically distributed Bernoulli(p) random variables X₁, X₂, X₃, …
random walk
The process Sₙ = Z₁ + Z₂ + ⋯ + Zₙ formed by summing i.i.d. step variables Zₙ.
Gambler's Ruin
The problem of computing the probability that an asymmetric random walk reaches one boundary before another.
Markov property
The future is conditionally independent of the past given the present: P(Xₙ₊₁ = j | all history) = P(Xₙ₊₁ = j | Xₙ = i).
Markov chain
A stochastic process satisfying the Markov property.
time-homogeneous
A Markov chain whose transition probabilities pᵢⱼ = P(Xₙ₊₁ = j | Xₙ = i) do not depend on the time step n.
transition probability pᵢⱼ
The probability of moving from state i to state j in one step of a Markov chain.
transition matrix P
The k×k matrix of one-step transition probabilities; each row sums to 1 (row-stochastic).
Chapman-Kolmogorov
The theorem that n-step transition probabilities equal the (i,j) entry of Pⁿ.
irreducible
Every state can be reached from every other state in some number of steps.
aperiodic
No state has a period greater than 1; return to the state is possible at consecutive time steps.
absorbing state
A state from which the chain never leaves: pᵢᵢ = 1.
stationary distribution π
A probability vector satisfying πP = π and Σⱼ πⱼ = 1. The long-run fraction of time in each state.
detailed balance
The condition πᵢ pᵢⱼ = πⱼ pⱼᵢ; sufficient for π to be the stationary distribution of a reversible chain.
Poisson process
A continuous-time process with independent, stationary increments where the count in any interval of length t is Poisson(λt).
rate λ
The expected number of Poisson events per unit time; the reciprocal of the mean interarrival time.
interarrival time
The time between consecutive events in a Poisson process; distributed as Exponential(λ).
memoryless property
P(T > s+t | T > s) = P(T > t); the past waiting time has no effect on the remaining waiting time.
Gamma distribution
The distribution of the sum of n independent Exponential(λ) variables; the time to the n-th Poisson event.
reliability function R(t)
R(t) = P(T > t), the probability a component survives past time t.
hazard rate h(t)
h(t) = f(t)/R(t), the instantaneous failure rate given survival to time t.
series system
A system that functions only when all components function; reliability equals the product of component reliabilities.
parallel system
A system that functions when at least one component functions; more reliable than any individual component.
M/M/1 queue
A single-server queue with Poisson arrivals (rate λ), exponential service (rate μ), and geometric stationary distribution.
traffic intensity ρ
ρ = λ/μ; the fraction of time the server is busy. Stability requires ρ < 1.
Little's Law
L = λW: expected number in system equals arrival rate times expected time in system. Holds for any stable queue.
Brownian motion
The continuous-time limit of the random walk with normally distributed increments. Foundation for stochastic calculus.
MCMC
Markov Chain Monte Carlo: computational methods that sample from target distributions using Markov chains with the target as their stationary distribution.
Hidden Markov Model
A model with an unobserved Markov chain and observed outputs that are noisy functions of the hidden state.

Skill Practice

Part ARandom Walk Practice
  1. A symmetric simple random walk starts at 0. (a) Find E[S₂₅] and Var(S₂₅). (b) Use the CLT to estimate P(S₁₀₀ > 15). (c) Estimate P(|S₄₀₀| ≤ 20). (d) After how many steps does the standard deviation equal 10?
  2. A gambler starts with $20 and targets $100, with p = 0.45. (a) Compute q/p. (b) Find the probability of reaching $100 before going broke. (c) How does the probability change if the target is $40 instead?
  3. A particle takes steps +2 with probability 1/3 or −1 with probability 2/3. (a) Find E[Z₁] and Var(Z₁). (b) Find E[S₁₀₀] and Var(S₁₀₀). (c) In which direction does the walk drift?
Part BMarkov Chain Practice
  1. A student studies (S) or does not study (N) each evening with transition matrix P = [[0.7, 0.3], [0.4, 0.6]]. (a) Find the stationary distribution. (b) If the student studied Monday, find P(studies Wednesday). (c) Interpret the stationary distribution in plain language.
  2. An insect colony has states Small, Medium, Large with P = [[0.5, 0.3, 0.2], [0.2, 0.5, 0.3], [0.1, 0.3, 0.6]]. (a) Is this chain irreducible? (b) Find the stationary distribution. (c) In the long run, what fraction of months is the colony Large?
  3. A machine is Operational or Under Maintenance with P = [[0.95, 0.05], [0.80, 0.20]]. (a) Find the stationary distribution. (b) Revenue is $1000/operational day, $0/maintenance day. Find the long-run average daily revenue.
Part CPoisson Process Problems
  1. Messages arrive at a router at rate λ = 12/min. (a) P(exactly 10 in next minute). (b) P(no messages in 10 seconds). (c) Expected time until the 5th message. (d) P(5th message within 20 seconds).
  2. Traffic accidents occur at rate λ = 2/week. (a) P(no accidents in a given week). (b) P(more than 5 in a 4-week month). (c) Expected time until the 3rd accident. (d) Standard deviation of time until the 3rd accident.
  3. Two independent Poisson processes: Type A at rate 3/hr, Type B at rate 7/hr. (a) Distribution of total arrivals per hour. (b) Given 10 total arrive in an hour, distribution of the number that are Type A. (c) Expected time between any two consecutive arrivals.

Error Analysis

Each problem shows a student's work. Identify the error and write the correct solution.

Problem 1
Poisson process, λ = 3/hr. P(exactly 3 events in 2 hours) = e⁻³(3)³/3! ≈ 0.224.

Identify the error. Write and compute the correct probability.

Problem 2
Transition matrix first row is (0.7, 0.3), so the stationary distribution is π = (0.7, 0.3).

Explain why this is wrong. Find the correct stationary distribution.

Problem 3
Three components in series, each R(t) = e⁻⁰·⁰¹ᵗ. System reliability at t = 50: R_system(50) = 3e⁻⁰·⁵.

Identify the error and compute the correct system reliability at t = 50.

Problem 4
Solving πP = π gives π₁ = 2π₃ and π₂ = 3π₃. Student concludes π = (2, 3, 1).

What step did the student omit? Write the correct stationary distribution.

Problem 5
"I have waited 30 minutes for a bus (Poisson, rate 2/hr). Because of the 30-minute wait, my additional expected wait is less than the original 30 minutes."

Identify the probabilistic error. What is the correct additional expected waiting time?

Chapter 13 Checkpoint

Chapter 13 Checkpoint
Complete without assistance — assesses all key skills and concepts from Chapter 13
Section 1 — Vocabulary and Concepts
  1. Define a stochastic process. Give one example from each of the four (discrete/continuous time) × (discrete/continuous state) categories.
  2. State the Markov property precisely. Give an example of a process that is Markovian and one that requires more than one step of memory.
  3. What does it mean for a Markov chain to be irreducible? Aperiodic? Why do both conditions matter for the convergence theorem?
Section 2 — Random Walks
  1. A symmetric simple random walk starts at S₀ = 0. Find E[S₂₅] and Var(S₂₅).
  2. Use the CLT to estimate P(S₁₀₀ ≤ 8).
  3. A gambler starts with $5 and targets $15 in a fair game (p = 1/2). Find the probability of reaching the target before going broke.
Section 3 — Markov Chains
  1. A server can be Fast (F), Slow (S), or Down (D). The transition matrix is P = [[0.8, 0.15, 0.05], [0.4, 0.5, 0.10], [0.3, 0.5, 0.20]]. Verify P is row-stochastic.
  2. If the server is Fast on Monday, find the probability it is Down on Wednesday. Use P².
  3. Find the stationary distribution (π_F, π_S, π_D). Show your balance equations and normalization step.
  4. The server generates revenue $200/day Fast, $80/day Slow, $0/day Down. Find the long-run expected daily revenue.
Section 4 — Poisson Processes and Waiting Times
  1. Messages arrive at rate λ = 12/min. Find P(exactly 10 messages in the next minute).
  2. Find P(no messages in a 10-second window).
  3. Find the expected time until the 5th message arrives.
  4. Find P(the 5th message arrives within 20 seconds) using the Poisson count duality.
Section 5 — Reliability and Queueing
  1. A communications system has two independent links in parallel, each with Exponential lifetime (mean 500 hours). Find R_system(t) and P(system lasts more than 400 hours).
  2. A hospital ER: patient arrival rate λ = 4/hr, service rate μ = 5/hr. (a) Find ρ. (b) Find E[L] and expected time per patient in the system. (c) The hospital targets average total wait under 15 minutes. Is this achieved?
Section 6 — Error Analysis
  1. A student computes the stationary distribution of a 2-state chain and reads π directly from the first row of P = [[0.6, 0.4], [0.3, 0.7]], concluding π = (0.6, 0.4). Find and explain the error. Give the correct answer.
  2. A student reasons: "Rate is 4 arrivals per hour, so average time between arrivals is 4 hours." Identify the error and give the correct mean waiting time.
Looking Ahead
Chapter 14: Statistical Modeling, Decision-Making, and Capstone Analysis

Chapter 13 showed that probability is not only about single draws from a distribution — it is also the language of systems that evolve over time. Markov chains, Poisson processes, and random walks are structures that govern how uncertainty unfolds, step by step or moment by moment.

Chapter 14 closes the book by drawing all the threads together. The question is no longer "how do we model one phenomenon" but "how do we think about modeling itself." Chapter 14 covers model selection, assumption checking, quantifying uncertainty, decision-making under uncertainty, reproducibility, ethics in statistical practice, and communication of results. Stochastic process ideas reappear there — MCMC is a tool of Bayesian computation; simulation of Markov chains supports assumption checking; dynamic models appear in the capstone data analysis project. Students who have worked through Chapter 13 are prepared to engage with probability and statistics as a complete, unified system for reasoning about an uncertain world.

MGU Library Connection
  • Distribution Reference — Appendix F (Discrete) and G (Continuous) of this textbook
  • Limit Theorems Reference — Appendix K: Law of Large Numbers, Central Limit Theorem
  • Linear Algebra: matrix multiplication and matrix powers used in Chapters 13.6–13.8
  • Discrete Mathematics: Markov chains connect to graph theory (communication classes as graph connectivity)
  • Differential Equations: stochastic differential equations extend ODEs to models driven by Brownian noise
  • MGU Dictionary entries: Markov chain, stochastic process, Poisson process, stationary distribution, random walk, waiting time, hazard rate