# Characteristic function (probability theory)

In probability theory, the characteristic function of any random variable completely defines its probability distribution. On the real line it is given by the following formula, where X is any random variable with the distribution in question:

${\displaystyle \varphi _{X}(t)=\operatorname {E} \left(e^{itX}\right)\,}$

where t is a real number, i is the imaginary unit, and E denotes the expected value.

If FX is the cumulative distribution function, then the characteristic function is given by the Riemann-Stieltjes integral

${\displaystyle \operatorname {E} \left(e^{itX}\right)=\int _{\Omega }e^{itx}\,dF_{X}(x).\,}$

In cases in which there is a probability density function, fX, this becomes

${\displaystyle \operatorname {E} \left(e^{itX}\right)=\int _{-\infty }^{\infty }e^{itx}f_{X}(x)\,dx.}$

If X is a vector-valued random variable, one takes the argument t to be a vector and tX to be a dot product.

Every probability distribution on R or on Rn has a characteristic function, because one is integrating a bounded function over a space whose measure is finite, and for every characteristic function there is exactly one probability distribution.

The characteristic function of a symmetric PDF (that is, one with ${\displaystyle p(x)=p(-x)}$) is real, because the imaginary components obtained from ${\displaystyle x>0}$ cancel those from ${\displaystyle x<0}$.

## Lévy continuity theorem

The core of the Lévy continuity theorem states that a sequence of random variables ${\displaystyle \scriptstyle (X_{n})_{n=1}^{\infty }}$ where each ${\displaystyle \scriptstyle X_{n}}$ has a characteristic function ${\displaystyle \scriptstyle \varphi _{n}}$ will converge in distribution towards a random variable ${\displaystyle \scriptstyle X}$,

${\displaystyle X_{n}{\xrightarrow {\mathcal {D}}}X\qquad {\textrm {as}}\qquad n\to \infty }$

if

${\displaystyle \varphi _{n}\quad {\xrightarrow {\textrm {pointwise}}}\quad \varphi \qquad {\textrm {as}}\qquad n\to \infty }$

and ${\displaystyle \scriptstyle \varphi (t)}$ continuous in ${\displaystyle \scriptstyle t=0}$ and ${\displaystyle \scriptstyle \varphi }$ is the characteristic function of ${\displaystyle \scriptstyle X}$.

The Lévy continuity theorem can be used to prove the weak law of large numbers, see the proof using convergence of characteristic functions.

## The inversion theorem

More than that, there is a bijection between cumulative probability distribution functions and characteristic functions. In other words, two distinct probability distributions never share the same characteristic function.

Given a characteristic function φ, it is possible to reconstruct the corresponding cumulative probability distribution function F:

${\displaystyle F_{X}(y)-F_{X}(x)=\lim _{\tau \to +\infty }{\frac {1}{2\pi }}\int _{-\tau }^{+\tau }{\frac {e^{-itx}-e^{-ity}}{it}}\,\varphi _{X}(t)\,dt.}$

In general this is an improper integral; the function being integrated may be only conditionally integrable rather than Lebesgue integrable, i.e. the integral of its absolute value may be infinite.

## Bochner-Khinchin theorem

An arbitrary function ${\displaystyle \scriptstyle \varphi }$ is a characteristic function corresponding to some probability law ${\displaystyle \scriptstyle \mu }$ if and only if the following three conditions are satisfied:

(1) ${\displaystyle \scriptstyle \varphi \,}$ is continuous

(2) ${\displaystyle \scriptstyle \varphi (0)=1\,}$

(3) ${\displaystyle \scriptstyle \varphi \,}$ is a positive definite function

## Uses of characteristic functions

Because of the continuity theorem, characteristic functions are used in the most frequently seen proof of the central limit theorem. The main trick involved in making calculations with a characteristic function is recognizing the function as the characteristic function of a particular distribution.

### Basic properties

Characteristic functions are particularly useful for dealing with functions of independent random variables. For example, if X1, X2, ..., Xn is a sequence of independent (and not necessarily identically distributed) random variables, and

${\displaystyle S_{n}=\sum _{i=1}^{n}a_{i}X_{i},\,\!}$

where the ai are constants, then the characteristic function for Sn is given by

${\displaystyle \varphi _{S_{n}}(t)=\varphi _{X_{1}}(a_{1}t)\varphi _{X_{2}}(a_{2}t)\cdots \varphi _{X_{n}}(a_{n}t).\,\!}$

In particular, ${\displaystyle \varphi _{X+Y}(t)=\varphi _{X}(t)\varphi _{Y}(t)}$. To see this, write out the definition of characteristic function:

${\displaystyle \varphi _{X+Y}(t)=E\left(e^{it(X+Y)}\right)=E\left(e^{itX}e^{itY}\right)=E\left(e^{itX}\right)E\left(e^{itY}\right)=\varphi _{X}(t)\varphi _{Y}(t)}$.

Observe that the independence of ${\displaystyle X}$ and ${\displaystyle Y}$ is required to establish the equality of the third and fourth expressions.

Another special case of interest is when ${\displaystyle a_{i}=1/n}$ and then ${\displaystyle S_{n}}$ is the sample mean. In this case, writing ${\displaystyle {\overline {X}}}$ for the mean,

${\displaystyle \varphi _{\overline {X}}(t)=\left(\varphi _{X}(t/n)\right)^{n}.}$

### Moments

Characteristic functions can also be used to find moments of a random variable. Provided that the nth moment exists, characteristic function can be differentiated n times and

${\displaystyle \operatorname {E} \left(X^{n}\right)=i^{-n}\,\varphi _{X}^{(n)}(0)=i^{-n}\,\left[{\frac {d^{n}}{dt^{n}}}\varphi _{X}(t)\right]_{t=0}.\,\!}$

For example, suppose ${\displaystyle X}$ has a standard Cauchy distribution. Then ${\displaystyle \varphi _{X}(t)=e^{-|t|}}$. See how this is not differentiable at ${\displaystyle t=0}$, showing that the Cauchy distribution has no expectation. Also see that the characteristic function of the sample mean ${\displaystyle {\overline {X}}}$ of ${\displaystyle n}$ independent observations has characteristic function ${\displaystyle \varphi _{\overline {X}}(t)=(e^{-|t|/n})^{n}=e^{-|t|}}$, using the result from the previous section. This is the characteristic function of the standard Cauchy distribution: thus, the sample mean has the same distribution as the population itself.

### An example

The Gamma distribution with scale parameter θ and a shape parameter k has the characteristic function

${\displaystyle (1-\theta \,i\,t)^{-k}.}$

Now suppose that we have

${\displaystyle X\sim \Gamma (k_{1},\theta ){\mbox{ and }}Y\sim \Gamma (k_{2},\theta )}$

with X and Y independent from each other, and we wish to know what the distribution of X + Y is. The characteristic functions are

${\displaystyle \varphi _{X}(t)=(1-\theta \,i\,t)^{-k_{1}},\,\qquad \varphi _{Y}(t)=(1-\theta \,i\,t)^{-k_{2}}}$

which by independence and the basic properties of characteristic function leads to

${\displaystyle \varphi _{X+Y}(t)=\varphi _{X}(t)\varphi _{Y}(t)=(1-\theta \,i\,t)^{-k_{1}}(1-\theta \,i\,t)^{-k_{2}}=\left(1-\theta \,i\,t\right)^{-(k_{1}+k_{2})}.}$

This is the characteristic function of the gamma distribution scale parameter θ and shape parameter k1 + k2, and we therefore conclude

${\displaystyle X+Y\sim \Gamma (k_{1}+k_{2},\theta )}$

The result can be expanded to n independent gamma distributed random variables with the same scale parameter and we get

${\displaystyle \forall i\in \{1,\ldots ,n\}:X_{i}\sim \Gamma (k_{i},\theta )\qquad \Rightarrow \qquad \sum _{i=1}^{n}X_{i}\sim \Gamma \left(\sum _{i=1}^{n}k_{i},\theta \right).}$

## Multivariate characteristic functions

If ${\displaystyle X}$ is a multivariate PDF, then its characteristic function is defined as

${\displaystyle \varphi _{X}(t)=E\left(e^{it\cdot x}\right).}$

Here, the dot signifies vector dot product (${\displaystyle t}$ is in the dual space of ${\displaystyle x}$).

## Related concepts

Related concepts include the moment-generating function and the probability-generating function. The characteristic function exists for all probability distributions. However this is not the case for moment generating function.

The characteristic function is closely related to the Fourier transform: the characteristic function of a probability density function ${\displaystyle p(x)}$ is the complex conjugate of the continuous Fourier transform of ${\displaystyle p(x)}$ (according to the usual convention; see [1]).

${\displaystyle \varphi _{X}(t)=\langle e^{itX}\rangle =\int _{-\infty }^{\infty }e^{itx}p(x)\,dx={\overline {\left(\int _{-\infty }^{\infty }e^{-itx}p(x)\,dx\right)}}={\overline {P(t)}},}$

where ${\displaystyle P(t)}$ denotes the continuous Fourier transform of the probability density function ${\displaystyle p(x)}$. Likewise, ${\displaystyle p(x)}$ may be recovered from ${\displaystyle \varphi _{X}(t)}$ through the inverse Fourier transform:

${\displaystyle p(x)={\frac {1}{2\pi }}\int _{-\infty }^{\infty }e^{itx}P(t)\,dt={\frac {1}{2\pi }}\int _{-\infty }^{\infty }e^{itx}{\overline {\varphi _{X}(t)}}\,dt.}$

Indeed, even when the random variable does not have a density, the characteristic function may be seen as the Fourier transform of the measure corresponding to the random variable.