Let H be the number of heads in 10 fair coin flips. What is E[H(10−H)]?
Express as a fraction or decimal
Show solution
H∼Binomial(10,1/2), so E[H]=5 and Var(H)=10⋅41=25. Then E[H2]=Var(H)+(E[H])2=25+25=255. So E[H(10−H)]=E[10H−H2]=10⋅5−255=50−255=245.