1. Home
  2. Explore
  3. Mathematics
  4. Sum of Normal Distributions

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Sum of Normal Distributions

Convolution and the Sum of Random Variables

Introduction: The Sum of Normal Distributions

The normal distribution has a familiar bell curve shape. For a random variable xxx drawn from a normal distribution, the probability that xxx falls within a given range equals the area under the curve over that range. For example, P(−1≤x≤2)P(-1 \leq x \leq 2)P(−1≤x≤2) is the area under the normal curve between −1-1−1 and 222.

Consider two independent normal distributions, one with a larger spread (larger standard deviation). Repeatedly sample both, add the results, and observe the distribution of the sum. The quiz: what distribution describes this sum? The answer is another normal distribution, but the real goal is to understand why. This deep insight reveals why normal distributions are so central in probability.

More generally, adding two random variables (regardless of their distribution) corresponds to a special operation on their underlying distributions called a convolution. The primary goals are to:

  • Build two distinct visualizations of convolution for continuous functions.

  • Discuss how these visualizations are useful, especially for the central limit theorem.

  • Provide an unusually satisfying answer to the opening quiz.


Discrete Warm-Up: Weighted Dice

To build intuition, start with a finite, discrete case: two weighted dice (blue and red, each with values 1–6). The blue die is biased toward lower values, the red has a distinct distribution. Repeatedly sampling both and recording the sum gives a heuristic sense, but the precise distribution can be computed.

Independence: The probability of a specific outcome (e.g., blue=4, red=2) is the product of the individual probabilities: P(blue=4)×P(red=2)P(\text{blue}=4) \times P(\text{red}=2)P(blue=4)×P(red=2). This relies on the dice rolls being independent. The entire analysis assumes independence, which must be verified in real-world applications.

Visualization 1: Grid of Outcomes

Organize all 36 possible outcomes in a 6×66 \times 66×6 grid. Place the blue die probabilities along the bottom, red die probabilities along the left. Each cell contains the product of the corresponding probabilities — essentially a multiplication table. Plotting these products as bar heights gives a 3D representation showing all outcome probabilities.

To find the probability of a specific sum sss (e.g., s=6s=6s=6), highlight all cells where blue + red = sss — these lie on a diagonal. The probability of that sum is the sum of all products on that diagonal. In 3D, this is like collapsing the surface along a diagonal direction.

Visualization 2: Sliding Dot Product

Take the bottom distribution (blue) and flip it horizontally so that die values increase from right to left. When positioned so that 1 lines up with 6, 2 with 5, etc., all aligned pairs sum to 7. The probability of rolling a 7 is the dot product of the aligned probabilities: multiply each pair, then add.

Sliding the flipped distribution to different positions aligns pairs that sum to other values. For each position sss, compute the dot product to get P(sum=s)P(\text{sum}=s)P(sum=s). This operation is identical to the diagonal slice method — just two views of the same process.

Formal Definition (Discrete)

Let pX(x)p_X(x)pX​(x) be the probability function for the first die, pY(y)p_Y(y)pY​(y) for the second. The convolution pX∗pYp_X * p_YpX​∗pY​ gives the distribution of the sum X+YX+YX+Y:

(pX∗pY)(s)=∑xpX(x)⋅pY(s−x)(p_X * p_Y)(s) = \sum_{x} p_X(x) \cdot p_Y(s - x)(pX​∗pY​)(s)=∑x​pX​(x)⋅pY​(s−x)

The sum is over all possible xxx values (here 1 to 6). If s−xs-xs−x falls outside the defined domain (e.g., negative values), define pYp_YpY​ as 0 there (impossible outcomes). This operation combines two functions to produce a new one.


Continuous Distributions and Probability Density

For continuous random variables (e.g., temperature, wait times), the random variable can take any real value. The probability density function (PDF) replaces the discrete probability function. The probability that a sample lies in [a,b][a, b][a,b] is the area under the PDF:

P(a≤X≤b)=∫abf(x) dxP(a \leq X \leq b) = \int_a^b f(x) \, dxP(a≤X≤b)=∫ab​f(x)dx

where f(x)f(x)f(x) is the PDF.

Convolution Integral

The discrete sum becomes an integral in the continuous case. For two independent continuous variables XXX and YYY with PDFs fff and ggg, the PDF of the sum S=X+YS = X+YS=X+Y is the convolution:

(f∗g)(s)=∫−∞∞f(x) g(s−x) dx(f * g)(s) = \int_{-\infty}^{\infty} f(x) \, g(s-x) \, dx(f∗g)(s)=∫−∞∞​f(x)g(s−x)dx

This integral iterates over all xxx, evaluating the product of f(x)f(x)f(x) and the flipped-and-shifted version of ggg (i.e., g(s−x)g(s-x)g(s−x)). The result is the new PDF fX+Y(s)f_{X+Y}(s)fX+Y​(s).

Interactive Demo Interpretation

To understand the integral:

  • Plot f(x)f(x)f(x) (e.g., wedge-shaped) and g(y)g(y)g(y) (e.g., double-lump).

  • Graph g(s−x)g(s-x)g(s−x): flipping ggg horizontally (due to −x-x−x) then shifting by sss (left if s>0s>0s>0, right if s<0s<0s<0).

  • Multiply pointwise: f(x)⋅g(s−x)f(x) \cdot g(s-x)f(x)⋅g(s−x).

  • The area under this product curve equals (f∗g)(s)(f*g)(s)(f∗g)(s).

  • As sss varies, the product shape changes, and the resulting area defines the convolution function.

Example: Two Uniform Distributions

Let each variable be uniform on [−0.5,0.5][-0.5, 0.5][−0.5,0.5], so f(x)=1f(x)=1f(x)=1 on that interval, 000 elsewhere. The product f(x)g(s−x)f(x)g(s-x)f(x)g(s−x) is 1 where the two rectangles overlap, 0 otherwise. The overlap length varies linearly with sss, giving a triangular (wedge) shape for the sum distribution: zero at s=−1s=-1s=−1, linear increase to a maximum at s=0s=0s=0, then decrease to zero at s=1s=1s=1. This matches the discrete dice analogy (two fair dice give a triangular distribution from 2 to 12, peaking at 7).


Repeated Convolutions and the Central Limit Theorem

Sum of Three Uniform Variables

To find the distribution for the sum of three independent uniform variables, convolve the triangular distribution (sum of two) with the uniform rectangle. Using the demo: the product graph at each sss is a windowed copy of the triangular function. The resulting area yields a smoother, more bell-like shape — effectively a moving average of the triangular function.

Repeated Smoothing

Repeating the convolution:

  • 4 uniforms: convolve the three-uniform shape with the rectangle → even smoother.

  • With each convolution, the distribution becomes progressively smoother, its shape approaching the normal (Gaussian) bell curve.

Central Limit Theorem (CLT): For sums of many independent, identically distributed random variables (with finite variance), the distribution of the sum (after appropriate rescaling) tends to a normal distribution, regardless of the original distribution's shape. Convolution is the mathematical operation underlying this: repeated smoothing drives the distribution toward an attractive fixed point — the normal distribution.


Diagonal Slice Visualization (Continuous)

This visualization generalizes the discrete grid method to the continuous plane.

Joint Density Surface

For two independent continuous variables XXX and YYY with PDFs fff and ggg, the joint density at point (x,y)(x, y)(x,y) is f(x)g(y)f(x) g(y)f(x)g(y). This defines a surface over the xyxyxy-plane. The surface has fff's shape when viewed along the xxx-axis and ggg's shape along the yyy-axis.

Diagonal Slices

The condition x+y=sx+y = sx+y=s defines a diagonal line in the plane. The slice of the joint density surface along that line is a curve whose height at each xxx is f(x)g(s−x)f(x) g(s-x)f(x)g(s−x). The area under this curve (i.e., the integral of the slice) is directly related to the convolution value.

As sss changes, the diagonal line shifts, and the slice shape changes accordingly. This provides a symmetric view: fff and ggg appear symmetrically, making it clear that convolution is commutative (f∗g=g∗ff * g = g * ff∗g=g∗f).

Relationship to the Product Graph Visualization

The diagonal slice and the product graph f(x)g(s−x)f(x) g(s-x)f(x)g(s−x) are the same shape — both show all products of probabilities for pairs summing to sss. The two visualizations are equivalent; the slice view emphasizes symmetry and the geometric interpretation.

Technical note: The diagonal line is at a 45∘45^\circ45∘ angle, so a small step along it corresponds to a change in xxx of Δx\Delta xΔx, but the actual arc length is longer by a factor of 2\sqrt{2}2​. Therefore, the integral along the slice (with respect to arc length) equals 2\sqrt{2}2​ times the integral with respect to xxx. To obtain the correct convolution value, the area of the diagonal slice must be divided by 2\sqrt{2}2​:

(f∗g)(s)=12×(area of diagonal slice at x+y=s)(f * g)(s) = \frac{1}{\sqrt{2}} \times (\text{area of diagonal slice at } x+y=s)(f∗g)(s)=2​1​×(area of diagonal slice at x+y=s)

This accounts for the stretching factor.

Summary of the Construction

  • Start with independent variables XXX and YYY, PDFs fff and ggg.

  • Form the joint density surface f(x)g(y)f(x)g(y)f(x)g(y) over R2\mathbb{R}^2R2.

  • For a given sum sss, consider the line x+y=sx+y=sx+y=s.

  • The slice of the surface along that line gives the function hs(x)=f(x)g(s−x)h_s(x) = f(x) g(s-x)hs​(x)=f(x)g(s−x).

  • The area of this slice (with respect to arc length) is 2⋅(f∗g)(s)\sqrt{2} \cdot (f * g)(s)2​⋅(f∗g)(s).


Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent