Probability: Application Problems (3)

hard 2 min read

Question

In a factory, machines AA, BB and CC produce 25%25\%, 35%35\% and 40%40\% of the total bolts respectively. Of the bolts produced, 5%5\%, 4%4\% and 2%2\% are defective from AA, BB and CC respectively. A bolt is drawn at random and found defective. What is the probability it was made by machine AA?

Solution — Step by Step

Let AA, BB, CC be the events that a bolt is from machine AA, BB, CC. Let DD be the event that a bolt is defective.

Given: P(A)=0.25P(A) = 0.25, P(B)=0.35P(B) = 0.35, P(C)=0.40P(C) = 0.40.

P(DA)=0.05P(D|A) = 0.05, P(DB)=0.04P(D|B) = 0.04, P(DC)=0.02P(D|C) = 0.02.

P(AD)=P(DA)P(A)P(DA)P(A)+P(DB)P(B)+P(DC)P(C)P(A|D) = \tfrac{P(D|A)P(A)}{P(D|A)P(A) + P(D|B)P(B) + P(D|C)P(C)} P(DA)P(A)=0.05×0.25=0.0125P(D|A)P(A) = 0.05 \times 0.25 = 0.0125 P(DB)P(B)=0.04×0.35=0.014P(D|B)P(B) = 0.04 \times 0.35 = 0.014 P(DC)P(C)=0.02×0.40=0.008P(D|C)P(C) = 0.02 \times 0.40 = 0.008 P(D)=0.0125+0.014+0.008=0.0345P(D) = 0.0125 + 0.014 + 0.008 = 0.0345 P(AD)=0.01250.0345=125345=2569P(A|D) = \tfrac{0.0125}{0.0345} = \tfrac{125}{345} = \tfrac{25}{69}

Final answer: P(AD)=2569P(A|D) = \mathbf{\tfrac{25}{69}} (approximately 0.3620.362).

Why This Works

Bayes’ theorem flips conditional probabilities. We knew P(defectmachine A)P(\text{defect} | \text{machine } A), but the question asks P(machine Adefect)P(\text{machine } A | \text{defect}). The theorem gives us the reverse using the law of total probability for the denominator.

A useful sanity check: P(AD)+P(BD)+P(CD)P(A|D) + P(B|D) + P(C|D) must equal 11. Computing P(BD)=0.014/0.0345=28/69P(B|D) = 0.014/0.0345 = 28/69 and P(CD)=16/69P(C|D) = 16/69, we get 25+28+16=6925 + 28 + 16 = 69 ✓.

Alternative Method

Imagine 10001000 bolts. Machine AA produces 250250, of which 5%5\% (12.512.5) are defective. Machine BB: 350×4%=14350 \times 4\% = 14 defective. Machine CC: 400×2%=8400 \times 2\% = 8 defective. Total defective: 34.534.5. Of these, machine A made 12.512.5, so P(AD)=12.5/34.5=25/69P(A|D) = 12.5/34.5 = 25/69. Same answer, no theorem needed.

Common Mistake

Computing P(AD)P(A|D) as just P(DA)=0.05P(D|A) = 0.05 — confusing direction of conditioning. P(DA)P(D|A) asks “given the bolt is from AA, is it defective?”. P(AD)P(A|D) asks “given the bolt is defective, did it come from AA?”. They are very different, and Bayes’ theorem is the bridge.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next