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.”
- Rolling a die 10 times and counting 6s
- Surveying people until you find 5 who prefer Brand A
- Testing 20 products and counting defectives (defect rate 3%)
- Drawing 5 cards from a deck and counting hearts (without replacement)
Yes, binomial. \(n = 10\), \(p = 1/6\), success = rolling a 6
No, not binomial. n is not fixed (negative binomial instead)
Yes, binomial. \(n = 20\), \(p = 0.03\), success = defective
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:
- \(P(\text{exactly 5 heads})\)
- \(P(\text{exactly 0 heads})\)
- \(P(\text{at least 1 head})\)
- \(P(\text{at most 2 heads})\)
\(n = 8\), \(p = 0.5\)
\(P(X=5) = \binom{8}{5}(0.5)^5(0.5)^3 = 56 \times 0.03125 \times 0.125 = 0.219\)
\(P(X=0) = \binom{8}{0}(0.5)^0(0.5)^8 = 1 \times 1 \times 0.00391 = 0.00391\)
\(P(X \geq 1) = 1 - P(X=0) = 1 - 0.00391 = 0.996\)
\(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.
- What is the probability that exactly 2 items are defective?
- What is the probability that at most 1 item is defective?
- What is the probability that at least 2 items are defective?
- What is the expected number of defective items?
- What is the standard deviation?
\(n = 15\), \(p = 0.05\)
\(P(X=2) = \binom{15}{2}(0.05)^2(0.95)^{13} = 105 \times 0.0025 \times 0.513 = 0.135\)
\(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\)
\(P(X \geq 2) = 1 - P(X \leq 1) = 1 - 0.829 = 0.171\)
\(\mu = np = 15 \times 0.05 = 0.75\) items
\(\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:
- Find \(P(\text{exactly 4 recommend})\)
- Find \(P(\text{fewer than 3 recommend})\)
- Find \(P(\text{between 3 and 6 inclusive recommend})\)
- What’s the most likely number of customers to recommend?
\(n = 12\), \(p = 0.30\)
\(P(X=4) = \binom{12}{4}(0.30)^4(0.70)^8 = 495 \times 0.0081 \times 0.0576 = 0.231\)
\(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\)
\(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\)
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.
- What’s the probability the first miss is on the 5th shot?
- What’s the probability of making at least 4 shots before the first miss?
- On average, how many shots until the first miss?
- What’s the probability of missing within the first 3 shots?
Let “success” = miss (p = 0.20)
\(P(X=5) = (0.80)^4 \times 0.20 = 0.4096 \times 0.20 = 0.082\)
\(P(X \geq 5) = (0.80)^4 = 0.410\) (Must make shots 1, 2, 3, 4)
\(E[X] = \frac{1}{p} = \frac{1}{0.20} = 5\) shots on average until miss
\(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:
- Calculate the expected number of complaints
- Calculate the standard deviation
- Find \(P(\text{exactly 4 complaints})\)
- Find \(P(\text{at most 3 complaints})\)
- Find \(P(\text{more than 6 complaints})\)
- Using the normal approximation with continuity correction, estimate \(P(X \leq 5)\)
\(n = 200\), \(p = 0.02\)
\(\mu = np = 200 \times 0.02 = 4\) complaints
\(\sigma = \sqrt{np(1-p)} = \sqrt{200 \times 0.02 \times 0.98} = \sqrt{3.92} = 1.98\)
\(P(X=4) = \binom{200}{4}(0.02)^4(0.98)^{196}\) \(= 64684950 \times 0.00000016 \times 0.0193 = 0.199\)
\(P(X \leq 3) = P(X=0) + P(X=1) + P(X=2) + P(X=3)\) Using calculator or tables: \(\approx 0.433\)
\(P(X > 6) = 1 - P(X \leq 6) \approx 1 - 0.889 = 0.111\)
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.
- In 20 calls, what’s the probability of exactly 3 complaints?
- In 20 calls, what’s the probability of at least one complaint?
- The center receives calls sequentially. What’s the probability the first complaint is on the 10th call?
- On average, after how many calls does the first complaint occur?
- If the center handles 100 calls per day, between what numbers would you expect the daily complaint count to fall 95% of the time?
\(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\)
\(P(X \geq 1) = 1 - P(X=0) = 1 - (0.85)^{20} = 1 - 0.0388 = 0.961\)
Geometric: \(P(X=10) = (0.85)^9 \times 0.15 = 0.231 \times 0.15 = 0.035\)
\(E[X] = \frac{1}{0.15} = 6.67\) calls on average
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