Skip to content
Part IA Easter Term

Sums of Random Variables

Distribution of Sums

If XX and YY are random variables, what is the distribution of X+YX + Y?

Discrete Case

The PMF of S=X+YS = X + Y:

P(S=s)=xP(X=x,Y=sx)P(S = s) = \sum_x P(X = x, Y = s - x)

If independent:

P(S=s)=xP(X=x)P(Y=sx)P(S = s) = \sum_x P(X = x) P(Y = s - x)

This is a convolution of the PMFs.

Continuous Case

The PDF of S=X+YS = X + Y:

fS(s)=f(x,sx)dxf_S(s) = \int_{-\infty}^{\infty} f(x, s - x) \, dx

If independent:

fS(s)=fX(x)fY(sx)dxf_S(s) = \int_{-\infty}^{\infty} f_X(x) f_Y(s - x) \, dx

Known Sums

Sum of Independent Binomials (Same pp)

XBin(n1,p),YBin(n2,p)X \sim \text{Bin}(n_1, p), \quad Y \sim \text{Bin}(n_2, p)

X+YBin(n1+n2,p)X + Y \sim \text{Bin}(n_1 + n_2, p)

Intuition: Adding two independent counts from Bernoulli trials with same pp.

Sum of Independent Poissons

XPois(λ1),YPois(λ2)X \sim \text{Pois}(\lambda_1), \quad Y \sim \text{Pois}(\lambda_2)

X+YPois(λ1+λ2)X + Y \sim \text{Pois}(\lambda_1 + \lambda_2)

Intuition: Merging two independent event streams.

Sum of Independent Normals

XN(μ1,σ12),YN(μ2,σ22)X \sim N(\mu_1, \sigma_1^2), \quad Y \sim N(\mu_2, \sigma_2^2)

X+YN(μ1+μ2,σ12+σ22)X + Y \sim N(\mu_1 + \mu_2, \sigma_1^2 + \sigma_2^2)

Intuition: Adding Gaussian noise gives Gaussian noise.

Sum of Independent Exponentials (Same Rate)

X1,,XnExp(λ) independentX_1, \ldots, X_n \sim \text{Exp}(\lambda) \text{ independent}

i=1nXiGamma(n,λ)\sum_{i=1}^n X_i \sim \text{Gamma}(n, \lambda)

Moment Computations

Regardless of distribution:

Expectation

E[X+Y]=E[X]+E[Y]E[X + Y] = E[X] + E[Y]

Always holds (no independence needed).

Variance

Var(X+Y)=Var(X)+Var(Y)+2Cov(X,Y)\text{Var}(X + Y) = \text{Var}(X) + \text{Var}(Y) + 2\text{Cov}(X, Y)

If independent:

Var(X+Y)=Var(X)+Var(Y)\text{Var}(X + Y) = \text{Var}(X) + \text{Var}(Y)

Example: Sum of Dice

Roll two fair dice. X,Y{1,,6}X, Y \in \{1, \ldots, 6\} uniform, independent.

S=X+YS = X + Y has range {2,3,,12}\{2, 3, \ldots, 12\}.

P(S=7)=x=16P(X=x)P(Y=7x)=x=161616=636=16P(S = 7) = \sum_{x=1}^{6} P(X = x) P(Y = 7 - x) = \sum_{x=1}^{6} \frac{1}{6} \cdot \frac{1}{6} = \frac{6}{36} = \frac{1}{6}

P(S=2)=P(X=1)P(Y=1)=136P(S = 2) = P(X = 1) P(Y = 1) = \frac{1}{36}

Convolution Visualisation

The sum distribution is obtained by “sliding” one distribution past the other and multiplying.

Convolution of distributions

Linear Combinations

For constants aa and bb:

E[aX+bY]=aE[X]+bE[Y]E[aX + bY] = aE[X] + bE[Y]

Var(aX+bY)=a2Var(X)+b2Var(Y)+2abCov(X,Y)\text{Var}(aX + bY) = a^2\text{Var}(X) + b^2\text{Var}(Y) + 2ab\text{Cov}(X, Y)

If independent:

Var(aX+bY)=a2Var(X)+b2Var(Y)\text{Var}(aX + bY) = a^2\text{Var}(X) + b^2\text{Var}(Y)

Sum of I.I.D. Variables

Let X1,,XnX_1, \ldots, X_n be i.i.d. with mean μ\mu and variance σ2\sigma^2.

Define Sn=i=1nXiS_n = \sum_{i=1}^n X_i and Xˉ=Sn/n\bar{X} = S_n / n.

E[Sn]=nμ,Var(Sn)=nσ2E[S_n] = n\mu, \quad \text{Var}(S_n) = n\sigma^2

E[Xˉ]=μ,Var(Xˉ)=σ2nE[\bar{X}] = \mu, \quad \text{Var}(\bar{X}) = \frac{\sigma^2}{n}

Averaging reduces variance proportionally to nn.

Summary

VariablesSum DistributionSum MeanSum Variance
Binomial (same pp)Binomial(n1+n2)p(n_1+n_2)p(n1+n2)p(1p)(n_1+n_2)p(1-p)
PoissonPoissonλ1+λ2\lambda_1 + \lambda_2λ1+λ2\lambda_1 + \lambda_2
NormalNormalμ1+μ2\mu_1 + \mu_2σ12+σ22\sigma_1^2 + \sigma_2^2
GeneralConvolutionE[X]+E[Y]E[X] + E[Y]Always additive if independent