Week 1.4: Multiple Random Variables (n > 2)
363 words
2 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 1.4: Multiple Random Variables (n > 2) > **Prerequisites:** Joint PMF ([Week 1.1: Joint Probability Mass Function (Joint PMF)](/notes/01-foundation-bsma1004-stats-2-week01-01-joint-pmf)), Conditional ([Week 1.3: Conditional Distributions](/notes/01-foundation-bsma1004-stats-2-week01-03-conditional-distributio...

Week 1.4: Multiple Random Variables (n > 2)
Prerequisites: Joint PMF (Week 1.1: Joint Probability Mass Function (Joint PMF)), Conditional (Week 1.3: Conditional Distributions) Core question: How do we handle joint distributions of three or more random variables?
1. Extension to n Dimensions
Everything from two RVs extends naturally. For X1,…,Xn with joint PMF fX1…Xn:
Joint PMF: fX1…Xn(t1,…,tn)=P(X1=t1,…,Xn=tn).
Marginalisation: Sum over everything you don't want.
Joint marginal: fX1X2(t1,t2)=∑t3⋯∑tnfX1…Xn(t1,t2,t3,…,tn).
Chain rule factorisation:
2. Example: Triple Coin Toss
| X1 | X2 | X3 | fX1X2X3 |
|---|---|---|---|
| 0 | 0 | 0 | 1/8 |
| 0 | 0 | 1 | 1/8 |
| 0 | 1 | 0 | 1/8 |
| 0 | 1 | 1 | 1/8 |
| 1 | 0 | 0 | 1/8 |
| 1 | 0 | 1 | 1/8 |
| 1 | 1 | 0 | 1/8 |
| 1 | 1 | 1 | 1/8 |
Marginal of X1: Sum over X2,X3: fX1(0)=4×1/8=1/2, fX1(1)=1/2.
Joint marginal of (X1,X3): Sum over X2:
- fX1X3(0,0)=f(0,0,0)+f(0,1,0)=1/8+1/8=1/4
- fX1X3(0,1)=f(0,0,1)+f(0,1,1)=1/4
- fX1X3(1,0)=f(1,0,0)+f(1,1,0)=1/4
- fX1X3(1,1)=f(1,0,1)+f(1,1,1)=1/4
3. Even Parity Example (Pairwise but not Mutual Independence)
X1,X2,X3 each Uniform{0,1}, sum is even.
| X1 | X2 | X3 | Prob |
|---|---|---|---|
| 0 | 0 | 0 | 1/4 |
| 0 | 1 | 1 | 1/4 |
| 1 | 0 | 1 | 1/4 |
| 1 | 1 | 0 | 1/4 |
Any pair is independent, but the triple is dependent (not all 8 combinations possible).
4. Practice Questions
Q1 (Easy)
For the triple coin toss, find fX2∣X1=1,X3=0(t).
Full SolutionfX1X3(1,0)=1/4. fX1X2X3(1,0,0)=1/8, fX1X2X3(1,1,0)=1/8.fX2∣X1=1,X3=0(0)=1/41/8=1/2, fX2∣X1=1,X3=0(1)=1/41/8=1/2.
Next topic: Week 2.1: Functions of Random Variables — Functions of random variables. Join Discord PreviousWeek 1.3: Conditional DistributionsNextWeek 2.1: Functions of Random Variables