Three percent of the computer chips produced by a machine are defective. These computer chips are delivered to retailers in packages of 20 chips each. Assume that the chips in any package as a random sample of 20 chips from the chips produced by this machine.
(a) A package is selected randomly. What is the probability that the package will contain at least 2 defective chips? Give your answer to four decimal places. Note: At least two means 2 or more.
My attempt:
This passes most of the binomial experiment trials therefore Let $X$ be the number of defective chips. $X$ ~ $Binomial(n = 20, \theta=0.03)$
$P(X \ge 2) = 1 - P(X < 2) = 1 - (P(X = 0) + P(X = 1))$
$= 1 - \binom{20}{0}(0.03)^0(0.97)^{20} - \binom{20}{1}(0.03)^1(0.97)^{19} \approx 0.1198$
(b) We pick packages at random one by one and count how many defective chips are there in each package. If a package contains two or more defective chips, it is not considered as a good package. What is the probability that the tenth package selected is the third package containing at least two defective chips? Give your answer to four decimal places.
I don't get b, I'm sure we need the answer for (a) to do it, not sure how to go about it?
Attempt:
Let $Y$ be the number of good packages before the third bad package. What experiment do I use? It fits the negative binomial definition but not sure how to use it
Given a random variable $Y\sim \text{NB}(r,p)$, then $P(Y=k)$ is the probability of having $k$ successes before the $r$-th failure occurs from a sequence of independent Bernoulli trials with parameter $p$.
In this case $p=P(X<2)\approx 1-0.1198$, as you found out in part (a). The problem asks for the third failure ($r=3$) to happen on the tenth try, so $k=7$.
Hence $$ P(Y=7)=\binom{k+r-1}{k}p^k(1-p)^r=\binom{9}{7}p^7(1-p)^3\approx 36(0.8802)^7(0.1198)^3=0.0253 $$