Lecture 5 - Joint Distributions
Lecture 5 - Joint Distributions
Joint Probability
Distributions
DR. MAHA HASSANEIN
Lecture Objectives
Use joint probability mass functions to calculate
probabilities in two discrete random variables
Calculate marginal distributions from joint probability
distributions
Calculate means and variance for linear combinations of
random variables and calculate probabilities
𝑓 𝑥, 𝑦 = 𝑃(𝑋 = 𝑥, 𝑌 = 𝑦)
Y/X 0 1 2 3
0
1/120 15/120 30/120 10/120
1
6/120 30/120 20/120 0
2
3/120 5/120 0 0
𝑓 𝑥, 𝑦 = 𝑃 𝑋 = 𝑥, 𝑌 = 𝑦
satisfies
𝑓 𝑥, 𝑦 ≥ 0
𝑓 𝑥, 𝑦 = 1
𝑦 𝑥
𝑓𝑌 𝑦 = 𝑃 𝑌 = 𝑦 = 𝑓(𝑥, 𝑦)
𝑓𝑜𝑟 𝑎𝑙𝑙 𝑥
Y/X 0 1 2 3 𝑓𝑌 𝑦
0
1/120 15/120 30/120 10/120 56/120
1
6/120 30/120 20/120 0 56/120
2
3/120 5/120 0 0 8/120
𝑓𝑋 𝑥
10/120 50/120 50/120 10/120 1
Y/X 0 1 2 3 𝑓𝑌 𝑦
𝑓 𝑥, 𝑦 ≥ 0
and
∞ ∞
−∞ −∞ 𝑓 𝑥, 𝑦 𝑑𝑥𝑑𝑦 = 1
𝑃 𝑋, 𝑌 ∈ 𝑅 = න න 𝑓 𝑥, 𝑦 𝑑𝑥𝑑𝑦
𝑅
Spring 2024 DR. MAHA A. HASSANEIN
Joint Cumulative Distribution
function
The joint cumulative distribution function of two random
variables X and Y are
𝐹 𝑎, 𝑏 = 𝑃 𝑋 ≤ 𝑎, 𝑌 ≤ 𝑏
𝐹 𝑎, 𝑏 = න න 𝑓 𝑥, 𝑦 𝑑𝑥𝑑𝑦
−∞ −∞
∞
𝑓𝑋 𝑥 = න 𝑓 𝑥, 𝑦 𝑑𝑦
−∞
and
∞
𝑓𝑌 𝑦 = න 𝑓 𝑥, 𝑦 𝑑𝑥
−∞
Note: Integrating the joint function for y we obtain 𝑓𝑋 𝑥
and Integrating the joint function for x we obtain 𝑓𝑌 𝑦
∞
μ𝑌 = 𝐸 𝑌 = −∞ 𝑦𝑓𝑌 𝑦 𝑑𝑦 and 𝜎𝑌 2 = 𝐸 𝑌 2 − μ𝑌 2
𝑓 𝑥1 , 𝑥2 , … , 𝑥𝑛 = ෑ 𝑓(𝑥𝑖 )
𝑖=1
COV X, Y = 𝐸 𝑋 − 𝜇𝑋 𝑌 − 𝜇𝑌
or simply
𝜎𝑋𝑌 = 𝐸 𝑋𝑌 − 𝜇𝑋 𝜇𝑌
∞ ∞
𝐸 𝑋𝑌 = −∞ −∞ 𝑥𝑦 𝑓 𝑥, 𝑦 𝑑𝑥𝑑𝑦 for CRV
−1 ≤ 𝜌𝑋𝑌 ≤ 1
𝜎𝑋 ,𝜎𝑌 are the standard deviations
➢It scales the covariance by the standard deviation
No units ( dimensionless)
𝐸 𝑎𝑋 + 𝑏𝑌 = 𝑎𝐸 𝑋 + 𝑏𝐸 𝑌
Prove.
A random sample consists of n random variables 𝑋𝑖 with
mean 𝜇𝑖
𝑛
𝐸 𝑎1 𝑥1 + 𝑎2 𝑥2 + ⋯ + 𝑎𝑛 𝑥𝑛 = 𝑎𝑖 𝜇𝑖
𝑖=1
Note: This result holds if the two random variables are not
independent
Spring 2024 DR. MAHA A. HASSANEIN
Variance of Linear combination of
two random variables
If X and Y are any two RVs
Proof. On Board
y\x 1 2 3 𝑓𝑌 (𝑦)
1 0.1 0 0.2 0.3
2 0.2 0 0.1 0.3
3 0 0.1 0.3 0.4
𝑓𝑋 (𝑥) 0.3 0.1 0.6 1
1
Ans.𝐸 𝑋𝑌 = , 𝜎 = -0.006, 𝜌𝑋𝑌 = −0.08
3 𝑋𝑌
Find k
Compute 𝜌𝑋𝑌
k=12
0.5
References