Professional Documents
Culture Documents
Slide 5 01
Slide 5 01
Notation:
fX (x) = fX1 ,...,XN (x1 , . . . , xN ).
Figure: A joint PMF for a pair of discrete random variables consists of an array of
impulses. To measure the size of the event A, we sum all the impulses inside A.
©Stanley Chan 2022. All Rights Reserved.
5 / 26
Example
Y
1 2 3 4 5 6
1 1 1 1 1 1
X=0 12 12 12 12 12 12
1 1 1 1 1 1
X=1 12 12 12 12 12 12
Or written in equation:
1
pX ,Y (x, y ) = , x = 0, 1, y = 1, 2, 3, 4, 5, 6.
12
Solution:
X
P[A] = pX ,Y (x, y ) = pX ,Y (0, 3) + pX ,Y (1, 2)
(x,y )∈A
2
=
12X
P[B] = pX ,Y (x, y )
(x,y )∈B
Solution:
P[A] = P[a ≤ X ≤ b, c ≤ X ≤ d]
Z dZ b
= fX ,Y (x, y )dxdy
c a
Z dZ b
1 (d − c)(b − a)
= dxdy = .
c a 4 4
Solution:
Z Z 2 Z 2−y
P[B] = fX ,Y (x, y )dxdy = fX ,Y (x, y )dxdy
B 0 0
Z 2 Z 2−y
1
= dxdy
0 0 4
2
2−y
Z
1
= dy = .
0 4 2
Solution. There are two ways to take the integration. We choose the
inner integration w.r.t. y first.
Z Z ∞Z x
fX ,Y (x, y )dxdy = ce −x e −y dydx
Ω 0 0
Z ∞
c
= ce −x (1 − e −x ) = .
0 2
Therefore, c = 2.
©Stanley Chan 2022. All Rights Reserved.
12 / 26
Review of 2D Integration
Definition
The marginal PMF is defined as
X X
pX (x) = pX ,Y (x, y ) and pY (y ) = pX ,Y (x, y ), (3)
y ∈ΩY x∈ΩX
((x − µX )2 + (y − µY )2 )
1
fX ,Y (x, y ) = exp − .
2πσ 2 2σ 2
Solution.
∞
((x − µX )2 + (y − µY )2 )
Z
1
fX (x) = 2
exp − dy
−∞ 2πσ 2σ 2
Z ∞
(x − µX )2 (y − µY )2
1 1
=√ exp − · √ exp − dy
2πσ 2 2σ 2 −∞ 2πσ 2 2σ 2
(x − µX )2
1
=√ exp − .
2πσ 2 2σ 2
©Stanley Chan 2022. All Rights Reserved.
16 / 26
Independence
Definition
If two random variables X and Y are independent, then
Definition
If a sequence of random variables X1 , . . . , XN are independent, then their
joint PDF (or joint PMF) can be factorized.
N
Y
fX1 ,...,XN (x1 , . . . , xN ) = fXn (xn ). (5)
n=1
(x − µX )2 + (y − µY )2
1
fX ,Y (x, y ) = exp − .
2πσ 2 2σ 2
(x − µX )2 (y − µY )2
1 1
fX ,Y (x, y ) = √ exp − × √ exp −
2πσ 2σ 2 2πσ 2σ 2
| {z } | {z }
fX (x) fY (y )
= exp −x 2 + 2xy − y 2
Definition
If X and Y are discrete, then
X X
FX ,Y (x, y ) = pX ,Y (x ′ , y ′ ). (7)
y ′ ≤y x ′ ≤x
where Φ(·) is the CDF of the standard Gaussian. ©Stanley Chan 2022. All Rights Reserved.
23 / 26
Properties
Proposition
Let X and Y be two random variables. The marginal CDF is
FX (x) = FX ,Y (x, ∞)
FY (y ) = FX ,Y (∞, y ).
Definition
Let FX ,Y (x, y ) be the joint CDF of X and Y . Then, the joint PDF can be
obtained through
∂2
fX ,Y (x, y ) = FX ,Y (x, y ).
∂y ∂x
From 1D to 2D:
Replace 1D integration to 2D integration
Independence:
N
Y
fX1 ,...,XN (x1 , . . . , xN ) = fXn (xn ). (9)
n=1