# Martingale (probability theory)

__: Model in probability theory__

**Short description**

In probability theory, a **martingale** is a sequence of random variables (i.e., a stochastic process) for which, at a particular time, the conditional expectation of the next value in the sequence is equal to the present value, regardless of all prior values.

## History

Originally, *martingale* referred to a class of betting strategies that was popular in 18th-century *France* .^{[1]}^{[2]} The simplest of these strategies was designed for a game in which the gambler wins their stake if a coin comes up heads and loses it if the coin comes up tails. The strategy had the gambler double their bet after every loss so that the first win would recover all previous losses plus win a profit equal to the original stake. As the gambler's wealth and available time jointly approach infinity, their probability of eventually flipping heads approaches 1, which makes the martingale betting strategy seem like a sure thing. However, the exponential growth of the bets eventually bankrupts its users due to finite bankrolls. Stopped Brownian motion, which is a martingale process, can be used to model the trajectory of such games.

The concept of martingale in probability theory was introduced by Paul Lévy in 1934, though he did not name it. The term "martingale" was introduced later by (Ville 1939), who also extended the definition to continuous martingales. Much of the original development of the theory was done by Joseph Leo Doob among others. Part of the motivation for that work was to show the impossibility of successful betting strategies in games of chance.

## Definitions

A basic definition of a discrete-time **martingale** is a discrete-time stochastic process (i.e., a sequence of random variables) *X*_{1}, *X*_{2}, *X*_{3}, ... that satisfies for any time *n*,

- [math]\displaystyle{ \mathbf{E} ( \vert X_n \vert )\lt \infty }[/math]

- [math]\displaystyle{ \mathbf{E} (X_{n+1}\mid X_1,\ldots,X_n)=X_n. }[/math]

That is, the conditional expected value of the next observation, given all the past observations, is equal to the most recent observation.

### Martingale sequences with respect to another sequence

More generally, a sequence *Y*_{1}, *Y*_{2}, *Y*_{3} ... is said to be a **martingale with respect to** another sequence *X*_{1}, *X*_{2}, *X*_{3} ... if for all *n*

- [math]\displaystyle{ \mathbf{E} ( \vert Y_n \vert )\lt \infty }[/math]

- [math]\displaystyle{ \mathbf{E} (Y_{n+1}\mid X_1,\ldots,X_n)=Y_n. }[/math]

Similarly, a **continuous-time martingale with respect to** the stochastic process *X _{t}* is a stochastic process

*Y*such that for all

_{t}*t*

- [math]\displaystyle{ \mathbf{E} ( \vert Y_t \vert )\lt \infty }[/math]

- [math]\displaystyle{ \mathbf{E} ( Y_{t} \mid \{ X_{\tau}, \tau \leq s \} ) = Y_s\quad \forall s \le t. }[/math]

This expresses the property that the conditional expectation of an observation at time *t*, given all the observations up to time [math]\displaystyle{ s }[/math], is equal to the observation at time *s* (of course, provided that *s* ≤ *t*). The second property implies that [math]\displaystyle{ Y_n }[/math] is measurable with respect to [math]\displaystyle{ X_1 \dots X_n }[/math].

### General definition

In full generality, a stochastic process [math]\displaystyle{ Y:T\times\Omega\to S }[/math] taking values in a Banach space [math]\displaystyle{ S }[/math] with norm [math]\displaystyle{ \lVert \cdot \rVert_{S} }[/math] is a **martingale with respect to a filtration** [math]\displaystyle{ \Sigma_* }[/math] **and probability measure [math]\displaystyle{ \mathbb P }[/math]** if

- Σ
_{∗}is a filtration of the underlying probability space (Ω, Σ, [math]\displaystyle{ \mathbb P }[/math]); *Y*is adapted to the filtration Σ_{∗}, i.e., for each*t*in the index set*T*, the random variable*Y*is a Σ_{t}_{t}-measurable function;- for each
*t*,*Y*lies in the_{t}*L*space^{p}*L*^{1}(Ω, Σ_{t}, [math]\displaystyle{ \mathbb P }[/math];*S*), i.e.

- [math]\displaystyle{ \mathbf{E}_{\mathbb{P}} (\lVert Y_{t} \rVert_{S}) \lt + \infty; }[/math]

- for all
*s*and*t*with*s*<*t*and all*F*∈ Σ_{s},

- [math]\displaystyle{ \mathbf{E}_{\mathbb{P}} \left([Y_t-Y_s]\chi_F\right) =0, }[/math]

- where
*χ*denotes the indicator function of the event_{F}*F*. In Grimmett and Stirzaker's*Probability and Random Processes*, this last condition is denoted as- [math]\displaystyle{ Y_s = \mathbf{E}_{\mathbb{P}} ( Y_t \mid \Sigma_s ), }[/math]

- which is a general form of conditional expectation.
^{[3]}

It is important to note that the property of being a martingale involves both the filtration *and* the probability measure (with respect to which the expectations are taken). It is possible that *Y* could be a martingale with respect to one measure but not another one; the Girsanov theorem offers a way to find a measure with respect to which an Itō process is a martingale.

In the Banach space setting the conditional expectation is also denoted in operator notation as [math]\displaystyle{ \mathbf{E}^{\Sigma_s} Y_t }[/math].^{[4]}

## Examples of martingales

- An unbiased random walk (in any number of dimensions) is an example of a martingale.
- A gambler's fortune (capital) is a martingale if all the betting games which the gambler plays are fair. To be more specific: suppose
*X*is a gambler's fortune after_{n}*n*tosses of a fair coin, where the gambler wins $1 if the coin comes up heads and loses $1 if it comes up tails. The gambler's conditional expected fortune after the next trial, given the history, is equal to their present fortune. This sequence is thus a martingale. - Let
*Y*=_{n}*X*_{n}^{2}−*n*where*X*is the gambler's fortune from the preceding example. Then the sequence {_{n}*Y*:_{n}*n*= 1, 2, 3, ... } is a martingale. This can be used to show that the gambler's total gain or loss varies roughly between plus or minus the square root of the number of steps. - (de Moivre's martingale) Now suppose the coin is unfair, i.e., biased, with probability
*p*of coming up heads and probability*q*= 1 −*p*of tails. Let

- [math]\displaystyle{ X_{n+1}=X_n\pm 1 }[/math]

- with "+" in case of "heads" and "−" in case of "tails". Let

- [math]\displaystyle{ Y_n=(q/p)^{X_n}. }[/math]

- Then {
*Y*:_{n}*n*= 1, 2, 3, ... } is a martingale with respect to {*X*:_{n}*n*= 1, 2, 3, ... }. To show this- [math]\displaystyle{ \begin{align} E[Y_{n+1} \mid X_1,\dots,X_n] & = p (q/p)^{X_n+1} + q (q/p)^{X_n-1} \\[6pt] & = p (q/p) (q/p)^{X_n} + q (p/q) (q/p)^{X_n} \\[6pt] & = q (q/p)^{X_n} + p (q/p)^{X_n} = (q/p)^{X_n}=Y_n. \end{align} }[/math]

- Pólya's urn contains a number of different-coloured marbles; at each iteration a marble is randomly selected from the urn and replaced with several more of that same colour. For any given colour, the fraction of marbles in the urn with that colour is a martingale. For example, if currently 95% of the marbles are red then, though the next iteration is more likely to add red marbles than another color, this bias is exactly balanced out by the fact that adding more red marbles alters the fraction much less significantly than adding the same number of non-red marbles would.
- (Likelihood-ratio testing in statistics) A random variable
*X*is thought to be distributed according either to probability density*f*or to a different probability density*g*. A random sample*X*_{1}, ...,*X*_{n}is taken. Let*Y*_{n}be the "likelihood ratio"

- [math]\displaystyle{ Y_n=\prod_{i=1}^n\frac{g(X_i)}{f(X_i)} }[/math]

- If X is actually distributed according to the density
*f*rather than according to*g*, then {*Y*:_{n}*n*= 1, 2, 3, ... } is a martingale with respect to {*X*:_{n}*n*= 1, 2, 3, ... }.

- In an ecological community (a group of species that are in a particular trophic level, competing for similar resources in a local area), the number of individuals of any particular species of fixed size is a function of (discrete) time, and may be viewed as a sequence of random variables. This sequence is a martingale under the unified neutral theory of biodiversity and biogeography.
- If {
*N*:_{t}*t*≥ 0 } is a Poisson process with intensity*λ*, then the compensated Poisson process {*N*−_{t}*λt*:*t*≥ 0 } is a continuous-time martingale with right-continuous/left-limit sample paths

- A [math]\displaystyle{ d }[/math]-dimensional process [math]\displaystyle{ M=(M^{(1)},\dots,M^{(d)}) }[/math] in some space [math]\displaystyle{ S^d }[/math] is a martingale in [math]\displaystyle{ S^d }[/math] if each component [math]\displaystyle{ T_i(M)=M^{(i)} }[/math] is a one-dimensional martingale in [math]\displaystyle{ S }[/math].

## Submartingales, supermartingales, and relationship to harmonic functions

There are two popular generalizations of a martingale that also include cases when the current observation *X _{n}* is not necessarily equal to the future conditional expectation

*E*[

*X*

_{n+1}|

*X*

_{1},...,

*X*] but instead an upper or lower bound on the conditional expectation. These definitions reflect a relationship between martingale theory and potential theory, which is the study of harmonic functions. Just as a continuous-time martingale satisfies E[

_{n}*X*

_{t}| {

*X*

_{τ}:

*τ*≤

*s*}] −

*X*

_{s}= 0 ∀

*s*≤

*t*, a harmonic function

*f*satisfies the partial differential equation Δ

*f*= 0 where Δ is the Laplacian operator. Given a Brownian motion process

*W*

_{t}and a harmonic function

*f*, the resulting process

*f*(

*W*

_{t}) is also a martingale.

- A discrete-time
**submartingale**is a sequence [math]\displaystyle{ X_1,X_2,X_3,\ldots }[/math] of integrable random variables satisfying

- [math]\displaystyle{ \operatorname E[X_{n+1}\mid X_1,\ldots,X_n] \ge X_n. }[/math]

- Likewise, a continuous-time submartingale satisfies
- [math]\displaystyle{ \operatorname E[X_t\mid\{X_\tau : \tau \le s\}] \ge X_s \quad \forall s \le t. }[/math]

- In potential theory, a subharmonic function
*f*satisfies Δ*f*≥ 0. Any subharmonic function that is bounded above by a harmonic function for all points on the boundary of a ball is bounded above by the harmonic function for all points inside the ball. Similarly, if a submartingale and a martingale have equivalent expectations for a given time, the history of the submartingale tends to be bounded above by the history of the martingale. Roughly speaking, the prefix "sub-" is consistent because the current observation*X*is_{n}*less than*(or equal to) the conditional expectation*E*[*X*_{n}_{+1}|*X*_{1},...,*X*]. Consequently, the current observation provides support_{n}*from below*the future conditional expectation, and the process tends to increase in future time.

- Analogously, a discrete-time
**supermartingale**satisfies

- [math]\displaystyle{ \operatorname E[X_{n+1}\mid X_1,\ldots,X_n] \le X_n. }[/math]

- Likewise, a continuous-time supermartingale satisfies
- [math]\displaystyle{ \operatorname E[X_t\mid\{X_\tau : \tau \le s\}] \le X_s \quad \forall s \le t. }[/math]

- In potential theory, a superharmonic function
*f*satisfies Δ*f*≤ 0. Any superharmonic function that is bounded below by a harmonic function for all points on the boundary of a ball is bounded below by the harmonic function for all points inside the ball. Similarly, if a supermartingale and a martingale have equivalent expectations for a given time, the history of the supermartingale tends to be bounded below by the history of the martingale. Roughly speaking, the prefix "super-" is consistent because the current observation*X*is_{n}*greater than*(or equal to) the conditional expectation*E*[*X*_{n}_{+1}|*X*_{1},...,*X*]. Consequently, the current observation provides support_{n}*from above*the future conditional expectation, and the process tends to decrease in future time.

### Examples of submartingales and supermartingales

- Every martingale is also a submartingale and a supermartingale. Conversely, any stochastic process that is
*both*a submartingale and a supermartingale is a martingale. - Consider again the gambler who wins $1 when a coin comes up heads and loses $1 when the coin comes up tails. Suppose now that the coin may be biased, so that it comes up heads with probability
*p*.- If
*p*is equal to 1/2, the gambler on average neither wins nor loses money, and the gambler's fortune over time is a martingale. - If
*p*is less than 1/2, the gambler loses money on average, and the gambler's fortune over time is a supermartingale. - If
*p*is greater than 1/2, the gambler wins money on average, and the gambler's fortune over time is a submartingale.

- If
- A convex function of a martingale is a submartingale, by Jensen's inequality. For example, the square of the gambler's fortune in the fair coin game is a submartingale (which also follows from the fact that
*X*_{n}^{2}−*n*is a martingale). Similarly, a concave function of a martingale is a supermartingale.

## Martingales and stopping times

A stopping time with respect to a sequence of random variables *X*_{1}, *X*_{2}, *X*_{3}, ... is a random variable τ with the property that for each *t*, the occurrence or non-occurrence of the event *τ* = *t* depends only on the values of *X*_{1}, *X*_{2}, *X*_{3}, ..., *X*_{t}. The intuition behind the definition is that at any particular time *t*, you can look at the sequence so far and tell if it is time to stop. An example in real life might be the time at which a gambler leaves the gambling table, which might be a function of their previous winnings (for example, he might leave only when he goes broke), but he can't choose to go or stay based on the outcome of games that haven't been played yet.

In some contexts the concept of *stopping time* is defined by requiring only that the occurrence or non-occurrence of the event *τ* = *t* is probabilistically independent of *X*_{t + 1}, *X*_{t + 2}, ... but not that it is completely determined by the history of the process up to time *t*. That is a weaker condition than the one appearing in the paragraph above, but is strong enough to serve in some of the proofs in which stopping times are used.

One of the basic properties of martingales is that, if [math]\displaystyle{ (X_t)_{t\gt 0} }[/math] is a (sub-/super-) martingale and [math]\displaystyle{ \tau }[/math] is a stopping time, then the corresponding stopped process [math]\displaystyle{ (X_t^\tau)_{t\gt 0} }[/math] defined by [math]\displaystyle{ X_t^\tau:=X_{\min\{\tau,t\}} }[/math] is also a (sub-/super-) martingale.

The concept of a stopped martingale leads to a series of important theorems, including, for example, the optional stopping theorem which states that, under certain conditions, the expected value of a martingale at a stopping time is equal to its initial value.

## See also

- Azuma's inequality
- Brownian motion
- Doob martingale
- Doob's martingale convergence theorems
- Doob's martingale inequality
- Doob–Meyer decomposition theorem
- Local martingale
- Markov chain
- Markov property
- Martingale (betting system)
- Martingale central limit theorem
- Martingale difference sequence
- Martingale representation theorem
- Normal number
- Semimartingale

## Notes

- ↑ Balsara, N. J. (1992).
*Money Management Strategies for Futures Traders*. Wiley Finance. p. 122. ISBN 978-0-471-52215-7. https://archive.org/details/moneymanagements00bals. "martingale." - ↑ Mansuy, Roger (June 2009). "The origins of the Word "Martingale"".
*Electronic Journal for History of Probability and Statistics***5**(1). http://www.jehps.net/juin2009/Mansuy.pdf. Retrieved 2011-10-22. - ↑ Grimmett, G.; Stirzaker, D. (2001).
*Probability and Random Processes*(3rd ed.). Oxford University Press. ISBN 978-0-19-857223-7. - ↑ Bogachev, Vladimir (1998).
*Gaussian Measures*. American Mathematical Society. pp. 372–373. ISBN 978-1470418694.

## References

- Hazewinkel, Michiel, ed. (2001), "Martingale",
*Encyclopedia of Mathematics*, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=p/m062570 - "The Splendors and Miseries of Martingales".
*Electronic Journal for History of Probability and Statistics***5**(1). June 2009. http://www.jehps.net/juin2009.html. Entire issue dedicated to Martingale probability theory (Laurent Mazliak and Glenn Shafer, Editors). - Baldi, Paolo; Mazliak, Laurent; Priouret, Pierre (1991).
*Martingales and Markov Chains*. Chapman and Hall. ISBN 978-1-584-88329-6. - Williams, David (1991).
*Probability with Martingales*. Cambridge University Press. ISBN 978-0-521-40605-5. - Kleinert, Hagen (2004).
*Path Integrals in Quantum Mechanics, Statistics, Polymer Physics, and Financial Markets*(4th ed.). Singapore: World Scientific. ISBN 981-238-107-4. http://www.physik.fu-berlin.de/~kleinert/b5. - Siminelakis, Paris (2010). "Martingales and Stopping Times: Use of martingales in obtaining bounds and analyzing algorithms". University of Athens. http://www.corelab.ece.ntua.gr/courses/rand-alg/slides/Martingales-Stopping_Times.pdf.
- Ville, Jean (1939). "Étude critique de la notion de collectif" (in fr).
*Bulletin of the American Mathematical Society*. Monographies des Probabilités (Paris)**3**(11): 824–825. doi:10.1090/S0002-9904-1939-07089-4. Review by Doob. https://books.google.com/books?id=ETY7AQAAIAAJ.

Original source: https://en.wikipedia.org/wiki/Martingale (probability theory).
Read more |