Stochastic Processes: Basics
Stochastic Processes, Martingales, and Markov Chains
1. Stochastic processes
A stochastic process is a collection of random variables defined on one common probability space. It can be written as
where each Xi takes values in a state space S and is defined on (Ω,F,P).
The index set I may be finite, countable, uncountable, one-dimensional, or higher-dimensional. When it represents time, the process describes a random system as it evolves.
State space
The state space S is the set of values, or states, that the random variables in the process can take. It is equipped with a suitable σ-algebra:
For a topological space S, the Borel σ-algebra is generated by its open sets.
For a subset of R, it is generated by the intervals contained in that space.
If S is finite or countable, the Borel σ-algebra consists of all subsets of S.
Realizations and sample paths
The sample space Ω contains the possible outcomes of the underlying experiment. In the context of stochastic processes, an outcome ω∈Ω is also called a realization.
Fixing an index i selects one random variable, Xi. Alternatively, fixing a realization ω and evaluating every random variable at that same outcome gives the collection
This collection of values is called a sample path. Thus, a realization determines a sample path.
A simulation of a stochastic process displays sample paths, not the abstract process itself. Repeated simulation produces many realizations and can help reveal typical behavior.
Processes with and without time
Not every stochastic process models change over time. For example, random graphs and random networks are random structures that may be static, but they can still be described using collections of random variables.
When the index set is used to represent time, it needs an order so that earlier and later indices can be distinguished. In the usual temporal setting, time is ordered in one direction, producing the concepts of past, present, and future.
Two common time index sets are:
Discrete time: I={0,1,2,…}. A process is written {Xn}n≥0, with Xn representing the state at time n.
Continuous time: I=[0,∞). A process is often written {Xt}t≥0, with Xt representing the state at time t.
The definitions of martingales and Markov processes have continuous-time versions. The discussion here focuses on discrete time.
2. Filtrations and information over time
A filtration is a nondecreasing sequence of sub-σ-algebras of F:
The σ-algebra Gn represents the information available at time n.
At time n, the past and present have been observed, while the future remains unknown. As time passes, more information becomes available, which is why the filtration is nondecreasing.
Adapted processes
A process {Xn} is adapted to a filtration {Gn} if Xn is Gn-measurable for every n:
Measurability here expresses that the value of Xn is determined by the information available at time n. In other words, knowing Gn means knowing the process’s state at time n.
Natural filtration
The natural filtration of {Xn} is the information generated by observing that process up to the current time:
It is a filtration because observing more time points adds information. The process is adapted to its natural filtration by construction.
The natural filtration is the smallest filtration that records all information contained in the process itself. It does not include information from other processes or external observations. When a process is called a martingale or Markov chain without specifying a filtration, the natural filtration is commonly intended.
3. Martingales, submartingales, and supermartingales
Let {Xn} be a discrete-time process and let {Gn} be a filtration. The process is a martingale with respect to the filtration if, for each n:
Xn is integrable, meaning Xn∈L1.
The process is adapted to {Gn}.
The conditional expectation of the next value, given the information available now, equals the current value:
E[Xn+1∣Gn]=Xn.
The conditional-expectation condition is the defining balance property. Given everything known up to time n, the average value at the next step is the value at time n.
Fair-game intuition
A martingale can be viewed as the fortune of a gambler playing a fair game. If Xn is the gambler’s fortune after n rounds, then
says that no matter what has happened so far, the expected fortune after one more round is unchanged. In this sense, the next increment has conditional mean zero:
The process need not literally model gambling; the fair-game interpretation is a useful way to understand the conditional-expectation property.
Submartingales and supermartingales
A submartingale satisfies the integrability and adaptedness conditions and has
Its conditional average tends not to decrease. In the gambling interpretation, it resembles a favorable game for the player.
A supermartingale satisfies the same basic conditions and has
Its conditional average tends not to increase. In the gambling interpretation, it resembles an unfavorable game for the player.
The terms are also connected to subharmonic and superharmonic functions, respectively.
A useful consequence—and its limitation
Taking expectations in the martingale condition gives
so a martingale has constant expected value over time. The converse is not true: a process may have constant expected value at every time without satisfying the conditional-expectation condition required of a martingale.
4. Discrete-time Markov chains
Let {Xn} be a process with finite or countable state space S, and let
be its natural filtration. The process is a discrete-time Markov chain if, for every subset B⊆S,
Since a finite or countable state space has all its subsets available as measurable events, the event {Xn+1∈B} is a valid event whose conditional probability can be considered.
The Markov property: memorylessness
The equation says that the probability of a future event, given the entire history through time n, depends only on the current state Xn. Once the present is known, the earlier history provides no additional information for predicting the next state.
This is the Markov property, often summarized as:
The future depends on the past only through the present.
Under the usual formulation, this can also be expressed by saying that past and future are conditionally independent given the present. The process does not need to be independent over time; it only needs to satisfy this conditional memorylessness.
For an event describing the next state, the Markov property can be checked by finding its conditional probability given Fn and showing that the result is a measurable function of Xn alone. If it genuinely depends on earlier states as well, the process is not a Markov chain with state Xn.
5. Conditional-expectation and conditional-probability techniques
The examples below repeatedly use two basic principles.
Known information
If a random variable U is measurable with respect to G, then it is already determined by the information in G. In particular,
Independence from available information
If a random variable V is independent of G and integrable, then
Likewise, if an event involving V is independent of G, its conditional probability given G equals its unconditional probability.
Splitting known and unknown parts
A common strategy is to write a future quantity as a combination of:
a part already measurable with respect to the current information; and
a part independent of that information.
For example, if Xn+1=Xn+Wn+1, with Xn known at time n and Wn+1 independent of the information at time n, then
Similarly, if B is G-measurable and V is independent of G, then, under the required integrability conditions,
These decompositions are central to verifying martingale and Markov properties.
6. Four example processes
The following examples illustrate all four possible combinations of the martingale and Markov properties:
A process can be a Markov chain but not a martingale.
It can be both.
It can be a martingale but not a Markov chain.
It can be neither.
Example 1: Independent fair-coin outcomes
Let Wn record the result of the nth independent fair-coin flip:
Thus, P(Wn=1)=P(Wn=−1)=21, and the variables W1,W2,… are independent.
Martingale status
The natural filtration through time n is
The next flip Wn+1 is independent of Fn, so
But Wn is always either +1 or −1, never 0. Therefore,
and {Wn} is not a martingale.
It is neither a submartingale nor a supermartingale: the conditional expectation 0 is sometimes below Wn and sometimes above it. This example also shows why constant expectations are not enough to establish the martingale property. Although E[Wn]=0 for every n, the process is not a martingale.
Markov status
Because the flips are independent, the next outcome is independent of the entire history:
It is also independent of Wn, so
The two conditional probabilities are equal. Thus {Wn} is a Markov chain. This is a special case in which the next state does not depend even on the current state.
Classification: Markov chain, but not a martingale.
Example 2: Symmetric random walk on the integers
Let Xn represent a particle’s position on Z. At each step, the particle moves one unit to the right or left, each with probability 21. Using independent fair-coin increments,
Here Wk=1 represents a rightward step and Wk=−1 a leftward step.
Martingale status
The next position can be written as
The current position Xn is known at time n, while Wn+1 is independent of the history and has mean zero. Hence
For an integrable initial position, the symmetric random walk is therefore a martingale.
It also has the fair-game interpretation: a gambler wins one unit on Heads and loses one unit on Tails.
Markov status
Given the current position Xn, the next position is Xn+1 or Xn−1, each with probability 21. The earlier route taken to reach Xn does not affect those probabilities.
For a particular integer x,
where 1A is 1 when event A occurs and 0 otherwise. This expression is a function of Xn alone, so it equals the conditional probability given Xn. The same reasoning applies to any set of possible next states.
Thus, the symmetric random walk is a Markov chain as well as a martingale.
Classification: Both a martingale and a Markov chain.
Example 3: Betting random walk
Let Yn be a gambler’s fortune after n games. Each game uses an independent fair-coin outcome Wn∈{−1,1}. Before game n, the gambler chooses a bet Bn, and the fortune changes by BnWn:
A bet is allowed to depend on the past, but it must be chosen before the outcome of the game. This is represented by requiring Bn to be measurable with respect to the information available before game n, such as Fn−1. The bet cannot depend on the outcome it is being placed on.
Assume the process and bets satisfy the necessary integrability conditions.
Martingale status
At time n, both Yn and the next bet Bn+1 are known. The next coin outcome Wn+1 is independent of the information available before that flip and has mean zero. Therefore,
Thus the fortune is a martingale. Choosing the bet based on past results does not change the fair expected gain of the next game, provided the bet is set before its outcome is known.
Markov status
The answer depends on how the bets are chosen. If the bet schedule is fixed in advance, the next transition can be determined from the current fortune and the scheduled bet. With a time-varying deterministic schedule, the process is naturally a time-inhomogeneous Markov chain; when the transition rule does not vary with time, it is homogeneous. The symmetric random walk is the special case Bn=1 for every n.
However, a strategy can make the next bet depend on earlier states in a way that cannot be inferred from the current fortune alone. In that case, the fortune process need not be Markov.
A strategy that is not Markov
Choose positive integers a>b. After a win, bet a on the next game; after a loss, bet b. The decision is based on the previous outcome, not on the result of the next game.
A win at time n means Yn>Yn−1, and a loss means Yn<Yn−1. Consequently, the bet for game n+1 is
From the current fortune Yn, the next fortune could change by either a or b, depending on the previous outcome. For example, the conditional probability of gaining a on the next game is
This depends on both Yn and Yn−1, not just on Yn. It is not, in general, a function of the present fortune alone, so the process is not a Markov chain with state Yn.
The strategy may feel as though a win makes the gambler “lucky” or a loss makes the gambler “unlucky.” That feeling does not affect the probability of the next fair-coin outcome, but it does affect the bet size and therefore the size of the next change in fortune.
Classification: A martingale, but not necessarily a Markov chain; the stated past-dependent strategy gives a non-Markov example.
Example 4: Two-coin process
Let Zn∈{−1,1} record Heads as +1 and Tails as −1. There are two biased coins:
Coin 1 gives Heads with probability 31.
Coin 2 gives Heads with probability 32.
Start by flipping coin 1 twice. After that, use the previous two outcomes to choose the next coin:
If the previous two outcomes match, use coin 1.
If they differ, use coin 2.
Thus the probability law of Zn+1 depends on whether Zn=Zn−1.
If the previous outcomes match, then
If they differ, then
Martingale status
On the event that the previous outcomes match, the conditional mean of the next outcome is
On the event that they differ, it is
Therefore,
This conditional expectation is always either −31 or 31, while Zn is always either −1 or 1. Thus the conditional expectation is not equal to Zn, and the process is not a martingale.
It is neither a submartingale nor a supermartingale. If Zn=−1, the conditional expectation is always greater than Zn; if Zn=1, it is always less than Zn. The inequality required for a submartingale therefore does not hold in every state, nor does the inequality required for a supermartingale.
Markov status
The probability of the next outcome depends on which coin is selected, and that choice depends on both Zn and Zn−1. More explicitly,
For a given current value Zn, the probability can differ according to the preceding value Zn−1. It is therefore not a function of Zn alone, so {Zn} is not a Markov chain when its state is just Zn.
The dependence on two consecutive outcomes can be incorporated into a larger state, such as the pair (Zn−1,Zn). The pair records enough history to determine the rule for choosing the next coin.
Classification: Neither a martingale nor a Markov chain when the state is Zn alone.
7. Comparing the four examples
Independent fair-coin outcomes Wn: Markov, but not a martingale. The next outcome is independent of the past, but the conditional mean is 0, not Wn.
Symmetric random walk Xn: Both. Its next increment has conditional mean zero, and its next-state distribution depends only on the current position.
Past-dependent betting walk Yn: Martingale, but not Markov for the strategy that selects the next bet using the previous win or loss. The fair outcome keeps the conditional expected fortune unchanged, while the bet size retains information about the past.
Two-coin process Zn: Neither, when the state is only the current outcome. Its conditional mean does not equal the current value, and the next transition depends on the previous two outcomes.
These examples show that the martingale property and the Markov property are distinct. Neither property implies the other, and a process may satisfy both or neither.
8. Connections to broader stochastic-process theory
Martingale and Markov concepts lead to several major areas of probability theory.
Further martingale results
Martingale theory studies more than the defining conditional-expectation equality. Important results include the optional stopping theorem, upcrossing inequalities, and martingale convergence theorems. Related ideas include regular martingales and reverse martingales.
Martingale methods can also contribute to proofs of laws of large numbers. In particular, combining reverse-martingale arguments with Kolmogorov’s 0–1 law can yield strong-law results even in settings where random variables have infinite variance.
Branching processes
A Galton–Watson branching process models the evolution of a population in which individuals produce descendants according to a random reproduction rule. Although it is often introduced as a population model, it can also represent more general systems of repeated propagation or invasion. Martingale theory provides tools for studying such processes.
Markov chains and random walks
A more extensive theory of discrete-time Markov chains includes recurrence, transience, irreducibility, positive recurrence, aperiodicity, stationary distributions, and convergence to equilibrium.
Random walks can be studied on much more general structures than the integers, including connected graphs. Their recurrence and transience properties can connect to electrical networks, where graph edges are interpreted through electrical quantities such as resistance.
Poisson processes
Poisson processes and Poisson point processes have useful structural properties, including superposition, thinning, and conditioning. These properties describe how Poisson processes combine, are selectively retained, and behave under conditioning.
Continuous-time Markov chains
Under suitable conditions, a continuous-time Markov chain can be represented using two components:
A discrete-time Markov chain records the sequence of states visited.
Poisson processes describe the times at which jumps occur.
This separates the sequence of visited states from the timing of transitions.

Ask anything
We've read this whole study set, so questions about it get the best answers.