« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Markov Chains and Queues

Coin Flip Sequences 

When flipping a fair coin until either HHT or HTT are first reached, on average it takes longer for HHT to occur than for HTT, even though the sequence probabilities are equal.

In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
Out[2]=

Find the mean number of coin flips to reach HHT.

In[3]:=
Click for copyable input
X
Out[3]=

Find the mean number of coin flips to reach HTT.

In[4]:=
Click for copyable input
X
Out[4]=