For two jointly distributed random variables X and Y the conditional distribution of Y given X is the distribution of Y when X takes particular values. For discrete random variables it is given by
For continuous random variables, the conditional density function is given by
where f (x,y) is the joint density function, and f (x) is the marginal density function of X.