Lably
Skip to content

Conditional probability distribution

Probability theory and statistics concept

  • 5 min read
  • 5 chapters

Related on Lably

Through Statistics, Random variable and Probability distribution

If the conditional distribution of Y given X is a continuous distribution, then its probability density function is known as the conditional density function. The properties of a conditional distribution, such as the moments, are often referred to by corresponding names such as the conditional mean and conditional variance.

More generally, one can refer to the conditional distribution of a subset of a set of more than two variables; this conditional distribution is contingent on the values of all the remaining variables, and if more than one variable is included in the subset then this conditional distribution is the conditional joint distribution of the included variables.

Conditional discrete distributions

For discrete random variables, the conditional probability mass function of Y given X=x can be written according to its definition as:

pY|X(y∣x)≜P(Y=y∣X=x)=P({X=x}∩{Y=y})P(X=x)

Due to the occurrence of P(X=x) in the denominator, this is defined only for non-zero (hence strictly positive) P(X=x).

The relation with the probability distribution of X given Y is:

P(Y=y∣X=x)P(X=x)=P({X=x}∩{Y=y})=P(X=x∣Y=y)P(Y=y).

Example

Consider the roll of a fair die and let X=1 if the number is even (i.e., 2, 4, or 6) and X=0 otherwise. Furthermore, let Y=1 if the number is prime (i.e., 2, 3, or 5) and Y=0 otherwise.

Then the unconditional probability that X=1 is 3/6 = 1/2 (since there are six possible rolls of the die, of which three are even), whereas the probability that X=1 conditional on Y=1 is 1/3 (since there are three possible prime number rolls—2, 3, and 5—of which one is even).

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Topics in mathematics