Q. The probability that an item produced by a factory is defective is p. From a certain lot, a sample of n items is drawn with replacement. If it contains no defective items, the lot is accepted, while if it has more than two defective items, the lot is rejected. If the sample has one or two defective items, an independent sample of m items is drawn with replacement from the lot and combined with the previous sample. If the combined sample does not contain more than two defective items, the batch is accepted. The probability that the batch is accepted is $(q = 1 - p)$
Probability - Part 2
Solution: