Statement
If
is a zero-mean multivariate normal random vector, then
where the sum is over all the pairings of
, i.e. all distinct ways of partitioning
into pairs
, and the product is over the pairs contained in
.
More generally, if
is a zero-mean complex-valued multivariate normal random vector, then the formula still holds.
The expression on the right-hand side is also known as the hafnian of the covariance matrix of
.
Odd case
If
is odd, there does not exist any pairing of
. Under this hypothesis, Isserlis's theorem implies that
This also follows from the fact that
has the same distribution as
, which implies that
.
Even case
In his original paper, Leon Isserlis proves this theorem by mathematical induction, generalizing the formula for the
order moments, which takes the appearance
![{\displaystyle \operatorname {E} [\,X_{1}X_{2}X_{3}X_{4}\,]=\operatorname {E} [X_{1}X_{2}]\,\operatorname {E} [X_{3}X_{4}]+\operatorname {E} [X_{1}X_{3}]\,\operatorname {E} [X_{2}X_{4}]+\operatorname {E} [X_{1}X_{4}]\,\operatorname {E} [X_{2}X_{3}].}](https://wikimedia.org/api/rest_v1/media/math/render/svg/eeff75ca116e072ad6bf5879c2e362f1ab11c99b)
If
is even, there exist
(see double factorial) pair partitions of
: this yields
terms in the sum. For example, for
order moments (i.e.
random variables) there are three terms. For
-order moments there are
terms, and for
-order moments there are
terms.
Example
We can evaluate the characteristic function of gaussians by the Isserlis theorem:![{\displaystyle E[e^{-iX}]=\sum _{k}{\frac {(-i)^{k}}{k!}}E[X^{k}]=\sum _{k}{\frac {(-i)^{2k}}{(2k)!}}E[X^{2k}]=\sum _{k}{\frac {(-i)^{2k}}{(2k)!}}{\frac {(2k)!}{k!2^{k}}}E[X^{2}]^{k}=e^{-{\frac {1}{2}}E[X^{2}]}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/db3a2af9a2daf624ec162fff426df946f90e5d03)
Proof
Since both sides of the formula are multilinear in
, if we can prove the real case, we get the complex case for free.
Let
be the covariance matrix, so that we have the zero-mean multivariate normal random vector
. Since both sides of the formula are continuous with respect to
, it suffices to prove the case when
is invertible. In particular, this means that if some of
are identical, such as in
, then it reduces to the case where all variables are linearly independent, as in
.
Using quadratic factorization
, we get

Differentiate under the integral sign with
to obtain
That is, we need only find the coefficient of term
in the Taylor expansion of
Since the quantity is even in
, if
is odd, this is zero. So let
, then we need only find the coefficient of term
in the polynomial
.
Combinatorially, each pairing
of
corresponds to a way to obtain
, by picking one
from each bracket for each
. There are
ways to pick in this way, cancelling out the
term. 
Generalizations
Gaussian integration by parts
An equivalent formulation of the Wick's probability formula is the Gaussian integration by parts. If
is a zero-mean multivariate normal random vector, then
This is a generalization of Stein's lemma.
The Wick's probability formula can be recovered by induction, considering the function
defined by
. Among other things, this formulation is important in Liouville conformal field theory to obtain conformal Ward identities, BPZ equations and to prove the Fyodorov-Bouchaud formula.
Non-Gaussian random variables
For non-Gaussian random variables, the moment-cumulants formula replaces the Wick's probability formula. If
is a vector of random variables, then
where the sum is over all the partitions of
, the product is over the blocks of
and
is the joint cumulant of
.
Consider
uniformly distributed on the unit sphere
, so that
almost surely. In this setting, the following holds.
If
is odd,
![{\displaystyle \operatorname {E} {\bigl [}X_{i_{1}}\,X_{i_{2}}\,\cdots \,X_{i_{n}}{\bigr ]}\;=\;0.\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a994a16ae983ea3210a46670ded397aca81df460)
If
is even,
where
is the set of all pairings of
,
is the Kronecker delta.
Since there are
delta-terms, we get on the diagonal:
Here,
denotes the double factorial.
These results are discussed in the context of random vectors and irreducible representations in the work by Kushkuley (2021).