CH 8
CH 8
Motivation
X N10, 11 Y =
E(X) -Wo , 1)
i
,
X has a
cDFF , F(X)-W(0 1
• Suppose we transform a continuous random variable X
,
12) g(X) = eY ,
i e, .
Y= eY
Suppose X is a continuous random variable with PDF f X .
Assure g(X) is
strictly increasin
Q :
what is pay of Y ?
g)
(ghcFexd)
Y = g(X) Fact :
,
f
T
X has a fxMX)
pdf
Fy(y) = P(Y < 7) *
= f(h(y1) h (Y)
=
P(g(X( = y)
,y))
+
y = g(x)
y = P(X =
g
g(y) =
98
%
fx(x)dX
Exx)y) 11
fy (3) = Fig =
+
fx (g (1) ·
(94y1/
=
Then the PDF of Y is
! !
y = g(x)
! dx !
f Y (y) = f X (x) · !! !!
dy
=
! !
! dx !
f Y (y) = f X (x) · !! !!
dy
fy(y) = fxx) t Ex too
:
=
Suppose X is height in meters and Y = 100 X is height in cm.
•
Why doesn’t f (180) equal f (1.8) ?
filyl = For
Y X
Y
Example fx(X e: = , x> 0 ,
• f X (1.8) |dx| approximates the probability that too
=E
X is between 1.8 and (1.8 + dx), for a tiny increment dx
1180Y• = 182 1801 .
2
When we change units, we’re talking about the probability that
Y is between 180 and (180 + dy), where dy = 100 dx
II
• Thus, we want f Y (180) |dy| = f X (1.8) |dx|,
so f Y (180) = f X (1.8) / 100
• In other words, f X (x) measures probability per meter
while f Y (y) measures probability per centimeter
1 (1 :
8 X= 1 :
82) =
fx (1 8) :
:
0 02
.
Example: Log-Normal PDF
Fact :
y ex X logy
llogy1
=
=
,
[y = g(x) ,
Let X ∼ N (0, 1) and Y =
x=
e X.
g
+
(y)]
(We say that Y has a Log-Normal distribution,
which means “the log of Y is Normal.”)
= ex
* = glogy
fix) = e- =
y
fy(21 =
fxx(y) =
fx(logy) ↑ ·
-
The PDF of Y is
! !
! dx ! 1 1
f Y (y) = f X (x) · !! !! = ϕ(x) · = ϕ(log y) ·
dy y y
=- Hig
for y > 0 (and zero otherwise).
Change of variables in n dimensions
ABBA
=X nnnxn nxr non
:
C We know the joint pdf
of X Ex (x,
. xn) ...,
where: fycey =
fi(yA+ )
• x = g−1 (y) is the vector that solves y = g(x)
/detAll
• |∂x/∂y| is the absolute value of the determinant of the
Jacobian matrix (see next slide), which we assume is never 0
Fact :
E =
(A-1T
det (B) = det (BT (
The Jacobian matrix
FactjA+ =x
=
:Y = (A+ )T
By the inverse function theorem and properties of determinants,
! ! ! !−1
! ∂x ! ! !
! ! = ! ∂y !
! ∂y ! ! ∂x !
if |∂y/∂x| &= 0.
Covr(z wi ,
=
z W)COV(z) ,
z vws
*
ye
-
Ex, = 21
Var(W) 1 =
= Var(PX) + Varly/
= P2 Var(X) +irVar(Y)
Example: Bivariate Normal joint PDF (2)
=
(1) z=4
w = px + ty w
-
Px)
Ew Ez
=
• By the change-of-variables formula in 2 dimensions,
-
! !
! ∂(x, y) !
&
(1) +x , 3(X , y) =
e
(1) fz w(z ,
, wl = fx
,
Y(z , Ew-fzlE
fzwiz ,i =
x= f(z) = z
=1
f(z) = 1
E = 0
y =
tw- =
-E
=E
He
• We can first compute the inverse Jacobian
⎛ ⎞
∂z ∂z ' (
∂(z, w) ⎜ ∂x ∂y
⎟ 1 0
= ⎝ ⎠ =
∂(x, y) ∂w ∂w ρ τ
∂x ∂y
• Therefore,
(x , y) Set x+
y =
= P(X = x
,
Y =y) = [P(X x141
=
=
fiy = + x+y =+ 2)
Convolution sums: Proof
• By LOTP,
+
P (X + Y = t) = P (X + Y = t | X = x) · P (X = x)
x
• P (X + Y = t | X = x) = P (Y = t − x | X = x)
P (Y = t − x | X = x) = P (Y = t − x)
x(p(Y
P(x + y= + 1 =
[P(x = = tx)
, ∞
= =P(Y =
y)P(X ty)
=
f T (t) = f X (x) · f Y (t − x) dx
,−∞
∞
= f Y (y) · f X (t − y) dy
−∞
Example: Exponential convolution
pdf of fx(x) =
&Ne* X,
X :
pdf of Y :
Suppose X and Y are i.i.d. Expo(λ). -
X8
fy (7)
What’s the PDF of T = X + Y ?
&Xe O
,
,
0 W
.
%20
f +
ch =
S Fyct-XIdY
to g
f+ (+ ) = S. fx x) fy( + x)dx -
0
λe
21
• For t > 0:
• f T (t) =
-∞
−∞
f X (x) · f Y (t − x) dx
• The integrand is zero for x < 0 or x > t, so we get
- t −λx
· λe−λ(t−x) dx xX - x+ +1x
xe
-
xe .
.
which is constant as we integrate with respect to x, so we get
, t
f T (t) = λ2 e−λt dx = λ2 t e−λt
0
x+ xX
x-exX
-
+
Acknowledgements: All materials of this class are based on
Winston Lin’s S&DS241 class in Fall 2019 with some
modifications.