Conditional expectation with multiple random variables

808 Views Asked by At

I'm trying to understand the solution to a problem from A First Course in Probability (Ross):

There are two misshapen coins in a box; their probabilities for landing on heads when they are flipped are, respectively, .4 and .7. One of the coins is to be randomly chosen and flipped 10 times. Given that two of the first three flips landed on heads, what is the conditional expected number of heads in the 10 flips?

Here is the solution provided in the book: enter image description here

Intuitively, the solution makes sense to me. We want to use the information that two of the first three flips were heads to update our beliefs of which coin was chosen. However, I don't understand what's happening under the hood. IIUC, $N_7, C$ are random variables, but is $T$ a RV as well given we know that it occurred. It seems like the underlying formula used by the solution is:

(1) $E[N_7|T] = E[E[N_7|T, C]]$, where the outer expectation is over $C$, is that correct?

If so, I would have expected (1) to decompose into:

$E[N_7|T] = \sum_c E[N_7|T, C=c]p(c)$ but this seems different that what the solution is proposing.

I think I'm overlooking/missing some key properties of expectations/RVs/bayes theorem here. Any insight would be appreciated, thanks!

2

There are 2 best solutions below

6
On BEST ANSWER

It's the total law of probability: take the partition $\{C_1,C_2\}$ then

$$ \mathbb{E}[N_7|T] = \sum_{i=1}^{2} \mathbb{E}[N_7|T \cap C_i] \mathbb{P}[C_1|T]$$

0
On

$T$ is not a random variable, but an event (as stated in the task). The underlying formula used was $$ \mathbb E[X | A] = \int_\Omega X d\mathbb{P}_A, $$ where $A$ is event with non-zero probability, $\mathbb{P}_A$ is conditional probability (and therefore new probability measure on $\Omega$) $\mathbb{P}_A(B) = \mathbb{P}(B|A)$. Here our event is called $T$, and our random vairable $X$ is $N_7$.

Your formula $E[N_7|T] = E[E[N_7|T, C]]$ is quite hard to interpret to me, as we are mixing random variables and events. If you know about conditional expected value with respect to random variable, I'd write $E[N_7|T] = E[ E[N_7 | \mathbb{1}_T]] = E[ E[N_7 | \mathbb{1}_T, C]] $. To evaluate it, we would have to find joint probability distribution of $\mathbb{1}_T$ and $C$. That isn't too hard, but presented method is quicker.