PSLecture11 2022
PSLecture11 2022
MA20205
Bibhas Adhikari
Lecture 11
October 10, 2022
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 1 / 19
Joint distributions
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 2 / 19
Joint distributions
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 2 / 19
Joint distributions
Let X and Y be two random variables with sample spaces ΩX and ΩY
respectively.
Then the joint random variable is given by (X , Y ) : ΩX × Ωy → R × R
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 3 / 19
Joint distributions
Let X and Y be two random variables with sample spaces ΩX and ΩY
respectively.
Then the joint random variable is given by (X , Y ) : ΩX × Ωy → R × R
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 3 / 19
Joint distributions
Let X be a random variable for a coin toss and Y be draw of a die. The
sample space is ΩX × ΩY = {(ω, η) : ω ∈ {0, 1}, η ∈ {1, 2, 3, 4, 5, 6}}.
Then
1
f (x, y ) = , (x, y ) ∈ S
12
is a pmf corresponding to (X , Y ).
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 4 / 19
Joint distributions
Let X be a random variable for a coin toss and Y be draw of a die. The
sample space is ΩX × ΩY = {(ω, η) : ω ∈ {0, 1}, η ∈ {1, 2, 3, 4, 5, 6}}.
Then
1
f (x, y ) = , (x, y ) ∈ S
12
is a pmf corresponding to (X , Y ).
Questions
1 Let A = {(x, y ) : x + y = 3}. Then P(A) =?
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 4 / 19
Joint distributions
Let X be a random variable for a coin toss and Y be draw of a die. The
sample space is ΩX × ΩY = {(ω, η) : ω ∈ {0, 1}, η ∈ {1, 2, 3, 4, 5, 6}}.
Then
1
f (x, y ) = , (x, y ) ∈ S
12
is a pmf corresponding to (X , Y ).
Questions
1 Let A = {(x, y ) : x + y = 3}. Then P(A) =?
2 Let B = {(x, y ) : min{x, y } = 1}. Then P(B) =?
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 4 / 19
Joint distributions
Joint pdf for continuous rvs
Let X , Y be continuous rvs with sample spaces ΩX , ΩY respectively. Then
joint pdf of (X , Y ) is a function f (x, y ) such that
Z
P(A) = f (x, y )dxdy
A
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 5 / 19
Joint distributions
Joint pdf for continuous rvs
Let X , Y be continuous rvs with sample spaces ΩX , ΩY respectively. Then
joint pdf of (X , Y ) is a function f (x, y ) such that
Z
P(A) = f (x, y )dxdy
A
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 5 / 19
Joint distributions
Joint pdf for continuous rvs
Let X , Y be continuous rvs with sample spaces ΩX , ΩY respectively. Then
joint pdf of (X , Y ) is a function f (x, y ) such that
Z
P(A) = f (x, y )dxdy
A
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 5 / 19
Joint distributions
Let (X , Y ) be a joint random variable with uniform distribution on
[0, 2] × [0, 2]. Then find P(A) if A = {(x, y ) : x + y ≤ 2}.
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 6 / 19
Joint distributions
Let (X , Y ) be a joint random variable with uniform distribution on
[0, 2] × [0, 2]. Then find P(A) if A = {(x, y ) : x + y ≤ 2}.
Z
P(A) = f (x, y ) dx dy
A
Z 2 Z 2−y
1
= dxdy
0 0 4
1
= .
2
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 6 / 19
Joint distributions
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 7 / 19
Joint distributions
is a joint pdf.
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 7 / 19
Joint distributions
Marginal pmf and pdf
The marginal pmf is defined by
X X
fX (x) = f (x, y ), fY (y ) = f (x, y )
y ∈ΩY x∈ΩX
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 8 / 19
Joint distributions
Marginal pmf and pdf
The marginal pmf is defined by
X X
fX (x) = f (x, y ), fY (y ) = f (x, y )
y ∈ΩY x∈ΩX
(x − µx )2 + (y − µY )2
1
f (x, y ) = exp −
2πσ 2 2σ 2
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 8 / 19
Joint distributions
Marginal pdfs of Gaussian:
Z ∞
fX (x) = f (x, y )dy
−∞
∞
(x − µX )2 + (y − µY )2
Z
1
= 2
exp −
−∞ 2πσ 2σ 2
∞
(x − µX )2 (y − µY )2
Z
1 1
= √ exp − √ exp − dy
2πσ 2 2σ 2 −∞ 2πσ 2 2σ 2
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 9 / 19
Joint distributions
Marginal pdfs of Gaussian:
Z ∞
fX (x) = f (x, y )dy
−∞
∞
(x − µX )2 + (y − µY )2
Z
1
= 2
exp −
−∞ 2πσ 2σ 2
∞
(x − µX )2 (y − µY )2
Z
1 1
= √ exp − √ exp − dy
2πσ 2 2σ 2 −∞ 2πσ 2 2σ 2
Thus
(x − µX )2
1
fX (x) = √ exp −
2πσ 2 2σ 2
(y − µY )2
1
fY (y ) = √ exp −
2πσ 2 2σ 2
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 9 / 19
Joint distributions
From the above derivation, note that
f (x, y ) = fX (x)fY (y ).
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 10 / 19
Joint distributions
From the above derivation, note that
f (x, y ) = fX (x)fY (y ).
f (x, y ) = fX (x)fY (y )
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 10 / 19
Joint distributions
From the above derivation, note that
f (x, y ) = fX (x)fY (y ).
f (x, y ) = fX (x)fY (y )
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 10 / 19
Joint distributions
From the above derivation, note that
f (x, y ) = fX (x)fY (y ).
f (x, y ) = fX (x)fY (y )
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 10 / 19
Joint distributions
From the above derivation, note that
f (x, y ) = fX (x)fY (y ).
f (x, y ) = fX (x)fY (y )
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 10 / 19
Joint distributions
Terminology If n random variables are independent and have the same
distribution, then the random variables are called independent and
identically distributed (iid) random variables.
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 11 / 19
Joint distributions
Terminology If n random variables are independent and have the same
distribution, then the random variables are called independent and
identically distributed (iid) random variables.
Joint cdf
Let X and Y be random variables. The joint cdf of X and Y is defined as
F (x, y ) = P(X ≤ x ∩ Y ≤ y ).
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 11 / 19
Joint distributions
Terminology If n random variables are independent and have the same
distribution, then the random variables are called independent and
identically distributed (iid) random variables.
Joint cdf
Let X and Y be random variables. The joint cdf of X and Y is defined as
F (x, y ) = P(X ≤ x ∩ Y ≤ y ).
Obviously. X X
F (x, y ) = f (x ′ , y ′ )
y ′ ≤y x ′ ≤x
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 11 / 19
Joint distributions
Observations
1 If X and Y are independent then
F (x, y ) = FX (x)FY (y )
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 12 / 19
Joint distributions
Observations
1 If X and Y are independent then
F (x, y ) = FX (x)FY (y )
F (x, y ) = xy
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 12 / 19
Joint distributions
Observations
1 If X and Y are independent then
F (x, y ) = FX (x)FY (y )
F (x, y ) = xy
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 12 / 19
Joint distributions
Observations
1 F (x, −∞) = 0
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 13 / 19
Joint distributions
Observations
1 F (x, −∞) = 0
2 F (−∞, y ) = 0
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 13 / 19
Joint distributions
Observations
1 F (x, −∞) = 0
2 F (−∞, y ) = 0
3 F (−∞, −∞) = 0
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 13 / 19
Joint distributions
Observations
1 F (x, −∞) = 0
2 F (−∞, y ) = 0
3 F (−∞, −∞) = 0
4 F (∞, ∞) = 1
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 13 / 19
Joint distributions
Observations
1 F (x, −∞) = 0
2 F (−∞, y ) = 0
3 F (−∞, −∞) = 0
4 F (∞, ∞) = 1
Marginal cdf
The marginal cdfs are
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 13 / 19
Joint distributions
∂2 ∂2
f (x, y ) = F (x, y ) = F (x, y )
∂y ∂x ∂x ∂y
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 14 / 19
Joint distributions
∂2 ∂2
f (x, y ) = F (x, y ) = F (x, y )
∂y ∂x ∂x ∂y
Then
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 14 / 19
Joint distributions
∂2 ∂2
f (x, y ) = F (x, y ) = F (x, y )
∂y ∂x ∂x ∂y
Then
f (x, y ) = λ2 e −λx e −λy
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 14 / 19
Joint distributions
Joint expectation
Let X , Y be random variables. Then the joint expectation of the pair is
defined as
P P
y ∈ΩY x∈ΩX xy f (x, y ) if X , Y are discrete
E (XY ) =
R R
y ∈ΩY x∈ΩX xy f (x, y ) dx dy if X , Y are continuous
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 15 / 19
Joint distributions
Joint expectation
Let X , Y be random variables. Then the joint expectation of the pair is
defined as
P P
y ∈ΩY x∈ΩX xy f (x, y ) if X , Y are discrete
E (XY ) =
R R
y ∈ΩY x∈ΩX xy f (x, y ) dx dy if X , Y are continuous
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 15 / 19
Joint distributions
Suppose X and Y are discrete random variables with range spaces
ΩX = {x1 , . . . , xn } and ΩY = {y1 , . . . , yn }.
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 16 / 19
Joint distributions
Suppose X and Y are discrete random variables with range spaces
ΩX = {x1 , . . . , xn } and ΩY = {y1 , . . . , yn }. Now define the vectors
x = [x1 , . . . , xn ]T , y = [y1 , . . . , yn ]T .
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 16 / 19
Joint distributions
Suppose X and Y are discrete random variables with range spaces
ΩX = {x1 , . . . , xn } and ΩY = {y1 , . . . , yn }. Now define the vectors
x = [x1 , . . . , xn ]T , y = [y1 , . . . , yn ]T .
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 16 / 19
Joint distributions
Suppose X and Y are discrete random variables with range spaces
ΩX = {x1 , . . . , xn } and ΩY = {y1 , . . . , yn }. Now define the vectors
x = [x1 , . . . , xn ]T , y = [y1 , . . . , yn ]T .
Then
E (XY ) = x T Py ,
the weighted inner (scalar) product of x and y .
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 16 / 19
Joint distributions
then
1 1
P= I , E (XY ) = x T y
n n
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 17 / 19
Joint distributions
Recall that the cosine angle between x and y is defined as
xT y
cos θ =
∥x∥ ∥y ∥
qP qP
n 2 n 2
where ∥x∥ = i=1 xi and ∥y ∥ = i=1 yi .
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 18 / 19
Joint distributions
Recall that the cosine angle between x and y is defined as
xT y
cos θ =
∥x∥ ∥y ∥
qP qP
n 2 n 2
where ∥x∥ = i=1 xi and ∥y ∥ = i=1 yi .
Geometry of expectation: geometry defined by the weighted inner product
and weighted norm
where
x T Py E (XY )
cos θ = =p p
∥x∥P X ∥y ∥P Y E (X 2 ) E (Y 2 )
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 18 / 19
Joint distribution
In the above,
E (X 2 ) = x T P X x = ∥x∥2P X
E (Y 2 ) = y T P Y y = ∥y ∥2P Y
where
p(x1 ) . . . 0 p(y1 ) . . . 0
PX = ... .. .. , P = .. .. ..
. . Y . . .
0 . . . p(xn ) 0 . . . p(yn )
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 19 / 19
Joint distribution
In the above,
E (X 2 ) = x T P X x = ∥x∥2P X
E (Y 2 ) = y T P Y y = ∥y ∥2P Y
where
p(x1 ) . . . 0 p(y1 ) . . . 0
PX = ... .. .. , P = .. .. ..
. . Y . . .
0 . . . p(xn ) 0 . . . p(yn )
Obviously,
E (XY )
−1 ≤ p p ≤1
E (X 2 ) E (Y 2 )
due to Cauchy-Schwarz inequality:
(E (XY ))2 ≤ E (X 2 )E (Y 2 )
Bibhas Adhikari (Autumn 2022-23, IIT Kharagpur) Proability and Statistics Lecture 11 October 10, 2022 19 / 19