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 XA.

Discrete case:

PX|A(k)={1P[A]PX(k)kA0kA

Continuous case:

fX|A(x)={1P[A]fX(x)xA0xA

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

FX|A(x)=P[Xx|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[xXx+dx|yYy+dy]P[xXx+dx,yYy+dy]P[yYy+dy]fX,Y(x,y)dxdyfY(y)dyfX,Y(x,y)fY(y)dx