返回题库

抛 n 次:正面数×反面数的期望

What is the expected product of the number of heads and the number of tails?

专题
Probability / 概率
难度
L4

题目详情

A fair coin is tossed nn times. What is the expected product of the number of heads and the number of tails?

解析

设正面数为 HH,反面数为 T=nHT=n-H,则

HT=H(nH)=nHH2.HT=H(n-H)=nH-H^2.

对公平硬币,HBin(n,1/2)H\sim\mathrm{Bin}(n,1/2),所以

E[H]=n2,Var(H)=n4,E[H2]=Var(H)+E[H]2=n4+n24.\mathbb{E}[H]=\frac{n}{2},\qquad \mathrm{Var}(H)=\frac{n}{4},\qquad \mathbb{E}[H^2]=\mathrm{Var}(H)+\mathbb{E}[H]^2=\frac{n}{4}+\frac{n^2}{4}.

因此

E[HT]=nn2(n4+n24)=n2n4.\mathbb{E}[HT]=n\cdot\frac{n}{2}-\left(\frac{n}{4}+\frac{n^2}{4}\right)=\boxed{\frac{n^2-n}{4}}.