📘 Session 3.5- Binomial Distribution

🎯 Definition & Conditions

A random variable X has a binomial distribution, written X ~ Binomial(n, p), when it counts the number of “successes” across n trials that are:

If any of these are violated (e.g., changing probabilities, dependence), the binomial model may be inappropriate.

PMF: P(X = x) = C(n, x) · p^x · (1 − p)^{n − x} for x = 0,1,2,...,n

Mean: μ = np     Variance: σ² = np(1 − p)     Std. dev.: σ = √(np(1 − p))

🧪 Why Binomial? — Map Real Experiments to (n, p)

#Experiment (X = …)np (success)Why binomial? (trials, identical, independent)
1Flip a coin 10 times. X = # of heads.10p = P(head)Bernoulli trials; same p; independent.
2Factory has 1% defectives. X = # defectives in next 25 parts.250.01Defective/not; same rate; independent.
3Rare molecule in air with 10% chance. X = hits in 18 samples.180.10Success/failure; same p; independent.
4Bit error rate 10%. X = errors in next 5 bits.50.10Correct/error; same p; independent.
5MC test (4 choices), 10 questions, guessing. X = correct.100.25Right/wrong; same p; independent.
6Next 20 births: X = # female births.20≈0.5Approx. same p; independence assumed.
735% improve on a med. X = improved among 100.1000.35Improve/not; same p; independent.
8Circuit: 12 components pass with p=0.98. X = passes.120.98Pass/fail; same p; independent.

Heads up: If sampling without replacement from a small population, the hypergeometric model is exact. Binomial is a good approximation when the population is large and the sampling fraction is small.

📡 Worked Example (Classic): Bit Errors

Let n=4, p=0.1. Compute P(X = 2):

P(X = 2) = C(4,2) · (0.1)^2 · (1 − 0.1)^{2} = 6 × 0.01 × 0.81 = 0.0486

🧮 Interactive Calculator — PMF • CDF • Mean • Std Dev

μ = 10, σ = 2.236

PMF (P(X = x))

CDF (P(X ≤ x))

Point P(X = k):
Left tail P(X ≤ k):
Right tail P(X ≥ k):
Algebra view: P(X = k) = C(n,k) · p^k · (1−p)^{n−k}
Range probability (compute P(a ≤ X ≤ b))

🧠 Practice — True/False Quizzes

Case A: 5 T/F questions, guess randomly. n=5, p=0.5

  1. Find P(X=3).
  2. Find the mean and standard deviation.

P(X=3) = C(5,3) · (0.5)^{3} · (1−0.5)^{2} = 10 × (0.5)^{5} = 10/32 = 0.3125
μ = 5·0.5 = 2.5, σ = √(5·0.5·0.5) = √1.25 ≈ 1.118


Case B: 20 T/F questions, guess randomly. n=20, p=0.5

  1. Find P(X=10).
  2. Find the mean and standard deviation.

P(X=10) = C(20,10) · (0.5)^{10} · (1−0.5)^{10} = C(20,10) · (0.5)^{20} ≈ 0.176
μ = 20·0.5 = 10, σ = √(20·0.5·0.5) = √5 ≈ 2.236

📎 Excel Cheat Sheet (Binomial)

🧮 Worked Example (n=20, p=0.5)

Think of a 20-question True/False quiz with random guessing.

📈 When to Use Binomial vs Others (Quick Guide)