The mean of a slice
The topic The multivariate Gaussian ended with a slice. Take with , and . Fixing leaves a normal distribution for , namely . Its mean slides along a straight line as changes. This topic asks the same question for any pair of variables: once we know , what is the best guess for , and how much error is left?
That is supervised learning in one sentence: features , a target . Before any model is trained, probability theory already names the best possible guess, provided the joint distribution is known.
The conditional expectation is the expectation of the conditional distribution from the topic Joint distributions and independence. For discrete and continuous it reads
Back to the two dice. is the first die and is the larger of the two. Given , the larger value is 3 whenever the second die shows 1, 2 or 3, with probability . Otherwise it is the second die itself: 4, 5 or 6, each with probability . So
Without any information the mean of is . A low first die pulls the guess down.