Conditional probability function

Definition (Conditional pmf)

Given two discrete RVs XX and YY with joint pmf p(x,y),xX,yYp(x,y),x\in\mathscr{X},y\in\mathscr{Y}, the conditional pmf of xx given that Y=yY=y is denoted by pXY(xy)p_{X|Y}(x|y) and defined as pXY(xy)=P(X=x,Y=y)P(Y=y)=pxy(x,y)py(y), xXp_{X|Y}(x|y)=\frac{P(X=x,Y=y)}{P(Y=y)}=\frac{p_{xy}(x,y)}{p_y(y)}, \ x\in\mathscr{X}

Definition (Conditional Probability Density Function)

Given two continuous RVs XX and YY with joint pdf fxy(x,y),xX,yYf_{xy}(x,y),x\in\mathscr{X},y\in\mathscr{Y}, the conditional pdf of XX given that Y=yY=y is denoted by fXY(xy)f_{X|Y}(x|y) and defined as fXY(xy)=fxy(x,y)fy(y), xX, f(y)>0f_{X|Y}(x|y)=\frac{f_{xy}(x,y)}{f_y(y)}, \ x\in\mathscr{X}, \ f(y)>0

Linked from