Tasks 07-07 - Binomial Distribution

Section 07: Probability & Statistics

Problem 1: Binomial Formula (x)

Identify whether each scenario follows a binomial distribution. If yes, state n, p, and what constitutes a “success.”

  1. Rolling a die 10 times and counting 6s
  2. Surveying people until you find 5 who prefer Brand A
  3. Testing 20 products and counting defectives (defect rate 3%)
  4. Drawing 5 cards from a deck and counting hearts (without replacement)
  1. Yes, binomial. \(n = 10\), \(p = 1/6\), success = rolling a 6

  2. No, not binomial. n is not fixed (negative binomial instead)

  3. Yes, binomial. \(n = 20\), \(p = 0.03\), success = defective

  4. Not strictly binomial because draws are without replacement (hypergeometric). However, if the deck were large enough relative to 5, it could be approximated as binomial.

Problem 2: Calculating Binomial Probabilities (x)

A fair coin is flipped 8 times. Calculate:

  1. \(P(\text{exactly 5 heads})\)
  2. \(P(\text{exactly 0 heads})\)
  3. \(P(\text{at least 1 head})\)
  4. \(P(\text{at most 2 heads})\)

\(n = 8\), \(p = 0.5\)

  1. \(P(X=5) = \binom{8}{5}(0.5)^5(0.5)^3 = 56 \times 0.03125 \times 0.125 = 0.219\)

  2. \(P(X=0) = \binom{8}{0}(0.5)^0(0.5)^8 = 1 \times 1 \times 0.00391 = 0.00391\)

  3. \(P(X \geq 1) = 1 - P(X=0) = 1 - 0.00391 = 0.996\)

  4. \(P(X \leq 2) = P(X=0) + P(X=1) + P(X=2)\) \(= 0.00391 + \binom{8}{1}(0.5)^8 + \binom{8}{2}(0.5)^8\) \(= 0.00391 + 8(0.00391) + 28(0.00391)\) \(= 0.00391 + 0.03125 + 0.1094 = 0.145\)

Problem 3: Quality Control (xx)

A manufacturing process produces items with a 5% defect rate. A sample of 15 items is randomly selected.

  1. What is the probability that exactly 2 items are defective?
  2. What is the probability that at most 1 item is defective?
  3. What is the probability that at least 2 items are defective?
  4. What is the expected number of defective items?
  5. What is the standard deviation?

\(n = 15\), \(p = 0.05\)

  1. \(P(X=2) = \binom{15}{2}(0.05)^2(0.95)^{13} = 105 \times 0.0025 \times 0.513 = 0.135\)

  2. \(P(X \leq 1) = P(X=0) + P(X=1)\) \(P(X=0) = (0.95)^{15} = 0.463\) \(P(X=1) = \binom{15}{1}(0.05)^1(0.95)^{14} = 15 \times 0.05 \times 0.488 = 0.366\) \(P(X \leq 1) = 0.463 + 0.366 = 0.829\)

  3. \(P(X \geq 2) = 1 - P(X \leq 1) = 1 - 0.829 = 0.171\)

  4. \(\mu = np = 15 \times 0.05 = 0.75\) items

  5. \(\sigma = \sqrt{np(1-p)} = \sqrt{15 \times 0.05 \times 0.95} = \sqrt{0.7125} = 0.844\)

Problem 4: Customer Survey (xx)

In a survey, 30% of customers indicate they would recommend a product. If 12 customers are randomly surveyed:

  1. Find \(P(\text{exactly 4 recommend})\)
  2. Find \(P(\text{fewer than 3 recommend})\)
  3. Find \(P(\text{between 3 and 6 inclusive recommend})\)
  4. What’s the most likely number of customers to recommend?

\(n = 12\), \(p = 0.30\)

  1. \(P(X=4) = \binom{12}{4}(0.30)^4(0.70)^8 = 495 \times 0.0081 \times 0.0576 = 0.231\)

  2. \(P(X < 3) = P(X=0) + P(X=1) + P(X=2)\) \(P(X=0) = (0.70)^{12} = 0.0138\) \(P(X=1) = 12(0.30)(0.70)^{11} = 0.0712\) \(P(X=2) = 66(0.30)^2(0.70)^{10} = 0.168\) \(P(X < 3) = 0.0138 + 0.0712 + 0.168 = 0.253\)

  3. \(P(3 \leq X \leq 6) = P(X=3) + P(X=4) + P(X=5) + P(X=6)\) \(P(X=3) = 220(0.30)^3(0.70)^9 = 0.240\) \(P(X=4) = 0.231\) \(P(X=5) = 792(0.30)^5(0.70)^7 = 0.158\) \(P(X=6) = 924(0.30)^6(0.70)^6 = 0.079\) \(P(3 \leq X \leq 6) = 0.240 + 0.231 + 0.158 + 0.079 = 0.708\)

  4. Expected value \(\mu = 12 \times 0.30 = 3.6\) The most likely values are near the mean: \(X = 3\) or \(X = 4\) From calculations: \(P(X=3) = 0.240\), \(P(X=4) = 0.231\) Most likely: 3 customers

Problem 5: Geometric Distribution (xx)

A basketball player makes free throws with 80% accuracy.

  1. What’s the probability the first miss is on the 5th shot?
  2. What’s the probability of making at least 4 shots before the first miss?
  3. On average, how many shots until the first miss?
  4. What’s the probability of missing within the first 3 shots?

Let “success” = miss (p = 0.20)

  1. \(P(X=5) = (0.80)^4 \times 0.20 = 0.4096 \times 0.20 = 0.082\)

  2. \(P(X \geq 5) = (0.80)^4 = 0.410\) (Must make shots 1, 2, 3, 4)

  3. \(E[X] = \frac{1}{p} = \frac{1}{0.20} = 5\) shots on average until miss

  4. \(P(X \leq 3) = P(X=1) + P(X=2) + P(X=3)\) \(= 0.20 + 0.80(0.20) + 0.80^2(0.20)\) \(= 0.20 + 0.16 + 0.128 = 0.488\)

    Or: \(P(X \leq 3) = 1 - P(\text{make first 3}) = 1 - (0.80)^3 = 1 - 0.512 = 0.488\)

Problem 6: Exam-Style Problem (xxx)

A company receives customer complaints with a 2% complaint rate per order. In a day with 200 orders:

  1. Calculate the expected number of complaints
  2. Calculate the standard deviation
  3. Find \(P(\text{exactly 4 complaints})\)
  4. Find \(P(\text{at most 3 complaints})\)
  5. Find \(P(\text{more than 6 complaints})\)
  6. Using the normal approximation with continuity correction, estimate \(P(X \leq 5)\)

\(n = 200\), \(p = 0.02\)

  1. \(\mu = np = 200 \times 0.02 = 4\) complaints

  2. \(\sigma = \sqrt{np(1-p)} = \sqrt{200 \times 0.02 \times 0.98} = \sqrt{3.92} = 1.98\)

  3. \(P(X=4) = \binom{200}{4}(0.02)^4(0.98)^{196}\) \(= 64684950 \times 0.00000016 \times 0.0193 = 0.199\)

  4. \(P(X \leq 3) = P(X=0) + P(X=1) + P(X=2) + P(X=3)\) Using calculator or tables: \(\approx 0.433\)

  5. \(P(X > 6) = 1 - P(X \leq 6) \approx 1 - 0.889 = 0.111\)

  6. Normal approximation: \(\mu = 4\), \(\sigma = 1.98\)

    With continuity correction: \(P(X \leq 5) \approx P(Z \leq \frac{5.5 - 4}{1.98}) = P(Z \leq 0.758) \approx 0.776\)

    (Exact binomial gives approximately 0.785)

Problem 7: Multiple Scenarios (xxx)

A call center receives calls where each has a 15% chance of being a complaint.

  1. In 20 calls, what’s the probability of exactly 3 complaints?
  2. In 20 calls, what’s the probability of at least one complaint?
  3. The center receives calls sequentially. What’s the probability the first complaint is on the 10th call?
  4. On average, after how many calls does the first complaint occur?
  5. If the center handles 100 calls per day, between what numbers would you expect the daily complaint count to fall 95% of the time?
  1. \(n=20\), \(p=0.15\) \(P(X=3) = \binom{20}{3}(0.15)^3(0.85)^{17} = 1140 \times 0.00338 \times 0.0631 = 0.243\)

  2. \(P(X \geq 1) = 1 - P(X=0) = 1 - (0.85)^{20} = 1 - 0.0388 = 0.961\)

  3. Geometric: \(P(X=10) = (0.85)^9 \times 0.15 = 0.231 \times 0.15 = 0.035\)

  4. \(E[X] = \frac{1}{0.15} = 6.67\) calls on average

  5. For \(n=100\), \(p=0.15\): \(\mu = 15\), \(\sigma = \sqrt{100 \times 0.15 \times 0.85} = \sqrt{12.75} = 3.57\)

    95% interval (using \(\mu \pm 2\sigma\)): Lower: \(15 - 2(3.57) = 7.86 \approx 8\) Upper: \(15 + 2(3.57) = 22.14 \approx 22\)

    95% of days will have between 8 and 22 complaints