Coin Flip Sequences

When flipping an unbiased coin, on average it takes longer for HHT to occur than for HTT, even though the sequence probabilities are equal.

    
In[42]:=
Click for copyable input
In[43]:=
Click for copyable input
Out[43]=
Find the mean number of coin flips to reach HHT:
In[44]:=
Click for copyable input
Out[44]=
Find the mean number of coin flips to reach HTT:
In[45]:=
Click for copyable input
Out[45]=
New to Mathematica? Find your learning path »
Have a question? Ask support »