Books Probability and Statistical Inference
Conditional Distributions
The conditional probability mass functionconditional probability mass function of given is defined by
Similarly, the conditional probability mass function of given is defined by
Note that , and summing it over gives
This shows that is a valid probability mass function. We may compute probaility of event like given as
and compute conditional expectation of a function given as
Two special conditional expectations are conditional meanconditional mean
and conditional varianceconditional variance
One can show that
Proof
We have
Then, we study . We have
Combined with the equation , we get a system of equations
Equate the RHS of the two equations,
Substitute ,
Simplify,
Then, the value of is given by
Therefore, we obtain the formula for
Similarly, by swapping the roles of and , we can show that
As a quick follow-up, we note that if both and are linear in and , respectively, then the product of the slopes of the two lines is and the quotient is (slope of line divided by the slope of line ).
Let us yet again revisit the example of the trinomial distribution. Let and have the trinomial distribution with parameters , , and . The joint PMF is given by
As noted before, . Thus, the marginal PMF of is
We are now interested in the conditional of given . By definition, the conditional PMF of given is given by
By comparing with the binomial PMF, we see that is the PMF of
The conditional mean of given is simply the mean of the above binomial distribution, i.e.,
Note that this is a linear function of . Therefore, by Exercise 4.5, we have
Similarly, by swapping the roles of and , the conditional distribution of given is and the conditional mean of given is
As noted before, the product of the coefficients of the variables of the two conditional means is . Therefore, we have
And becuase the correlation coefficient of the trinomial distribution is negative, we have