Week 2.2: Sum (Convolution), Min & Max of Random Variables
1035 words
5 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Week 2.2: Sum (Convolution), Min & Max of Random Variables > **Prerequisites:** Independence ([Week 2.3: Independence of Random Variables](/notes/01-foundation-bsma1004-stats-2-week02-07-independence)), Functions of RVs ([Week 2.1: Functions of Random Variables](/notes/01-foundation-bsma1004-stats-2-week02-05-func...

Week 2.2: Sum (Convolution), Min & Max of Random Variables
Prerequisites: Independence (Week 2.3: Independence of Random Variables), Functions of RVs (Week 2.1: Functions of Random Variables) Cross-links: BSMA3012 (Linear Stat Models) — order statistics Core question: What are the distributions of X+Y, min(X,Y), and max(X,Y)?
1. Intuition
Three operations on random variables appear constantly in statistics:
- Sum X+Y: The total of independent measurements. Its distribution is found via convolution — the PMF of a sum is the convolution of the individual PMFs.
- Maximum max(X1,…,Xn): The "best" outcome. Used in extreme value theory, reliability.
- Minimum min(X1,…,Xn): The "weakest link". Used in survival analysis, system reliability.
2. Sum of Two Independent RVs: Convolution
2.1 General Formula
Let X and Y be independent discrete RVs with PMFs fX and fY. For Z=X+Y:
>fZ(z)=x∑fX(x)⋅fY(z−x)=y∑fX(z−y)⋅fY(y).>
This operation is called the convolution of fX and fY.
Proof: Using the joint PMF and independence:
2.2 Example: Sum of Two Independent Uniforms {0,1,2,3}
X∼Uniform{0,1,2,3}, Y∼Uniform{0,1,2,3}, independent.
Z=X+Y, range Z∈{0,1,…,6}.
Using convolution:
| z | Terms | fZ(z) |
|---|---|---|
| 0 | x=0,y=0 | 1/16 |
| 1 | (0,1)+(1,0) | 2/16 |
| 2 | (0,2)+(1,1)+(2,0) | 3/16 |
| 3 | (0,3)+(1,2)+(2,1)+(3,0) | 4/16 |
| 4 | (1,3)+(2,2)+(3,1) | 3/16 |
| 5 | (2,3)+(3,2) | 2/16 |
| 6 | (3,3) | 1/16 |
2.3 General Formula: Sum of Two i.i.d. Uniform{1,…,n}
Let X,Y∼Uniform{1,…,n} i.i.d., W=X+Y, range {2,…,2n}:
This creates a triangular distribution — peaking at w=n+1.
2.4 Key Convolution Results
| Distribution 1 | Distribution 2 | Sum Distribution |
|---|---|---|
| Binomial( m , p ) | Binomial( n , p ) | Binomial( m+n , p ) |
| Poisson( λ1 ) | Poisson( λ2 ) | Poisson( λ1+λ2 ) |
| Geometric( p ) | Geometric( p ) | Negative Binomial( 2 , p ) |
| Normal( μ1,σ12 ) | Normal( μ2,σ22 ) | Normal( μ1+μ2,σ12+σ22 ) |
Example: X∼Poisson(3), Y∼Poisson(5) independent → X+Y∼Poisson(8).
3. Distribution of the Maximum
3.1 General Approach Using CDF
For Z=max(X,Y):
If X and Y are independent:
The PMF (for discrete) or PDF (for continuous) is then:
3.2 Example: Max of Two Dice
X,Y∼Uniform{1,…,6} i.i.d. For w=1,…,6:
3.3 General: Max of n i.i.d. RVs
For X1,…,Xn i.i.d. with CDF F:
4. Distribution of the Minimum
4.1 General Approach
For W=min(X,Y):
If X and Y are independent:
4.2 Example: Min of Two Dice
X,Y∼Uniform{1,…,6} i.i.d.:
For w=1: FW(1)=1−(5/6)2=11/36, so fW(1)=11/36 (since FW(0)=0). For w=2: FW(2)=1−(4/6)2=20/36, so fW(2)=20/36−11/36=9/36. For w=3: FW(3)=1−(3/6)2=27/36, so fW(3)=7/36. For w=4: FW(4)=1−(2/6)2=32/36, so fW(4)=5/36. For w=5: FW(5)=1−(1/6)2=35/36, so fW(5)=3/36. For w=6: FW(6)=1, so fW(6)=1−35/36=1/36.
4.3 General: Min of n i.i.d. RVs
For X1,…,Xn i.i.d. with CDF F:
5. Min of Two Independent Geometrics
Let X∼Geometric(p) and Y∼Geometric(p) be independent.
For Geometric, FX(k)=1−(1−p)k for k=1,2,….
So min(X,Y)∼Geometric(1−(1−p)2)=Geometric(2p−p2).
6. Mermaid: Sum vs Min vs Max
(Diagram)
7. Practice Questions
Q1 (Easy)
X∼Poisson(2), Y∼Poisson(3) independent. Find P(X+Y=4).
Full SolutionX+Y∼Poisson(5). P(X+Y=4)=e−5⋅4!54=e−5⋅24625≈0.1755.
Q2 (Medium)
Two fair dice are rolled. Find P(max(X,Y)≥5).
Full SolutionP(max≥5)=1−P(max≤4)=1−P(X≤4)2=1−(4/6)2=1−16/36=20/36=5/9.
Q3 (Hard)
X∼Geometric(0.2), Y∼Geometric(0.3) independent. Find P(min(X,Y)>5).
Full SolutionP(min>5)=P(X>5,Y>5)=P(X>5)⋅P(Y>5).For Geometric: P(X>k)=(1−p)k.P(X>5)=(0.8)5=0.32768, P(Y>5)=(0.7)5=0.16807.P(min>5)=0.32768×0.16807≈0.0551.
Next topic: Week 2.3: Independence of Random Variables — Independence of random variables, i.i.d. sequences. Join Discord PreviousWeek 2.1: Functions of Random VariablesNextWeek 2.3: Independence of Random Variables