Preparing detailed martingale and optional stopping explanation
I'm outlining a precise definition of discrete-time martingales, stating the optional stopping theorem with key integrability and boundedness conditions, and planning a proof for bounded stopping times using the stopped process as a martingale. I’ll also explain why the theorem implies no expected profit can be gained by stopping a fair game "at a lucky time," tying it to gambler's fairness and necessary technical conditions.
A convenient framework for discussing “fair” games is a filtered probability space ((\Omega,\mathcal{F},(\mathcal{F}n){n\geq 0},\mathbb{P})), where (\mathcal{F}_n) represents the information available up to time (n). A sequence of integrable, (\mathcal{F}_n)–measurable random variables (X_0,X_1,\dots) is called a martingale with respect to ((\mathcal{F}n)) if
[
\mathbb{E}[,|X_n|,]<\infty\quad\text{and}\quad \mathbb{E}[,X{n+1}\mid\mathcal{F}_n,]=X_n\quad\text{a.s. for all }n\geq 0.
]
Intuitively (X_n) is your fortune after (n) plays of a fair game: the conditional expected next fortune given what you know now is your present fortune.
A random time (T) taking values in ({0,1,2,\dots}\cup{\infty}) is called a stopping time if ({T\leq n}\in\mathcal{F}_n) for each (n); this formalises the idea of deciding to stop based on the past.
The optional stopping (or sampling) theorem says that, under mild hypotheses on (T), stopping does not change the expected value of a martingale.
Optional stopping theorem. Let ((X_n)) be a martingale with respect to ((\mathcal{F}_n)), and let (T) be a stopping time. If, for example, (T) is almost surely bounded, then
[
\mathbb{E}[X_T]=\mathbb{E}[X_0].
]
There are several other sets of sufficient hypotheses—e.g. (T) integrable and the increments (X_{n+1}-X_n) uniformly bounded—but boundedness of (T) is enough to see the basic mechanism.
Proof in the bounded case. Define the stopped process (Y_n:=X_{T\wedge n}), i.e. we freeze the martingale once time (T) has occurred. One checks easily that ((Y_n)) is again a martingale with respect to ((\mathcal{F}n)): if (T\leq n) then (Y{n+1}=Y_n), and if (T>n) then (Y_{n+1}=X_{n+1}) and (\mathbb{E}[Y_{n+1}\mid\mathcal{F}n]=\mathbb{E}[X{n+1}\mid\mathcal{F}_n]=X_n=Y_n). If (T) is bounded by (N), then (Y_n=Y_N=X_T) for all (n\geq N), so
[
\mathbb{E}[X_T]=\mathbb{E}[Y_N]=\mathbb{E}[Y_0]=\mathbb{E}[X_0].
]
This is the desired identity.
More generally, the optional sampling theorem asserts that for any two stopping times (S\leq T) satisfying similar integrability or boundedness conditions,
[
\mathbb{E}[X_T\mid\mathcal{F}_S]=X_S\quad\text{a.s.}
]
and hence (\mathbb{E}[X_T]=\mathbb{E}[X_S]).
The gambling interpretation is that no clever rule for deciding when to quit a fair game can give you a positive expected profit: if your wealth process is a martingale and you stop at a bounded or suitably integrable stopping time, the expected wealth at stopping equals your initial capital. If you drop the hypotheses—allow stopping times of infinite mean or allow unbounded negative jumps—pathological examples show that (\mathbb{E}[X_T]) need not equal (\mathbb{E}[X_0]), so some control on the stopping time and the martingale’s integrability is essential.