Binomial Distribution Calculator
Find exact and cumulative binomial probabilities, mean, variance, and a full distribution table for any n, k, and p.
🎲 What is the Binomial Distribution?
The binomial distribution is one of the most fundamental probability distributions in statistics. It describes the number of successes in a fixed number of independent trials, where each trial has exactly two possible outcomes (success or failure) and the probability of success is the same on every trial.
Real-world scenarios that follow the binomial distribution are everywhere. A quality control engineer inspecting 50 parts for defects, where each part has a 2% defect rate, is working with a binomial distribution. A basketball player taking 15 free throws with a 70% success rate produces binomial outcomes. A medical researcher counting how many of 100 patients respond to a drug with a 60% response rate is also modelling a binomial situation. Any repeated, independent yes-or-no process with a fixed success rate is binomial.
A common misconception is confusing the binomial distribution with the normal distribution. The binomial distribution is discrete (whole number outcomes only) and is defined on the integers 0, 1, 2, ..., n. The normal distribution is continuous. However, when n is large enough and p is not too close to 0 or 1 (specifically when both np and n(1-p) exceed 5), the binomial distribution is well approximated by a normal distribution with the same mean and variance. This is a powerful result that underlies much of statistical inference.
The binomial distribution is also distinct from the Poisson distribution (which models rare events over time) and the geometric distribution (which models the number of trials until the first success). Understanding which distribution applies requires checking the four conditions: fixed n, independent trials, binary outcomes, and constant p across all trials.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 - Fair Coin Flipped 10 Times
What is the probability of getting exactly 3 heads in 10 fair coin flips?
Example 2 - Manufacturing Defect Rate
A factory has a 5% defect rate. What is the probability of finding exactly 2 defects in a batch of 20?
Example 3 - Drug Trial Response Rate
A drug has a 60% response rate. In a trial of 15 patients, what is the probability that 10 or more respond?
❓ Frequently Asked Questions
🔗 Related Calculators
What is the binomial distribution formula?
P(X = k) = C(n,k) x p^k x (1-p)^(n-k), where n is the number of trials, k is the target number of successes, p is the probability of success on each trial, and C(n,k) = n! / (k! x (n-k)!) is the binomial coefficient.
What is the mean of the binomial distribution?
The mean (expected value) is mu = np. For example, with n = 20 trials and p = 0.3, the expected number of successes is 20 x 0.3 = 6.
What is the variance of the binomial distribution?
The variance is sigma^2 = np(1-p). The standard deviation is sigma = sqrt(np(1-p)). For n = 20 and p = 0.3, variance = 4.2 and standard deviation = 2.049.
When can I use the normal approximation to the binomial?
The normal approximation is reliable when both np > 5 and n(1-p) > 5. Apply a continuity correction for better accuracy.
What is the difference between the PMF and CDF?
The PMF gives P(X = k). The CDF gives P(X <= k) = sum of P(X = 0) through P(X = k).
What does P(X >= k) mean?
P(X >= k) is the upper tail probability — the chance of getting k or more successes. It equals 1 minus P(X <= k-1), i.e., one minus the cumulative probability up to k-1. For example, P(X >= 3) = 1 - P(X <= 2) = 1 - [P(0) + P(1) + P(2)].
How do I calculate binomial probability for large n?
For large n use log-probability: log P(X=k) = log C(n,k) + k log p + (n-k) log(1-p). This calculator handles n up to 1000.
What are the conditions for the binomial distribution?
Four conditions: fixed n, independent trials, binary outcomes (success/failure), and constant probability p across all trials.