Class 12 Maths, Worked in Full Past papersGet updates
Chapter 13 · Probability

Exercise 13.3 · Q11: Three operators: defective item produced by A, P=534P = \frac{5}{34}

Exercise 13.3Bayes' theorem · Section 13.5
The question

A manufacturer has three machine operators A, B and C. The first operator A produces 1% defective items, where as the other two operators B and C produce 5% and 7% defective items respectively. A is on the job for 50% of the time, B is on the job for 30% of the time and C is on the job for 20% of the time. A defective item is produced, what is the probability that it was produced by A?

(The book prints "where as", a misprint for "whereas".)

Exam answer

Let E1E_1⁠: the item is produced by operator A, E2E_2⁠: by operator B, E3E_3⁠: by operator C, and DD⁠: the item is defective.

E1E_1⁠, E2E_2 and E3E_3 form a partition of the sample space (each item is produced by exactly one operator).

Taking the share of time on the job as the share of items produced,

P(E1)=50%=12P(E_1) = 50\% = \frac12

P(E2)=30%=310P(E_2) = 30\% = \frac{3}{10}

P(E3)=20%=15P(E_3) = 20\% = \frac15

P(D∣E1)=1%=1100P(D|E_1) = 1\% = \frac{1}{100}

P(D∣E2)=5%=5100P(D|E_2) = 5\% = \frac{5}{100}

P(D∣E3)=7%=7100P(D|E_3) = 7\% = \frac{7}{100}

By the theorem of total probability,

P(D)=P(E1)P(D∣E1)+P(E2)P(D∣E2)+P(E3)P(D∣E3)=12⋅1100+310⋅5100+15⋅7100=51000+151000+141000=341000\begin{aligned} P(D) &= P(E_1)P(D|E_1) \\ &\quad + P(E_2)P(D|E_2) \\ &\quad + P(E_3)P(D|E_3) \\ &= \frac12\cdot\frac{1}{100} + \frac{3}{10}\cdot\frac{5}{100} \\ &\quad + \frac15\cdot\frac{7}{100} \\ &= \frac{5}{1000} + \frac{15}{1000} + \frac{14}{1000} \\ &= \frac{34}{1000} \end{aligned}

By Bayes' theorem,

P(E1∣D)=P(E1)P(D∣E1)P(D)=51000÷341000=51000×100034\begin{aligned} P(E_1|D) &= \frac{P(E_1)P(D|E_1)}{P(D)} \\ &= \frac{5}{1000} \div \frac{34}{1000} \\ &= \frac{5}{1000} \times \frac{1000}{34} \end{aligned}

∴\therefore The probability that the defective item was produced by A is 534\dfrac{5}{34}⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

A defective item was made by A, B or C. Operator A is on the job longest, but A's defect rate is by far the lowest, so A makes only a small share of the defective items. Bayes' theorem gives that share: A's route to a defective item divided by all three routes.

Given, to find, and the plan
Given
Operators A, B and C produce 1%, 5% and 7% defective items. A is on the job 50% of the time, B 30% and C 20%. A defective item has been produced.
To find
The probability that it was produced by A: P(E1∣D)P(E_1|D)⁠.
Plan
(1) Name the three causes and the result; check the partition. (2) Turn the percentages into fractions, reading time on the job as share of items. (3) Total probability with three terms. (4) Bayes' theorem.

Basics you need

1Percentages as fractions

50%=1250\% = \frac12⁠, 30%=31030\% = \frac{3}{10}⁠, 20%=1520\% = \frac15⁠, and a%=a100a\% = \frac{a}{100} for the defect rates. Basics: classical probability

2"Respectively" means one rate per operator

"B and C produce 5% and 7% defective items respectively" gives P(D∣E2)=5%P(D|E_2) = 5\% and P(D∣E3)=7%P(D|E_3) = 7\%⁠. Lesson: conditional probability

3Total probability and Bayes' theorem with three causes

P(D)P(D) is the sum of three paths, and P(E1∣D)P(E_1|D) is the E1E_1 path divided by P(D)P(D)⁠. Lesson: Bayes' theorem

4Common denominators

1200=51000\frac{1}{200} = \frac{5}{1000}⁠, 151000\frac{15}{1000} and 7500=141000\frac{7}{500} = \frac{14}{1000} add easily. Basics: dividing by a fraction

Solution

  1. Name the events

    Let

    • E1E_1⁠: the item is produced by operator A;
    • E2E_2⁠: the item is produced by operator B;
    • E3E_3⁠: the item is produced by operator C;
    • DD⁠: the item is defective.

    E1E_1⁠, E2E_2⁠, E3E_3 form a partition of the sample space (the items produced): each item is produced by exactly one operator, and each operator produces some items.

    The operator is the cause; "defective" is the result we observe. We write DD for the result because A, B and C already name the operators.
    Partition: pairwise disjoint, exhaustive, nonzero probabilities (Section 13.5.1). Lesson: Bayes' theorem
  2. The six probabilities as fractions

    The question gives each operator's share of the time on the job. Reading that as each operator's share of the items produced (the operators work at the same rate), the chance that an item was produced by each operator is

    P(E1)=50%=12,P(E2)=30%=310,P(E3)=20%=15,\begin{aligned} P(E_1) &= 50\% = \frac12, \\ P(E_2) &= 30\% = \frac{3}{10}, \\ P(E_3) &= 20\% = \frac15, \end{aligned}

    and the defect rates, converted from percentages, are

    P(D∣E1)=1%=1100,P(D∣E2)=5%=5100,P(D∣E3)=7%=7100.\begin{aligned} P(D|E_1) &= 1\% = \frac{1}{100}, \\ P(D|E_2) &= 5\% = \frac{5}{100}, \\ P(D|E_3) &= 7\% = \frac{7}{100}. \end{aligned}
    The question does not say how fast each operator works; the intended reading (and the one behind the book's answer 534\frac{5}{34}⁠) is that items are produced at the same rate whoever is on the job, so time shares are item shares. The defect rates are measured inside each operator's own output, so they are conditional probabilities.
    a%=a100a\% = \frac{a}{100}⁠; a rate inside one group is a conditional probability. Lesson: conditional probability
  3. The chance of a defective item

    Since E1E_1⁠, E2E_2⁠, E3E_3 form a partition, by the theorem of total probability

    P(D)=P(E1)P(D∣E1)+P(E2)P(D∣E2)+P(E3)P(D∣E3)=12⋅1100+310⋅5100+15⋅7100=1200+151000+7500=51000+151000+141000=341000.\begin{aligned} P(D) &= P(E_1)P(D|E_1) \\ &\quad + P(E_2)P(D|E_2) \\ &\quad + P(E_3)P(D|E_3) \\ &= \frac12\cdot\frac{1}{100} + \frac{3}{10}\cdot\frac{5}{100} \\ &\quad + \frac15\cdot\frac{7}{100} \\ &= \frac{1}{200} + \frac{15}{1000} + \frac{7}{500} \\ &= \frac{5}{1000} + \frac{15}{1000} + \frac{14}{1000} \\ &= \frac{34}{1000}. \end{aligned}
    start operator item multiply along the path item E₁: operator A D: defective 1/2 × 1/100 = 5/1000 D′: good 1/2 × 99/100 E₂: operator B D: defective 3/10 × 5/100 = 15/1000 D′: good 3/10 × 95/100 E₃: operator C D: defective 1/5 × 7/100 = 14/1000 D′: good 1/5 × 93/100 1/2 1/100 99/100 3/10 5/100 95/100 1/5 7/100 93/100
    The tree for Question 11. The rose path (operator A, then defective) has product 51000\frac{5}{1000}⁠; the B and C defective paths (green) have 151000\frac{15}{1000} and 141000\frac{14}{1000}⁠. Together, P(D)=341000P(D) = \frac{34}{1000}⁠.
    A defective item comes from exactly one operator, so the three path probabilities add. Keeping 341000\frac{34}{1000} unsimplified makes the next step easy, because the 1000 cancels.
    Multiply along a path, add the paths. Basics: tree diagrams
  4. Produced by A, given defective: Bayes' theorem

    By Bayes' theorem,

    P(E1∣D)=P(E1)P(D∣E1)P(D)=51000÷341000=51000×100034=534.\begin{aligned} P(E_1|D) &= \frac{P(E_1)P(D|E_1)}{P(D)} \\ &= \frac{5}{1000} \div \frac{34}{1000} \\ &= \frac{5}{1000} \times \frac{1000}{34} = \frac{5}{34}. \end{aligned}
    The top is operator A's path to a defective item; the bottom is all three paths. Out of every 34 parts of defect probability, only 5 belong to A. The fraction 534\frac{5}{34} is in lowest terms, since 34=2×1734 = 2 \times 17 has no factor 5.
    Dividing by a fraction is multiplying by its flip. Basics: dividing by a fraction
  5. A quick sense check

    For the other operators, P(E2∣D)=1534P(E_2|D) = \frac{15}{34} and P(E3∣D)=1434=717P(E_3|D) = \frac{14}{34} = \frac{7}{17}⁠. Then 534+1534+1434=1\frac{5}{34} + \frac{15}{34} + \frac{14}{34} = 1⁠.

    Operator A produces half of all items but only 534≈0.147\frac{5}{34} \approx 0.147 of the defective ones, because A's defect rate is the lowest.

    A defective item was produced by exactly one operator, so the three updated probabilities must add to 1.
    The posterior probabilities of a partition add to 1. Lesson: Bayes' theorem
Result

The probability that the defective item was produced by A is 534\frac{5}{34}⁠. (Textbook answer: 534\frac{5}{34}⁠.)

Check it with numbers

Picture 1000 items. A produces 500 of them, and 0.01×500=50.01 \times 500 = 5 are defective; B produces 300, with 0.05×300=150.05 \times 300 = 15 defective; C produces 200, with 0.07×200=140.07 \times 200 = 14 defective. So 5+15+14=345 + 15 + 14 = 34 items are defective, and A's share is 534≈0.1471\frac{5}{34} \approx 0.1471⁠.

Common mistakes
  1. Answering 12\frac12⁠. That is A's share of all items, before we know the item is defective.
  2. Answering 1%. That is P(D∣E1)P(D|E_1)⁠, the chance that A's item is defective, not the chance that a defective item is A's.
  3. Mixing up the pairs. The 1%, 5%, 7% defect rates and the 50%, 30%, 20% time shares belong to A, B, C in that order.
  4. Adding the percentages without weights. 1%+5%+7%1\% + 5\% + 7\% means nothing here; each rate must be weighted by its operator's share.
What to take away
  1. When the causes are shares of time, check that they add to 100% (here 50+30+20=10050 + 30 + 20 = 100⁠) and read them as the first-stage probabilities.
  2. A large share of the work with a low defect rate can still mean a small share of the defects.
  3. Book Example 19 has the same three-machine shape (Examples 15 to 21); Question 8 is the two-machine version.

Every fact used, and where it comes from

FactUsed inSource
Partition of a sample spaceStep 1Section 13.5.1 (Lesson: Bayes' theorem)
Percentages as probabilitiesStep 2Classical probability, Class XI (Basics: classical probability)
Conditional probability P(D∣E)P(D|E)Step 2Section 13.2 (Lesson: conditional probability)
Theorem of total probability (three events)Step 3Section 13.5.2 (Lesson: Bayes' theorem)
Bayes' theoremSteps 4, 5Section 13.5; Example 19 has three machines (Examples 15 to 21)
Common denominators; dividing by a fractionSteps 3, 4Arithmetic (Basics: dividing by a fraction)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →