Conditional expectation
A conditional mean is an expectation under a conditional distribution.
On this page 7 sections
01Average within an observed case#
A conditional mean is an expectation under a conditional distribution. Once a case has been observed, use the probabilities within that case to weight the remaining possible values.
Write for the conditional probabilities. Weight each possible value by its conditional probability:
Different observed values of can produce different means. Before observing , the expression is a rule that maps each case to its conditional mean.
02Use the conditional probabilities#
Suppose takes values . Given , their conditional probabilities are . The conditional mean is .
Given , suppose the probabilities are . The conditional mean is now . The outcomes are the same; the conditional weights changed.
Given Y=a, X takes values 0,6 with probabilities 0.75,0.25. Find E[X | Y=a].
Show answer and explanation
Use the within-case weights: 0×0.75+6×0.25.
03A group average is still an average#
A conditional mean of does not say the next will equal : only zero and four can occur in this example. It is the weighted average under the stated observation.
A regression model may predict an outcome's conditional mean from input features. This lesson assumes the conditional distribution is supplied; learning that distribution or fitting a prediction function is a separate task.
Conditional probabilities for values 0,10 are 0.9,0.1. A draft uses their unweighted average 5. Correct mean?
Show answer and explanation
Unequal conditional weights must be preserved.
If a joint table is supplied instead, first obtain the conditional probabilities using the earlier normalization rule. Joint masses are not ready-made conditional weights. The conditioning case must have positive probability for that finite-table calculation.
Compute a conditional mean from a conditional mass function.
- Compute a conditional mean from a conditional mass function.
Sources & further reading
- [1]Dive into Deep Learning, §2.6 Probability and Statistics ↗d2l.ai · Article
- [2]Harvard Stat 110, Strategic Practice 10 (2011) ↗stat110.hsites.harvard.edu · Article
- [3]Harvard Stat 110, Strategic Practice and Homework 9 (2011) ↗stat110.hsites.harvard.edu · Article