#jsDisabledContent { display:none; } My Account |  Register |  Help

# Conditional distribution

Article Id: WHEBN0011491996
Reproduction Date:

 Title: Conditional distribution Author: World Heritage Encyclopedia Language: English Subject: Collection: Publisher: World Heritage Encyclopedia Publication Date:

### Conditional distribution

In probability theory and statistics, given two jointly distributed random variables X and Y, the conditional probability distribution of Y given X is the probability distribution of Y when X is known to be a particular value; in some cases the conditional probabilities may be expressed as functions containing the unspecified value x of X as a parameter. The conditional distribution contrasts with the marginal distribution of a random variable, which is its distribution without reference to the value of the other variable.

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.

## Discrete distributions

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

$p_Y\left(y\mid X = x\right)=P\left(Y = y \mid X = x\right) = \frac\left\{P\left(X=x\ \cap Y=y\right)\right\}\left\{P\left(X=x\right)\right\}.$

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

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

$P\left(Y=y \mid X=x\right) P\left(X=x\right) = P\left(X=x\ \cap Y=y\right) = P\left(X=x \mid Y=y\right)P\left(Y=y\right).$

## Continuous distributions

Similarly for continuous random variables, the conditional probability density function of Y given the occurrence of the value x of X can be written as

$f_Y\left(y \mid X=x\right) = \frac\left\{f_\left\{X, Y\right\}\left(x, y\right)\right\}\left\{f_X\left(x\right)\right\},$

where fX,Y(x, y) gives the joint density of X and Y, while fX(x) gives the marginal density for X. Also in this case it is necessary that $f_X\left(x\right)>0$.

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

$f_Y\left(y \mid X=x\right)f_X\left(x\right) = f_\left\{X,Y\right\}\left(x, y\right) = f_X\left(x \mid Y=y\right)f_Y\left(y\right).$

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.

## Relation to independence

Random variables X, Y are independent if and only if the conditional distribution of Y given X is, for all possible realizations of X, equal to the unconditional distribution of Y. For discrete random variables this means P(Y = y | X = x) = P(Y = y) for all relevant x and y. For continuous random variables X and Y, having a joint density function, it means fY(y | X=x) = fY(y) for all relevant x and y.

## Properties

Seen as a function of y for given x, P(Y = y | X = x) is a probability and so the sum over all y (or integral if it is a conditional probability density) is 1. Seen as a function of x for given y, it is a likelihood function, so that the sum over all x need not be 1.

## Measure-Theoretic Formulation

Let $\left(\Omega, \mathcal\left\{F\right\}, P\right)$ be a probability space, $\mathcal\left\{G\right\} \subseteq \mathcal\left\{F\right\}$ a $\sigma$-field in $\mathcal\left\{F\right\}$, and a real-valued random variable (measurable with respect to the Borel $\sigma$-field $\mathcal\left\{R\right\}^1$ on $\mathbb\left\{R\right\}$). It can be shown that there exists[1] a function such that $\mu\left(\cdot, \omega\right)$ is a probability measure on $\mathcal\left\{R\right\}^1$ for each $\omega \in \Omega$ (i.e., it is regular) and $\mu\left(H, \cdot\right) = P\left(X \in H | \mathcal\left\{G\right\}\right)$ (almost surely) for every $H \in \mathcal\left\{R\right\}^1$. For any $\omega \in \Omega$, the function is called a conditional probability distribution of $X$ given $\mathcal\left\{G\right\}$. In this case,

$E\left[X | \mathcal\left\{G\right\}\right] = \int_\left\{-\infty\right\}^\infty x \, \mu\left(d x, \cdot\right)$

almost surely.

## References

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.

Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.