Skip to content
Date: Oct 2, 2026
Builds on Chapter 6.

A gambler bets on a fair coin. The first stake is \(1\) ; after every loss the stake is doubled; at the first win the gambler stops. If the first win comes at toss \(T\) , the losses so far amount to \(1+2+\dots+2^{T-2}=2^{T-1}-1\) and the winning stake is \(2^{T-1}\) , so the net gain is exactly \(1\) . The first win comes sooner or later with probability one. The gambler therefore ends with a gain of \(1\) , with certainty, in a game each of whose rounds is fair.

At every fixed time, though, nothing has been gained on average: after \(n\) tosses the gambler is ahead by \(1\) with probability \(1-2^{-n}\) and behind by \(2^n-1\) with probability \(2^{-n}\) , and the expectation of the fortune is \(0\) . The expected fortune at each time \(n\) is \(0\) , the fortune converges almost surely to \(1\) , and the expectation of the limit is not the limit of the expectations. After Chapter 5 the diagnosis can be guessed: the fortunes are not uniformly integrable.

This chapter is about processes that are fair in the sense that the gambler’s fortune is fair: the conditional expectation of the next value, given everything observed so far, is the present value. Such processes are called martingales. Three questions organize the chapter. What can and cannot be achieved by betting on a martingale and by stopping it at a cleverly chosen time? Why must a martingale that does not blow up converge? And for which martingales does the limit retain all the information, so that nothing is lost as it is for the doubling gambler? Stochastic Processes uses martingales as a modelling device for fair games (math.stochastic-processes.martingale-fair-game); here the theorems behind that use are proved.

7.1 Fairness relative to a filtration

Definition 7.1 (filtration, adapted process). A filtration on \((\Omega,\mathcal F,\mathbb P)\) is an increasing sequence \(\mathcal F_0\subseteq\mathcal F_1\subseteq\cdots\) of sub-sigma-algebras of \(\mathcal F\) . A sequence of random variables \((X_n)_{n\ge 0}\) is adapted to it if each \(X_n\) is \(\mathcal F_n\) -measurable. The filtration \(\mathcal F_n=\sigma(X_0,\dots,X_n)\) is the natural filtration of the sequence.

The sigma-algebra \(\mathcal F_n\) is the information available at time \(n\) ; adaptedness says that the value \(X_n\) is known by then.

Definition 7.2 (martingale). An adapted sequence \((X_n)_{n\ge 0}\) of integrable random variables is a martingale with respect to \((\mathcal F_n)\) if

\[ \mathbb E[X_{n+1}\mid\mathcal F_n]=X_n\qquad\text{almost surely, for every }n\ge 0 . \]

It is a submartingale if \(\mathbb E[X_{n+1}\mid\mathcal F_n]\ge X_n\) , and a supermartingale if \(\mathbb E[X_{n+1}\mid\mathcal F_n]\le X_n\) .

By the tower property the one-step condition propagates: for a martingale, \(\mathbb E[X_m\mid\mathcal F_n]=X_n\) whenever \(m\ge n\) , and in particular \(\mathbb E X_n=\mathbb E X_0\) for all \(n\) . A submartingale increases on average and a supermartingale decreases; the names are backwards from the gambler’s point of view, for whom a supermartingale is an unfavourable game. If \(X\) is a martingale and \(\varphi\) is convex with \(\varphi(X_n)\) integrable, the conditional Jensen inequality gives \(\mathbb E[\varphi(X_{n+1})\mid\mathcal F_n]\ge\varphi(X_n)\) , so \(\varphi(X_n)\) is a submartingale; thus \(\lvert X_n\rvert\) and, for square-integrable martingales, \(X_n^2\) are submartingales.

Four constructions produce most of the martingales in this book.

Sums. If \(\xi_1,\xi_2,\dots\) are independent and integrable with mean \(0\) , then \(S_n=\xi_1+\dots+\xi_n\) is a martingale for the natural filtration of the \(\xi_k\) , since \(\mathbb E[S_n+\xi_{n+1}\mid\mathcal F_n]=S_n+\mathbb E\xi_{n+1}\) by Theorem 6.4.

Products. If \(Y_1,Y_2,\dots\) are independent, nonnegative, with mean \(1\) , then \(M_n=Y_1\cdots Y_n\) is a martingale, since \(\mathbb E[M_nY_{n+1}\mid\mathcal F_n]=M_n\,\mathbb E Y_{n+1}\) .

Successive estimates. If \(X\) is integrable and \((\mathcal F_n)\) is any filtration, then \(X_n=\mathbb E[X\mid\mathcal F_n]\) is a martingale by the tower property. A martingale of this form is called closed.

Compensated functions of a walk. Example 6.5 showed that \(S_n^2-n\) is a martingale when the steps are \(\pm 1\) with equal probability.

Example 7.1: Martingales on a binary tree

Let \(\xi_1,\xi_2,\dots\) be independent with \(\mathbb P(\xi_k=1)=p\) and \(\mathbb P(\xi_k=-1)=q=1-p\) , and \(S_n=\xi_1+\dots+\xi_n\) with its natural filtration. The cells of \(\mathcal F_n\) are the \(2^n\) possible beginnings of the path, and the martingale property is a statement about each node of the binary tree: the value at a node must equal the average of the values at its two children, weighted by \(p\) and \(q\) .

Symmetric case \(p=q=\tfrac12\) . At a node with \(S_n=s\) the children have \(S_{n+1}=s\pm1\) . For \(X_n=S_n\) the weighted average is \(s\) . For \(X_n=S_n^2-n\) it is \(\tfrac12\bigl((s+1)^2+(s-1)^2\bigr)-(n+1)=s^2-n\) . Both are martingales.

Biased case \(p=\tfrac23\) , \(q=\tfrac13\) . Now \(S_n\) itself is a submartingale, with \(\mathbb E[S_{n+1}\mid\mathcal F_n]=S_n+\tfrac13\) , and \(S_n-\tfrac n3\) is a martingale. A second martingale is \(M_n=(q/p)^{S_n}=2^{-S_n}\) : at a node with \(S_n=s\) ,

\[ \tfrac23\cdot 2^{-(s+1)}+\tfrac13\cdot 2^{-(s-1)}=2^{-s}\bigl(\tfrac13+\tfrac23\bigr)=2^{-s}. \]

For instance at the root, \(\tfrac23\cdot\tfrac12+\tfrac13\cdot 2=1=M_0\) . This exponential martingale will compute ruin probabilities for the biased walk in Exercise 7.

7.2 Betting strategies and stopping times

A gambler who may vary the stakes plays a transformed game. The stake on round \(k\) must be chosen before round \(k\) is played.

Definition 7.3 (predictable sequence, martingale transform). A sequence \((H_n)_{n\ge 1}\) is predictable if \(H_n\) is \(\mathcal F_{n-1}\) -measurable for every \(n\ge 1\) . The transform of an adapted sequence \(X\) by \(H\) is

\[ (H\cdot X)_n=\sum_{k=1}^{n}H_k\,(X_k-X_{k-1}),\qquad (H\cdot X)_0=0 . \]

If \(X_k-X_{k-1}\) is the gain per unit stake on round \(k\) , then \((H\cdot X)_n\) is the total gain after \(n\) rounds of a gambler who stakes \(H_k\) on round \(k\) .

Theorem 7.4 (a fair game cannot be made favourable). Let \(H\) be predictable with each \(H_n\) bounded. If \(X\) is a martingale, so is \(H\cdot X\) . If \(X\) is a supermartingale and \(H\ge 0\) , then \(H\cdot X\) is a supermartingale; likewise for submartingales.

Proof. The variable \((H\cdot X)_n\) is \(\mathcal F_n\) -measurable and integrable, as a finite sum of bounded multiples of integrable variables. Since \(H_{n+1}\) is \(\mathcal F_n\) -measurable, taking out what is known gives

\[ \mathbb E\bigl[(H\cdot X)_{n+1}-(H\cdot X)_n\mid\mathcal F_n\bigr]=H_{n+1}\,\mathbb E[X_{n+1}-X_n\mid\mathcal F_n], \]

which is \(0\) for a martingale and, when \(H_{n+1}\ge 0\) , has the sign of \(\mathbb E[X_{n+1}-X_n\mid\mathcal F_n]\) otherwise.

The simplest strategy is to bet one unit until some moment and then stop. The moment may depend on what has happened, but not on what is yet to happen.

Definition 7.5 (stopping time). A random variable \(\tau\) with values in \(\{0,1,2,\dots\}\cup\{\infty\}\) is a stopping time for \((\mathcal F_n)\) if \(\{\tau\le n\}\in\mathcal F_n\) for every \(n\ge 0\) .

Equivalently \(\{\tau=n\}\in\mathcal F_n\) for every \(n\) . The first time an adapted sequence enters a Borel set \(B\) , \(\tau=\inf\{n:X_n\in B\}\) with \(\inf\emptyset=\infty\) , is a stopping time, because \(\{\tau\le n\}=\bigcup_{k\le n}\{X_k\in B\}\) . The last time the sequence visits \(B\) is in general not one: to know that a visit is the last, one must see the future.

Theorem 7.6 (stopped processes). If \(X\) is a martingale and \(\tau\) is a stopping time, the stopped sequence \(X_{\tau\wedge n}\) , \(n\ge 0\) , is a martingale. In particular \(\mathbb E X_{\tau\wedge n}=\mathbb E X_0\) for every \(n\) . The same holds with “martingale” replaced by “supermartingale” or “submartingale”, and the corresponding inequality.

Proof. Let \(H_k=\mathbf 1_{\{\tau\ge k\}}=1-\mathbf 1_{\{\tau\le k-1\}}\) . It is \(\mathcal F_{k-1}\) -measurable, bounded, and nonnegative, and

\[ X_0+(H\cdot X)_n=X_0+\sum_{k=1}^{\tau\wedge n}(X_k-X_{k-1})=X_{\tau\wedge n}. \]

Theorem 7.4 applies.

So stopping cannot change the expectation at any fixed time. The whole question is what happens when the fixed time is removed.

Example 7.2: The doubling strategy, exactly

Let \(\xi_k=\pm1\) be fair coin tosses, \(S_n\) their partial sums, and \(H_k=2^{k-1}\) , a deterministic and hence predictable stake. The gambler’s fortune before stopping is \(X_n=(H\cdot S)_n=\sum_{k\le n}2^{k-1}\xi_k\) , a martingale, and \(T=\inf\{k:\xi_k=1\}\) is a stopping time with \(\mathbb P(T>n)=2^{-n}\) . The stopped fortune takes two values:

\[ X_{T\wedge n}=\begin{cases}1,& T\le n,\\ -(2^n-1),& T>n,\end{cases} \qquad \mathbb E X_{T\wedge n}=(1-2^{-n})\cdot 1-2^{-n}(2^n-1)=0 . \]

This is Theorem 7.6: at every fixed time the stopped game is fair. For \(n=10\) the gambler is ahead by \(1\) with probability \(1023/1024\) and behind by \(1023\) with probability \(1/1024\) .

As \(n\to\infty\) , \(X_{T\wedge n}\to X_T=1\) almost surely, while the expectations stay at \(0\) . By Theorem 5.6 the sequence \(X_{T\wedge n}\) is not uniformly integrable, and directly, \(\mathbb E[\lvert X_{T\wedge n}\rvert;\lvert X_{T\wedge n}\rvert>M]=1-2^{-n}\) for every level \(M\ge 1\) and every \(n\) with \(2^n-1>M\) . The capital the strategy needs is also unbounded: the debt just before the winning toss is \(2^{T-1}-1\) , and

\[ \mathbb E\bigl[2^{T-1}-1\bigr]=\sum_{k\ge 1}2^{-k}\bigl(2^{k-1}-1\bigr)=\sum_{k\ge 1}\bigl(\tfrac12-2^{-k}\bigr)=\infty . \]

The certain gain of \(1\) is paid for by an expected debt that is infinite.

7.3 Optional stopping

Theorem 7.7 (optional stopping). Let \(X\) be a martingale and \(\tau\) a stopping time. Each of the following conditions implies that \(X_\tau\) is integrable and \(\mathbb E X_\tau=\mathbb E X_0\) .

(a) \(\tau\) is bounded: \(\tau\le N\) almost surely for some constant \(N\) .

(b) \(\tau<\infty\) almost surely and the stopped sequence is bounded: \(\lvert X_{\tau\wedge n}\rvert\le K\) for all \(n\) .

(c) \(\mathbb E\tau<\infty\) and the increments are bounded: \(\lvert X_{n+1}-X_n\rvert\le K\) for all \(n\) .

(d) \(\tau<\infty\) almost surely and the stopped sequence \((X_{\tau\wedge n})_{n\ge 0}\) is uniformly integrable.

Proof. (a) Here \(X_\tau=X_{\tau\wedge N}\) , and Theorem 7.6 gives \(\mathbb E X_{\tau\wedge N}=\mathbb E X_0\) .

In the other cases \(\tau<\infty\) almost surely, so \(X_{\tau\wedge n}\to X_\tau\) almost surely, because \(X_{\tau\wedge n}=X_\tau\) as soon as \(n\ge\tau\) . Since \(\mathbb E X_{\tau\wedge n}=\mathbb E X_0\) for every \(n\) , what must be shown is that the expectation passes to the limit.

(d) This is Corollary 5.7. (b) A bounded sequence is uniformly integrable, so this is a case of (d).

(c) For every \(n\) , \(\lvert X_{\tau\wedge n}-X_0\rvert\le\sum_{k=1}^{\tau\wedge n}\lvert X_k-X_{k-1}\rvert\le K\tau\) , so the stopped sequence is dominated by the integrable variable \(\lvert X_0\rvert+K\tau\) , and the Dominated Convergence Theorem applies.

For the doubling gambler none of the four conditions holds: \(T\) is unbounded, the stopped fortunes are unbounded and not uniformly integrable, and although \(\mathbb E T=2\) is finite, the increments \(2^{k-1}\xi_k\) are unbounded. Each hypothesis guards against a different way for expectation to escape.

Example 7.3: Leaving an interval

Let \(S_n\) be the symmetric walk with steps \(\pm1\) , let \(a\) and \(b\) be positive integers, and let \(\tau=\inf\{n:S_n=-a\ \text{or}\ S_n=b\}\) .

The exit time is integrable. Any run of \(a+b\) consecutive up-steps carries the walk out of the interval \((-a,b)\) from wherever it is. Cutting time into blocks of length \(a+b\) , the blocks are independent and each consists of up-steps with probability \(2^{-(a+b)}\) , so \(\mathbb P(\tau>k(a+b))\le(1-2^{-(a+b)})^k\) . The tail of \(\tau\) is geometrically small; hence \(\tau<\infty\) almost surely and \(\mathbb E\tau<\infty\) .

The exit side. Up to time \(\tau\) the walk stays in \([-a,b]\) , so condition (b) of Theorem 7.7 holds for the martingale \(S_n\) , and \(\mathbb E S_\tau=0\) . With \(\pi=\mathbb P(S_\tau=b)\) this reads \(b\pi-a(1-\pi)=0\) , so

\[ \mathbb P(S_\tau=b)=\frac{a}{a+b},\qquad \mathbb P(S_\tau=-a)=\frac{b}{a+b}. \]

The expected exit time. For the martingale \(S_n^2-n\) , Theorem 7.6 gives \(\mathbb E S_{\tau\wedge n}^2=\mathbb E[\tau\wedge n]\) for every \(n\) . Let \(n\to\infty\) : the left side converges to \(\mathbb E S_\tau^2\) by bounded convergence, and the right side to \(\mathbb E\tau\) by monotone convergence. Hence

\[ \mathbb E\tau=\mathbb E S_\tau^2=b^2\cdot\frac{a}{a+b}+a^2\cdot\frac{b}{a+b}=ab . \]

For \(a=2\) and \(b=3\) : the walk exits at \(3\) with probability \(\tfrac25\) , and the expected exit time is \(6\) . For the barriers \(-6\) and \(10\) of Figure 7.1, the walk exits at the top with probability \(\tfrac38\) and takes \(60\) steps on average.

A random walk path starting at 0, plotted against time up to 110 steps, with dashed horizontal barriers at minus 6 and 10. The path first reaches the upper barrier at step 56, marked by a dot and a dotted vertical line. From there a heavy line stays constant at 10, while a lighter line shows the walk continuing to move above and below the barrier.
Figure 7.1. Stopping a martingale freezes its path at the stopping time. The frozen path is again a martingale (Theorem 7.6), and because it is trapped between the barriers its expectation survives the passage to the limit; the continuing walk is a martingale too, but is unbounded.

A stopping time for which optional stopping fails. Let \(T=\inf\{n:S_n=1\}\) . Since \(\{S_\tau=b\}\) with \(b=1\) is contained in \(\{T<\infty\}\) , we get \(\mathbb P(T<\infty)\ge a/(a+1)\) for every \(a\) , so \(T<\infty\) almost surely. Then \(S_T=1\) and \(\mathbb E S_T=1\ne 0=\mathbb E S_0\) . Consequently no condition of Theorem 7.7 can hold; since the increments are bounded, condition (c) shows that \(\mathbb E T=\infty\) . A fair walk reaches \(1\) with certainty, and the expected waiting time is infinite.

7.4 Two inequalities

The convergence theorem rests on an estimate for how often a martingale can cross an interval. A related estimate, for how large it can become, is proved first because the method is the same: decompose according to the first time something happens.

Theorem 7.8 (Doob’s maximal inequality). Let \((X_n)\) be a nonnegative submartingale and \(\lambda>0\) . Then

\[ \lambda\,\mathbb P\Bigl(\max_{k\le n}X_k\ge\lambda\Bigr)\le\mathbb E\Bigl[X_n;\max_{k\le n}X_k\ge\lambda\Bigr]\le\mathbb E X_n . \]

Proof. Let \(A=\{\max_{k\le n}X_k\ge\lambda\}\) and split it according to the first index at which the level is reached: \(A_k=\{X_k\ge\lambda\}\cap\{X_j<\lambda\ \text{for}\ j<k\}\) , \(k=0,\dots,n\) . The events \(A_k\) are disjoint with union \(A\) , and \(A_k\in\mathcal F_k\) . On \(A_k\) we have \(X_k\ge\lambda\) , and by the submartingale property \(\mathbb E[X_n;A_k]\ge\mathbb E[X_k;A_k]\) . Therefore

\[ \lambda\,\mathbb P(A_k)\le\mathbb E[X_k;A_k]\le\mathbb E[X_n;A_k], \]

and summing over \(k\) gives the first inequality. The second holds because \(X_n\ge 0\) .

Corollary 7.9 (maximal inequalities for square-integrable martingales). Let \((X_n)\) be a martingale with \(\mathbb E X_n^2<\infty\) , and let \(X_n^{*}=\max_{k\le n}\lvert X_k\rvert\) . Then for \(\lambda>0\) ,

\[ \mathbb P(X_n^{*}\ge\lambda)\le\frac{\mathbb E X_n^2}{\lambda^2}\qquad\text{and}\qquad\mathbb E\bigl[(X_n^{*})^2\bigr]\le 4\,\mathbb E X_n^2 . \]

Proof. The sequence \(X_k^2\) is a nonnegative submartingale, and Theorem 7.8 at level \(\lambda^2\) gives the first inequality. For the second, \(\lvert X_k\rvert\) is a nonnegative submartingale, so \(\lambda\,\mathbb P(X_n^{*}\ge\lambda)\le\mathbb E[\lvert X_n\rvert;X_n^{*}\ge\lambda]\) . By the tail formula and Tonelli’s theorem,

\[ \mathbb E\bigl[(X_n^{*})^2\bigr]=\int_0^\infty 2\lambda\,\mathbb P(X_n^{*}\ge\lambda)\,d\lambda\le 2\int_0^\infty\mathbb E\bigl[\lvert X_n\rvert;X_n^{*}\ge\lambda\bigr]\,d\lambda=2\,\mathbb E\bigl[\lvert X_n\rvert\,X_n^{*}\bigr]\le 2\,\lVert X_n\rVert_2\,\lVert X_n^{*}\rVert_2 , \]

the last step by the Cauchy–Schwarz inequality. The norm \(\lVert X_n^{*}\rVert_2\) is finite, since \(X_n^{*}\le\sum_{k\le n}\lvert X_k\rvert\) ; if it is positive, divide by it and square.

The first inequality of the corollary, applied to sums of independent mean-zero variables, is Kolmogorov’s inequality. It has the same right-hand side as Chebyshev’s inequality for the final value \(X_n\) alone, and bounds the maximum over the whole stretch \(k\le n\) . That is the kind of improvement Lemma 4.2 said almost sure convergence requires.

For the second estimate fix real numbers \(a<b\) and count the upcrossings of \([a,b]\) by the sequence: the number of times it passes from a value at most \(a\) to a later value at least \(b\) . Formally, let \(\sigma_1=\inf\{k\ge 0:X_k\le a\}\) , \(\tau_1=\inf\{k>\sigma_1:X_k\ge b\}\) , and inductively \(\sigma_{j+1}=\inf\{k>\tau_j:X_k\le a\}\) , \(\tau_{j+1}=\inf\{k>\sigma_{j+1}:X_k\ge b\}\) . These are stopping times, and \(U_n[a,b]=\max\{j:\tau_j\le n\}\) is the number of upcrossings completed by time \(n\) .

Theorem 7.10 (upcrossing inequality). If \((X_n)\) is a supermartingale, then for all \(a<b\) and \(n\ge 0\) ,

\[ (b-a)\,\mathbb E\,U_n[a,b]\le\mathbb E\,(X_n-a)^{-} . \]

Proof. Consider the strategy that buys one unit whenever the sequence is at or below \(a\) and holds it until the sequence is at or above \(b\) : \(H_k=1\) if \(\sigma_j<k\le\tau_j\) for some \(j\) , and \(H_k=0\) otherwise. The event \(\{H_k=1\}=\bigcup_j\{\sigma_j\le k-1\}\cap\{\tau_j\le k-1\}^{c}\) belongs to \(\mathcal F_{k-1}\) , so \(H\) is predictable, and it is bounded and nonnegative. Let \(Y=H\cdot X\) . Each completed upcrossing contributes at least \(b-a\) to \(Y_n\) . If a unit is still held at time \(n\) , it was bought at a value at most \(a\) , so the unfinished holding contributes \(X_n-X_{\sigma_j}\ge X_n-a\ge-(X_n-a)^{-}\) . Hence

\[ Y_n\ge(b-a)\,U_n[a,b]-(X_n-a)^{-}. \]

By Theorem 7.4, \(Y\) is a supermartingale, so \(\mathbb E Y_n\le\mathbb E Y_0=0\) , and the inequality follows.

The proof is a betting argument: the strategy “buy low, sell high” would make money on every oscillation, and in an unfavourable or fair game no strategy makes money on average. So there cannot be many oscillations.

7.5 The convergence theorem

Theorem 7.11 (martingale convergence theorem). Let \((X_n)\) be a supermartingale, a submartingale, or a martingale, with \(\sup_n\mathbb E\lvert X_n\rvert<\infty\) . Then there is an integrable random variable \(X_\infty\) with \(X_n\to X_\infty\) almost surely.

Proof. Replacing \(X\) by \(-X\) if necessary, let \(X\) be a supermartingale, and let \(C=\sup_n\mathbb E\lvert X_n\rvert\) . Fix rational numbers \(a<b\) . The counts \(U_n[a,b]\) increase with \(n\) to a limit \(U_\infty[a,b]\) , the total number of upcrossings, and by the Monotone Convergence Theorem and Theorem 7.10,

\[ \mathbb E\,U_\infty[a,b]=\lim_n\mathbb E\,U_n[a,b]\le\sup_n\frac{\mathbb E\,(X_n-a)^{-}}{b-a}\le\frac{C+\lvert a\rvert}{b-a}<\infty . \]

So \(U_\infty[a,b]<\infty\) almost surely, and, there being countably many rational pairs, almost surely \(U_\infty[a,b]<\infty\) for all rational \(a<b\) simultaneously. Now if a sequence of real numbers does not converge in \([-\infty,\infty]\) , its lower limit is strictly less than its upper limit, there are rationals \(a<b\) strictly between them, and the sequence is at most \(a\) infinitely often and at least \(b\) infinitely often: it upcrosses \([a,b]\) infinitely many times. Hence almost surely \(X_n\) converges to a limit \(X_\infty\in[-\infty,\infty]\) . By Fatou’s lemma \(\mathbb E\lvert X_\infty\rvert\le\liminf_n\mathbb E\lvert X_n\rvert\le C\) , so \(X_\infty\) is integrable and in particular finite almost surely.

Corollary 7.12 (nonnegative supermartingales). A nonnegative supermartingale converges almost surely to an integrable limit \(X_\infty\) , and \(\mathbb E X_\infty\le\mathbb E X_0\) .

Proof. For a nonnegative supermartingale \(\mathbb E\lvert X_n\rvert=\mathbb E X_n\le\mathbb E X_0\) , so Theorem 7.11 applies, and Fatou’s lemma gives the bound on \(\mathbb E X_\infty\) .

The theorem is the probabilistic counterpart of the fact that a bounded monotone sequence of real numbers converges: a supermartingale decreases on average, boundedness in \(L^1\) replaces boundedness, and the conclusion is convergence of the paths. It asserts almost sure convergence and nothing about convergence of expectations. The inequality \(\mathbb E X_\infty\le\mathbb E X_0\) in the corollary can be strict even for a martingale. The doubling gambler supplies one instance after a change of sign: with \(X_{T\wedge n}\) the stopped fortune of Example 7.2, the variables \(1-X_{T\wedge n}\) form a nonnegative martingale, equal to \(2^n\) with probability \(2^{-n}\) and to \(0\) otherwise, with mean \(1\) and almost sure limit \(0\) . The next example is another.

Example 7.4: A product martingale that dies out

Let \(Y_1,Y_2,\dots\) be independent, each equal to \(\tfrac32\) or \(\tfrac12\) with probability \(\tfrac12\) , and \(M_n=Y_1\cdots Y_n\) . Since \(\mathbb E Y_k=1\) , \(M\) is a nonnegative martingale with \(\mathbb E M_n=1\) for all \(n\) , and by Corollary 7.12 it converges almost surely to some \(M_\infty\) .

The limit is \(0\) . On the event \(\{M_\infty>0\}\) the ratios \(M_{n+1}/M_n=Y_{n+1}\) would converge to \(1\) ; but \(Y_{n+1}\) only takes the values \(\tfrac32\) and \(\tfrac12\) and so is never within \(\tfrac12\) of \(1\) . Hence \(\mathbb P(M_\infty>0)=0\) . So \(M_n\to 0\) almost surely while \(\mathbb E M_n=1\) : the martingale is not uniformly integrable, and its expectation is carried by ever rarer, ever larger values.

The numbers bear this out. With \(k\) factors equal to \(\tfrac32\) , \(M_n=3^k/2^n\) , and \(M_n\ge 1\) requires \(k\ge n\log 2/\log 3\approx 0.631\,n\) , well above the typical \(k\approx n/2\) . For \(n=20\) this means \(k\ge 13\) , and \(\mathbb P(M_{20}\ge 1)\approx 0.1316\) ; for \(n=100\) it means \(k\ge 64\) , and \(\mathbb P(M_{100}\ge 1)\approx 0.0033\) . A quantitative bound comes from the supermartingale \(\sqrt{M_n}\) : \(\mathbb E\sqrt{M_n}=\bigl(\tfrac12(\sqrt{3/2}+\sqrt{1/2})\bigr)^n\approx 0.9659^n\) , so by Markov’s inequality \(\mathbb P(M_n\ge\varepsilon)\le\varepsilon^{-1/2}\,0.9659^n\) .

Example 7.5: Pólya’s urn

An urn contains one red and one blue ball. At each step a ball is drawn at random and returned together with one more ball of its colour. After \(n\) steps there are \(n+2\) balls; let \(R_n\) be the number of red ones and \(X_n=R_n/(n+2)\) the red fraction. Given the history up to time \(n\) , the next ball is red with probability \(X_n\) , so

\[ \mathbb E[X_{n+1}\mid\mathcal F_n]=\frac{X_n(R_n+1)+(1-X_n)R_n}{n+3}=\frac{R_n+X_n}{n+3}=\frac{X_n(n+2)+X_n}{n+3}=X_n . \]

The red fraction is a martingale with values in \([0,1]\) , so it converges almost surely by Theorem 7.11, and, being bounded, also in \(L^1\) .

What is the limit? By induction \(R_n\) is uniformly distributed on \(\{1,\dots,n+1\}\) : if \(\mathbb P(R_n=r)=\tfrac1{n+1}\) for each \(r\) , then

\[ \mathbb P(R_{n+1}=r)=\frac1{n+1}\cdot\frac{r-1}{n+2}+\frac1{n+1}\cdot\frac{n+2-r}{n+2}=\frac1{n+2}. \]

So \(X_n\) is uniform on \(\{\tfrac1{n+2},\dots,\tfrac{n+1}{n+2}\}\) , and its almost sure limit \(X_\infty\) is uniform on \((0,1)\) . The limit is genuinely random. Each run of the urn settles down to its own proportion, and the proportion is decided, in effect, by the early draws. This martingale loses nothing in the limit: \(\mathbb E X_\infty=\tfrac12=\mathbb E X_0\) .

7.6 Uniformly integrable martingales

The difference between Examples 7.4 and 7.5 is uniform integrability, and the next theorem says that this is the whole story.

Theorem 7.13 (uniformly integrable martingales). For a martingale \((X_n)\) the following are equivalent.

(i) \((X_n)\) is uniformly integrable.

(ii) \(X_n\) converges in \(L^1\) .

(iii) \((X_n)\) is closed: there is an integrable \(X_\infty\) with \(X_n=\mathbb E[X_\infty\mid\mathcal F_n]\) for all \(n\) .

When they hold, \(X_n\to X_\infty\) almost surely and in \(L^1\) , where \(X_\infty\) is the limit in (ii), and this \(X_\infty\) closes the martingale.

Proof. (i) implies (ii). A uniformly integrable family is bounded in \(L^1\) , so by Theorem 7.11 \(X_n\) converges almost surely, hence in probability, to an integrable \(X_\infty\) , and by Theorem 5.6 the convergence holds in \(L^1\) .

(ii) implies (iii). Let \(X_n\to X_\infty\) in \(L^1\) . Fix \(n\) and \(A\in\mathcal F_n\) . For \(m\ge n\) the martingale property gives \(\mathbb E[X_m;A]=\mathbb E[X_n;A]\) . As \(m\to\infty\) , \(\lvert\mathbb E[X_m;A]-\mathbb E[X_\infty;A]\rvert\le\mathbb E\lvert X_m-X_\infty\rvert\to 0\) , so \(\mathbb E[X_\infty;A]=\mathbb E[X_n;A]\) . Since \(X_n\) is \(\mathcal F_n\) -measurable, \(X_n=\mathbb E[X_\infty\mid\mathcal F_n]\) .

(iii) implies (i). This is Theorem 6.9.

Theorem 7.14 (Lévy’s upward theorem). Let \(X\) be integrable, let \((\mathcal F_n)\) be a filtration, and let \(\mathcal F_\infty=\sigma(\bigcup_n\mathcal F_n)\) . Then

\[ \mathbb E[X\mid\mathcal F_n]\longrightarrow\mathbb E[X\mid\mathcal F_\infty]\qquad\text{almost surely and in }L^1 . \]

Proof. The martingale \(X_n=\mathbb E[X\mid\mathcal F_n]\) is uniformly integrable by Theorem 6.9, so by Theorem 7.13 it converges almost surely and in \(L^1\) to a limit \(X_\infty\) , which may be taken \(\mathcal F_\infty\) -measurable, as a limit of \(\mathcal F_\infty\) -measurable variables, and which satisfies \(\mathbb E[X_\infty;A]=\mathbb E[X_n;A]=\mathbb E[X;A]\) for \(A\in\mathcal F_n\) . It remains to extend this identity from \(\bigcup_n\mathcal F_n\) to \(\mathcal F_\infty\) . Rearranged so that both sides are nonnegative, it says that the finite measures \(A\mapsto\mathbb E[X_\infty^{+}+X^{-};A]\) and \(A\mapsto\mathbb E[X^{+}+X_\infty^{-};A]\) agree on \(\bigcup_n\mathcal F_n\) , which is a \(\pi\) -system containing \(\Omega\) and generating \(\mathcal F_\infty\) . By uniqueness on a \(\pi\) -system they agree on \(\mathcal F_\infty\) . Hence \(X_\infty=\mathbb E[X\mid\mathcal F_\infty]\) .

Lévy’s theorem is the statement that learning converges to the truth, as far as the truth is observable: successive estimates of \(X\) converge to the best estimate based on all the information that will ever arrive, and to \(X\) itself when \(X\) is \(\mathcal F_\infty\) -measurable. It answers the question left open in Example 6.2: for every integrable \(X\) on \([0,1)\) the dyadic averages \(\mathbb E[X\mid\mathcal G_n]\) converge to \(X\) almost everywhere and in \(L^1\) , because the dyadic intervals generate the Borel sigma-algebra. This is the Lebesgue differentiation theorem of Measure Theory along dyadic intervals (math.measure-theory.lebesgue-differentiation-theorem), obtained here by a probabilistic argument.

It also gives a second proof of Kolmogorov’s zero-one law. Let \(A\) be a tail event of an independent sequence \(\xi_1,\xi_2,\dots\) and \(\mathcal F_n=\sigma(\xi_1,\dots,\xi_n)\) . Since \(A\) is independent of \(\mathcal F_n\) , \(\mathbb P(A\mid\mathcal F_n)=\mathbb P(A)\) for every \(n\) . Since \(A\in\mathcal F_\infty\) , Theorem 7.14 gives \(\mathbb P(A\mid\mathcal F_n)\to\mathbf 1_A\) almost surely. So \(\mathbf 1_A=\mathbb P(A)\) almost surely, and an indicator that equals a constant is \(0\) or \(1\) .

Martingales bounded in \(L^2\) are the most convenient uniformly integrable ones, because their increments are orthogonal.

Theorem 7.15 (square-bounded martingales). Let \((X_n)\) be a martingale with \(\sup_n\mathbb E X_n^2<\infty\) . Then the increments \(X_k-X_{k-1}\) are pairwise orthogonal,

\[ \mathbb E X_n^2=\mathbb E X_0^2+\sum_{k=1}^{n}\mathbb E(X_k-X_{k-1})^2, \]

and \(X_n\) converges almost surely and in \(L^2\) .

Proof. For \(j<k\) the increment \(X_j-X_{j-1}\) is \(\mathcal F_{k-1}\) -measurable and square-integrable, so by Theorem 6.8, or directly by taking out what is known, \(\mathbb E[(X_j-X_{j-1})(X_k-X_{k-1})]=\mathbb E\bigl[(X_j-X_{j-1})\,\mathbb E[X_k-X_{k-1}\mid\mathcal F_{k-1}]\bigr]=0\) ; the same argument shows each increment is orthogonal to \(X_0\) . Expanding the square of \(X_n=X_0+\sum_{k\le n}(X_k-X_{k-1})\) gives the formula. So \(\sum_k\mathbb E(X_k-X_{k-1})^2<\infty\) , and for \(m>n\) , \(\mathbb E(X_m-X_n)^2=\sum_{k=n+1}^{m}\mathbb E(X_k-X_{k-1})^2\) is small when \(n\) is large: the sequence is Cauchy in \(L^2\) , and it converges in \(L^2\) by completeness. It is bounded in \(L^1\) , so it also converges almost surely by Theorem 7.11, and the two limits coincide, since each is the limit in probability.

Example 7.6: The random harmonic series

Let \(\varepsilon_1,\varepsilon_2,\dots\) be independent random signs, \(\pm1\) with probability \(\tfrac12\) each, and \(X_n=\sum_{k\le n}\varepsilon_k/k\) . This is a martingale, a sum of independent mean-zero terms, and by Theorem 7.15

\[ \mathbb E X_n^2=\sum_{k=1}^{n}\frac1{k^2}\ \le\ \frac{\pi^2}{6}\approx 1.645 . \]

For \(n=4\) the formula gives \(1+\tfrac14+\tfrac19+\tfrac1{16}=\tfrac{205}{144}\) . The martingale is bounded in \(L^2\) , so the series \(\sum_k\varepsilon_k/k\) converges almost surely and in \(L^2\) , to a limit with mean \(0\) and variance \(\pi^2/6\) .

This settles the question raised by the zero-one law in Chapter 3, where convergence of this series was shown to have probability \(0\) or \(1\) with no means of deciding which. The harmonic series itself diverges; with random signs the cancellation is enough for convergence, almost surely. The maximal inequality of Corollary 7.9 adds a uniform bound on the partial sums: \(\mathbb P(\sup_n\lvert X_n\rvert\ge\lambda)\le\pi^2/(6\lambda^2)\) , which for \(\lambda=4\) is about \(0.103\) .

Common mistake. Dropping the hypotheses that control what happens at infinity. Two versions occur constantly. The first: “\(X\) is a martingale and \(\tau\) is a stopping time, so \(\mathbb E X_\tau=\mathbb E X_0\) .” This is Theorem 7.6 only for \(\tau\wedge n\) ; for \(\tau\) itself one of the conditions of Theorem 7.7 must be verified, and the walk stopped on reaching \(1\) violates all of them. The second: “\(X\) is a martingale converging almost surely to \(X_\infty\) , so \(\mathbb E X_\infty=\mathbb E X_0\) .” Convergence is Theorem 7.11; equality of the expectations needs uniform integrability (Theorem 7.13), and the product martingale of Example 7.4 has \(\mathbb E M_n=1\) and \(M_\infty=0\) . In both cases the remedy is the same sentence: name the theorem and check its condition, which is always a condition preventing expectation from escaping along rare large values.

Martingale methods reach well beyond gambling. In the next chapter the averages of independent variables are controlled by exactly the tools assembled here and in Chapter 3: truncation, a maximal or variance bound, and the Borel–Cantelli lemmas. For sums of independent variables with only a first moment, is the average still forced to settle, and in what sense?

Exercises

  1. Let \(S_n\) be the symmetric walk with steps \(\pm1\) . Prove that \(S_n^3-3nS_n\) is a martingale for the natural filtration, by computing the conditional expectation of its next value at a node where \(S_n=s\) .

    Solution

    Let \(X_n=S_n^3-3nS_n\) . It is \(\mathcal F_n\) -measurable and bounded for each \(n\) , hence integrable. By Proposition 6.7 the conditional expectation of \(X_{n+1}\) given \(\mathcal F_n\) is \(H(S_n)\) , where \(H(s)\) is the average of the two possible next values from a node with \(S_n=s\) :

    \[ H(s)=\tfrac12\bigl[(s+1)^3+(s-1)^3\bigr]-3(n+1)\cdot\tfrac12\bigl[(s+1)+(s-1)\bigr]. \]

    Expanding, \((s+1)^3+(s-1)^3=2s^3+6s\) , so the first term is \(s^3+3s\) ; the second is \(3(n+1)s=3ns+3s\) . Hence

    \[ H(s)=s^3+3s-3ns-3s=s^3-3ns , \]

    which is the value of \(X_n\) at the node. So \(\mathbb E[X_{n+1}\mid\mathcal F_n]=X_n\) . The correction term \(-3nS_n\) is exactly what cancels the drift \(3S_n\) that the cube picks up from \(\mathbb E\xi^2=1\) ; the same bookkeeping, one power lower, produced \(S_n^2-n\) in Example 6.5.

  2. Let \(X\) be a martingale that is also predictable, that is, \(X_n\) is \(\mathcal F_{n-1}\) -measurable for all \(n\ge 1\) . Show that \(X_n=X_0\) almost surely for all \(n\) .

    Answer

    For \(n\ge 1\) , \(X_n\) is \(\mathcal F_{n-1}\) -measurable, so \(X_n=\mathbb E[X_n\mid\mathcal F_{n-1}]=X_{n-1}\) almost surely, by Theorem 6.4(d) and the martingale property. Induct on \(n\) .

  3. Prove that if \(X\) is a martingale and \(\varphi\) is convex with \(\varphi(X_n)\) integrable then \(\varphi(X_n)\) is a submartingale, and that for a submartingale \(X\) the same conclusion holds provided \(\varphi\) is also nondecreasing. Give a submartingale \(X\) for which \(X^2\) is not a submartingale.

    Hint

    Use the conditional Jensen inequality; for a submartingale one additionally needs \(\varphi(\mathbb E[X_{n+1}\mid\mathcal F_n])\ge\varphi(X_n)\) , which is where monotonicity enters. Counterexample: the deterministic sequence \(X_n=-1/n\) increases, so it is a submartingale, while \(X_n^2=1/n^2\) decreases.

  4. Let \(\sigma\) and \(\tau\) be stopping times. Show that \(\sigma\wedge\tau\) , \(\sigma\vee\tau\) , and \(\sigma+\tau\) are stopping times, and explain why \(\tau-1\) need not be one even when \(\tau\ge 1\) .

    Answer

    \(\{\sigma\wedge\tau\le n\}=\{\sigma\le n\}\cup\{\tau\le n\}\) , \(\{\sigma\vee\tau\le n\}=\{\sigma\le n\}\cap\{\tau\le n\}\) , and \(\{\sigma+\tau=n\}=\bigcup_{k\le n}\{\sigma=k\}\cap\{\tau=n-k\}\) , all in \(\mathcal F_n\) . But \(\{\tau-1\le n\}=\{\tau\le n+1\}\) belongs to \(\mathcal F_{n+1}\) and in general not to \(\mathcal F_n\) : stopping one step before the first head of a coin requires knowing the next toss.

  5. Prove the Doob decomposition: every adapted integrable sequence \(X\) can be written uniquely as \(X_n=X_0+M_n+A_n\) with \(M\) a martingale, \(A\) predictable, and \(M_0=A_0=0\) . Find the decomposition of \(S_n^2\) for the symmetric walk.

    Solution

    Existence. Define \(A_0=0\) and

    \[ A_n=\sum_{k=1}^{n}\mathbb E[X_k-X_{k-1}\mid\mathcal F_{k-1}],\qquad M_n=X_n-X_0-A_n . \]

    Each summand of \(A_n\) is \(\mathcal F_{k-1}\) -measurable with \(k-1\le n-1\) , so \(A_n\) is \(\mathcal F_{n-1}\) -measurable: \(A\) is predictable. \(M\) is adapted and integrable, and

    \[ \mathbb E[M_{n+1}-M_n\mid\mathcal F_n]=\mathbb E[X_{n+1}-X_n\mid\mathcal F_n]-(A_{n+1}-A_n)=0, \]

    because \(A_{n+1}-A_n=\mathbb E[X_{n+1}-X_n\mid\mathcal F_n]\) by construction. So \(M\) is a martingale with \(M_0=0\) .

    Uniqueness. If \(X_n=X_0+M_n+A_n=X_0+M_n'+A_n'\) are two such decompositions, then \(M_n-M_n'=A_n'-A_n\) is a martingale that is predictable and vanishes at \(n=0\) . By Exercise 2 it is identically \(0\) .

    The walk. For \(X_n=S_n^2\) , Example 6.5 gives \(\mathbb E[S_k^2-S_{k-1}^2\mid\mathcal F_{k-1}]=1\) , so \(A_n=n\) and \(M_n=S_n^2-n\) . The predictable part records the accumulated conditional drift; \(X\) is a submartingale exactly when \(A\) is nondecreasing.

  6. Prove Wald’s identity: if \(\xi_1,\xi_2,\dots\) are i.i.d. and integrable with mean \(\mu\) , and \(\tau\) is a stopping time for their natural filtration with \(\mathbb E\tau<\infty\) , then \(\mathbb E S_\tau=\mu\,\mathbb E\tau\) .

    Solution

    Write \(S_\tau=\sum_{k\ge 1}\xi_k\mathbf 1_{\{\tau\ge k\}}\) . The event \(\{\tau\ge k\}=\{\tau\le k-1\}^{c}\) belongs to \(\mathcal F_{k-1}=\sigma(\xi_1,\dots,\xi_{k-1})\) , which is independent of \(\xi_k\) . Hence, by Theorem 2.6,

    \[ \mathbb E\bigl[\lvert\xi_k\rvert\mathbf 1_{\{\tau\ge k\}}\bigr]=\mathbb E\lvert\xi_1\rvert\,\mathbb P(\tau\ge k),\qquad \mathbb E\bigl[\xi_k\mathbf 1_{\{\tau\ge k\}}\bigr]=\mu\,\mathbb P(\tau\ge k). \]

    Summing the first identity over \(k\) and using \(\sum_{k\ge 1}\mathbb P(\tau\ge k)=\mathbb E\tau\) (Exercise 1.9) gives \(\mathbb E\sum_k\lvert\xi_k\rvert\mathbf 1_{\{\tau\ge k\}}=\mathbb E\lvert\xi_1\rvert\,\mathbb E\tau<\infty\) . So the series defining \(S_\tau\) converges absolutely almost surely, \(S_\tau\) is integrable, and the Dominated Convergence Theorem, with the integrable dominating variable \(\sum_k\lvert\xi_k\rvert\mathbf 1_{\{\tau\ge k\}}\) , allows the expectation to be taken term by term:

    \[ \mathbb E S_\tau=\sum_{k\ge 1}\mu\,\mathbb P(\tau\ge k)=\mu\,\mathbb E\tau . \]

    Theorem 7.7(c) would give the same result for bounded steps; the argument here needs only integrable steps, because independence lets each term be computed exactly. The hypothesis \(\mathbb E\tau<\infty\) cannot be dropped: for the symmetric walk and \(T\) the hitting time of \(1\) , \(\mathbb E S_T=1\) and \(\mu=0\) .

  7. For the biased walk of Example 7.1 with \(p=\tfrac23\) , let \(\tau\) be the first exit time from \((-2,3)\) . Use the martingales \(2^{-S_n}\) and \(S_n-\tfrac n3\) to find \(\mathbb P(S_\tau=3)\) and \(\mathbb E\tau\) .

    Solution

    The block argument of Example 7.3 applies unchanged: a run of five consecutive up-steps forces an exit, so \(\tau<\infty\) almost surely and \(\mathbb E\tau<\infty\) .

    Exit side. Up to time \(\tau\) the walk lies in \([-2,3]\) , so \(M_{\tau\wedge n}=2^{-S_{\tau\wedge n}}\in[\tfrac18,4]\) is bounded, and Theorem 7.7(b) gives \(\mathbb E\,2^{-S_\tau}=1\) . With \(\pi=\mathbb P(S_\tau=3)\) ,

    \[ \pi\cdot 2^{-3}+(1-\pi)\cdot 2^{2}=1\quad\Longrightarrow\quad 3=\pi\bigl(4-\tfrac18\bigr)\quad\Longrightarrow\quad\pi=\frac{24}{31}. \]

    Expected exit time. For the martingale \(S_n-\tfrac n3\) , Theorem 7.6 gives \(\mathbb E S_{\tau\wedge n}=\tfrac13\mathbb E[\tau\wedge n]\) . Let \(n\to\infty\) , using bounded convergence on the left and monotone convergence on the right: \(\mathbb E S_\tau=\tfrac13\mathbb E\tau\) . Now \(\mathbb E S_\tau=3\cdot\tfrac{24}{31}-2\cdot\tfrac{7}{31}=\tfrac{58}{31}\) , so

    \[ \mathbb E\tau=\frac{174}{31}\approx 5.61 . \]

    Compare the symmetric walk on the same interval, which exits at the top with probability \(\tfrac25\) and takes \(6\) steps on average: the bias nearly doubles the chance of exiting at the top and shortens the wait only slightly.

  8. For the symmetric walk let \(T=\inf\{n:S_n=1\}\) . Prove that \(\mathbb P(T<\infty)=1\) and \(\mathbb E T=\infty\) , and for each of the four conditions of Theorem 7.7 say why it fails for \(T\) .

    Solution

    Finiteness. For a positive integer \(a\) let \(\tau_a\) be the exit time from \((-a,1)\) . By Example 7.3, \(\mathbb P(S_{\tau_a}=1)=a/(a+1)\) , and on that event \(T\le\tau_a<\infty\) . So \(\mathbb P(T<\infty)\ge a/(a+1)\) for every \(a\) , and letting \(a\to\infty\) gives \(\mathbb P(T<\infty)=1\) .

    Infinite mean. Since \(T<\infty\) almost surely, \(S_T=1\) and \(\mathbb E S_T=1\ne 0=\mathbb E S_0\) . The increments of the walk are bounded by \(1\) , so if \(\mathbb E T\) were finite, Theorem 7.7(c) would give \(\mathbb E S_T=0\) . Hence \(\mathbb E T=\infty\) .

    The four conditions. (a) \(T\) is not bounded: for each \(N\) the first \(N\) steps are all down with probability \(2^{-N}>0\) , and then \(T>N\) . (b) The stopped walk is not bounded: on that same event \(S_{T\wedge N}=-N\) . (c) The increments are bounded but \(\mathbb E T=\infty\) . (d) The stopped walk is not uniformly integrable, for otherwise the conclusion \(\mathbb E S_T=0\) would hold; concretely, \(\mathbb E S_{T\wedge n}=0\) and \(S_{T\wedge n}\to 1\) almost surely, so by Theorem 5.6 uniform integrability is impossible. The walk does reach \(1\) , but on the way it makes excursions to the negative side that are large enough, with enough probability, to balance the certain final gain at every finite time.

  9. A student argues that the symmetric walk \(S_n\) is a martingale and therefore converges almost surely by the martingale convergence theorem. Identify the hypothesis that fails and say what the walk actually does.

    Answer

    The hypothesis \(\sup_n\mathbb E\lvert S_n\rvert<\infty\) fails. By Hölder’s inequality \(\mathbb E S_n^2\le(\mathbb E\lvert S_n\rvert)^{2/3}(\mathbb E S_n^4)^{1/3}\) , and \(\mathbb E S_n^2=n\) , \(\mathbb E S_n^4=3n^2-2n\le 3n^2\) , so \(\mathbb E\lvert S_n\rvert\ge\sqrt{n/3}\to\infty\) . The walk does not converge, since \(\lvert S_{n+1}-S_n\rvert=1\) always. In fact it visits every integer: by Example 7.3, for positive integers \(a\) and \(b\) the walk reaches \(b\) before \(-a\) with probability \(a/(a+b)\) , so it reaches \(b\) at some time with probability at least \(a/(a+b)\) for every \(a\) , hence with probability \(1\) ; no restart at a hitting time is needed. The same holds for \(-b\) by symmetry, and intersecting over \(b\) gives \(\limsup_nS_n=\infty\) and \(\liminf_nS_n=-\infty\) almost surely.

  10. For the symmetric walk compute exactly \(\mathbb P(\max_{k\le 16}\lvert S_k\rvert\ge 8)\) and compare it with the bound of Corollary 7.9.

    Answer

    Counting paths that stay strictly inside \((-8,8)\) for \(16\) steps gives \(\mathbb P(\max_{k\le 16}\lvert S_k\rvert\ge 8)=\tfrac{1607}{16384}\approx 0.098\) . Corollary 7.9 gives the bound \(\mathbb E S_{16}^2/8^2=16/64=0.25\) .

  11. For the numerical sequence \(0,2,-1,3,1,-2,4\) count the upcrossings of \([0,2]\) , list the values of the strategy \(H\) of Theorem 7.10, and verify the inequality \(Y_n\ge(b-a)U_n-(X_n-a)^{-}\) for \(n=6\) .

    Answer

    With \(a=0\) , \(b=2\) : \(\sigma_1=0\) , \(\tau_1=1\) , \(\sigma_2=2\) , \(\tau_2=3\) , \(\sigma_3=5\) , \(\tau_3=6\) , so \(U_6=3\) . The strategy is \(H_1,\dots,H_6=1,0,1,0,0,1\) , and \(Y_6=(2-0)+(3-(-1))+(4-(-2))=12\) . The inequality reads \(12\ge 2\cdot 3-(4-0)^{-}=6\) .

  12. Let \(X\) be a nonnegative supermartingale and \(\tau=\inf\{n:X_n=0\}\) . Prove that almost surely \(X_n=0\) for all \(n\ge\tau\) .

    Hint

    For \(n\ge m\) the event \(\{\tau=m\}\) is in \(\mathcal F_m\) , so \(0\le\mathbb E[X_n;\tau=m]\le\mathbb E[X_m;\tau=m]=0\) . Hence \(X_n=0\) almost surely on \(\{\tau=m\}\) ; take the union over \(m\le n\) .

  13. Let \(Y_1,Y_2,\dots\) be i.i.d. with density \(f\) , and let \(g\) be another probability density with \(g=0\) wherever \(f=0\) . Prove that \(L_n=\prod_{k\le n}g(Y_k)/f(Y_k)\) is a martingale, and that \(L_n\to 0\) almost surely unless \(f=g\) almost everywhere.

    Solution

    Martingale. The factors \(g(Y_k)/f(Y_k)\) are independent and nonnegative; they are well defined because \(f(Y_k)>0\) almost surely. Each has mean

    \[ \mathbb E\,\frac{g(Y_1)}{f(Y_1)}=\int_{\{f>0\}}\frac{g}{f}\,f\,dx=\int_{\{f>0\}}g\,dx=1, \]

    the last step because \(g\) vanishes where \(f\) does. So \(L_n\) is a product martingale, nonnegative, and by Corollary 7.12 it converges almost surely to some \(L_\infty\) .

    The limit. Let \(\rho=\mathbb E\sqrt{g(Y_1)/f(Y_1)}=\int\sqrt{fg}\,dx\) . By the Cauchy–Schwarz inequality \(\rho\le(\int f)^{1/2}(\int g)^{1/2}=1\) , with equality only if \(\sqrt g\) is a constant multiple of \(\sqrt f\) almost everywhere, which for two probability densities means \(f=g\) almost everywhere. Suppose \(f\ne g\) , so \(\rho<1\) . By independence \(\mathbb E\sqrt{L_n}=\rho^n\to 0\) . Thus \(\sqrt{L_n}\to 0\) in \(L^1\) , hence in probability, and so \(L_n\to 0\) in probability. But \(L_n\to L_\infty\) almost surely, hence in probability, and limits in probability are unique. Therefore \(L_\infty=0\) almost surely.

    In statistical terms \(L_n\) is the likelihood ratio of the wrong density to the true one, and it tends to \(0\) : the data eventually reveal which density generated them. As in Example 7.4, \(\mathbb E L_n=1\) for all \(n\) and the martingale is not uniformly integrable.

  14. In Pólya’s urn started with \(r\) red and \(b\) blue balls, show that the red fraction is a martingale and find the mean of its limit.

    Hint

    The computation of Example 7.5 goes through with \(n+2\) replaced by \(n+r+b\) . The fraction is bounded, so it converges in \(L^1\) and the mean of the limit is the initial fraction \(r/(r+b)\) .

  15. Let \(X\) be a uniformly integrable martingale with limit \(X_\infty\) , and let \(\tau\) be any stopping time, with \(X_\tau=X_\infty\) on \(\{\tau=\infty\}\) . Prove that \(\mathbb E X_\tau=\mathbb E X_0\) .

    Hint

    For each \(n\) , \(\mathbb E X_0=\mathbb E X_{\tau\wedge n}=\mathbb E[X_\tau;\tau\le n]+\mathbb E[X_n;\tau>n]\) , and \(\mathbb E[X_n;\tau>n]=\mathbb E[X_\infty;\tau>n]\) because \(\{\tau>n\}\in\mathcal F_n\) and \(X_n=\mathbb E[X_\infty\mid\mathcal F_n]\) . Show \(\mathbb E[\lvert X_\tau\rvert;\tau<\infty]\le\mathbb E\lvert X_\infty\rvert\) using \(\lvert X_k\rvert\le\mathbb E[\lvert X_\infty\rvert\mid\mathcal F_k]\) on \(\{\tau=k\}\) , then let \(n\to\infty\) by dominated convergence.

  16. Let \(Z_n\) be the size of the \(n\) -th generation of a branching process in which individuals have independent numbers of offspring with mean \(m\in(0,\infty)\) , and \(Z_0=1\) . Show that \(Z_n/m^n\) is a martingale that converges almost surely, and deduce that \(Z_n\to 0\) almost surely when \(m<1\) .

    Hint

    Given \(\mathcal F_n\) , \(Z_{n+1}\) is a sum of \(Z_n\) independent offspring counts, so \(\mathbb E[Z_{n+1}\mid\mathcal F_n]=mZ_n\) by Proposition 6.7. Corollary 7.12 gives convergence of \(W_n=Z_n/m^n\) to a finite limit; if \(m<1\) then \(Z_n=m^nW_n\to 0\) , and an integer-valued sequence tending to \(0\) is eventually \(0\) .

  17. Let \(X\) be a martingale with \(\mathbb E X_n^2<\infty\) for all \(n\) . Prove that its increments are pairwise orthogonal, deduce the formula of Theorem 7.15, and verify it by enumeration for the random harmonic series with \(n=4\) .

    Solution

    Let \(D_k=X_k-X_{k-1}\) for \(k\ge 1\) ; each \(D_k\) is square-integrable. Fix \(j<k\) . The variable \(D_j\) is \(\mathcal F_{k-1}\) -measurable, and \(D_jD_k\) is integrable by the Cauchy–Schwarz inequality, so taking out what is known gives

    \[ \mathbb E[D_jD_k]=\mathbb E\bigl[D_j\,\mathbb E[D_k\mid\mathcal F_{k-1}]\bigr]=0, \]

    since \(\mathbb E[D_k\mid\mathcal F_{k-1}]=0\) for a martingale. The same computation with \(X_0\) in place of \(D_j\) gives \(\mathbb E[X_0D_k]=0\) . Writing \(X_n=X_0+D_1+\dots+D_n\) and expanding the square, all cross terms have expectation zero, so

    \[ \mathbb E X_n^2=\mathbb E X_0^2+\sum_{k=1}^{n}\mathbb E D_k^2 . \]

    For the random harmonic series, \(X_0=0\) and \(D_k=\varepsilon_k/k\) with \(\mathbb E D_k^2=1/k^2\) , so \(\mathbb E X_4^2=1+\tfrac14+\tfrac19+\tfrac1{16}=\tfrac{205}{144}\) . Enumerating the sixteen sign patterns and averaging \((\varepsilon_1+\varepsilon_2/2+\varepsilon_3/3+\varepsilon_4/4)^2\) gives the same value: the squares contribute \(\tfrac{205}{144}\) in every pattern, and each cross term \(\varepsilon_j\varepsilon_k/(jk)\) is \(+1/(jk)\) in eight patterns and \(-1/(jk)\) in the other eight. Orthogonality here is independence, but the general argument needed only the martingale property.

  18. For the product martingale \(M_n\) of Example 7.4 prove directly that \(\lim_n\mathbb E[M_n;M_n>K]=1\) for every \(K>0\) , and conclude from Definition 5.1 that \((M_n)\) is not uniformly integrable.

    Solution

    Fix \(K>0\) . Since \(\mathbb E M_n=1\) ,

    \[ \mathbb E[M_n;M_n>K]=1-\mathbb E[M_n;M_n\le K]. \]

    The variables \(M_n\mathbf 1_{\{M_n\le K\}}\) are bounded by \(K\) and tend to \(0\) almost surely, because \(M_n\to 0\) almost surely by Example 7.4. The Dominated Convergence Theorem, with the constant \(K\) as dominating function, gives \(\mathbb E[M_n;M_n\le K]\to 0\) . Hence \(\mathbb E[M_n;M_n>K]\to 1\) as \(n\to\infty\) .

    Consequently \(\sup_n\mathbb E[M_n;M_n>K]=1\) for every \(K\) : it is at most \(\mathbb E M_n=1\) and at least the limit. The supremum does not tend to \(0\) as \(K\to\infty\) , so by Definition 5.1 the family \((M_n)\) is not uniformly integrable. In the limit all of the expectation sits beyond every fixed level, which is the same escape of mass as in the spike \(n\mathbf 1_{(0,1/n)}\) , produced here by a martingale.

Search knowledge base

Explore

On this page

Note