WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Leads in Coin Tossing

number of tosses
10
100
1000
10000
random seed
Consider a game in which a fair coin is tossed repeatedly. When the cumulative number of heads is greater than the cumulative number of tails, heads is in the lead. Tails moves to the lead when the cumulative number of tails is greater than the cumulative number of heads. Intuition might suggest that with a large number of coin tosses, heads and tails would spend roughly equal time in the lead. In fact, it is much more likely that one side or the other will be lucky a high proportion of the time. When the blue line is above the horizontal, heads is in the lead; when it is below, tails is in the lead. Vary the random seed and observe how often one side or the other is in the lead close to 100% of the time.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.