Chapter_3
Chapter_3
∞ ∞
= ∫ (∫ ℎ(𝑦⁄𝑥) 𝑓 (𝑥)𝑑𝑥) 𝑦𝑑𝑦
−∞ −∞ 1
∞ ∞
= ∫ (∫ 𝑓(𝑥, 𝑦)𝑑𝑥) 𝑦𝑑𝑦
−∞ −∞
∞
= ∫−∞ 𝑦 𝑓2(𝑦)𝑑𝑦
= 𝐸𝑦(𝑌)
Definition 5:
Let 𝑋 and 𝑌 be two random variables with joint density 𝑓(𝑥, 𝑦) and 𝑓(𝑦/𝑥) be the conditional density of
𝑌 given 𝑋 = 𝑥. The conditional variance of 𝑌 given 𝑋 = 𝑥, denoted by 𝑉𝑎𝑟(𝑌|𝑥), is defined as
2
𝑉𝑎𝑟(𝑌|𝑥) = 𝐸(𝑌2|𝑥) − (𝐸(𝑌|𝑥)) ,
Example: (Example 8 ctd.) Let X and Y have the joint pdf f(x, y) = 2, 0 ≤ x ≤ y ≤ 1. Find the
conditional variance of Y given X=x.
18
STAT 21513 Probability Distributions and Applications II
Example 9: Let 𝑋 and 𝑌 be continuous random variables with joint probability density
Answer:
∞
= ∫𝑥 𝑒−𝑦𝑑𝑦
= [−𝑒−𝑦]∞𝑥
= 𝑒−𝑥
19
STAT 21513 Probability Distributions and Applications II
𝑒−𝑦
= 𝑒−𝑥
Thus, given 𝑋 = 𝑥, 𝑌 has an exponential distribution with parameter 𝜃 = 1 and location parameter 𝑥. The
conditional mean of 𝑌 given 𝑋 = 𝑥 is
∞
𝐸(𝑌|𝑥) = ∫−∞ 𝑦ℎ(𝑦/𝑥)𝑑𝑦
∞
= ∫𝑥 𝑦𝑒−(𝑦−𝑥)𝑑𝑦
∞
= ∫0 (𝑧 + 𝑥)𝑒−𝑧𝑑𝑧 𝑤ℎ𝑒𝑟𝑒 𝑧 = 𝑦 − 𝑥
∞ ∞
= 𝑥 ∫ 𝑒−𝑧𝑑𝑧 + ∫ 𝑧 𝑒−𝑧𝑑𝑧
0 0
= 𝑥Γ(1) + Γ(2)
∞
= ∫𝑥 𝑦2 𝑒−(𝑦−𝑥)𝑑𝑦
∞
= ∫0 (𝑧 + 𝑥)2𝑒−𝑧𝑑𝑧 𝑤ℎ𝑒𝑟𝑒 𝑧 = 𝑦 − 𝑥
∞ ∞ ∞
= 𝑥2 ∫ 𝑒−𝑧𝑑𝑧 + ∫ 𝑧2𝑒−𝑧𝑑𝑧 + 2𝑥 ∫ 𝑧𝑒−𝑧𝑑𝑧
0 0 0
= 𝑥2 + 2 + 2𝑥
= (𝑥 + 1)2 + 1
Therefore
2
𝑉𝑎𝑟(𝑌|𝑥) = 𝐸(𝑌2|𝑥) − (𝐸(𝑌|𝑥) )
= (𝑥 + 1)2 + 1 − (𝑥 + 1)2
= 1.
20
STAT 21513 Probability Distributions and Applications II
{𝐸(𝑋𝑌)}2 ≤ 𝐸(𝑋2)𝐸(𝑌2)
with equality if and only if
𝑃[𝑌 = 𝛼𝑋] = 1
For some constant 𝛼.
|𝐸(𝑋𝑌)| ≤ √𝐸(𝑋2)𝐸(𝑌2)
Proof:
Define a new random variable 𝑊 = (𝑌 − 𝛼𝑋)2. Clearly, W is a nonnegative random variable for any
value of 𝛼 ∈ ℝ.
Choose
𝐸(𝑋𝑌)
𝛼=
𝐸(𝑌2)
21
STAT 21513 Probability Distributions and Applications II
Exercise:
Prove that the correlation coefficient 𝜌(𝑋, 𝑌) of random variables X and Y always in the interval [-1,1] ,
i.e. −1 ≤ 𝜌(𝑋, 𝑌) ≤ 1
22
STAT 21513 Probability Distributions and Applications II
https://demonstrations.wolfram.com/JointDensityOfBivariateGaussianRandomVariables/
23