Chapter 7: Joint Distributions  
MATH/STAT 394: Probability I  
Arman Jahangiri  
University of Washington Department of Mathematics  
Summer 2026  
Arman Jahangiri  
Summer 2026  
1
 
Learning Goals  
By the end of this lecture, students should be able to:  
define joint, marginal, and conditional distributions;  
understand independence of random variables;  
apply the two-dimensional LOTUS formula;  
define covariance and correlation;  
distinguish independence from zero correlation;  
define pairwise and mutual independence;  
define the Multinomial distribution;  
understand the Multivariate Normal distribution.  
Arman Jahangiri  
Summer 2026  
2
Joint Distributions  
Arman Jahangiri  
Summer 2026  
3
Why Joint Distributions?  
Previously, we studied one random variable at a time.  
But many probabilistic questions involve several random variables simultaneously.  
Examples:  
height and weight;  
temperature and rainfall;  
several coin tosses;  
sums of random variables;  
sample means.  
Main idea  
Joint distributions describe how multiple random variables behave together.  
Arman Jahangiri  
Summer 2026  
4
Joint PMF  
Definition  
For discrete random variables X, Y , the joint PMF is  
pX,Y (x, y) = P(X = x, Y = y).  
Properties:  
X X  
pX,Y (x, y) 0, and  
pX,Y (x, y) = 1.  
x
y
Similarly, for n discrete random variables X1, . . . , Xn, the joint PMF is  
pX n (x1, . . . , xn) = P(X1 = x1, . . . , Xn = xn)  
,...,X  
1
Note {X x, Y y} = {X x} ∩ {Y y}  
Arman Jahangiri  
Summer 2026  
5
Marginal PMFs  
The marginal PMFs are obtained by summing out the other variable.  
X
pX (x) =  
pX,Y (x, y)  
y
and  
X
pY (y) =  
pX,Y (x, y).  
x
Interpretation  
Marginals describe each variable individually.  
Arman Jahangiri  
Summer 2026  
6
Example: Two Fair Dice and Marginals  
Let X be the outcome of the first die and Y the outcome of the second die.  
1
pX,Y (x, y) = P(X = x, Y = y) =  
,
x, y ∈ {1, 2, 3, 4, 5, 6}.  
36  
pX,Y (x, y) = P(X = x, Y = y) y = 1 y = 2 y = 3 y = 4 y = 5 y = 6 pX (x) = P(X = x)  
1
36  
1
36  
1
36  
1
36  
1
36  
1
36  
6
1
36  
1
36  
1
36  
1
36  
1
36  
1
36  
6
1
36  
1
36  
1
36  
1
36  
1
36  
1
36  
6
1
36  
1
36  
1
36  
1
36  
1
36  
1
36  
6
1
36  
1
36  
1
36  
1
36  
1
36  
1
36  
6
1
36  
1
36  
1
36  
1
36  
1
36  
1
36  
6
6
36  
6
36  
6
36  
6
36  
6
x = 1  
x = 2  
x = 3  
x = 4  
x = 5  
36  
6
36  
x = 6  
pY (y) = P(Y = y)  
36  
36  
36  
36  
36  
36  
For example,  
6
6
X
X
1
1
6
1
6
1
6
pX (3) =  
pX,Y (3, y) =  
+ · · · +  
=
=
,
and pY (4) =  
pX,Y (x, 4) =  
=
.
36  
36  
36  
6
36  
y=1  
x=1  
The marginal PMFs appear on the ”margins” of the joint PMF table.  
Summer 2026  
7
Proof of Marginal PMFs  
We prove the formula for pX (x).  
Fix a value x in the support of X. Then  
pX (x) = P(X = x).  
The event {X = x} can be written as the union of all events  
{X = x, Y = y}  
over all possible values y of Y :  
[
{X = x} =  
{X = x, Y = y}.  
y
Reason:  
[
[
[
{X = x} = {X = x} ∩ S = {X = x} ∩ ( {Y = y}) =  
{X = x} ∩ {Y = y} =  
{X = x, Y = y}  
y
y
y
Thus, applying the probability function to the above equation yields the result. Indeed, these events are pairwise  
disjoint, because Y cannot take two different values at the same time. Therefore, by the third axiom of probability  
(countable additivity),  
X
P(X = x) =  
P(X = x, Y = y).  
y
Hence,  
Arman Jahangiri  
Summer 2026  
8
Conditional PMFs  
Definition  
If  
P(X = x) > 0,  
then  
pX,Y (x, y)  
pY |X (y|x) = P(Y = y|X = x) =  
.
pX (x)  
Conditional distributions describe one variable given information about another.  
Arman Jahangiri  
Summer 2026  
9
Joint PDFs  
Definition  
For continuous random variables X, Y , the joint PDF is a function  
fX,Y (x, y)  
such that  
ZZ  
P((X, Y ) A) =  
fX,Y (x, y) dx dy.  
A
Properties:  
ZZ  
fX,Y (x, y) 0,  
fX,Y (x, y) dx dy = 1.  
2
R
Similarly, for n continuous random variables  
X1, . . . , Xn,  
the joint PDF is a function  
fX  
n (x1, . . . , xn)  
,...,X  
1
such that  
Z
Z
P (X1, . . . , Xn) A =  
· · ·  
fX  
n (x1, . . . , xn) dx1 · · · dxn.  
,...,X  
1
A
Arman Jahangiri  
Summer 2026 10  
Marginal PDFs  
Marginal densities are obtained by integrating out the other variable.  
Z
fX (x) = −∞ fX,Y (x, y) dy  
and  
Z
fY (y) = −∞ fX,Y (x, y) dx.  
Arman Jahangiri  
Summer 2026 11  
Conditional PDFs  
Definition  
If  
fX (x) > 0,  
fX,Y (x, y)  
then  
fY |X (y|x) =  
.
fX (x)  
Arman Jahangiri  
Summer 2026 12  
Example: Uniform on the Unit Square  
Suppose  
Then:  
(X, Y ) Unif([0, 1]2).  
fX,Y (x, y) = 1,  
0 < x < 1, 0 < y < 1.  
Marginals:  
Thus:  
fX (x) = 1,  
fY (y) = 1.  
fX,Y (x, y) = fX (x)fY (y).  
Arman Jahangiri  
Summer 2026 13  
Example: Uniform on the Unit Disk  
Suppose (X, Y ) is uniformly distributed on the unit disk  
D = {(x, y) : x2 + y2 1}.  
Since the area of the unit disk is π, the joint density is  
1
π
x2 + y2 1,  
,
fX,Y (x, y) =  
0,  
otherwise.  
Indeed,  
ZZ  
ZZ  
1
1
fX,Y (x, y) dx dy =  
dx dy =  
Area(D) = 1.  
π
π
2
R
D
For a fixed value of X = x, the possible values of Y satisfy  
p
p
1 x2 Y 1 x2.  
Important  
Knowing X restricts the possible values of Y , so X and Y are dependent.  
Arman Jahangiri  
Summer 2026 14  
Independence  
Arman Jahangiri  
Summer 2026 15  
Independence  
Definition  
Random variables X, Y are independent if for all sets A, B,  
P(X A, Y B) = P(X A)P(Y B).  
Intuitively: knowing one variable gives no information about the other.  
Arman Jahangiri  
Summer 2026 16  
Equivalent Definitions of Independence  
Theorem  
The following are equivalent for random variables X and Y :  
1
X and Y are independent.  
2
FX,Y (x, y) = FX (x)FY (y).  
3
4
5
6
7
If discrete:  
pX,Y (x, y) = pX (x)pY (y).  
fX,Y (x, y) = fX (x)fY (y).  
fY |X (y|x) = fY (y).  
If continuous:  
E[g(X)h(Y )] = E[g(X)]E[h(Y )].  
If MGFs exist:  
MX,Y (s, t) = MX (s)MY (t).  
Arman Jahangiri  
Summer 2026 17  
Which Criterion Should We Use?  
Different characterizations are useful in different situations.  
PMF/PDF factorization: usually easiest computationally;  
conditional distributions: most conceptual;  
expectation factorization: useful theoretically;  
MGF factorization: useful for sums and CLT.  
Arman Jahangiri  
Summer 2026 18  
Independence of Several Random Variables  
Definition  
Random variables  
X1, . . . , Xn  
are mutually independent if for every subset  
i1, . . . , ik ,  
k
Y
P(Xi A1, . . . , Xi Ak ) =  
P(Xi Aj ).  
1
j
k
j=1  
Arman Jahangiri  
Summer 2026 19  
Pairwise Independence  
Definition  
Random variables  
X1, . . . , Xn  
are pairwise independent if every pair  
is independent.  
(Xi , Xj )  
mutual independence =pairwise independence.  
But the converse is false.  
Arman Jahangiri  
Summer 2026 20  
Pairwise Independent But Not Mutually Independent  
Let  
X, Y  
be independent Bernoulli(1/2) random variables.  
Define  
Z = X Y ,  
where denotes XOR.  
Then:  
every pair is independent;  
but  
Z
is completely determined by  
X, Y .  
Hence:  
X, Y , Z  
are not mutually independent.  
Arman Jahangiri  
Summer 2026 21  
2D LOTUS  
Arman Jahangiri  
Summer 2026 22  
2D LOTUS  
Theorem  
For a function g(X, Y ),  
X X  
g(x, y)pX,Y (x, y),  
if X, Y are discrete,  
x
y
E[g(X, Y )] =  
ZZ  
g(x, y)fX,Y (x, y) dx dy, if X, Y are continuous.  
Meaning  
To find the expected value of a function of two random variables, average g(x, y) using the joint distribution  
of (X, Y ).  
Arman Jahangiri  
Summer 2026 23  
Linearity of Expectation Revisited  
Using 2D LOTUS:  
More generally:  
E(X + Y ) = E(X) + E(Y ).  
E(aX + bY + c) = aE(X) + bE(Y ) + c.  
Importantly: independence is NOT required.  
Arman Jahangiri  
Summer 2026 24  
Covariance and Correlation  
Arman Jahangiri  
Summer 2026 25  
Covariance  
Definition  
The covariance of X, Y is  
Cov(X, Y ) = E[(X E(X))(Y E(Y ))].  
Equivalent formula:  
Cov(X, Y ) = E(XY ) E(X)E(Y ).  
Proposition: Cov(X, X) = Var(X)  
Interpretation of Covariance  
Positive covariance: variables tend to move together;  
Negative covariance: one tends to increase while the other decreases;  
Zero covariance: no linear relationship (but there may be other forms of nonlinear relationships).  
Important  
Covariance measures linear dependence only.  
Arman Jahangiri  
Summer 2026 26  
Correlation  
Definition  
The correlation coefficient is  
Cov(X, Y )  
Corr(X, Y ) =  
.
σX σY  
Properties:  
1 Corr(X, Y ) 1.  
Proof: Chapter 10a (inequalities) - needs Cauchy-Schwarz inequality.  
Arman Jahangiri  
Summer 2026 27  
Variance of Sums  
Theorem  
For random variables X, Y ,  
Var(X + Y ) = Var(X) + Var(Y ) + 2 Cov(X, Y ).  
If X, Y are independent:  
Var(X + Y ) = Var(X) + Var(Y ).  
Arman Jahangiri  
Summer 2026 28  
Independence Implies Zero Correlation  
Theorem  
If X, Y are independent, then  
Cov(X, Y ) = 0.  
Hence:  
Corr(X, Y ) = 0.  
This follows because:  
E(XY ) = E(X)E(Y ).  
Arman Jahangiri  
Summer 2026 29  
Zero Correlation Does Not Imply Independence  
Let  
X N(0, 1),  
and define  
Y = X2.  
E(X) = 0,  
E(XY ) = E(X3) = 0.  
Cov(X, Y ) = 0.  
Y
Then:  
and  
Hence:  
But:  
is completely determined by  
X.  
Thus X, Y are dependent.  
Arman Jahangiri  
Summer 2026 30  
Heatmaps and Correlation Visualization  
Now, suppose that instead of 2 variables, we have n variables X1, . . . , Xn. If we consider all the correlations, i.e.,  
ꢀ ꢁ  
n
2
{Corr(Xi , Xj ) : 1 i  
̸
distinct correlations, so we can define a matrix whose ij entry is  
Corr(Xi , Xj ). This matrix is symmetric since Corr(Xi , Xj ) = Corr(Xj , Xi ). There is an interesting way to visualize  
this matrix, because all entries are between -1 and 1, we can use a heatmap.  
Arman Jahangiri  
Summer 2026 31  
Correlation Heatmap  
A heatmap provides a visual summary of  
pairwise correlations between variables.  
Each cell shows the correlation coefficient  
r(X, Y )  
between two variables.  
Interpretation:  
Blue: positive correlation.  
Red: negative correlation.  
White/light colors: weak or near-zero  
correlation.  
The closer | Corr(X, Y )| is to 1, the stronger  
the linear relationship.  
Arman Jahangiri  
Summer 2026 32  
Multinomial Distribution  
Arman Jahangiri  
Summer 2026 33  
Multinomial Distribution (generalization of Binomial Distribution)  
In the Binomial setting, each trial has two possible outcomes:  
o1 : Success  
or  
o2 : Failure,  
with probabilities  
p1 = p, p2 = 1 p,  
where  
p1 + p2 = 1  
After n independent trials,  
X1 := X  
and  
X2 := n X  
count the number of trials resulting in category o1: Success and o2: Failure, respectively. Note that  
X1 + X2 = X + n X = n  
In the multinomial setting, each trial can result in one of k (instead of 2) possible categories  
o1, . . . , ok ,  
with probabilities  
p1, . . . , pk ,  
where  
p1 + · · · + pk = 1  
After n independent trials,  
X1, . . . Xk  
count the number of trials resulting in category o1, . . . , ok . Note that X1 + · · · + Xk = n, since each trial results in  
exactly one category.  
Arman Jahangiri  
Summer 2026 34  
Multinomial PMF  
Definition  
If (X1, . . . , Xk ) counts the numbers of occurrences of the k categories in n independent trials, then  
(X1, . . . , Xk ) Mult(n, p1, . . . , pk ).  
n!  
x
p1x · · · pk  
,
1
k
P(X1 = x1, . . . , Xk = xk ) =  
x1! · · · xk !  
subject to:  
x1 + · · · + xk = n.  
Note. The Multinomial distribution is a multivariate distribution k dimensional, while the Binomial is a  
univariable distribution 1 dimensional. A multivariate random variable is also called a random vector. Note. It  
can be shown using the Multinomial Theorem (an extension of the Binomial Theorem) that the Multinomial PMF  
sums up to 1. Click here to see the Multinomial Theorem in Wikipedia.  
Arman Jahangiri  
Summer 2026 35  
Moments of the Multinomial  
For  
(X1, . . . , Xk ) Mult(n, p1, . . . , pk ),  
E(Xi ) = npi ,  
Var(Xi ) = npi (1 pi ),  
and for  
i
̸= j,  
Cov(Xi , Xj ) = npi pj .  
Arman Jahangiri  
Summer 2026 36  
Multivariate Normal Distribution  
Arman Jahangiri  
Summer 2026 37  
Bivariate Normal Distribution  
Big Picture  
The bivariate normal distribution is the two-dimensional version of the normal distribution.  
It describes two continuous random variables X and Y whose joint density has a bell-shaped surface over  
the xy-plane.  
A bivariate normal distribution is determined by five parameters:  
µX , µY , σX2 , σY2 , ρ.  
Here,  
ρ = Corr(X, Y )  
controls the strength and direction of the linear relationship between X and Y .  
Click this link for interactive bivariate normal visualization.  
Arman Jahangiri  
Summer 2026 38  
Bivariate Normal Distribution: Density  
Definition  
We say  
ꢂꢂ ꢃ ꢂ  
ꢃꢃ  
µX  
µY  
σX2  
ρσX σY  
σY2  
(X, Y ) N2  
,
ρσX σY  
if the joint density of (X, Y ) is  
1
p
fX,Y (x, y) =  
2πσX σY 1 ρ2  
(
"
#)  
ꢃ ꢂ  
2
2 2ρ  
+
.
1
x µX  
σX  
x µX  
σX  
y µY  
y µY  
× exp  
2(1 ρ2)  
σY  
σY  
where σX > 0, σY > 0, and 1 < ρ < 1.  
Arman Jahangiri  
Summer 2026 39  
Bivariate Normal Distribution: Main Properties  
If  
ꢂꢂ ꢃ ꢂ  
ꢃꢃ  
µX  
µY  
σX2  
ρσX σY  
σY2  
(X, Y ) N2  
,
,
ρσX σY  
then:  
The means are  
E(X) = µX ,  
E(Y ) = µY .  
Var(Y ) = σY2 .  
The variances are  
The covariance is  
Therefore,  
Var(X) = σX2 ,  
Cov(X, Y ) = ρσX σY .  
Corr(X, Y ) = ρ.  
Arman Jahangiri  
Summer 2026 40  
Marginal Distributions  
A beautiful property of the bivariate normal distribution is that the marginal distributions are normal.  
Marginals  
If  
ꢂꢂ ꢃ ꢂ  
ꢃꢃ  
µX  
µY  
σX2  
ρσX σY  
σY2  
(X, Y ) N2  
,
,
ρσX σY  
then  
and  
X N(µX , σX2 )  
Y N(µY , σY2 ).  
So the joint distribution is bivariate normal, but each marginal variable individually is ordinary normal.  
Arman Jahangiri  
Summer 2026 41  
Conditional Distributions  
Another beautiful property is that the conditional distributions are also normal.  
Conditionals  
If  
(X, Y )  
is bivariate normal, then  
σX  
X | Y = y N µX + ρ  
(y µY ), σX2 (1 ρ2)  
σY  
and  
σY  
σX  
Y | X = x N µY + ρ  
(x µX ), σY2 (1 ρ2)  
.
The conditional mean is linear in the observed value.  
Summer 2026 42  
Independence and Zero Correlation  
For general random variables,  
Corr(X, Y ) = 0  
does not necessarily imply independence.  
But for the bivariate normal distribution, it does.  
Important Gaussian Property  
If (X, Y ) is bivariate normal, then  
X and Y independent  
⇐⇒ ρ = 0.  
When ρ = 0, the joint density factors:  
fX,Y (x, y) = fX (x)fY (y).  
So in the bivariate normal case,  
uncorrelated independent.  
Arman Jahangiri  
Summer 2026 43