# De Finetti's theorem

In probability theory, de Finetti's theorem states that exchangeable observations are conditionally independent relative to some latent variable. An epistemic probability distribution could then be assigned to this variable. It is named in honor of Bruno de Finetti, and one of its uses is in providing a pragmatic approach to de Finetti's well-known dictum "Probability does not exist".
For the special case of an exchangeable sequence of Bernoulli random variables it states that such a sequence is a "mixture" of sequences of independent and identically distributed (i.i.d.) Bernoulli random variables.
A sequence of random variables is called exchangeable if the joint distribution of the sequence is unchanged by any permutation of the indices. In general, while the variables of the exchangeable sequence are not themselves independent, only exchangeable, there is an underlying family of i.i.d. random variables. That is, there are underlying, generally unobservable, quantities that are i.i.d. – exchangeable sequences are mixtures of i.i.d. sequences.

## Background

A Bayesian statistician often seeks the conditional probability distribution of a random quantity given the data. The concept of exchangeability was introduced by de Finetti. De Finetti's theorem explains a mathematical relationship between independence and exchangeability.
An infinite sequence
    $X_{1},X_{2},X_{3},\dots$
of random variables is said to be exchangeable if for any natural number n and any finite sequence i$_1$, ..., i$_n$ and any permutation of the sequence π:{i$_1$, ..., i$_n$ } → {i$_1$, ..., i$_n$ },
    $(X_{i_{1}},\dots ,X_{i_{n}}){\text{ and }}(X_{\pi (i_{1})},\dots ,X_{\pi (i_{n})})$
both have the same joint probability distribution.
If an identically distributed sequence is independent, then the sequence is exchangeable; however, the converse is false—there exist exchangeable random variables that are not statistically independent, for example the Pólya urn model.

## Statement of the theorem

A random variable X has a Bernoulli distribution if Pr(X = 1) = p and Pr(X = 0) = 1 − p for some p ∈ (0, 1).
De Finetti's theorem states that the probability distribution of any infinite exchangeable sequence of Bernoulli random variables is a "mixture" of the probability distributions of independent and identically distributed sequences of Bernoulli random variables. "Mixture", in this sense, means a weighted average, but this need not mean a finite or countably infinite (i.e., discrete) weighted average: it can be an integral over a measure rather than a sum.
More precisely, suppose X$_1$, X$_2$, X$_3$, ... is an infinite exchangeable sequence of Bernoulli-distributed random variables. Then there is some probability measure m on the interval [0, 1] and some random variable Y such that
* The probability measure of Y is m, and
* The conditional probability distribution of the whole sequence X$_1$, X$_2$, X$_3$, ... given the value of Y is described by saying that
** X$_1$, X$_2$, X$_3$, ... are conditionally independent given Y, and
** For any i ∈ {1, 2, 3, ...}, the conditional probability that X$_i$ = 1, given the value of Y, is Y.

### Another way of stating the theorem

Suppose $X_{1},X_{2},X_{3},\ldots$ is an infinite exchangeable sequence of Bernoulli random variables. Then $X_{1},X_{2},X_{3},\ldots$ are conditionally independent and identically distributed given the exchangeable sigma-algebra (i.e., the sigma-algebra consisting of events that are measurable with respect to $X_{1},X_{2},\ldots$ and invariant under finite permutations of the indices).

### A plain-language consequence of the theorem

According to David Spiegelhalter (ref 1) the theorem provides a pragmatic approach to de Finetti's statement that "Probability does not exist". If our view of the probability of a sequence of events is subjective but remains unaffected by the order in which we make our observations, then the sequence can be regarded as exchangeable. De Finetti's theorem then implies that believing the sequence to be exchangeable is mathematically equivalent to acting as if the events are independent and have an objective underlying probability of occurring, with our uncertainty about what that probability is being expressed by a subjective probability distribution function. According to Spiegelhalter: ″This is remarkable: it shows that, starting from a specific, but purely subjective, expression of convictions, we should act as if events were driven by objective chances."

## Example

As a concrete example, we construct a sequence
    $X_{1},X_{2},X_{3},\dots$
of random variables, by "mixing" two i.i.d. sequences as follows.
We assume p = 2/3 with probability 1/2 and p = 9/10 with probability 1/2. Given the event p = 2/3, the conditional distribution of the sequence is that the X$_i$ are independent and identically distributed and X$_1$ = 1 with probability 2/3 and X$_1$ = 0 with probability 1 − 2/3. Given the event p = 9/10, the conditional distribution of the sequence is that the X$_i$ are independent and identically distributed and X$_1$ = 1 with probability 9/10 and X$_1$ = 0 with probability 1 − 9/10.
This can be interpreted as follows: Make two biased coins, one showing "heads" with 2/3 probability and one showing "heads" with 9/10 probability. Flip a fair coin once to decide which biased coin to use for all flips that are recorded. Here "heads" at flip i means X$_i$=1.
The independence asserted here is conditional independence, i.e. the Bernoulli random variables in the sequence are conditionally independent given the event that p = 2/3, and are conditionally independent given the event that p = 9/10. But they are not unconditionally independent; they are positively correlated.
In view of the strong law of large numbers, we can say that
    $\lim _{n\rightarrow \infty }{\frac {X_{1}+\cdots +X_{n}}{n}}={\begin{cases}2/3&{\text{with probability }}1/2,\\9/10&{\text{with probability }}1/2.\end{cases}}$
Rather than concentrating probability 1/2 at each of two points between 0 and 1, the "mixing distribution" can be any probability distribution supported on the interval from 0 to 1; which one it is depends on the joint distribution of the infinite sequence of Bernoulli random variables.
The definition of exchangeability, and the statement of the theorem, also makes sense for finite length sequences
    $X_{1},\dots ,X_{n},$
but the theorem is not generally true in that case. It is true if the sequence can be extended to an exchangeable sequence that is infinitely long. The simplest example of an exchangeable sequence of Bernoulli random variables that cannot be so extended is the one in which X$_1$ = 1 − X$_2$ and X$_1$ is either 0 or 1, each with probability 1/2. This sequence is exchangeable, but cannot be extended to an exchangeable sequence of length 3, let alone an infinitely long one.

## As a categorical limit

De Finetti's theorem can be expressed as a categorical limit in the category of Markov kernels.
Let $(X,{\mathcal {A}})$ be a standard Borel space, and consider the space of sequences on $X$, the countable product $X^{\mathbb {N} }$ (equipped with the product sigma-algebra).
Given a finite permutation $\sigma$, denote again by $\sigma$ the permutation action on $X^{\mathbb {N} }$, as well as the Markov kernel $X^{\mathbb {N} }\to X^{\mathbb {N} }$ induced by it. In terms of category theory, we have a diagram with a single object, $X^{\mathbb {N} }$, and a countable number of arrows, one for each permutation.
Recall now that a probability measure $p$ is equivalently a Markov kernel from the one-point measurable space. A probability measure $p$ on $X^{\mathbb {N} }$ is exchangeable if and only if, as Markov kernels, $\sigma \circ p=p$ for every permutation $\sigma$. More generally, given any standard Borel space $Y$, one can call a Markov kernel $k:Y\to X$ exchangeable if $\sigma \circ k=k$ for every $\sigma$, i.e. if the following diagram commutes,
giving a cone.
De Finetti's theorem can be now stated as the fact that the space $PX$ of probability measures over $X$ (Giry monad) forms a universal (or limit) cone. More in detail, consider the Markov kernel $\mathrm {iid} _{\mathbb {N} }:PX\to X^{\mathbb {N} }$ constructed as follows, using the Kolmogorov extension theorem:
    $\mathrm {iid} _{\mathbb {N} }(A_{1}\times \dots \times A_{n}\times X\times \dots |p)=p(A_{1})\cdots p(A_{n})$
for all measurable subsets $A_{1},\dots ,A_{n}$ of $X$. Note that we can interpret this kernel as taking a probability measure $p\in PX$ as input and returning an iid sequence on $X^{\mathbb {N} }$ distributed according to $p$. Since iid sequences are exchangeable, $\mathrm {iid} _{\mathbb {N} }:PX\to X^{\mathbb {N} }$ is an exchangeable kernel in the sense defined above. The kernel $\mathrm {iid} _{\mathbb {N} }:PX\to X^{\mathbb {N} }$ doesn't just form a cone, but a limit cone: given any exchangeable kernel $k:Y\to X$, there exists a unique kernel ${\tilde {k}}:Y\to PX$ such that $k=\mathrm {iid} _{\mathbb {N} }\circ {\tilde {k}}$, i.e. making the following diagram commute:
In particular, for any exchangeable probability measure $p$ on $X^{\mathbb {N} }$, there exists a unique probability measure ${\tilde {p}}$ on $PX$ (i.e. a probability measure over probability measures) such that $p=\mathrm {iid} _{\mathbb {N} }\circ {\tilde {p}}$, i.e. such that for all measurable subsets $A_{1},\dots ,A_{n}$ of $X$,
    $p(A_{1}\times \dots \times A_{n}\times X\times \dots )=\int _{PX}\mathrm {iid} _{\mathbb {N} }(A_{1}\times \dots \times A_{n}\times X\times \dots |q)\,{\tilde {p}}(dq)=\int _{PX}q(A_{1})\cdots q(A_{n})\,{\tilde {p}}(dq).$
In other words, $p$ is a mixture of iid measures on $X$ (the ones formed by $q$ in the integral above).

## Extensions

Versions of de Finetti's theorem for finite exchangeable sequences, and for Markov exchangeable sequences have been proved by Diaconis and Freedman and by Kerns and Szekely. Two notions of partial exchangeability of arrays, known as separate and joint exchangeability lead to extensions of de Finetti's theorem for arrays by Aldous and Hoover.
The computable de Finetti theorem shows that if an exchangeable sequence of real random variables is given by a computer program, then a program which samples from the mixing measure can be automatically recovered.
In the setting of free probability, there is a noncommutative extension of de Finetti's theorem which characterizes noncommutative sequences invariant under quantum permutations.
Extensions of de Finetti's theorem to quantum states have been found to be useful in quantum information, in topics like quantum key distribution and entanglement detection. A multivariate extension of de Finetti’s theorem can be used to derive Bose–Einstein statistics from the statistics of classical (i.e. independent) particles.