Conditional Distributions for Continuous Random Variables

Defining and computing the conditional probability density function of one continuous random variable given the value of another, and using it to compute conditional probabilities.

Step 1 of 119%

Tutorial

The Conditional Probability Density Function

Recall that for discrete random variables XX and YY, the conditional pmf of YY given X=xX = x is

pYX(yx)=pX,Y(x,y)pX(x).p_{Y|X}(y \mid x) = \dfrac{p_{X,Y}(x,y)}{p_X(x)}.

For continuous random variables, the same idea applies, but with densities instead of probability masses.

The conditional probability density function of YY given X=xX = x is

fYX(yx)=fX,Y(x,y)fX(x),f_{Y|X}(y \mid x) = \dfrac{f_{X,Y}(x,y)}{f_X(x)},

defined whenever fX(x)>0f_X(x) > 0. For each fixed value of xx, this is a valid pdf in yy: it is nonnegative and integrates to 11 over yy.

For example, suppose XX and YY have joint pdf

fX,Y(x,y)=2,0yx1.f_{X,Y}(x,y) = 2, \quad 0 \le y \le x \le 1.

The marginal density of XX is

fX(x)=0x2dy=2x,0<x1.f_X(x) = \int_0^x 2\, dy = 2x, \quad 0 < x \le 1.

Therefore the conditional density of YY given X=xX = x is

fYX(yx)=22x=1x,0yx.f_{Y|X}(y \mid x) = \dfrac{2}{2x} = \dfrac{1}{x}, \quad 0 \le y \le x.

Given X=xX = x, the random variable YY is uniformly distributed on [0,x][0, x].

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle