Roll a fair (six-sided) die, and let $N$ be the result. Now toss $2N$ fair coins and let $M$ be the number of heads. i) Find $\mathbb{E}[M]$. ii)Find $\mathbb{P}(M = 7)$.
I have given a shot at this question and my understanding for part i) is the following: $\mathbb{E}[N]=1/6(1+2+3+4+5+6)=3.5$
$Y=2N \implies \mathbb{E}[Y]=2\mathbb{E}[N]=2(3.5)=7$ Therefore, $\mathbb{E}[M]=7*0.5=3.5$ however, for part ii), I'm unsure of how to go about it. would we treat it as a conditional probability with $N$? Any feedback/help would be great!
Given that there are only 6 possibilities for N, we can just brute force our way through all 6 solutions.
N = 1, 2 or 3
N = 4
N = 5
N = 6
Now all that remains is to take the average of all these values:
(0+0+0+(1/32)+(15/128)+(99/512))/6 = 0.05696614583, or roughly 6%
Hope this helps! I'm personally not sure how to solve in the case where the die has a huge/arbitrary number of faces though, seems like an interesting problem to try.