Probability DistributionsTopic #13 of 33

Binomial Distribution

Distribution of successes in n independent trials: probability formula and applications.

Overview

The binomial distribution models the number of successes in a fixed number of independent trials, where each trial has only two outcomes (success/failure).

Conditions (BINS)

  • Binary: Two outcomes (success/failure)
  • Independent: Trials are independent
  • Number: Fixed number of trials (nn)
  • Success: Same probability of success (pp) for each trial

Parameters

  • nn: Number of trials
  • pp: Probability of success on each trial
  • q=1pq = 1 - p: Probability of failure

Probability Mass Function

The probability of exactly kk successes in nn trials:

P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} p^k (1-p)^{n-k} =n!k!(nk)!pkqnk= \frac{n!}{k!(n-k)!} p^k q^{n-k}

Where:

  • (nk)\binom{n}{k} is the binomial coefficient "n choose k"
  • k=0,1,2,,nk = 0, 1, 2, \ldots, n

Key Formulas

Mean (Expected Value)

μ=E(X)=np\mu = E(X) = np

Variance

σ2=Var(X)=np(1p)=npq\sigma^2 = \text{Var}(X) = np(1-p) = npq

Standard Deviation

σ=npq\sigma = \sqrt{npq}

Notation

XBinomial(n,p)X \sim \text{Binomial}(n, p)

or

XB(n,p)X \sim B(n, p)

Cumulative Probability

P(Xk)=i=0k(ni)pi(1p)niP(X \leq k) = \sum_{i=0}^{k} \binom{n}{i} p^i (1-p)^{n-i}

Using Complement

P(Xk)=1P(Xk1)P(X \geq k) = 1 - P(X \leq k-1) P(X>k)=1P(Xk)P(X > k) = 1 - P(X \leq k)

Examples

Example 1: Basic Calculation

Fair coin flipped 5 times. P(exactly 3 heads)P(\text{exactly 3 heads})?

n=5,p=0.5,k=3n = 5, \quad p = 0.5, \quad k = 3 P(X=3)=(53)(0.5)3(0.5)2=10×0.125×0.25=0.3125P(X = 3) = \binom{5}{3} (0.5)^3 (0.5)^2 = 10 \times 0.125 \times 0.25 = 0.3125

Example 2: Quality Control

A machine produces items with 10% defective rate. In a batch of 20 items:

n=20,p=0.10n = 20, \quad p = 0.10 E(defective)=20×0.10=2 itemsE(\text{defective}) = 20 \times 0.10 = 2 \text{ items} SD=20×0.10×0.90=1.8=1.34 itemsSD = \sqrt{20 \times 0.10 \times 0.90} = \sqrt{1.8} = 1.34 \text{ items}

P(exactly 0 defective)P(\text{exactly 0 defective}):

P(X=0)=(200)(0.10)0(0.90)20=1×1×0.1216=0.1216P(X = 0) = \binom{20}{0} (0.10)^0 (0.90)^{20} = 1 \times 1 \times 0.1216 = 0.1216

Example 3: At Least One Success

P(at least 1 six in 4 die rolls)P(\text{at least 1 six in 4 die rolls})?

n=4,p=16n = 4, \quad p = \frac{1}{6} P(X1)=1P(X=0)=1(40)(16)0(56)4P(X \geq 1) = 1 - P(X = 0) = 1 - \binom{4}{0} \left(\frac{1}{6}\right)^0 \left(\frac{5}{6}\right)^4 =1(56)4=10.482=0.518= 1 - \left(\frac{5}{6}\right)^4 = 1 - 0.482 = 0.518

Example 4: Multiple Values

90% success rate on free throws. In 10 attempts, P(8 or more)P(8 \text{ or more})?

P(X8)=P(X=8)+P(X=9)+P(X=10)P(X \geq 8) = P(X=8) + P(X=9) + P(X=10) P(8)=(108)(0.9)8(0.1)2=45×0.4305×0.01=0.1937P(8) = \binom{10}{8}(0.9)^8(0.1)^2 = 45 \times 0.4305 \times 0.01 = 0.1937 P(9)=(109)(0.9)9(0.1)1=10×0.3874×0.1=0.3874P(9) = \binom{10}{9}(0.9)^9(0.1)^1 = 10 \times 0.3874 \times 0.1 = 0.3874 P(10)=(1010)(0.9)10=0.3487P(10) = \binom{10}{10}(0.9)^{10} = 0.3487 P(X8)=0.1937+0.3874+0.3487=0.9298P(X \geq 8) = 0.1937 + 0.3874 + 0.3487 = 0.9298

Normal Approximation

When nn is large, binomial can be approximated by normal:

XN(np,npq)X \sim N(np, \sqrt{npq})

Rule of thumb: Use when np10np \geq 10 AND n(1p)10n(1-p) \geq 10

With continuity correction:

P(X=k)P(k0.5<Y<k+0.5)P(X = k) \approx P(k - 0.5 < Y < k + 0.5)

where YN(np,npq)Y \sim N(np, \sqrt{npq})