Conditional probability distribution
Given two jointly distributed random variables X and Y, the conditional distribution of Y given X (written "Y|X") is the probability distribution of Y when X is known to be a particular value.
For discrete random variables, the conditional probability mass function can be written as P(Y=y|X=x). From Bayes' theorem, this is
Similarly for continuous random variables, the conditional probability density function can be written as pY|X(y|x) and this is
where pX,Y(x,y) gives the joint distribution of X and Y, while pX(x) gives the marginal distribution for X.
The concept of the conditional distribution of a continuous random variable is not as intuitive as it might seem: Borel's paradox shows that conditional probability density functions need not be invariant under coordinate transformations.