Convolution of probability distributions

Probability distribution of the sum of random variables

The convolution/sum of probability distributions arises in probability theory and statistics as the operation in terms of probability distributions that corresponds to the addition of independent random variables and, by extension, to forming linear combinations of random variables. The operation here is a special case of convolution in the context of probability distributions.

Introduction

The probability distribution of the sum of two or more independent random variables is the convolution of their individual distributions. The term is motivated by the fact that the probability mass function or probability density function of a sum of independent random variables is the convolution of their corresponding probability mass functions or probability density functions respectively. Many well known distributions have simple convolutions: see List of convolutions of probability distributions.

The general formula for the distribution of the sum Z = X + Y {\displaystyle Z=X+Y} of two independent integer-valued (and hence discrete) random variables is[1]

P ( Z = z ) = k = P ( X = k ) P ( Y = z k ) {\displaystyle P(Z=z)=\sum _{k=-\infty }^{\infty }P(X=k)P(Y=z-k)}

For independent, continuous random variables with probability density functions (PDF) f , g {\displaystyle f,g} and cumulative distribution functions (CDF) F , G {\displaystyle F,G} respectively, we have that the CDF of the sum is:

H ( z ) = F ( z t ) g ( t ) d t = G ( t ) f ( z t ) d t {\displaystyle H(z)=\int _{-\infty }^{\infty }F(z-t)g(t)dt=\int _{-\infty }^{\infty }G(t)f(z-t)dt}

If we start with random variables X {\displaystyle X} and Y {\displaystyle Y} , related by Z = X + Y {\displaystyle Z=X+Y} , and with no information about their possible independence, then:

f Z ( z ) = f X Y ( x , z x )   d x {\displaystyle f_{Z}(z)=\int \limits _{-\infty }^{\infty }f_{XY}(x,z-x)~dx}

However, if X {\displaystyle X} and Y {\displaystyle Y} are independent, then:

f X Y ( x , y ) = f X ( x ) f Y ( y ) {\displaystyle f_{XY}(x,y)=f_{X}(x)f_{Y}(y)}

and this formula becomes the convolution of probability distributions:

f Z ( z ) = f X ( x )   f Y ( z x )   d x {\displaystyle f_{Z}(z)=\int \limits _{-\infty }^{\infty }f_{X}(x)~f_{Y}(z-x)~dx}

Example derivation

There are several ways of deriving formulae for the convolution of probability distributions. Often the manipulation of integrals can be avoided by use of some type of generating function. Such methods can also be useful in deriving properties of the resulting distribution, such as moments, even if an explicit formula for the distribution itself cannot be derived.

One of the straightforward techniques is to use characteristic functions, which always exists and are unique to a given distribution.[citation needed]

Convolution of Bernoulli distributions

The convolution of two independent identically distributed Bernoulli random variables is a binomial random variable. That is, in a shorthand notation,

i = 1 2 B e r n o u l l i ( p ) B i n o m i a l ( 2 , p ) {\displaystyle \sum _{i=1}^{2}\mathrm {Bernoulli} (p)\sim \mathrm {Binomial} (2,p)}

To show this let

X i B e r n o u l l i ( p ) , 0 < p < 1 , 1 i 2 {\displaystyle X_{i}\sim \mathrm {Bernoulli} (p),\quad 0<p<1,\quad 1\leq i\leq 2}

and define

Y = i = 1 2 X i {\displaystyle Y=\sum _{i=1}^{2}X_{i}}

Also, let Z denote a generic binomial random variable:

Z B i n o m i a l ( 2 , p ) {\displaystyle Z\sim \mathrm {Binomial} (2,p)\,\!}

Using probability mass functions

As X 1  and  X 2 {\displaystyle X_{1}{\text{ and }}X_{2}} are independent,

P [ Y = n ] = P [ i = 1 2 X i = n ] = m Z P [ X 1 = m ] × P [ X 2 = n m ] = m Z [ ( 1 m ) p m ( 1 p ) 1 m ] [ ( 1 n m ) p n m ( 1 p ) 1 n + m ] = p n ( 1 p ) 2 n m Z ( 1 m ) ( 1 n m ) = p n ( 1 p ) 2 n [ ( 1 0 ) ( 1 n ) + ( 1 1 ) ( 1 n 1 ) ] = ( 2 n ) p n ( 1 p ) 2 n = P [ Z = n ] {\displaystyle {\begin{aligned}\mathbb {P} [Y=n]&=\mathbb {P} \left[\sum _{i=1}^{2}X_{i}=n\right]\\&=\sum _{m\in \mathbb {Z} }\mathbb {P} [X_{1}=m]\times \mathbb {P} [X_{2}=n-m]\\&=\sum _{m\in \mathbb {Z} }\left[{\binom {1}{m}}p^{m}\left(1-p\right)^{1-m}\right]\left[{\binom {1}{n-m}}p^{n-m}\left(1-p\right)^{1-n+m}\right]\\&=p^{n}\left(1-p\right)^{2-n}\sum _{m\in \mathbb {Z} }{\binom {1}{m}}{\binom {1}{n-m}}\\&=p^{n}\left(1-p\right)^{2-n}\left[{\binom {1}{0}}{\binom {1}{n}}+{\binom {1}{1}}{\binom {1}{n-1}}\right]\\&={\binom {2}{n}}p^{n}\left(1-p\right)^{2-n}=\mathbb {P} [Z=n]\end{aligned}}}

Here, we used the fact that ( n k ) = 0 {\displaystyle {\tbinom {n}{k}}=0} for k>n in the last but three equality, and of Pascal's rule in the second last equality.

Using characteristic functions

The characteristic function of each X k {\displaystyle X_{k}} and of Z {\displaystyle Z} is

φ X k ( t ) = 1 p + p e i t φ Z ( t ) = ( 1 p + p e i t ) 2 {\displaystyle \varphi _{X_{k}}(t)=1-p+pe^{it}\qquad \varphi _{Z}(t)=\left(1-p+pe^{it}\right)^{2}}

where t is within some neighborhood of zero.

φ Y ( t ) = E ( e i t k = 1 2 X k ) = E ( k = 1 2 e i t X k ) = k = 1 2 E ( e i t X k ) = k = 1 2 ( 1 p + p e i t ) = ( 1 p + p e i t ) 2 = φ Z ( t ) {\displaystyle {\begin{aligned}\varphi _{Y}(t)&=\operatorname {E} \left(e^{it\sum _{k=1}^{2}X_{k}}\right)=\operatorname {E} \left(\prod _{k=1}^{2}e^{itX_{k}}\right)\\&=\prod _{k=1}^{2}\operatorname {E} \left(e^{itX_{k}}\right)=\prod _{k=1}^{2}\left(1-p+pe^{it}\right)\\&=\left(1-p+pe^{it}\right)^{2}=\varphi _{Z}(t)\end{aligned}}}

The expectation of the product is the product of the expectations since each X k {\displaystyle X_{k}} is independent. Since Y {\displaystyle Y} and Z {\displaystyle Z} have the same characteristic function, they must have the same distribution.

See also

References

  1. ^ Susan Holmes (1998). Sums of Random Variables: Statistics 116. Stanford. http://statweb.stanford.edu/~susan/courses/s116/node114.html
  • Hogg, Robert V.; McKean, Joseph W.; Craig, Allen T. (2004). Introduction to mathematical statistics (6th ed.). Upper Saddle River, New Jersey: Prentice Hall. p. 692. ISBN 978-0-13-008507-8. MR 0467974.