Combining Conditional Probability Distributions

Mixture of Binomial Distributions — AS Level Statistics

The Problem

A factory produces board pens using two machines. The machines differ in their defect rates, and each contributes a different proportion of the total output.

Machine A

64%
of total production
3%
probability of a defective pen

Machine B

36%
of total production
6%
probability of a defective pen

Question

A sample of 10 pens is taken from the factory output. Let \(X\) be the number of defective pens in the sample.

Find \(\mathrm{P}(X = 2)\).

Why not simply use a Binomial?

The overall probability of a defective pen is:

\[\mathrm{P(defective)} = 0.64\times 0.03 + 0.36\times 0.06 = 0.0192 + 0.0216 = 0.0408\]

It might be tempting to write \(X\sim B(10,\,0.0408)\) — but this gives the wrong answer. The simple Binomial assumes each pen independently has probability 0.0408 of being defective, with that probability identical for all pens. The reality is different: the actual defect probability for each pen depends on which machine made it, and all ten pens in the sample face the same machine.

⚠ Using \(X\sim B(10,\,0.0408)\) gives \(\mathrm{P}(X=2)\approx 0.0537\). The correct mixture answer is \(\approx 0.0559\) — an underestimate of about 4%. We'll see exactly why in Section 2.