CONTENTS

Exercise: Verifying the Martingale Property from First Principles

Problem

Let X1,X2,X_1, X_2, \ldots be i.i.d. random variables with P(Xi=+1)=p\mathbb{P}(X_i = +1) = p and P(Xi=1)=1p\mathbb{P}(X_i = -1) = 1 - p, and let Sn=X1++XnS_n = X_1 + \cdots + X_n with Fn=σ(X1,,Xn)\mathcal{F}_n = \sigma(X_1, \ldots, X_n).

  1. For p=1/2p = 1/2, verify E[Sn+1Fn]=Sn\mathbb{E}[S_{n+1} \mid \mathcal{F}_n] = S_n from the definition of conditional expectation. Conclude (Sn)(S_n) is a martingale.

  2. For p1/2p \ne 1/2, compute E[Sn+1Fn]\mathbb{E}[S_{n+1} \mid \mathcal{F}_n] and identify (Sn)(S_n) as a sub-, super-, or non-martingale.

  3. For general p(0,1)p \in (0, 1), consider the process Mn=(1pp)SnM_n = \left(\frac{1-p}{p}\right)^{S_n}. Show that (Mn)(M_n) is a martingale. (This is the exponential martingale for a biased random walk — it plays a key role in the gambler's-ruin problem.)
  4. Confirm part 3 by direct calculation of E[Mn+1Fn]\mathbb{E}[M_{n+1} \mid \mathcal{F}_n], showing each intermediate step. Which algebraic identity makes the cross-term vanish?

Hint

For part 3, factor Mn+1=MnqXn+1M_{n+1} = M_n\cdot q^{X_{n+1}} where q=(1p)/pq = (1-p)/p, and compute E[qXn+1]\mathbb{E}[q^{X_{n+1}}] directly.

Jump to the solution when you're ready.