Martingale
Definition
Process X is a martingale if for all n:
Where
- Fn is the history of Xn (called filtration)
Which means, on the n+1 step, the expectation of X shall be the same as any step before.
A martingale may be thought of as a “fair game”, because given the information in current and previous plays (Fn), you don't expect to change your total winning (X).
Example
Here are two practical example to help you understand it.
Partial sum process
A simple coin game, in \(i\) turn we bet \(X_i\), and \(S_n\) is our winning money after n turn.
Let Xi be independent, define the partial sum process:
Sn is a martingale iff:
Proof
With Xi being independent, and E(Xi) = 0, we have:
Gambler's Ruin Problem
A classic problem on martingale.
Consider a gambler who starts with an initial fortune of $1 and then on each successive gamble either wins $1 or loses $1 independent of the past with probabilities p and q = 1−p respectively. Let Rn denote the total fortune after the n th gamble. The gambler’s objective is to reach a total fortune of $N, without first getting ruined (running out of money). If the gambler succeeds, then the gambler is said to win the game.
Let \(P_i\) denote the probability that the gambler wins when the initial money \(R_0 = i\), we have:
This is because P_i can only lead to two states:
- Winning $1 with probability p to state \(P_{i+1}\)
- Losing $1 with probability q to state \(P_{i-1}\)
Subtract P_{i-1} from both sides of the equation, we get:
i.e.,
Thus
We have
To solve P_1, pick i = N-1 and use the fact that P_N = 1
Substitute P_1 and we have: