Probability Explorer

Interactive binomial distribution visualiser.

Visualize the binomial distribution and watch how probability outcomes spread as you change the number of trials and the success probability. An interactive way to build intuition for distributions, variance, and the Central Limit Theorem.

What Is This?

The binomial distribution answers this question: "If I repeat a yes/no experiment N times, where each trial has probability P of success, how likely is it that I get exactly K successes?"

Examples: flipping a coin 100 times and asking how likely is exactly 53 heads. Shooting 20 free throws at 75% and asking how likely is missing 4. Testing 50 products at 2% defect rate.

Key concepts
N (trials):How many times you repeat the experiment.
P (probability):Chance of success on any single trial (0 = never, 1 = always).
Mean μ = N×P:The average number of successes you expect.
Normal approx:When N is large, the curve approximates a bell curve (Central Limit Theorem).
Quick Examples
Parameters
N: Number of trials50
5200
P: Probability of success per trial0.50
0.010.99
Mean μ = N×P25.00
Variance σ² = NPQ12.50
Std Dev σ3.54
Mode25
Distribution: P(X = k)
04812162024283236404448
Binomial P(X = k) Normal approximation

Frequently Asked Questions

What is a binomial distribution? ▾

A binomial distribution models the number of successes in a fixed number of independent trials, each with the same probability of success. For example: flipping a coin 100 times and counting heads. The distribution shows how likely each possible count is.

When does the normal approximation apply? ▾

The normal approximation to the binomial distribution becomes accurate when both np ≥ 5 and n(1-p) ≥ 5. This is a consequence of the Central Limit Theorem, as n grows, the binomial distribution approaches a normal (bell curve) shape regardless of p.

What does the simulation overlay show? ▾

Running a simulation generates actual random trials and overlays the results on the theoretical distribution. With small sample sizes, the empirical and theoretical bars differ noticeably. As you increase the number of simulated trials, they converge, demonstrating the Law of Large Numbers.

What is the difference between probability and statistics? ▾

Probability works forward: given a known process, what outcomes should we expect? Statistics works backward: given observed outcomes, what can we infer about the underlying process? The binomial distribution sits at the intersection, it is a probability model used constantly in statistical inference.

Related Reading

More Tools

Learning guide

Understanding the binomial distribution

A practical guide to the most useful distribution in introductory statistics: its formula, its shape, and when it turns into the normal and Poisson distributions.

1. When to use it

The binomial distribution answers one question: if you repeat an experiment n times, each with the same probability p of success, how likely is it to get exactly k successes? It applies when four conditions hold: a fixed number of trials, two outcomes per trial, the same probability each time, and independent trials. Coin flips, free throws, multiple-choice guesses and defective items in a batch are all classic examples.

2. The formula

P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)

where C(n, k) = n! / (k! (n − k)!) counts the ways to arrange
k successes among n trials.

Mean:      μ = n × p
Variance:  σ² = n × p × (1 − p)

The three parts each have a meaning. p^k is the chance of a particular set of k successes, (1 − p)^(n − k) is the chance that all the other trials fail, and C(n, k) counts how many different orders those successes can come in.

3. A worked example: guessing on a test

A student guesses every answer on a 20-question test with 4 options per question, so n = 20 and p = 0.25. The expected score is 20 × 0.25 = 5, with a standard deviation of √(20 × 0.25 × 0.75) ≈ 1.94. The probability of scoring 10 or more by pure guessing is only about 1.4%. Set n = 20 and p = 0.25 in the explorer above and you can see how far 10 sits in the right tail.

4. The normal approximation

As n grows, the binomial distribution becomes bell-shaped. A common rule of thumb says the normal approximation works well when both n × p and n × (1 − p) are at least 10. This is a special case of the central limit theorem, because a binomial count is a sum of n independent 0 or 1 trials. The same idea gave William Gosset, writing as "Student" in 1908, the tools to draw conclusions from small samples, and later underpinned Jerzy Neyman's 1937 theory of confidence intervals.

5. The Poisson approximation

When n is large and p is small, the binomial distribution is well approximated by the Poisson distribution with λ = n × p. A famous example comes from R. D. Clarke's 1946 study of flying-bomb strikes on south London. He divided the area into 576 small squares that received 537 hits in total, an average of λ ≈ 0.93 per square. If the hits were random, the Poisson formula predicts how many squares should receive 0, 1, 2 or more hits:

Hits per square     0       1       2      3      4     5+
Poisson prediction  226.7   211.4   98.5   30.6   7.1   1.6
Observed            229     211     93     35     7     1

The match is remarkably close, which suggested the bombs were not precisely targeted. It is a powerful example of how a simple probability model can answer a real-world question.

Try it yourself
Set p = 0.5 and slowly increase n from 5 to 50. Watch the shape change from blocky to smooth. Then set p = 0.05 and n = 20: the distribution becomes lopsided, a sign that the normal approximation would be poor and the Poisson approximation is more appropriate.

References and further reading

Peer-reviewed research behind this page. Links open the official publisher page; free PDFs are marked. Browse every source in our Research Library.

  1. Fischer, H. (2011). A History of the Central Limit Theorem: From Classical to Modern Probability Theory. Springer, New York.

    A scholarly history of how mathematicians from de Moivre and Laplace to Lindeberg and Lévy proved that sums of random variables become normally distributed.

    Read the paper ↗DOI: 10.1007/978-0-387-87857-7
  2. Student (Gosset, W. S.) (1908). The Probable Error of a Mean. Biometrika, 6(1), 1 to 25.

    Written by a Guinness brewery chemist under the pen name "Student". It introduced the t-distribution for drawing conclusions from small samples.

    Read the paper ↗DOI: 10.1093/biomet/6.1.1
  3. Neyman, J. (1937). Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability. Philosophical Transactions of the Royal Society A, 236, 333 to 380.

    The founding paper of confidence intervals. Neyman defines exactly what a "95% confidence interval" does and does not mean.

    Read the paper ↗DOI: 10.1098/rsta.1937.0005
  4. Clarke, R. D. (1946). An Application of the Poisson Distribution. Journal of the Institute of Actuaries, 72(3), 481.

    A one-page classic: flying-bomb hits on south London in World War II matched a Poisson distribution, showing the hits were random rather than aimed at specific districts.

    Read the paper ↗DOI: 10.1017/S0020268100035435