Worked examples · Sheet 2
Conditional distributions
Theory used:Conditional distributionsJoint and marginal densities
Go to: Exercise 1Exercise 2
Exercise 1
For and , the rows of the joint probability table are and . Determine the distribution of given and find its mean.
Given , the relevant total is the mass of the first row. Divide by because that row must have mass one after conditioning. Its mass is positive, so the definition of conditional probability mass applies.
Dividing by is equivalent to multiplying by , so each first-row mass doubles. The resulting distribution has three outcomes whose masses , , and retain the ratio of the original joint masses. They sum to one as a probability distribution requires.
Multiply each value of by its new mass and add the three products. The value contributes nothing, contributes , and contributes . The result is closer to than to because the conditional distribution assigns its largest mass to .
Thus given , the variable takes values , , and with probabilities , , and , and has conditional mean .
Exercise 2
The joint density is for and zero elsewhere. Find the density of given , with , and calculate .
Given , the possible values of range from zero to . Integrating the joint density over that section gives the denominator of the conditional density. The function does not depend on the coordinate , so the integral is times the section length . The marginal density integrates to one on and is positive for . The conditional-density definition therefore applies at each in that interval.
The resulting distribution is uniform on , with density zero outside the interval. The constant is the reciprocal of the section length, so the integral over equals one.
At divide the length of the portion above by the full section length. The portion from to has length , so the probability is divided by , or . In the graph this is the area of the shaded rectangle with base and height .