23 Conditional Distributions
- The conditional distribution of
given is the distribution of values over only those outcomes for which . It is a distribution on values of only; treat as a fixed constant when conditioning on the event . - Conditional distributions can be obtained from a joint distribution by slicing and renormalizing.
- Conditioning on the value of a random variable involves treating that random variable as a constant.
- It is sometimes possible to identify one-way conditional distributions (
given , or given ) simply by inspecting the joint distribution, without doing any calculations. - Be sure to distinguish between joint, conditional, and marginal distributions.
- The joint distribution is a distribution on
pairs. A mathematical expression of a joint distribution is a function of both values of and values of . Pay special attention to the possible values; the possible values of one variable might be restricted by the value of the other. - The conditional distribution of
given is a distribution on values (among pairs with a fixed value of ). A mathematical expression of a conditional distribution will involve both and , but is treated like a fixed constant and is treated as the variable. Note: the possible values of might depend on the value of , but is treated like a constant. - The marginal distribution of
is a distribution on values only, regardless of the value of . A mathematical expression of a marginal distribution will have only values of the single variable in it; for example, an expression for the marginal distribution of will only have in it (no , not even in the possible values).
- The joint distribution is a distribution on
23.1 Discrete random variables: Conditional probability mass functions
Example 23.1 Roll a fair four-sided die once and let
- Identify the possible values of
.
- Identify the possible values of
.
- Find the conditional distribution of
given .
- Find the conditional distribution of
given .
- Find the probability that
and .
- Find the probability that
and for .
- Find the joint distribution of
and .
- Find the marginal distribution of
.
- Find the conditional distribution of
given .
- Let
and be two discrete random variables defined on a probability space with probability measure . For any fixed with , the conditional probability mass function (pmf) of given is a function defined by . - To emphasize, the notation
represents the distribution of the random variable given a fixed value of the random variable . In the expression , is treated as the variable and is treated like a fixed constant. - Notice that the pmfs satisfy
- Conditional distributions can be obtained from a joint distribution by slicing and renormalizing. The conditional pmf of
given can be thought of as:- the slice of the joint pmf
of corresponding to , a function of alone, - renormalized — by dividing by
— so that the probabilitiess, corresponding to different values, for the slice sum to 1.
- the slice of the joint pmf
- For a fixed
, the shape of the conditional pmf of given is determined by the shape of the -slice of the joint pmf, . That is, - For each fixed
, the conditional pmf is a different distribution on values of the random variable . There is not one “conditional distribution of given ”, but rather a family of conditional distributions of given different values of . - Rearranging the definition of a conditional pmf yields the multiplication rule for pmfs of discrete random variables
- Marginal distributions can be obtained from the joint distribution by collapsing/stacking using the law of total probability. The law of total probability for pmfs is
23.2 Continuous random variables: Conditional probability density functions
- Let
and be two continuous random variables with joint pdf and marginal pdfs . For any fixed with , the conditional probability density function (pdf) of given is a function defined by - To emphasize, the notation
represents a conditional distribution of the random variable for a fixed value of the random variable . In the expression , is treated like a constant and is treated as the variable. - Notice that the pdfs satisfy
- Conditional distributions can be obtained from a joint distribution by slicing and renormalizing. The conditional pdf of
given can be thought of as:- the slice of the joint pdf
of corresponding to , a function of alone, - renormalized — by dividing by
— so that the density heights, corresponding to different values, for the slice are such that the total area under the density slice is 1.
- the slice of the joint pdf
- For a fixed
, the shape of the conditional pdf of given is determined by the shape of the -slice of the joint pdf, . That is, - For each fixed
, the conditional pdf is a different distribution on values of the random variable . There is not one “conditional distribution of given ”, but rather a family of conditional distributions of given different values of . - Rearranging the definition of a conditional pdf yields the multiplication rule for pdfs of continuous random variables
- Marginal distributions can be obtained from the joint distribution by collapsing/stacking using the law of total probability. The law of total probability for pmfs is
- Remember that the probability that a continuous random variable is equal to a particular value is 0; that is, for continuous
, . When we condition on we are really conditioning on and seeing what happens in the idealized limit when . - When simulating, never condition on
; rather, condition on where represents some suitable degree of precision (e.g. if rounding to two decimal places). - Remember pdfs do not return probabilities directly;
is not a probability of anything. But is related to the probability that is “close to” given that is “close to” :
Example 23.2 Recall the continuous analog of the four-sided die problem. Spin the Uniform(1, 4) spinner twice and let
Find
, the conditional pdf of given .
Find
.
Find
, the conditional pdf of given .
Find
.
Find
, the conditional pdf of given , for .
Find
, the conditional pdf of given .
Find
, the conditional pdf of given .
Find
, the conditional pdf of given .
Example 23.3 Suppose
Identify by name the one-way conditional distributions that you can obtain from the joint pdf, without doing any calculus or computation.
Identify by name the marginal distribution you can obtain without doing any calculus or computation.
Describe how could you use the Exponential(1) spinner and the Uniform(0, 1) spinner to generate an
pair.
Sketch a plot of the joint pdf.
Sketch a plot of the marginal pdf of
.
Set up the calculation you would perform to find the marginal pdf of
.