Study Notes

Stochastic Processes

A stochastic process is a family of random variables indexed by time. The subject is organized by which dependence structure you keep: Markov chains keep “the future depends only on the present” (discrete time, then continuous); renewal theory keeps only “iid gaps between events”; martingales keep only “fair given the past”; Brownian motion is what survives every scaling limit. Two computational moves do most of the work in the entire subject: first-step analysis (condition on the first step, let the Markov property restart the clock) and optional stopping (a fair game stays fair at a well-behaved random time). The recurring destination: long-run behavior — stationary distributions, limit theorems, and the LLN/CLT shadows each structure casts.

1. Markov chains — the object

  • A (discrete-time) Markov chain is a process (Xn)(X_n) on a countable state space SS with the Markov property:

P(Xn+1=yXn=x,Xn1=xn1,,X0=x0)=P(Xn+1=yXn=x)P(X_{n+1} = y \mid X_n = x, X_{n-1} = x_{n-1}, \ldots, X_0 = x_0) = P(X_{n+1} = y \mid X_n = x)

The future is independent of the past given the present. The present state is a sufficient statistic for prediction.

  • Time homogeneous: transition probabilities don’t depend on nn. Then the chain is fully specified by two objects: the transition matrix P(x,y)=P(X1=yX0=x)P(x,y) = P(X_1 = y \mid X_0 = x) (rows are probability distributions: entries ≥ 0, rows sum to 1) and the initial distribution π0\pi^0.
  • Build the joint distribution by peeling one step at a time with the Markov property:

P(X0=x0,,Xn=xn)=π0(x0)P(x0,x1)P(x1,x2)P(xn1,xn)P(X_0 = x_0, \ldots, X_n = x_n) = \pi^0(x_0)\,P(x_0, x_1)\,P(x_1, x_2)\cdots P(x_{n-1}, x_n)

  • n-step transitions are matrix powers. Condition on the intermediate state (Chapman–Kolmogorov):

pm+n(x,y)=kpm(x,k)pn(k,y)        P(m+n)=P(m)P(n)    P(n)=Pnp^{m+n}(x, y) = \sum_k p^m(x, k)\,p^n(k, y) \;\iff\; P^{(m+n)} = P^{(m)}P^{(n)} \;\Rightarrow\; P^{(n)} = P^n

and distributions evolve as a row vector hitting the matrix: πn=π0Pn\pi^n = \pi^0 P^n. This is track 2’s “powers and dynamics” section with a stochastic matrix — eigenvalues run the long-run show, and λ=1\lambda = 1 is always present.

  • Numeric anchor — the 2-state chain P=[1aab1b]P = \begin{bmatrix} 1-a & a \\ b & 1-b \end{bmatrix}:

Pn=1a+b[baba]+(1ab)na+b[aabb]  n  [ba+baa+bba+baa+b]P^n = \frac{1}{a+b}\begin{bmatrix} b & a \\ b & a \end{bmatrix} + \frac{(1-a-b)^n}{a+b}\begin{bmatrix} a & -a \\ -b & b \end{bmatrix} \;\xrightarrow{n \to \infty}\; \begin{bmatrix} \frac{b}{a+b} & \frac{a}{a+b} \\ \frac{b}{a+b} & \frac{a}{a+b} \end{bmatrix}

Identical rows in the limit: the chain forgets where it started. The decaying term is the second eigenvalue 1ab1 - a - b doing exactly what track 2’s spectral-gap implication promised.

  • The cast of examples to keep loaded: random walk on ZZ (steps ±1), gambler’s ruin (absorbing ends), Ehrenfest urns (repelling ends), simple random walk on a graph (p(x,y)=1/deg(x)p(x,y) = 1/\deg(x)), success runs, iid sequences (all rows equal), branching processes. A warning from the deterministic-square example: a function of a Markov chain need not be Markov — lumping states can manufacture memory.

Core competency set

  • State the Markov property and what “time homogeneous” adds; specify a chain by (P,π0)(P, \pi^0).
  • Derive P(n)=PnP^{(n)} = P^n from Chapman–Kolmogorov and evolve πn=π0Pn\pi^n = \pi^0P^n.
  • Read the 2-state limit as eigenvalue decay; give an example where a function of a chain isn’t Markov.

2. First-step analysis — the workhorse

The single most-used computational move in the subject. To compute any “until” quantity — hitting probabilities, expected absorption times — condition on the first step; the Markov property restarts the chain from the new state; you get linear equations.

Set-up: hitting time VA=min{n0:XnA}V_A = \min\{n \geq 0: X_n \in A\}, return time TA=min{n1:XnA}T_A = \min\{n \geq 1: X_n \in A\} (they differ only when you start in AA). A state with P(x,x)=1P(x,x) = 1 is absorbing.

Worked anchor — gambler’s ruin with p=0.4p = 0.4 up, 0.60.6 down, states {0,,4}\{0, \ldots, 4\}, absorbing at 0 and 4. Let h(x)=Px(V4<V0)h(x) = P_x(V_4 < V_0) — the probability of winning from xx:

  • Boundary values are free: h(0)=0h(0) = 0, h(4)=1h(4) = 1.
  • Condition on the first step from state 1:

h(1)=P(X1=0X0=1)h(0)+P(X1=2X0=1)h(2)=0.6(0)+0.4h(2)h(1) = P(X_1 = 0 \mid X_0 = 1)\,h(0) + P(X_1 = 2 \mid X_0 = 1)\,h(2) = 0.6\,(0) + 0.4\,h(2)

  • Same at every interior state: h(2)=0.6h(1)+0.4h(3)h(2) = 0.6\,h(1) + 0.4\,h(3), h(3)=0.6h(2)+0.4h(3) = 0.6\,h(2) + 0.4. Three linear equations; solving gives

h(1)=865,h(2)=2065,h(3)=3865h(1) = \tfrac{8}{65}, \qquad h(2) = \tfrac{20}{65}, \qquad h(3) = \tfrac{38}{65}

  • Expected absorption time g(x)=ExV{0,4}g(x) = E_xV_{\{0,4\}} — identical move plus “+1” for the step taken:

g(1)=1+0.6g(0)+0.4g(2),g(0)=g(4)=0,    g(1)=3313, g(2)=5013, g(3)=4313g(1) = 1 + 0.6\,g(0) + 0.4\,g(2), \quad g(0) = g(4) = 0, \ldots \;\Rightarrow\; g(1) = \tfrac{33}{13},\ g(2) = \tfrac{50}{13},\ g(3) = \tfrac{43}{13}

  • Patterns in coin flips, same machine. To find E(flips until HTH)E(\text{flips until HTH}) with a fair coin, the state must capture current progress through the pattern — the length of the longest suffix of flips so far that is a prefix of HTH:
    • state 0: no usable progress; state 1: have H; state 2: have HT; state 3: HTH complete (absorbing).
    • Transitions read off “what does the next flip do to the longest matching prefix”: from 1 (H) a tail gives HT (state 2), a head keeps H (state 1); from 2 (HT) a head completes HTH (state 3), a tail drops to T which matches nothing useful (state 0).
  • Let g(x)=Ex(flips to reach state 3)g(x) = E_x(\text{flips to reach state 3}), so g(3)=0g(3) = 0 and each interior state pays +1+1 for the flip taken:

g(0)=1+12g(1)+12g(0),g(1)=1+12g(1)+12g(2),g(2)=1+12g(0)g(0) = 1 + \tfrac12 g(1) + \tfrac12 g(0), \quad g(1) = 1 + \tfrac12 g(1) + \tfrac12 g(2), \quad g(2) = 1 + \tfrac12 g(0)

  • Solve by elimination. Clear the self-loop in each of the first two (move the 12g\tfrac12 g term left, double):

g(0)=2+g(1),g(1)=2+g(2)g(0) = 2 + g(1), \qquad g(1) = 2 + g(2)

Chain them down to g(2)g(2), then substitute the g(2)g(2) equation:

g(0)=4+g(2)=4+(1+12g(0))=5+12g(0)g(0) = 4 + g(2) = 4 + \big(1 + \tfrac12 g(0)\big) = 5 + \tfrac12 g(0)

Collect g(0)g(0): 12g(0)=5\tfrac12 g(0) = 5, so E=g(0)=10\boxed{E = g(0) = 10}. Designing the right state space is the skill — the state must capture exactly what the future needs.

Implications

  • Absorption probabilities UikU_{ik} and expected accumulated rewards before absorption all satisfy the same template u(x)=(immediate)+yP(x,y)u(y)u(x) = (\text{immediate}) + \sum_y P(x,y)u(y) — one linear solve, many questions.
  • The same equations return in continuous time with the generator (§9) and for Brownian motion via martingales (§12) — learn the move once.

Core competency set

  • Set up and solve hh (hitting probability) and gg (expected time) systems from a blank page, boundary conditions first.
  • Build a pattern-tracking state space (HTH) and explain why state design is the real work.

3. Stopping times and the strong Markov property

  • A random time TT is a stopping time if for every nn, the event {Tn}\{T \leq n\} is determined by X0,,XnX_0, \ldots, X_n — you can tell when it happens that it happened, no future peeking. Gambling intuition: a quitting rule you could actually implement.
  • Examples: hitting times, return times, kkth return times. Non-example: the last visit to a set (LA=sup{n:XnA}L_A = \sup\{n: X_n \in A\}) — knowing it’s the last visit requires the future.
  • Strong Markov property: the chain restarts not just at fixed times but at stopping times — conditional on T<T < \infty and XT=xX_T = x, the process (XT+m)m0(X_{T+m})_{m \geq 0} is a fresh copy of the chain started at xx, independent of the pre-TT past.
  • What it buys, immediately: successive return times to a state have iid gaps. Starting at yy, each return restarts the chain at yy, so

Py(Ty(k)<)=ρyykwhere ρyy=Py(Ty<)P_y(T_y^{(k)} < \infty) = \rho_{yy}^k \qquad \text{where } \rho_{yy} = P_y(T_y < \infty)

— returning kk times is just returning once, kk independent times. This single identity drives the entire classification theory of §4.

Implications — what restart-the-clock buys:

  • The path decomposes into iid excursions between returns. That one consequence powers the classification theory (§4), the frequency identity π(y)=1EyTy\pi(y) = \frac{1}{E_yT_y} (§5), and the ergodic theorem’s LLN-for-chains (§6).
  • “You can’t peek” is the same license behind Wald’s equation (§10) and optional stopping (§11) — random times behave like fixed times precisely when the decision to stop never uses the future.

Core competency set

  • Define stopping time; classify hitting/return/last-visit times correctly.
  • State the strong Markov property and derive ρyyk\rho_{yy}^k from it.

4. Recurrence and transience — classifying states

  • Recurrent: ρyy=1\rho_{yy} = 1 — the chain returns, hence (by §3) returns infinitely often. Transient: ρyy<1\rho_{yy} < 1 — each return is a coin flip that eventually fails; the number of visits 1+Ny1 + N_y is Geometric, and

EyNy=ρyy1ρyy=n1pn(y,y)E_yN_y = \frac{\rho_{yy}}{1 - \rho_{yy}} = \sum_{n \geq 1} p^n(y,y)

So the practical test: yy is recurrent ⟺ npn(y,y)=\sum_n p^n(y,y) = \infty (expected visits infinite).

  • Communication: xyx \to y if ρxy>0\rho_{xy} > 0; a set is closed if you can’t leave, irreducible if everything communicates with everything.
  • The structural theorems, with their one-line mechanisms:
    • If xyx \to y but y↛xy \not\to x with certainty (ρyx<1\rho_{yx} < 1), then xx is transient — there’s a positive-probability escape route that never comes back.
    • Recurrence spreads through communication: xx recurrent and xyx \to yyy recurrent. Use the test recurrent     npn(y,y)=\iff \sum_n p^n(y,y) = \infty, so the goal is to show returns to yy sum to infinity. Since xx and yy communicate, pick a jj-step path yxy \to x and an ll-step path xyx \to y, both of positive probability: pj(y,x)>0p^j(y,x) > 0, pl(x,y)>0p^l(x,y) > 0. One way to return yyy \to y in j+k+lj+k+l steps is to run yxy \to x (jj steps), loop xxx \to x (kk steps), then xyx \to y (ll steps); keeping only that single route lower-bounds the full transition (Chapman–Kolmogorov sums over all intermediate paths):

pj+k+l(y,y)    pj(y,x)pk(x,x)pl(x,y)p^{j+k+l}(y,y) \;\geq\; p^j(y,x)\,p^k(x,x)\,p^l(x,y)

Sum over kk and pull the two constants out of the sum:

kpj+k+l(y,y)    pj(y,x)(kpk(x,x))pl(x,y)\sum_k p^{j+k+l}(y,y) \;\geq\; p^j(y,x)\Big(\sum_k p^k(x,x)\Big)p^l(x,y)

xx is recurrent, so kpk(x,x)=\sum_k p^k(x,x) = \infty; multiplied by the two positive constants the right side is \infty. The left side is a sub-series of npn(y,y)\sum_n p^n(y,y), so that diverges too — yy is recurrent.

  • A finite closed set CC must contain a recurrent state. Suppose not — every state of CC is transient. A transient state yy has finite expected visits, ExNy<E_x N_y < \infty (the visit count is Geometric, §4 above), and CC is finite, so a finite sum of finite terms is finite:

yCExNy<\sum_{y \in C} E_x N_y < \infty

But CC is closed: the chain never leaves, so it takes infinitely many steps each landing somewhere in CC, making total visits infinite:

yCNy=    yCExNy=\sum_{y \in C} N_y = \infty \;\Rightarrow\; \sum_{y \in C} E_x N_y = \infty

The two displays contradict, so some state of CC must be recurrent.

  • Theorem: finite + closed + irreducible ⟹ all states recurrent.
  • Decomposition theorem: any finite state space splits as S=TR1RkS = T \cup R_1 \cup \cdots \cup R_k — transient states plus closed irreducible recurrent classes. The chain falls out of TT into one of the RjR_j and then lives there. (Gambler’s ruin: T={1,,N1}T = \{1,\ldots,N-1\}, R1={0}R_1 = \{0\}, R2={N}R_2 = \{N\}.)

The picture to hold (and redraw cold): the state space as islands — a transient region TT with one-way arrows leaking out of it into closed recurrent islands R1,,RkR_1, \ldots, R_k. Inside each island everything communicates; between islands, nothing. Every finite chain’s long-run story is: fall out of TT, get trapped on one island, circulate there forever.

  • Recurrence splits further by how long return takes: positive recurrent if EyTy<E_yT_y < \infty, null recurrent if recurrent but EyTy=E_yT_y = \infty.
  • Worked trichotomy — the reflecting random walk on {0,1,2,}\{0, 1, 2, \ldots\} (up with pp, down with 1p1-p, reflected at 0):
ppbehaviorwhy
p<1/2p < 1/2positive recurrentdrift home; stationary distribution exists, π(x)(p1p)x\pi(x) \propto (\frac{p}{1-p})^x
p=1/2p = 1/2null recurrentreturns with probability 1 (Gambler’s-ruin limit Px(V0<VN)=1xN1P_x(V_0 < V_N) = 1 - \frac{x}{N} \to 1) but E0T0=E_0T_0 = \infty
p>1/2p > 1/2transientescape probability P1(T0=)=11pp>0P_1(T_0 = \infty) = 1 - \frac{1-p}{p} > 0

Null recurrence is the genuinely new phenomenon infinite state spaces allow: certain to return, but on a timescale with no mean.

Core competency set

  • Define recurrent/transient three equivalent ways (ρyy\rho_{yy}, infinitely-many-visits, pn(y,y)\sum p^n(y,y)).
  • Prove the finite-closed-irreducible theorem’s two lemmas in skeleton form.
  • Reproduce the reflecting-walk trichotomy with the reason for each regime.

5. Stationary distributions

  • π\pi is stationary if πP=π\pi P = \pi — run the chain one step from π\pi and the distribution is unchanged. In track 2 language: π\pi is a left eigenvector of PP with eigenvalue 1, which a stochastic matrix always has.
  • Detailed balance (stronger, easier to check): π(x)p(x,y)=π(y)p(y,x)\pi(x)p(x,y) = \pi(y)p(y,x) for all pairs. Sand picture: π\pi is sand piled on states, pp moves it; detailed balance says every pair of states exchanges equal sand, so certainly each state’s total is conserved. DBC ⟹ stationary in one line:

xπ(x)p(x,y)=xπ(y)p(y,x)=π(y)xp(y,x)=π(y)\sum_x \pi(x)p(x,y) = \sum_x \pi(y)p(y,x) = \pi(y)\sum_x p(y,x) = \pi(y)

  • Where DBC is the fast route:
    • Birth–death chains (transitions only to neighbors — Ehrenfest, gambler’s ruin, reflecting RW): only adjacent pairs need checking. Ehrenfest with NN balls: π(x)=2N(Nx)\pi(x) = 2^{-N}\binom{N}{x} — binomial, concentrated at N/2N/2, the statistical-mechanics equilibrium.
    • SRW on a graph: guess π(x)=cdeg(x)\pi(x) = c\deg(x); for an edge xyx \sim y, π(x)p(x,y)=cdeg(x)1deg(x)=c\pi(x)p(x,y) = c\deg(x)\frac{1}{\deg(x)} = c, symmetric in x,yx, y ✓. Normalize: c=12Ec = \frac{1}{2|E|}. Time spent at a vertex ∝ its degree. Regular graph ⟹ uniform.
    • Doubly stochastic PP (columns also sum to 1) ⟹ uniform π(x)=1N\pi(x) = \frac{1}{N}.
  • Computing π\pi in general is linear algebra: solve π(PI)=0\pi(P - I) = 0 with π=1\sum\pi = 1 (drop one redundant equation, substitute the normalization). Numeric anchor — social mobility P=[.7.2.1.3.5.2.2.4.4]P = \begin{bmatrix} .7 & .2 & .1 \\ .3 & .5 & .2 \\ .2 & .4 & .4 \end{bmatrix} gives π=(2247,1647,947)\pi = (\frac{22}{47}, \frac{16}{47}, \frac{9}{47}).
  • The frequency identity — what π\pi is: for irreducible recurrent chains,

π(y)=1EyTy\pi(y) = \frac{1}{E_yT_y}

Proof idea: returns to yy have iid gaps (strong Markov), so by the SLLN the long-run fraction of time at yy is one visit per EyTyE_yT_y steps — a period’s reciprocal is a frequency. This also shows π\pi is unique (the formula has no free choices), and ties positive recurrence to π(y)>0\pi(y) > 0.

  • Reversibility: run a stationary chain backwards and you get a Markov chain with p^(x,y)=π(y)p(y,x)π(x)\hat{p}(x,y) = \frac{\pi(y)p(y,x)}{\pi(x)}; DBC ⟺ the reversed chain has the same transition probabilities — the movie looks identical played backwards.

Core competency set

  • Verify and exploit detailed balance; derive πdeg\pi \propto \deg for SRW on a graph and uniform for doubly stochastic.
  • Solve πP=π\pi P = \pi by hand for a 3-state chain.
  • State and explain π(y)=1/EyTy\pi(y) = 1/E_yT_y via iid return gaps.

6. Convergence, ergodicity, and MCMC

Two distinct questions about long-run behavior — keep them separate:

  1. Does πnπ\pi^n \to \pi? Needs more than a stationary distribution. The flip-flop counterexample P=[0110]P = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} has π=(12,12)\pi = (\frac{1}{2}, \frac{1}{2}) but πn\pi^n alternates forever — periodicity is the obstruction. Period of xx = gcd of possible return times; aperiodic = period 1. Convergence theorem: irreducible + aperiodic + stationary distribution exists ⟹ pn(x,y)π(y)p^n(x,y) \to \pi(y) for all xx — the chain forgets its start.
  2. Do time averages converge? Needs less: Ergodic theorem — irreducible + stationary π\pi (no aperiodicity needed!):

1nm=1nf(Xm)a.s.xf(x)π(x)=Eπ[f]\frac{1}{n}\sum_{m=1}^n f(X_m) \xrightarrow{a.s.} \sum_x f(x)\pi(x) = E_\pi[f]

An LLN for dependent, Markov data. With f=1Af = \mathbf{1}_A: the fraction of time in AA converges to π(A)\pi(A) — even for the flip-flop chain, which never converges in distribution but spends exactly half its time in each state.

MCMC — the payoff. Goal: compute Eπ[f]E_\pi[f] for a π\pi too complicated to sum over (often known only up to a normalizing constant). Idea: build an irreducible chain whose stationary distribution is π\pi, run it, and let the ergodic theorem average for you.

Metropolis–Hastings: propose moves from any convenient Q(x,y)Q(x,y), accept with probability

R(x,y)=min{π(y)Q(y,x)π(x)Q(x,y), 1}R(x,y) = \min\left\{\frac{\pi(y)Q(y,x)}{\pi(x)Q(x,y)},\ 1\right\}

(else stay put). The acceptance ratio is engineered to force detailed balance — check: WLOG π(y)Q(y,x)>π(x)Q(x,y)\pi(y)Q(y,x) > \pi(x)Q(x,y); then

π(x)p(x,y)=π(x)Q(x,y)1π(y)Q(y,x)π(y)Q(y,x)=π(y)Q(y,x)R(y,x)=π(y)p(y,x)\pi(x)p(x,y) = \pi(x)Q(x,y)\cdot 1 \cdot \frac{\pi(y)Q(y,x)}{\pi(y)Q(y,x)} = \pi(y)Q(y,x)R(y,x) = \pi(y)p(y,x)

  • The killer feature: only the ratio π(y)π(x)\frac{\pi(y)}{\pi(x)} appears — normalizing constants cancel. For the Ising model, πβ(σ)=1Z(β)eβH(σ)\pi_\beta(\sigma) = \frac{1}{Z(\beta)}e^{-\beta H(\sigma)} on 2V2^{|V|} configurations: ZZ is hopeless to compute, but flip one spin and the ratio is a local quantity e2βjiσ(i)σ(j)e^{-2\beta\sum_{j \sim i}\sigma(i)\sigma(j)}. This is why MCMC runs all of Bayesian computation (track 7) and statistical physics.
  • Designing QQ is the art; mixing time (how long until the ergodic average is trustworthy) is the science — and it’s governed by the spectral gap 1λ21 - |\lambda_2| of the transition matrix, exactly track 2’s convergence-rate implication made load-bearing. Famous instance: seven riffle shuffles ≈ mix a deck across its 52! states.

Core competency set

  • Separate the two convergence questions; produce the flip-flop counterexample and what survives it (time averages).
  • State both theorems with exact hypotheses (where aperiodicity is and isn’t needed).
  • Derive M–H’s detailed balance and explain why normalizing constants cancel.

7. Branching processes — extinction by generating function

  • Population model: each individual independently has children with offspring pmf ff; Xn+1=m=1XnYn,mX_{n+1} = \sum_{m=1}^{X_n} Y_{n,m} (a random sum — track 1’s tower machinery). Let μ=E(Y)\mu = E(Y).
  • The mean evolves geometrically — condition on the current generation:

E(Xn+1Xn)=μXn    E(Xn)=μnE(X0)E(X_{n+1} \mid X_n) = \mu X_n \;\Rightarrow\; E(X_n) = \mu^n E(X_0)

  • Extinction probability ρ=P1(T0<)\rho = P_1(T_0 < \infty). Two soft cases first: μ<1\mu < 1 ⟹ extinction certain, by Markov’s inequality (track 1’s tail bound, cashed in):

P(Xn1)E(Xn)=μn0P(X_n \geq 1) \leq E(X_n) = \mu^n \to 0

And f(0)=0f(0) = 0 ⟹ no extinction, trivially.

  • The general tool is the generating function ϕ(r)=krkf(k)=E(rY)\phi(r) = \sum_k r^kf(k) = E(r^Y), with ϕ(1)=1\phi(1) = 1, ϕ(0)=f(0)\phi(0) = f(0), ϕ(1)=μ\phi'(1) = \mu, ϕ\phi increasing and convex on [0,1][0,1].
  • First-step analysis on the family tree: for the line to die out, each of the kk first-generation children’s independent subtrees must die out — each with the same probability ρ\rho:

ρ=kf(k)ρk=ϕ(ρ)\rho = \sum_k f(k)\,\rho^k = \phi(\rho)

Extinction probability is a fixed point of ϕ\phi. Iterating ρn=ϕ(ρn1)\rho_n = \phi(\rho_{n-1}) from ρ1=f(0)\rho_1 = f(0) climbs monotonically to the smallest fixed point in [0,1][0,1] — that’s the theorem: ρ\rho = smallest solution of ϕ(r)=r\phi(r) = r.

  • Geometry: ϕ\phi is convex, anchored at (1,1)(1,1) with slope μ\mu there. If μ1\mu \leq 1 the curve stays above the diagonal until 1 — only fixed point is 1, extinction certain (even at μ=1\mu = 1, the critical case). If μ>1\mu > 1 the curve dips below the diagonal — a second fixed point ρ<1\rho < 1 appears, survival possible. This is the picture to redraw cold: the unit square, the diagonal y=ry = r, the convex curve ϕ\phi from (0,f(0))(0, f(0)) up to (1,1)(1,1), with the slope at 1 (= μ\mu) deciding whether it crosses the diagonal early; iterating ρn=ϕ(ρn1)\rho_n = \phi(\rho_{n-1}) staircases up from f(0)f(0) into the first crossing.
  • Numeric anchor: f(0)=14,f(1)=14,f(2)=12f(0) = \frac{1}{4}, f(1) = \frac{1}{4}, f(2) = \frac{1}{2}μ=54>1\mu = \frac{5}{4} > 1;

ϕ(r)=14+14r+12r2=r    r{12,1}    ρ=12\phi(r) = \tfrac{1}{4} + \tfrac{1}{4}r + \tfrac{1}{2}r^2 = r \;\Rightarrow\; r \in \{\tfrac{1}{2}, 1\} \;\Rightarrow\; \rho = \tfrac{1}{2}

(1 is always a root — use it to factor.) Coin-flip odds of a lineage lasting forever despite exponential expected growth.

Core competency set

  • Derive E(Xn)=μnE(X_n) = \mu^n and the Markov-inequality argument for μ<1\mu < 1.
  • Derive ρ=ϕ(ρ)\rho = \phi(\rho) by first-step analysis on subtrees; state and use “smallest fixed point”; sketch the convexity picture for the three regimes μ<1,=1,>1\mu < 1, = 1, > 1.

8. The Poisson process — exponential clocks

The continuous-time foundation. Everything flows from the memorylessness of the exponential (track 1’s characterization): P(T>s+tT>s)=P(T>t)P(T > s + t \mid T > s) = P(T > t).

  • Exponential races — the engine of all continuous-time constructions. For independent TiExp(λi)T_i \sim \text{Exp}(\lambda_i), S=miniTiS = \min_i T_i, I=argminI = \arg\min:

SExp(λ1++λn),P(I=i)=λiλ1++λn,SIS \sim \text{Exp}(\lambda_1 + \cdots + \lambda_n), \qquad P(I = i) = \frac{\lambda_i}{\lambda_1 + \cdots + \lambda_n}, \qquad S \perp I

Derivation of the first (the rate-adds fact). The minimum exceeds tt exactly when every clock does:

P(S>t)=P(T1>t,,Tn>t)P(S > t) = P(T_1 > t, \ldots, T_n > t)

The TiT_i are independent, so the joint survival probability factors:

P(S>t)=iP(Ti>t)=ieλitP(S > t) = \prod_i P(T_i > t) = \prod_i e^{-\lambda_i t}

Collect exponents (ieai=eiai\prod_i e^{-a_i} = e^{-\sum_i a_i}):

P(S>t)=e(iλi)tP(S > t) = e^{-(\sum_i \lambda_i)\,t}

which is the survival function of Exp(iλi)\text{Exp}(\sum_i \lambda_i). Rates add; the winner is chosen proportional to rate; who wins tells you nothing about when.

  • Poisson process PP(λ)PP(\lambda), two equivalent descriptions (the equivalence is the theorem):
    1. Axioms: N(0)=0N(0) = 0; N(t+s)N(s)Pois(λt)N(t+s) - N(s) \sim \text{Pois}(\lambda t); increments over disjoint intervals independent.
    2. Construction: arrival gaps τ1,τ2,\tau_1, \tau_2, \ldots iid Exp(λ)\text{Exp}(\lambda), Tn=1nτiGamma(n,λ)T_n = \sum_1^n \tau_i \sim \text{Gamma}(n, \lambda), N(t)=max{n:Tnt}N(t) = \max\{n: T_n \leq t\}. This is track 1’s “one process, three slices” (Pois counts / Exp first wait / Gamma nnth wait) — now with the machinery to prove it. Memorylessness is what makes the restart-at-ss argument work: the time from ss to the next arrival is Exp(λ)\text{Exp}(\lambda) no matter how long you’ve waited.
  • The closure operations, each with its one-line reason:
    • Superposition: independent PP(λk)PP(\lambda_k) summed ⟹ PP(λk)PP(\sum\lambda_k) — exponential races at every arrival.
    • Thinning: label each arrival type kk with probability pkp_k independently ⟹ the type-kk processes are independent PP(λpk)PP(\lambda p_k) — the multinomial split of a Poisson count factors exactly.
    • Conditioning: given N(t)=nN(t) = n, the arrival times are distributed as nn iid Uniform[0,t][0,t] points, sorted. (So given N(t)=nN(t) = n, N(s)Bin(n,st)N(s) \sim \text{Bin}(n, \frac{s}{t}).) Poisson arrivals carry no clustering information beyond their count.
    • Compound: S(t)=i=1N(t)YiS(t) = \sum_{i=1}^{N(t)} Y_i (random sums again): E[S]=λtE[Y]E[S] = \lambda t\,E[Y], Var(S)=λtE[Y2]\operatorname{Var}(S) = \lambda t\,E[Y^2].
  • Numeric anchor (races as thinning): trucks PP(λ)PP(\lambda), cars PP(μ)PP(\mu). Each arrival is independently a truck with probability λλ+μ\frac{\lambda}{\lambda+\mu}, so P(6 trucks before 4 cars) = P(≥6 of the first 9 arrivals are trucks) =k=69(9k)(λλ+μ)k(μλ+μ)9k= \sum_{k=6}^9\binom{9}{k}\big(\frac{\lambda}{\lambda+\mu}\big)^k\big(\frac{\mu}{\lambda+\mu}\big)^{9-k} — a continuous-time question collapsed to a binomial.

Core competency set

  • Prove the three parts of exponential races; state both PP descriptions and why memorylessness links them.
  • Apply superposition/thinning/conditioning, including the uniform-order-statistics fact.
  • Convert a “race” question to a binomial via thinning.

9. Continuous-time Markov chains

  • Same Markov property, continuous index. Specified by jump rates q(x,y)=limt0pt(x,y)tq(x,y) = \lim_{t \to 0}\frac{p_t(x,y)}{t} — derivatives of transition probabilities at 0.
  • Mechanics of the chain (the construction): sitting at xx, every destination yy runs an independent Exp(q(x,y))\text{Exp}(q(x,y)) clock. The exponential race (§8) decides: leave at rate λ(x)=yxq(x,y)\lambda(x) = \sum_{y \neq x} q(x,y) after an Exp(λ(x))\text{Exp}(\lambda(x)) wait, jump to yy with probability R(x,y)=q(x,y)λ(x)R(x,y) = \frac{q(x,y)}{\lambda(x)}. The jump sequence alone is a discrete chain (the embedded chain with matrix RR); the waits decorate it with continuous time.
  • The generator packages everything: Q(x,y)=q(x,y)Q(x,y) = q(x,y) off-diagonal, Q(x,x)=λ(x)Q(x,x) = -\lambda(x) (rows sum to 0). Then transition probabilities solve the Kolmogorov equations and exponentiate the generator —

pt=Qpt=ptQ,pt=eQtp_t' = Qp_t = p_tQ, \qquad p_t = e^{Qt}

track 2’s matrix exponential and f(A)=Sf(Λ)S1f(A) = Sf(\Lambda)S^{-1}, cashed in directly.

  • Stationary distribution: π\pi stationary ⟺ πQ=0\pi Q = 0. Written out: zyπ(z)q(z,y)=π(y)λ(y)\sum_{z \neq y}\pi(z)q(z,y) = \pi(y)\lambda(y)rate in = rate out at every state, the continuous balance equation.
  • No aperiodicity needed: exponential waits can’t synchronize, so irreducible + stationary ⟹ pt(x,y)π(y)p_t(x,y) \to \pi(y). Periodicity was a discrete-time disease.
  • Numeric anchor — weather: sunny Exp(1/3)\text{Exp}(1/3) → cloudy Exp(1/4)\text{Exp}(1/4) → rain Exp(1)\text{Exp}(1) → sunny. Q=[1/31/3001/41/4101]Q = \begin{bmatrix} -1/3 & 1/3 & 0 \\ 0 & -1/4 & 1/4 \\ 1 & 0 & -1 \end{bmatrix}; solving πQ=0\pi Q = 0 with normalization: π=(38,48,18)\pi = (\frac{3}{8}, \frac{4}{8}, \frac{1}{8}) — exactly the mean waits (3,4,1)(3, 4, 1) over the cycle length 8. Time-share = waiting time share.
  • Standard models as rate bookkeeping: M/M/k queue — arrivals q(n,n+1)=λq(n, n+1) = \lambda; services race, q(n,n1)=min(n,k)μq(n, n-1) = \min(n, k)\mu. Continuous branching — births q(n,n+1)=λnq(n, n+1) = \lambda n, deaths q(n,n1)=μnq(n, n-1) = \mu n (nn independent clocks each).
  • Exit problems run on the embedded chain / generator submatrix: h=QC1vh = -Q_C^{-1}v — first-step analysis again, in matrix clothing.

Core competency set

  • Construct a CTMC from rates via exponential races; extract λ(x)\lambda(x) and the embedded RR.
  • Write QQ, state pt=eQtp_t = e^{Qt}, and solve πQ=0\pi Q = 0 reading it as rate-in = rate-out (weather example from scratch).
  • Explain why aperiodicity disappears in continuous time.

10. Renewal theory — only iid gaps

Drop the exponential: gaps X1,X2,X_1, X_2, \ldots iid from any nonnegative distribution, arrivals Sn=1nXiS_n = \sum_1^n X_i, count N(t)=sup{n:Snt}N(t) = \sup\{n: S_n \leq t\}, μ=E(X1)\mu = E(X_1). The Poisson process is the special (memoryless) case. The pivot identity for everything: {N(t)n}={Snt}\{N(t) \geq n\} = \{S_n \leq t\}.

  • Rate: with probability 1,

N(t)t1μ\frac{N(t)}{t} \to \frac{1}{\mu}

Proof skeleton — sandwich tt between the arrivals bracketing it, then let the SLLN drive. By the definition of N(t)N(t), the N(t)N(t)-th arrival has happened by tt and the next overshoots:

SN(t)    t  <  SN(t)+1S_{N(t)} \;\leq\; t \;<\; S_{N(t)+1}

Divide through by N(t)N(t):

SN(t)N(t)    tN(t)  <  SN(t)+1N(t)\frac{S_{N(t)}}{N(t)} \;\leq\; \frac{t}{N(t)} \;<\; \frac{S_{N(t)+1}}{N(t)}

As tt \to \infty, N(t)N(t) \to \infty, and both ends μ\to \mu: the left is Sn/na.s.μS_n/n \xrightarrow{a.s.} \mu (SLLN), the right is Sn+1n+1n+1nμ1\tfrac{S_{n+1}}{n+1}\cdot\tfrac{n+1}{n} \to \mu\cdot 1. The middle is squeezed:

tN(t)μ    N(t)t1μ\frac{t}{N(t)} \to \mu \;\Rightarrow\; \frac{N(t)}{t} \to \frac{1}{\mu}

  • Wald’s equation: NN a stopping time for iid XiX_i, E(N)<E(N) < \infty:

E[i=1NXi]=E(N)E(X1)E\Big[\sum_{i=1}^N X_i\Big] = E(N)\,E(X_1)

The proof’s one trick, displayed. Rewrite the random-length sum as an infinite sum of censored terms:

i=1NXi=n=1Xn1{Nn}\sum_{i=1}^N X_i = \sum_{n=1}^\infty X_n\,\mathbf{1}\{N \geq n\}

The event {Nn}={Nn1}c\{N \geq n\} = \{N \leq n-1\}^c is determined by X1,,Xn1X_1, \ldots, X_{n-1}the past — hence independent of XnX_n. So expectations factor term by term:

E[i=1NXi]=n=1E[Xn]P(Nn)=E(X1)n=1P(Nn)=E(X1)E(N)E\Big[\sum_{i=1}^N X_i\Big] = \sum_{n=1}^\infty E[X_n]\,P(N \geq n) = E(X_1)\sum_{n=1}^\infty P(N \geq n) = E(X_1)\,E(N)

(the last step is the tail-sum formula for nonnegative integer RVs). Stopping times can’t peek — that is the entire theorem. Counterexample when the condition fails: the symmetric walk stopped at its first hit of 1 has E(SN)=10=E(N)E(X1)E(S_N) = 1 \neq 0 = E(N)E(X_1) — here E(N)=E(N) = \infty is the hypothesis that breaks.

  • Elementary renewal theorem: m(t)t1μ\frac{m(t)}{t} \to \frac{1}{\mu} for m(t)=E[N(t)]m(t) = E[N(t)] (needs its own proof — convergence a.s. doesn’t give convergence of expectations; Wald + truncation does it). Blackwell sharpens: far from the origin, expected renewals in (t,t+a](t, t+a]aμ\frac{a}{\mu} — every renewal process is asymptotically Poisson-like in its mean. The picture to hold (and redraw cold): the renewal staircase — N(t)N(t) stepping up by 1 at each arrival SnS_n, the gaps τn\tau_n laid along the time axis. Mark a time tt inside a gap: the age A(t)=tSN(t)A(t) = t - S_{N(t)} stretches back to the last arrival, the residual Y(t)=SN(t)+1tY(t) = S_{N(t)+1} - t stretches forward to the next. Every theorem in this section is a statement about that picture.

  • The inspection paradox — the memorable payoff. Inspect the process at a large time tt: the gap you land in has the size-biased distribution, density xf(x)μ\frac{xf(x)}{\mu} — long gaps cover more of the timeline, so you’re more likely to land in one. Limiting distributions (via the Key Renewal Theorem):

age A(t) and residual Y(t)  d  density Fˉ(x)μ,total gap XN(t)+1  d  density xf(x)μ\text{age } A(t) \text{ and residual } Y(t) \;\xrightarrow{d}\; \text{density } \frac{\bar{F}(x)}{\mu}, \qquad \text{total gap } X_{N(t)+1} \;\xrightarrow{d}\; \text{density } \frac{xf(x)}{\mu}

Skeleton for the age limit (the KRT pattern, run once). The age A(t)=tSN(t)xA(t) = t - S_{N(t)} \leq x says the last arrival before tt landed in [tx,t][t-x, t]. Decompose over which renewal nn is that last one — it sits in [tx,t][t-x, t] and the following arrival overshoots tt:

P(A(t)x)=nP(txSnt, Sn+1>t)P(A(t) \leq x) = \sum_n P\big(t - x \leq S_n \leq t,\ S_{n+1} > t\big)

Condition on the arrival time Sn=yS_n = y (with law dFn(y)dF_n(y)); given Sn=yS_n = y, the next gap Xn+1=Sn+1yX_{n+1} = S_{n+1} - y must exceed tyt - y, an independent event of probability Fˉ(ty)\bar F(t-y):

P(A(t)x)=ntxtFˉ(ty)dFn(y)P(A(t) \leq x) = \sum_n \int_{t-x}^t \bar F(t-y)\,dF_n(y)

Summing the arrival-time laws over nn is exactly the renewal measure, ndFn(y)=dm(y)\sum_n dF_n(y) = dm(y):

P(A(t)x)=txtFˉ(ty)dm(y)P(A(t) \leq x) = \int_{t-x}^t \bar{F}(t-y)\,dm(y)

(summing the arrival-time CDFs dFndF_n over nn gives exactly the renewal measure dmdm). The Key Renewal Theorem then replaces dmdm far from the origin by its long-run density 1μdy\frac{1}{\mu}\,dy (Blackwell):

limtP(A(t)x)=1μ0xFˉ(u)du\lim_{t \to \infty} P(A(t) \leq x) = \frac{1}{\mu}\int_0^x \bar{F}(u)\,du

Age and residual have the same limit (the process is a renewal process backwards too). Anchors: Exp(λ)\text{Exp}(\lambda) gaps ⟹ age is Exp(λ)\text{Exp}(\lambda) (memorylessness, consistently); U(0,1)U(0,1) gaps (μ=12\mu = \frac{1}{2}) ⟹ age density 2(1x)2(1-x) — piled near 0. Same phenomenon as “survey a random person about family size and you oversample big families.”

Core competency set

  • Prove N(t)/t1/μN(t)/t \to 1/\mu by the sandwich; state the N(t)n    SntN(t) \geq n \iff S_n \leq t pivot.
  • Prove Wald via the indicator-independence trick and produce the counterexample.
  • Explain the inspection paradox, give the size-biased density, and run the uniform anchor.

11. Martingales — fairness as structure

  • (Zn)(Z_n) is a martingale if EZn<E|Z_n| < \infty and

E(Zn+1Z1,,Zn)=ZnE(Z_{n+1} \mid Z_1, \ldots, Z_n) = Z_n

— a fair game: given the whole past, the expected next value is the current value. Taking expectations: E(Zn)=E(Z1)E(Z_n) = E(Z_1) for all fixed nn. No Markov assumption anywhere — this is a different axis of structure.

  • The stock examples, each one conditioning computation: sums of mean-zero independents (SnS_n); Sn2nS_n^2 - n (variance compensated); (qp)Sn\big(\frac{q}{p}\big)^{S_n} for biased walks (exponential compensated); products of mean-1 independents; Polya’s urn proportion (add a ball of the drawn color — the proportion is fair); E(YX1,,Xn)E(Y \mid X_1, \ldots, X_n) for any fixed YY (accumulating information about a fixed quantity is always a martingale — Doob).
  • Optional stopping theorem (MST): E(ZN)=E(Z1)E(Z_N) = E(Z_1) holds at a stopping time NN provided things don’t blow up — versions: (i) NN bounded; (ii) P(N<)=1P(N < \infty) = 1 and ZnC|Z_n| \leq C for nNn \leq N. You cannot beat a fair game with a quitting rule — unless you smuggle in unboundedness (the “double until you win” strategies live exactly in the failure cases).
  • Maximal inequality — Markov for whole paths. For a nonnegative submartingale (E(Xn+1past)XnE(X_{n+1} \mid \text{past}) \geq X_n; e.g. Zn2Z_n^2 for any martingale ZZ):

P(max1inXia)E(Xn)aP\Big(\max_{1 \leq i \leq n} X_i \geq a\Big) \leq \frac{E(X_n)}{a}

Proof. Let NN be the first time ini \leq n with XiaX_i \geq a, and N=nN = n if the threshold is never reached — a bounded stopping time. Optional stopping for a submartingale (NnN \leq n) bounds the stopped value by the endpoint:

E(XN)E(Xn)E(X_N) \leq E(X_n)

Now bound E(XN)E(X_N) below using X0X \geq 0: on the event {maxinXia}\{\max_{i \leq n} X_i \geq a\} the threshold was hit so XNaX_N \geq a, and off it XN0X_N \geq 0, hence XNa1{maxiXia}X_N \geq a\,\mathbf{1}\{\max_i X_i \geq a\}:

E(XN)aP(maxinXia)E(X_N) \geq a\,P\Big(\max_{i \leq n} X_i \geq a\Big)

Chain the two inequalities and divide by aa:

P(maxinXia)E(Xn)aP\Big(\max_{i \leq n} X_i \geq a\Big) \leq \frac{E(X_n)}{a}

Fairness lets the endpoint control the entire running maximum — the engine inside the convergence theorem below and the L2L^2 theory.

Gambler’s ruin, replayed entirely by optional stopping — the showcase. Start at aa, target bb, TT = first hit of 00 or bb. (P(T<)=1P(T < \infty) = 1 via the block argument: some length-bb all-win block eventually occurs.)

  • Fair case: SnS_n is a bounded-before-TT martingale, so

a=E(ST)=bP(hit b)    P(hit b)=aba = E(S_T) = b\,P(\text{hit } b) \;\Rightarrow\; P(\text{hit } b) = \frac{a}{b}

  • Expected duration: (Sna)2n(S_n - a)^2 - n is a martingale ⟹ E(T)=E(STa)2=(ba)2ab+a2bab=a(ba)E(T) = E(S_T - a)^2 = (b-a)^2\frac{a}{b} + a^2\frac{b-a}{b} = a(b-a). Numbers: a=900,b=1000a = 900, b = 1000: win probability 0.90.9, but E(T)=90,000E(T) = 90{,}000 plays.
  • Biased case (p12p \neq \frac{1}{2}): SnS_n isn’t a martingale but Zn=(qp)SnZ_n = \big(\frac{q}{p}\big)^{S_n} is; optional stopping gives

P(hit b)=(q/p)a1(q/p)b1P(\text{hit } b) = \frac{(q/p)^a - 1}{(q/p)^b - 1}

Numbers: roulette p=1838p = \frac{18}{38}, a=900a = 900, b=1000b = 1000: P0.000027P \approx 0.000027. A hair of house edge, compounded over the long duration, annihilates the 90% — the single most practical fact in the chapter.

  • Concentration — Azuma–Hoeffding: a martingale with bounded increments ZiZi1c|Z_i - Z_{i-1}| \leq c satisfies

P(Znμt)2et2/2nc2P(|Z_n - \mu| \geq t) \leq 2e^{-t^2/2nc^2}

(transform-then-Markov on eθZne^{\theta Z_n}, the Chernoff move from track 1, run with conditional expectations). Corollary, the bounded difference inequality: any function of independent variables that changes by ≤ cc when one coordinate changes is concentrated within O(n)O(\sqrt{n}) of its mean — via the Doob martingale Zi=E(YX1,,Xi)Z_i = E(Y \mid X_1, \ldots, X_i). Applications: bin packing, chromatic number of a random graph — concentration without knowing the mean.

  • Martingale convergence: a martingale with supnEZn<\sup_n E|Z_n| < \infty — in particular any bounded or L2L^2-bounded martingale — converges a.s. Fair games settle down. Polya’s urn proportion converges to a random limit (Uniform(0,1) for the 1+1 start): fairness forces convergence but not to anything deterministic.

Core competency set

  • Verify a martingale by one conditioning computation (do Sn2nS_n^2 - n and (q/p)Sn(q/p)^{S_n} cold).
  • State optional stopping with its conditions and why “double-until-you-win” evades them.
  • Run all three gambler’s-ruin computations by optional stopping; quote the roulette number.
  • State Azuma + bounded differences and what the Doob martingale construction does.

12. Brownian motion

  • Standard BM: a random continuous function with B(0)=0B(0) = 0, increments B(t)B(s)N(0,ts)B(t) - B(s) \sim N(0, t-s), disjoint increments independent. It’s the scaling limit of random walks (Donsker): SntnB(t)\frac{S_{\lfloor nt\rfloor}}{\sqrt{n}} \Rightarrow B(t) for any iid mean-0 variance-1 steps — the CLT upgraded from a number to a whole path. Normal increments aren’t an assumption so much as a consequence: continuous paths + independent increments forces them.
  • Character: nowhere differentiable, no interval of monotonicity — legitimately rough. Invariances worth keeping: scaling (c1/2B(ct)c^{-1/2}B(ct) is BM), symmetry (B-B), time inversion (tB(1/t)tB(1/t)).
  • The covariance that determines everything — for sts \leq t, split off the independent increment:

Cov(B(s),B(t))=Cov(B(s), B(t)B(s))+Var(B(s))=0+s=min(s,t)\operatorname{Cov}(B(s), B(t)) = \operatorname{Cov}\big(B(s),\ B(t) - B(s)\big) + \operatorname{Var}(B(s)) = 0 + s = \min(s, t)

BM is a Gaussian process (every finite collection of values jointly normal), and a Gaussian process is completely determined by its mean and covariance functions. So “mean 0, covariance min(s,t)\min(s,t), continuous paths” is an equivalent definition — verifying a candidate process is BM reduces to two computations (that’s exactly how time inversion is checked).

  • Markov and strong Markov: B(T+t)B(T)B(T + t) - B(T) is a fresh BM independent of the past, for TT a stopping time.
  • The martingales of BM (continuous-time versions of §11’s stock examples):

B(t),B(t)2t,eλB(t)λ22tB(t), \qquad B(t)^2 - t, \qquad e^{\lambda B(t) - \frac{\lambda^2}{2}t}

  • Gambler’s ruin in continuum — optional stopping, third performance. TT = first exit of (a,b)(a, b), a<0<ba < 0 < b:

E[B(T)]=0    P(hit b first)=aba,E[B(T)2T]=0    E(T)=abE[B(T)] = 0 \;\Rightarrow\; P(\text{hit } b \text{ first}) = \frac{-a}{b - a}, \qquad E[B(T)^2 - T] = 0 \;\Rightarrow\; E(T) = -ab

  • Reflection principle: reflect the path after it first hits level aa. Let TaT_a be the first time BB reaches aa (with a>0a > 0), and reflect everything after TaT_a across the line y=ay = a:

B~(s)={B(s),sTa2aB(s),s>Ta\tilde B(s) = \begin{cases} B(s), & s \leq T_a \\ 2a - B(s), & s > T_a \end{cases}

By the strong Markov property the post-TaT_a increments are a fresh BM independent of the past, and by symmetry their reflection is equally likely — so B~\tilde B is itself a standard BM. The picture to hold: a path rising to its first touch of y=ay = a, then two continuations — the true one and its mirror image in the line — equally likely.

Now the running max. Reaching level aa by time tt is hitting aa by time tt: {M(t)a}={Tat}\{M(t) \geq a\} = \{T_a \leq t\}. Split that hitting event by where the path ends:

P(M(t)a)=P(Tat, B(t)a)+P(Tat, B(t)<a)P(M(t) \geq a) = P(T_a \leq t,\ B(t) \geq a) + P(T_a \leq t,\ B(t) < a)

First term: B(t)aB(t) \geq a forces the path to have already crossed aa, so {B(t)a}{Tat}\{B(t) \geq a\} \subseteq \{T_a \leq t\} and the term is just P(B(t)a)P(B(t) \geq a). Second term: reflection sends each path with Tat, B(t)<aT_a \leq t,\ B(t) < a to one with B~(t)=2aB(t)>a\tilde B(t) = 2a - B(t) > a, a measure-preserving bijection, so it equals P(Tat, B(t)>a)=P(B(t)>a)P(T_a \leq t,\ B(t) > a) = P(B(t) > a):

P(M(t)a)=P(B(t)a)+P(B(t)>a)=2P(B(t)a)P(M(t) \geq a) = P(B(t) \geq a) + P(B(t) > a) = 2P(B(t) \geq a)

(B(t)=aB(t) = a has probability 0). Since B(t)N(0,t)B(t) \sim N(0,t):

M(t)=maxstB(s)=dN(0,t)M(t) = \max_{s \leq t}B(s) \overset{d}{=} |N(0, t)|

And the hitting time of level aa has density a2πt3/2ea2/2t\frac{a}{\sqrt{2\pi}t^{3/2}}e^{-a^2/2t} — so heavy-tailed that E(T)=E(T) = \infty: BM hits every level with probability 1, on a timescale with no mean (null recurrence again, in continuum).

  • Drift: B(t)+μt±B(t) + \mu t \to \pm\infty as μ0\mu \gtrless 0 (since B(t)/t0B(t)/t \to 0). For negative drift μ-\mu, the all-time max is exponential — via the exponential martingale with λ=2μ\lambda = 2\mu and optional stopping:

M=maxt(B(t)μt)Exp(2μ)M = \max_t\big(B(t) - \mu t\big) \sim \text{Exp}(2\mu)

  • A taste of Itô (the bridge to track 8 and finance): stochastic integrals 0tXdB\int_0^t X\,dB are martingales; the rules of the calculus compress to (dB)2=dt(dB)^2 = dt, dBdt=0dB\,dt = 0, (dt)2=0(dt)^2 = 0, giving Itô’s formula

f(B(t))f(B(0))=0tf(B(s))dB(s)+120tf(B(s))dsf(B(t)) - f(B(0)) = \int_0^t f'(B(s))\,dB(s) + \frac{1}{2}\int_0^t f''(B(s))\,ds

— the chain rule plus a second-order correction, because BB accumulates quadratic variation tt. Flagship computation: geometric Brownian motion dX=σXdB+μXdtdX = \sigma X\,dB + \mu X\,dt solves to

X(t)=X(0)exp(σB(t)+(μσ22)t)X(t) = X(0)\exp\Big(\sigma B(t) + \big(\mu - \tfrac{\sigma^2}{2}\big)t\Big)

with the punchline threshold: X(t)X(t) \to \infty if μ>σ22\mu > \frac{\sigma^2}{2}, 0\to 0 if μ<σ22\mu < \frac{\sigma^2}{2}positive drift is not enough; you must beat half the variance. Volatility itself drags geometric growth down.

Core competency set

  • Define BM by its three properties; state Donsker’s meaning in one sentence.
  • Verify B2tB^2 - t and the exponential martingale; replay continuum gambler’s ruin (aba\frac{-a}{b-a}, ab-ab) by optional stopping.
  • Derive M(t)=dN(0,t)M(t) \overset{d}{=} |N(0,t)| from the reflection principle.
  • State Itô’s formula, the (dB)2=dt(dB)^2 = dt rule, the GBM solution, and the μ\mu vs σ22\frac{\sigma^2}{2} threshold.

13. Memorize cold

The instant-recall layer — these should cost nothing to produce; the fluency flashcards drill exactly this list.

  • Markov property; πn=π0Pn\pi^n = \pi^0P^n; Chapman–Kolmogorov P(n)=PnP^{(n)} = P^n.
  • First-step template: h(x)=yP(x,y)h(y)h(x) = \sum_y P(x,y)h(y) with boundary values; g(x)=1+yP(x,y)g(y)g(x) = 1 + \sum_y P(x,y)g(y).
  • Py(k returns)=ρyykP_y(k \text{ returns}) = \rho_{yy}^k; recurrent ⟺ npn(y,y)=\sum_n p^n(y,y) = \infty; finite + closed + irreducible ⟹ recurrent.
  • Reflecting-walk trichotomy: p<12p < \frac{1}{2} positive recurrent / =12= \frac{1}{2} null recurrent / >12> \frac{1}{2} transient.
  • Stationarity πP=π\pi P = \pi; detailed balance π(x)p(x,y)=π(y)p(y,x)\pi(x)p(x,y) = \pi(y)p(y,x); SRW on graph π(x)=deg(x)2E\pi(x) = \frac{\deg(x)}{2|E|}; doubly stochastic ⟹ uniform; π(y)=1EyTy\pi(y) = \frac{1}{E_yT_y}.
  • Convergence: I + A + S ⟹ pn(x,y)π(y)p^n(x,y) \to \pi(y); ergodic theorem: I + S ⟹ time averages → Eπ[f]E_\pi[f].
  • M–H acceptance: R(x,y)=min{π(y)Q(y,x)π(x)Q(x,y),1}R(x,y) = \min\{\frac{\pi(y)Q(y,x)}{\pi(x)Q(x,y)}, 1\}; ratios kill normalizing constants.
  • Branching: E(Xn)=μnE(X_n) = \mu^n; extinction ρ\rho = smallest root of ϕ(r)=r\phi(r) = r, ϕ(r)=E(rY)\phi(r) = E(r^Y).
  • Exponential races: minExp(λi)\min \sim \text{Exp}(\sum\lambda_i), winner ii w.p. λiλj\frac{\lambda_i}{\sum\lambda_j}, independent of when.
  • PP: gaps iid Exp(λ)\text{Exp}(\lambda) ⟺ counts Pois(λt\lambda t) + independent increments; thinning ⟹ independent PP(λpk)PP(\lambda p_k); superposition adds rates; given N(t)=nN(t) = n, arrivals ~ sorted Uniforms.
  • CTMC: λ(x)=yq(x,y)\lambda(x) = \sum_y q(x,y); R(x,y)=q(x,y)λ(x)R(x,y) = \frac{q(x,y)}{\lambda(x)}; pt=eQtp_t = e^{Qt}; stationary ⟺ πQ=0\pi Q = 0 (rate in = rate out); no aperiodicity needed.
  • Renewal: N(t)t1μ\frac{N(t)}{t} \to \frac{1}{\mu}; Wald E1NXi=E(N)E(X1)E\sum_1^NX_i = E(N)E(X_1); size-biased density xf(x)μ\frac{xf(x)}{\mu}; age/residual limit density Fˉ(x)μ\frac{\bar{F}(x)}{\mu}.
  • Martingale definition; optional stopping conditions; the three gambler’s-ruin answers: ab\frac{a}{b}, a(ba)a(b-a), (q/p)a1(q/p)b1\frac{(q/p)^a - 1}{(q/p)^b - 1}.
  • Azuma: P(Znμt)2et2/2nc2P(|Z_n - \mu| \geq t) \leq 2e^{-t^2/2nc^2}; maximal inequality P(maxinXia)E(Xn)aP(\max_{i \leq n}X_i \geq a) \leq \frac{E(X_n)}{a} (nonnegative submartingale).
  • BM: increments N(0,ts)N(0, t-s), independent; Cov(B(s),B(t))=min(s,t)\operatorname{Cov}(B(s), B(t)) = \min(s,t); martingales B,B2t,eλBλ2t/2B, B^2 - t, e^{\lambda B - \lambda^2t/2}; exit answers aba\frac{-a}{b-a}, E(T)=abE(T) = -ab; M(t)=dN(0,t)M(t) \overset{d}{=} |N(0,t)|; (dB)2=dt(dB)^2 = dt; GBM X(0)eσB+(μσ2/2)tX(0)e^{\sigma B + (\mu - \sigma^2/2)t} with the σ22\frac{\sigma^2}{2} threshold.
  • Named moves: first-step analysis; restart-the-clock (strong Markov); rate-in = rate-out; sandwich-then-SLLN (renewal rate); indicator-can’t-peek (Wald); compensate-then-stop (optional stopping with S2nS^2 - n, (q/p)S(q/p)^S, eλBλ2t/2e^{\lambda B - \lambda^2t/2}); reflect-the-path.