我们要求前 3 次抛掷中的正面数等于后 2 次抛掷中的正面数。
对 r=0,1,2,两边都有可能相等。
概率为
r=0∑2P(前 3 次有 r 个正面)⋅P(后 2 次有 r 个正面)
P(前 3 次有 r 个正面)=23(r3),P(后 2 次有 r 个正面)=22(r2)
因此
P=r=0∑28(r3)⋅4(r2)=321+6+3=165
Original Explanation
We want the # of heads in the first three flips to equal the # of heads in the last 2 flips.
For r=0,1,2 the events can match.
Probability = ∑r=02P(first 3 have r)⋅P(last 2 have r)
P(first 3 have r)=23(r3), P(last 2 have r)=22(r2)
So
P=r=0∑28(r3)⋅4(r2)=321+6+3=165