MM icon MM Practice
×

Virtual Coin Tosser
for probability simulations

With this online coin tossing tool, you can toss between 1 and 10 coins, up to a million times. You can also set the probability of getting tails (aka use a weighted coin), allowing you to run various types of simulations to find probabilities of events.

The script calculates the experimental and theoretical probabilities for the outcomes of the different numbers of heads/tails, and shows those in a table. It also draws a bar chart of the distribution of the experimental probabilities, and calculates the MAD of the experimental probabilities.

Note: If you toss more than 1 coin, the probabilities shown in the table and in the graph are for the SUM of the outcomes with a specific number of heads and tails. For example, when tossing two coins, the outcomes HT and TH are lumped together, or when tossing three coins, the outcomes HTT, THT, and TTH are lumped together.

For a low number of coins and repetitions, the script will show you the actual results as a string of text with H's and T's.

Select the number of coins you want to toss, the number of repetitions, and the probability of getting a tail, and then click "Toss". That's all! Very easy. :)


Results:

All percentages below are rounded to 4 decimal places.





Allow my comment to be posted on this site