Conditional Distribution
Conditional Distribution
05 Lecture 11
February 28, 2005
�
f (x) = f (x, y)dy - p.d.f. of X (continuous)
Conditional Distributions
Discrete Case:
P(X = x, Y = y)
P(X = x|Y = y) =
P(Y = y)
f (x,y)
P= f (y) = f (x|y) conditional p.f. of X given Y = y. Note: defined when f(y) is positive.
f (y |x) = ff(x,y)
(x) conditional p.f.
of Y given X = x. Note: defined when f(x) is positive.
If the marginal probabilities are zero, conditional probability is undefined.
Continuous Case:
Formulas are the same, but can’t treat like exact possibilities at fixed points.
P(X ← x, Y ⊂ [y − φ, y + φ])
P(X ← x|Y ⊂ [y − φ, y + φ]) =
P(Y ⊂ [y − φ, y + φ])
�
Joint p.d.f. f (x, y), P(A) = A
f (x, y)dxdy
1
� y+δ � x
2δ y−δ −∗ f (x, y)dxdy
= � y+δ � ∗ 1
y−δ −∗
f (x, y)dxdy × 2δ
As φ ↔ 0:
�x �x
f (x, y)dx f (x, y)dx
�−∗
∗ = −∗
−∗
f (x, y)dx f (y)
Conditional c.d.f:
32
�x
−∗ f (x, y)dx
P(X ← x|Y = y) =
f (y)
Conditional p.d.f:
� f (x, y)
f (x|y) = P(X ← x|Y = y) =
�x f (y)
Same result as discrete.
Multiplication Rule
f (x, y) −1
f (x|y) = = I(0 ← x ← y ← 1)
f (y) (1 − x) ln(1 − y)
Multivariate Distributions
33
Marginal: � �
f (↔
−
y)= f (↔
−
y ,↔
−
z )d↔
−
z , f (↔
−
z)= f (↔
−
y ,↔
−
z )d↔
−
y
Conditional:
f (↔
−
y ,↔
−z) f (↔
−y |↔
−z )f (↔
−z)
f (↔
−
y |↔
−
z)= ↔
− , f (↔
−
z |↔
−
y)= � ↔
f( z ) f ( y | z )f ( z )d↔
− ↔
− ↔
− −
z
Discrete Case:
Discrete p.f.:
� �
f (y) = P(Y = y) = P(r(X) = y) = P(x : r(x) = y) = P(X = x) = f (x)
x:r(x)=y x:r(x)=y
Continuous Case:
�
P(Y ← y) = P(r(X) ← y) = P(x : r(x) ← y) = P(A(y)) = f (x)dx
A(y)
�
�
p.d.f. f (y) = �y A(y)
f (x)dx
** End of Lecture 11
34