Sum of normally distributed random variables

From HandWiki
Short description: Aspect of probability theory

In probability theory, calculation of the sum of normally distributed random variables is an instance of the arithmetic of random variables.

This is not to be confused with the sum of normal distributions which forms a mixture distribution.

Independent random variables

Let X and Y be independent random variables that are normally distributed (and therefore also jointly so), then their sum is also normally distributed. i.e., if

XN(μX,σX2)
YN(μY,σY2)
Z=X+Y,

then

ZN(μX+μY,σX2+σY2).

This means that the sum of two independent normally distributed random variables is normal, with its mean being the sum of the two means, and its variance being the sum of the two variances (i.e., the square of the standard deviation is the sum of the squares of the standard deviations).[1]

In order for this result to hold, the assumption that X and Y are independent cannot be dropped, although it can be weakened to the assumption that X and Y are jointly, rather than separately, normally distributed.[2] (See here for an example.)

The result about the mean holds in all cases, while the result for the variance requires uncorrelatedness, but not independence.

Proofs

Proof using characteristic functions

The characteristic function

φX+Y(t)=E(eit(X+Y))

of the sum of two independent random variables X and Y is just the product of the two separate characteristic functions:

φX(t)=E(eitX),φY(t)=E(eitY)

of X and Y.

The characteristic function of the normal distribution with expected value μ and variance σ2 is

φ(t)=exp(itμσ2t22).

So

φX+Y(t)=φX(t)φY(t)=exp(itμXσX2t22)exp(itμYσY2t22)=exp(it(μX+μY)(σX2+σY2)t22).

This is the characteristic function of the normal distribution with expected value μX+μY and variance σX2+σY2

Finally, recall that no two distinct distributions can both have the same characteristic function, so the distribution of X + Y must be just this normal distribution.

Proof using convolutions

For independent random variables X and Y, the distribution fZ of Z = X + Y equals the convolution of fX and fY:

fZ(z)=fY(zx)fX(x)dx

Given that fX and fY are normal densities,

fX(x)=𝒩(x;μX,σX2)=12πσXe(xμX)2/(2σX2)fY(y)=𝒩(y;μY,σY2)=12πσYe(yμY)2/(2σY2)

Substituting into the convolution:

fZ(z)=12πσYexp[(zxμY)22σY2]12πσXexp[(xμX)22σX2]dx=12π2πσXσYexp[σX2(zxμY)2+σY2(xμX)22σX2σY2]dx=12π2πσXσYexp[σX2(z2+x2+μY22xz2zμY+2xμY)+σY2(x2+μX22xμX)2σY2σX2]dx=12π2πσXσYexp[x2(σX2+σY2)2x(σX2(zμY)+σY2μX)+σX2(z2+μY22zμY)+σY2μX22σY2σX2]dx

Defining σZ=σX2+σY2, and completing the square:

fZ(z)=12πσZ12πσXσYσZexp[x22xσX2(zμY)+σY2μXσZ2+σX2(z2+μY22zμY)+σY2μX2σZ22(σXσYσZ)2]dx=12πσZ12πσXσYσZexp[(xσX2(zμY)+σY2μXσZ2)2(σX2(zμY)+σY2μXσZ2)2+σX2(zμY)2+σY2μX2σZ22(σXσYσZ)2]dx=12πσZexp[σZ2(σX2(zμY)2+σY2μX2)(σX2(zμY)+σY2μX)22σZ2(σXσY)2]12πσXσYσZexp[(xσX2(zμY)+σY2μXσZ2)22(σXσYσZ)2]dx=12πσZexp[(z(μX+μY))22σZ2]12πσXσYσZexp[(xσX2(zμY)+σY2μXσZ2)22(σXσYσZ)2]dx

The expression in the integral is a normal density distribution on x, and so the integral evaluates to 1. The desired result follows:

fZ(z)=12πσZexp[(z(μX+μY))22σZ2]

It can be shown that the Fourier transform of a Gaussian, fX(x)=𝒩(x;μX,σX2), is[3]

{fX}=FX(ω)=exp[jωμX]exp[σX2ω22]

By the convolution theorem:

fZ(z)=(fX*fY)(z)=1{{fX}{fY}}=1{exp[jωμX]exp[σX2ω22]exp[jωμY]exp[σY2ω22]}=1{exp[jω(μX+μY)]exp[(σX2 +σY2)ω22]}=𝒩(z;μX+μY,σX2+σY2)

Geometric proof

First consider the normalized case when X, Y ~ N(0, 1), so that their PDFs are

f(x)=12πex2/2

and

g(y)=12πey2/2.

Let Z = X + Y. Then the CDF for Z will be

zx+yzf(x)g(y)dxdy.

This integral is over the half-plane which lies under the line x+y = z.

The key observation is that the function

f(x)g(y)=12πe(x2+y2)/2

is radially symmetric. So we rotate the coordinate plane about the origin, choosing new coordinates x,y such that the line x+y = z is described by the equation x=c where c=c(z) is determined geometrically. Because of the radial symmetry, we have f(x)g(y)=f(x)g(y), and the CDF for Z is

xc,yf(x)g(y)dxdy.

This is easy to integrate; we find that the CDF for Z is

c(z)f(x)dx=Φ(c(z)).

To determine the value c(z), note that we rotated the plane so that the line x+y = z now runs vertically with x-intercept equal to c. So c is just the distance from the origin to the line x+y = z along the perpendicular bisector, which meets the line at its nearest point to the origin, in this case (z/2,z/2). So the distance is c=(z/2)2+(z/2)2=z/2, and the CDF for Z is Φ(z/2), i.e., Z=X+YN(0,2).

Now, if a, b are any real constants (not both zero) then the probability that aX+bYz is found by the same integral as above, but with the bounding line ax+by=z. The same rotation method works, and in this more general case we find that the closest point on the line to the origin is located a (signed) distance

za2+b2

away, so that

aX+bYN(0,a2+b2).

The same argument in higher dimensions shows that if

XiN(0,σi2),i=1,,n,

then

X1++XnN(0,σ12++σn2).

Now we are essentially done, because

XN(μ,σ2)1σ(Xμ)N(0,1).

So in general, if

XiN(μi,σi2),i=1,,n,

then

i=1naiXiN(i=1naiμi,i=1n(aiσi)2).

Correlated random variables

In the event that the variables X and Y are jointly normally distributed random variables, then X + Y is still normally distributed (see Multivariate normal distribution) and the mean is the sum of the means. However, the variances are not additive due to the correlation. Indeed,

σX+Y=σX2+σY2+2ρσXσY,

where ρ is the correlation. In particular, whenever ρ < 0, then the variance is less than the sum of the variances of X and Y.

Extensions of this result can be made for more than two random variables, using the covariance matrix.

Proof

In this case (with X and Y having zero means), one needs to consider

12πσxσy1ρ2xyexp[12(1ρ2)(x2σx2+y2σy22ρxyσxσy)]δ(z(x+y))dxdy.

As above, one makes the substitution yzx

This integral is more complicated to simplify analytically, but can be done easily using a symbolic mathematics program. The probability distribution fZ(z) is given in this case by

fZ(z)=12πσ+exp(z22σ+2)

where

σ+=σx2+σy2+2ρσxσy.

If one considers instead Z = X − Y, then one obtains

fZ(z)=12π(σx2+σy22ρσxσy)exp(z22(σx2+σy22ρσxσy))

which also can be rewritten with

σXY=σx2+σy22ρσxσy.

The standard deviations of each distribution are obvious by comparison with the standard normal distribution.

References

  1. Lemons, Don S. (2002), An Introduction to Stochastic Processes in Physics, The Johns Hopkins University Press, p. 34, ISBN 0-8018-6866-1 
  2. Lemons (2002) pp. 35–36
  3. Derpanis, Konstantinos G. (October 20, 2005). "Fourier Transform of the Gaussian". http://www.cse.yorku.ca/~kosta/CompVis_Notes/fourier_transform_Gaussian.pdf. 

See also