Step-by-step explanation:
remember, the number of possible combinations to pick m out of n elements is C(n, m) = n!/(m! × (n-m)!)
50,000 transistors.
4% are defective, that means 4/100 = 1/25 of the whole.
so, the probability for one picked transistor to be defective is 1/25.
and the probability for it to work properly is then 1-1/25 = 24/25.
now, 500 picks are done.
to accept the shipment, 9 or less of these 500 picks must be defective.
the probability is then the sum of the probabilities to get
0 defective = (24/25)⁵⁰⁰
1 defective = (24/25)⁴⁹⁹×1/25 × C(500, 1)
= 24⁴⁹⁹/25⁵⁰⁰ × 500
2 defective = (24/25)⁴⁹⁸×1/25² × C(500, 2)
= 24⁴⁹⁸/25⁵⁰⁰ × 250×499
3 defective = 24⁴⁹⁷/25⁵⁰⁰ × C(500, 3) =
= 24⁴⁹⁷/25⁵⁰⁰ × 250×499×166
...
9 defective = 24⁴⁹¹/25⁵⁰⁰ × C(500, 9) =
= 24⁴⁹¹/25⁵⁰⁰ × 500×499×498×497×496×495×494×493×492×491 /
9×8×7×6×5×4×3×2 =
= 24⁴⁹¹/25⁵⁰⁰ × 50×499×166×71×31×55×494×493×41×491
best to use Excel or another form of spreadsheet to calculate all this and add it all up :
the probability that the engineer will accept the shipment is
0.004376634...
which makes sense, when you think about it, because 10 defect units in the 500 is only 2%. and since the whole shipment contains 4% defect units, it is highly unlikely that the random sample of 500 will pick so overwhelmingly the good pieces.
is the acceptance policy good ?
that completely depends on the circumstances.
what was the requirement about max. faulty rate in the first place ? if it was 2%, then the engineer's approach is basically sound.
it then further depends what are the costs resulting from a faulty unit ? that depends again on when the defect is usually found (still in manufacturing, or already out there at the customer site, or somewhere in between) and how critical the product containing such transistors is. e.g. recalls for products are extremely costly, while simply sorting the bad transistors out during the manufacturing process can be rather cheap. if there is a reliable and quick process to do so.
so, depending on repair, outage and even penalty costs it might be even advisable to have a harder limit during the sample test.
in other words - it depends on experience and the found distribution/probability curve, standard deviation, costs involved and other factors to define the best criteria for the sample test.