Hello Sela,
If the number of tablets in a shipment is sufficiently large, we can consider the testing procedure you describe (selecting a random sample of 29 ibuprofen tablets and counting the number of defective tablets in the sample) to be a binomial probability experiment.
Let X = (Number of defective ibuprofen tablets in a random sample of 29 tablets.) Then we may reasonably assume that X follows a binomial distribution. For each "trial" (that is, each tablet selected), there are two possible outcomes, "success" (the tablet is defective), or "failure" (the tablet is not defective). Note that the word success as used in the binomial distribution does not carry the connotation of being a "good" outcome. A "success" is simply the outcome you are interested in counting, which in this case is the number of defectives in the sample. The important parameters for a binomial distribution are n (the number of trials) and p (the probability of success on any one trial.) For this situation, we have p = .01 (since we are told 1% of the tablets in the shipment are defective) and n = 29. The general formula for the binomial distribution is
P(x) = nCx·px·(1 - p)n-x
where x is the number of successes in n trials (In this problem, x is the number of defectives in a random sample of 29 tablets.) The symbol nCx is the "number of combinations of n things taken x at a time". This is the number ways of choosing x distinct objects from a set of n objects, without regard to order. It is given by
nCx = n!/[x!·(n-x)!]
where ! is the factorial symbol.
We want to find the probability that the shipment is accepted. We are told that a shipment will be accepted if at most one tablet doesn't meet the required specifications. That is, the number of defectives must be less than or equal to one.
P(Shipment accepted) = P(X ≤ 1). (In this case, X ≤ 1 if and only if X=0 or X=1)
= P(0) + P(1).
So we calculate P(0) (the probability of 0 defective tablets in the shipment), and P(1) (the probability of 1 defective.) Using the formula for the binomial distribution, we have
P(0) = 29C0·(.01)0·(1 - .01)29 - 0.
But 29C0 = 1, so
P(0) = 1·(.01)0·(.99)29 ≅ .74717
Also,
P(1) = 29C1·(.01)1·(1 - .01)29 - 1.
Calculating 29C1, we have
29C1 = 29!/[1!·(29-1)!] = 29, so
P(1) = 29·(.01)1·(99)28
P(1) ≅ .21887
Finally, then, we have
P(Shipment accepted) ≅ .74717 + .21887 ≅ .9660 (to 4 decimal places.)
Hope that helps! Let me know if need any further explanation.
William