Answer:
Explanation:
For this case we assume that we have two random variable X and Y continuous, and we define the conditional density of X given Y like this:
Where
is the joint density function. And we can define the conditional probability like this:
In order to find the expected value of X given Y=y we just need to find this:
And if we assume that the random variable is discrete then the conditional expectation would be given by:
And as we can se just change the integral by a sum over the values defined for X, and with this we have the general formulas in order to find the conditional expectation of X given Y=y for the possible cases for a random variable.