Theory 1

Conditional distribution - fixed event

Suppose X is a random variable, and suppose A⊂ℝ. The distribution of X conditioned on A describes the probabilities of values of X given knowledge that X∈A.

Discrete case:

PX|A(k)={1P[A]PX(k)k∈A0k∉A

Continuous case:

fX|A(x)={1P[A]fX(x)x∈A0x∉A

There is also a conditional CDF, of which this conditional PDF is the derivative:

FX|A(x)=P[X≤x|A],fX|A(x)=ddxFX|A(x)

The Law of Total Probability has versions for distributions:

PX(k)=PX|A1(k)P[A1]+⋯+PX|An(k)P[An]fX(x)=fX|A1(x)P[A1]+⋯+fX|An(x)P[An]

Conditional distribution - variable event

Suppose X and Y are any two random variables. The distribution of X conditioned on Y describes the probabilities of values of X in terms of y, given knowledge that Y=y.

Discrete case:

PX|Y(k|ℓ)=P[X=k|Y=ℓ]=PX,Y(k,ℓ)PY(ℓ)(assuming PY(ℓ)≠0)

Continuous case:

fX|Y(x|y)=fX,Y(x,y)fY(y)(assuming fY(y)≠0)

Remember: PX,Y(k,ℓ) is the probability that “X=k and Y=ℓ.”

Sometimes it is useful to have the formulas rewritten like this:

PX,Y(k,ℓ)=PX|Y(k|ℓ)PY(ℓ)fX,Y(x,y)=fX|Y(x|y)fY(y)

Extra - Deriving fX|Y(x|y)

The density fX|Y ought to be such that fX|Y(x|y)dx gives the probability of X∈[x,x+dx], given knowledge that Y∈[y,y+dy]. Calculate this probability:

P[x≤X≤x+dx|y≤Y≤y+dy]≫≫P[x≤X≤x+dx,y≤Y≤y+dy]P[y≤Y≤y+dy]≫≫fX,Y(x,y)dxdyfY(y)dy≫≫fX,Y(x,y)fY(y)dx