Conditional Distributions
The distribution of one random variable after the value of another is known.
Draft — not yet reviewed by the site owner.
Prerequisites: Joint and Marginal Distributions, Conditional Probability.
A conditional distribution describes what remains uncertain about one random variable after we learn something about another. Knowing a train’s departure time, for example, may change the range of possible arrival times. The conditional distribution describes that changed range and the probabilities within it.
A slice of a joint distribution
For discrete variables, conditioning is ordinary conditional probability: keep the cells of a joint table where , then divide by the probability of that row or column. Provided ,
For continuous variables, , so we cannot literally divide by that event’s probability. Instead, a joint density gives a density slice at . Dividing by the marginal density makes the slice integrate to 1:
The formula describes a conditional density for almost every relevant . It does not assign positive probability to the exact event ; it describes how the distribution of changes as we learn . Always state the allowed values of , which may depend on .
Worked example: knowing the upper limit
Use the joint density on the triangle from joint and marginal distributions. Its marginal density is for . Once is known,
This is a uniform distribution from 0 to . If , the conditional density is between 0 and 0.75. The height exceeds 1, but its area is .
For example, with , the probability that is the fraction of the remaining interval below 0.25:
From a conditional back to a joint
The same relationship works in reverse: . This is the continuous version of the multiplication rule. If we know how is generated and then how is generated given , we can build their joint distribution.
To forget again, average the conditional densities over its possible values:
This is the density version of the law of total probability. It is useful when a model has a random parameter: first choose a parameter, then generate an outcome using it. The next article uses the same idea to average conditional means and variances.
Common misunderstandings
The support can change when we condition. In the triangle, always. Holding leaves , not .
A conditional density is still a density. Its value at one point is not the probability of that exact value. Integrate it over an interval to get a probability.