A comprehensive resource for understanding probability and statistics
The binomial distribution is one of the most important discrete distributions in probability theory and statistics. It describes the number of successes in a series of independent trials, where each trial has only two possible outcomes: success or failure.
Imagine you flip a coin 10 times - how many times will you get "heads"? Or you answer 20 questions on a multiple-choice test - what's the probability of getting exactly 15 correct? This is exactly binomial distribution in action!
The binomial distribution is named after mathematician Jacob Bernoulli, who studied it in the 17th century, and it serves as a vital foundation for understanding more complex stochastic processes. It's used across a wide range of fields: from medical testing, through quality control in manufacturing, to data analysis and statistical research.
For a process to be described by a binomial distribution, it must satisfy four essential conditions:
There must be a fixed and predetermined number of identical trials. For example: 10 coin flips, 50 questions on a test, or 100 inspections of products from a production line. This number is denoted by n and must be known in advance.
Each trial can result in only one of two possible outcomes: "success" or "failure". For example: heads/tails on a coin, correct/incorrect on a question, defective/non-defective for a product. This division is dichotomous/binary - there is no third option.
The probability of success remains identical in every trial and experiment. If the probability of getting "heads" on a coin is 0.5, it will remain 0.5 on every flip. The probability is denoted by p, and the probability of failure is q = 1 - p.
The outcome of one trial does not affect the outcome of the next trial. Each trial is a completely independent event. For example: if you got "heads" on the first flip, it doesn't change anything about the second flip.
Question: A fair coin is flipped 5 times. Is this a binomial distribution?
Checking the conditions:
Answer: Yes, all characteristics appropriate for binomial distribution are present here.
The formula for calculating the probability of getting exactly k successes out of n trials is:
\[P(X = k) = \binom{n}{k} \cdot p^k \cdot (1-p)^{n-k}\]
The binomial coefficient is calculated using the formula:
\[\binom{n}{k} = \frac{n!}{k!(n-k)!}\]
Where n! (n factorial) equals: n à (n-1) à (n-2) à ... à 2 à 1. For example: 5! = 5 à 4 à 3 à 2 à 1 = 120
The expected value represents the average number of successes we expect to get:
\[E(X) = \mu = n \cdot p\]
For example: If you flip a fair coin 100 times, the expected number of heads: 100 Ã 0.5 = 50 times.
Variance measures the degree of spread of outcomes around the expected value:
\[Var(X) = \sigma^2 = n \cdot p \cdot (1-p)\]
Standard deviation is the square root of the variance and measures spread in the same units as the original variable:
\[\sigma = \sqrt{n \cdot p \cdot (1-p)}\]
Question: On a multiple-choice test with 20 questions, the probability of answering correctly on a question is 0.25. Calculate the expected value, variance, and standard deviation.
Given: n = 20, p = 0.25
Expected value: Ξ = 20 à 0.25 = 5 questions
Variance: ÏÂē = 20 Ã 0.25 Ã 0.75 = 3.75
Standard deviation: Ï = â3.75 â 1.94 questions
Interpretation: On average, we expect to succeed on 5 questions, with a typical spread of about 2 questions above or below.
Use this interactive calculator to quickly compute binomial probabilities:
To work with the full calculator, please click here .
Question: A fair coin is flipped 8 times. What is the probability of getting exactly 3 "heads"?
Given:
Solution:
\[P(X = 3) = \binom{8}{3} \cdot 0.5^3 \cdot 0.5^5\]
\[\binom{8}{3} = \frac{8!}{3! \cdot 5!} = \frac{8 \cdot 7 \cdot 6}{3 \cdot 2 \cdot 1} = 56\]
\[P(X = 3) = 56 \cdot 0.125 \cdot 0.03125 = 0.21875\]
Answer: The probability is approximately 21.88% or about 1 in 5 times.
Question: In a factory, 10% of products are defective. If 15 products are randomly inspected, what is the probability that exactly 2 are defective?
Given:
Solution:
\[P(X = 2) = \binom{15}{2} \cdot 0.1^2 \cdot 0.9^{13}\]
\[\binom{15}{2} = \frac{15 \cdot 14}{2} = 105\]
\[P(X = 2) = 105 \cdot 0.01 \cdot 0.2542 \approx 0.267\]
Answer: The probability is approximately 26.7%. This is the most likely outcome in this situation.
Question: A student randomly guesses on 10 multiple-choice questions (4 options each). What is the probability of getting at least 3 correct?
Given:
Solution:
It's easier to calculate the complement:
\[P(X \geq 3) = 1 - P(X < 3) = 1 - [P(X=0) + P(X=1) + P(X=2)]\]
Calculating each term:
\[P(X=0) = \binom{10}{0} \cdot 0.25^0 \cdot 0.75^{10} \approx 0.0563\]
\[P(X=1) = \binom{10}{1} \cdot 0.25^1 \cdot 0.75^9 \approx 0.1877\]
\[P(X=2) = \binom{10}{2} \cdot 0.25^2 \cdot 0.75^8 \approx 0.2816\]
\[P(X \geq 3) = 1 - (0.0563 + 0.1877 + 0.2816) \approx 0.4744\]
Answer: The probability of getting at least 3 questions correct is approximately 47.4%.
Question: A basketball player makes free throws 80% of the time. If they take 5 shots, what is the probability they make all of them?
Given: n = 5, k = 5, p = 0.8
Solution:
\[P(X = 5) = \binom{5}{5} \cdot 0.8^5 \cdot 0.2^0\]
\[P(X = 5) = 1 \cdot 0.32768 \cdot 1 = 0.32768\]
Answer: The probability of making all 5 shots is approximately 32.8%.
The following table displays all possible probabilities for n=10 trials with p=0.3 (probability of success):
| Number of Successes (k) | Probability P(X=k) | Cumulative Probability P(XâĪk) | Percentage |
|---|---|---|---|
| 0 | 0.0282 | 0.0282 | 2.82% |
| 1 | 0.1211 | 0.1493 | 12.11% |
| 2 | 0.2335 | 0.3828 | 23.35% |
| 3 | 0.2668 | 0.6496 | 26.68% |
| 4 | 0.2001 | 0.8497 | 20.01% |
| 5 | 0.1029 | 0.9526 | 10.29% |
| 6 | 0.0368 | 0.9894 | 3.68% |
| 7 | 0.0090 | 0.9984 | 0.90% |
| 8 | 0.0014 | 0.9998 | 0.14% |
| 9 | 0.0001 | 0.9999 | 0.01% |
| 10 | 0.0000 | 1.0000 | 0.00% |
Insights from the table:
The binomial distribution is an essential tool in the arsenal of every statistician and data scientist. It allows us to predict and analyze the outcomes of repeated trials with binary outcomes, and appears in a wide range of practical applications:
Key Points to Remember:
With enough practice, you'll find that the binomial distribution becomes intuitive and comfortable to use. It serves as an excellent foundation for continuing your studies in statistics and advanced probability!