Probability Playground

Flip coins, roll dice, and run birthday match simulations. Track running statistics and see the Law of Large Numbers in action.

Ad Space — 728x90
H
T
Flip to start!
Total Flips 0
Heads 0
Tails 0
Heads % 0%
Tails % 0%
Expected (50%)
Actual Heads
0%
Flip the coin many times and watch the actual percentage converge toward 50% — that is the Law of Large Numbers in action.
Ad Space — 728x90

What Is Probability?

Probability is the branch of mathematics that measures how likely an event is to occur. It is expressed as a number between 0 and 1, where 0 means an event is impossible and 1 means it is certain. A probability of 0.5 (or 50%) means the event is equally likely to happen or not happen. Every probability experiment has a sample space — the set of all possible outcomes — and one or more events, which are subsets of that sample space. For a fair coin, the sample space is {Heads, Tails} and each event has a probability of 1/2. For a single die, the sample space is {1, 2, 3, 4, 5, 6} and each face has a probability of 1/6.

Coin Flips and the 50/50 Rule

A fair coin has two equally likely outcomes: heads and tails. Because both outcomes are equally probable, each flip has a 50% chance of landing on either side. Importantly, each flip is an independent event — the result of one flip has absolutely no effect on the next. Getting five heads in a row does not make tails "due" on the sixth flip. This is a common misconception known as the gambler's fallacy. Over a small number of flips, you may see runs and streaks that look non-random, but as the number of trials grows the proportion of heads naturally gravitates toward 50%.

Dice and Discrete Probability

A standard six-sided die has six faces numbered 1 through 6, each with an equal probability of 1/6 (about 16.67%). When you roll two dice and add the results, the possible sums range from 2 to 12, but they are not equally likely. The sum of 7 is the most common result because there are six different combinations that produce it: 1+6, 2+5, 3+4, 4+3, 5+2, and 6+1. In contrast, the sums of 2 and 12 can each only be made one way (1+1 and 6+6, respectively). This uneven distribution creates the familiar bell-shaped histogram that becomes clearer the more times you roll. Adding more dice makes the distribution smoother and more closely resembles a normal (bell curve) distribution — a result explained by the Central Limit Theorem.

The Law of Large Numbers

The Law of Large Numbers is one of the most fundamental theorems in probability and statistics. It states that as the number of trials of a random experiment increases, the average of the observed results gets closer and closer to the expected value. Flip a coin 10 times and you might see 70% heads. Flip it 100 times and you will likely be closer to 50%. Flip it 10,000 times and the percentage will be very close to exactly 50%. This does not mean that individual outcomes become predictable — each flip is still random. Rather, the aggregate behavior becomes more stable and predictable as the sample size grows. This principle underlies insurance, polling, quality control, and virtually every application of statistics.

Expected Value for Dice Sums

The expected value of a single fair die roll is (1 + 2 + 3 + 4 + 5 + 6) / 6 = 3.5. When rolling multiple dice, the expected sum is simply the number of dice multiplied by 3.5. So for 2 dice the expected sum is 7, for 3 dice it is 10.5, and for 6 dice it is 21. The expected value is a theoretical average — you will never actually roll a 3.5 on a single die — but it tells you what the long-run average converges to. Use this tool to roll hundreds of times and watch your observed average approach the expected value.

Fun Probability Facts

The Birthday Paradox: In a room of just 23 people, there is a greater than 50% chance that two of them share the same birthday. With 50 people the probability rises to 97%. This feels counterintuitive because we compare the number of people (23) to the number of possible birthdays (365), but what matters is the number of pairs that can be compared, which grows much faster.

The Monty Hall Problem: In this famous game-show scenario, a contestant picks one of three doors. The host, who knows what is behind each door, opens a different door to reveal a goat. The contestant is then offered the chance to switch to the remaining unopened door. Switching gives a 2/3 chance of winning the prize, while staying with the original choice gives only a 1/3 chance. The key insight is that the host's action provides new information that changes the probabilities.

Frequently Asked Questions

What is the probability of getting heads on a coin flip?

A fair coin has exactly a 50% chance of landing on heads and a 50% chance of landing on tails. Each flip is an independent event, so previous results have no effect on future flips. Over a small number of flips you may see streaks, but as the number of flips increases the observed percentage converges toward 50%.

What is the Law of Large Numbers?

The Law of Large Numbers states that as you repeat a random experiment more and more times, the average of the results gets closer to the expected value. For example, if you flip a coin 10 times you might get 70% heads, but after 10,000 flips the percentage will be very close to 50%. This tool lets you watch that convergence happen in real time.

What are the possible outcomes when rolling two dice?

When rolling two standard six-sided dice, the possible sums range from 2 to 12. There are 36 total combinations. The most common sum is 7, which can be made 6 different ways (1+6, 2+5, 3+4, 4+3, 5+2, 6+1). The least common sums are 2 and 12, each of which can only be made one way.

Are the results truly random?

This tool uses JavaScript's Math.random(), which produces pseudorandom numbers. The results are statistically random enough for educational demonstrations, games, and general exploration of probability concepts. For cryptographic purposes, a cryptographically secure random number generator should be used instead.

Is my data stored anywhere?

No. The Probability Playground runs entirely in your browser. No data is sent to any server and no personal information is collected. Your flip and roll statistics are saved in your browser's local storage so they persist between visits. You can clear them at any time with the Reset button.