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

Example 24: Machine set-up: correct, given 2 acceptable items, P=8185P = \frac{81}{85}

ExamplesBayes' theorem · Miscellaneous Examples
The question

If a machine is correctly set up, it produces 90% acceptable items. If it is incorrectly set up, it produces only 40% acceptable items. Past experience shows that 80% of the set ups are correctly done. If after a certain set up, the machine produces 2 acceptable items, find the probability that the machine is correctly setup.

Exam answer

Let AA⁠: the machine produces 2 acceptable items, B1B_1⁠: the set-up is correct, and B2B_2⁠: the set-up is incorrect.

B1B_1 and B2B_2 form a partition of the sample space (a set-up is either correct or incorrect).

P(B1)=80%=45P(B_1) = 80\% = \frac45

P(B2)=1−45=15P(B_2) = 1 - \frac45 = \frac15

An item is acceptable with probability 90%=91090\% = \frac{9}{10} after a correct set-up and 40%=41040\% = \frac{4}{10} after an incorrect one. Taking the two items as independent,

P(A∣B1)=910×910=81100P(A|B_1) = \frac{9}{10}\times\frac{9}{10} = \frac{81}{100} P(A∣B2)=410×410=16100P(A|B_2) = \frac{4}{10}\times\frac{4}{10} = \frac{16}{100}

By the theorem of total probability,

P(A)=P(B1)P(A∣B1)+P(B2)P(A∣B2)=45⋅81100+15⋅16100=324500+16500=340500\begin{aligned} P(A) &= P(B_1)P(A|B_1) \\ &\quad + P(B_2)P(A|B_2) \\ &= \frac45\cdot\frac{81}{100} + \frac15\cdot\frac{16}{100} \\ &= \frac{324}{500} + \frac{16}{500} = \frac{340}{500} \end{aligned}

By Bayes' theorem,

P(B1∣A)=P(B1)P(A∣B1)P(A)=324500÷340500=324340\begin{aligned} P(B_1|A) &= \frac{P(B_1)P(A|B_1)}{P(A)} \\ &= \frac{324}{500} \div \frac{340}{500} \\ &= \frac{324}{340} \end{aligned}

∴\therefore The probability that the machine is correctly set up is 8185≈0.95\dfrac{81}{85} \approx 0.95⁠.

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

The one idea this problem is built on

Two good items are strong evidence of a good set-up. A correct set-up gives two acceptable items with probability 910×910=81100\frac{9}{10} \times \frac{9}{10} = \frac{81}{100}⁠; an incorrect one only 410×410=16100\frac{4}{10} \times \frac{4}{10} = \frac{16}{100}⁠. Combined with the prior 80% for a correct set-up, Bayes' theorem raises the chance of a correct set-up to about 95%.

Given, to find, and the plan
Given
Correct set-up: 90% of items acceptable. Incorrect set-up: 40%. 80% of set-ups are correct. After a set-up, 2 items are produced and both are acceptable.
To find
The probability that the set-up is correct, given the 2 acceptable items: P(B1∣A)P(B_1|A)⁠.
Plan
(1) Name the events. (2) Percentages as fractions; P(A∣Bi)P(A|B_i) by the product rule for the two items. (3) Total probability for P(A)P(A)⁠. (4) Bayes' theorem.

Basics you need

1Percentages as fractions

90%=91090\% = \frac{9}{10}⁠, 40%=41040\% = \frac{4}{10}⁠, 80%=4580\% = \frac45⁠. Basics: working with fractions

2Independent events (Section 13.4)

For independent items, P(both acceptable) = P(first acceptable) × P(second acceptable). Lesson: independent events

3Theorem of total probability (Section 13.5.2)

P(A)=P(B1)P(A∣B1)+P(B2)P(A∣B2)P(A) = P(B_1)P(A|B_1) + P(B_2)P(A|B_2)⁠. Lesson: total probability and Bayes' theorem

4Bayes' theorem (Section 13.5)

P(B1∣A)=P(B1)P(A∣B1)P(A)P(B_1|A) = \frac{P(B_1)P(A|B_1)}{P(A)}⁠. Lesson: Bayes' theorem

Solution

  1. Name the events

    Let

    • AA⁠: the machine produces 2 acceptable items;
    • B1B_1⁠: the set-up is correct;
    • B2B_2⁠: the set-up is incorrect.

    B2B_2 is the complement of B1B_1⁠, so B1B_1 and B2B_2 form a partition of the sample space.

    The set-up is the hidden cause; the two acceptable items are what we observe. We want the probability of the cause "correct set-up" after seeing them.
    {B1,B2}\{B_1, B_2\} is a partition. Lesson: Bayes' theorem
  2. The probabilities of the causes

    P(B1)=80%=45,P(B2)=1−45=15.\begin{aligned} P(B_1) &= 80\% = \frac45, \\ P(B_2) &= 1 - \frac45 = \frac15. \end{aligned}
    "80% of the set ups are correctly done" is the chance of a correct set-up before we see any items. The book writes these as 0.8 and 0.2.
    P(B2)=1−P(B1)P(B_2) = 1 - P(B_1)⁠. Basics: rules of probability
  3. The chance of 2 acceptable items for each set-up

    After a correct set-up each item is acceptable with probability 910\frac{9}{10}⁠; after an incorrect one with probability 410\frac{4}{10}⁠. Taking the two items as independent of each other (given the set-up),

    P(A∣B1)=910×910=81100,P(A∣B2)=410×410=16100.\begin{aligned} P(A|B_1) &= \frac{9}{10} \times \frac{9}{10} = \frac{81}{100}, \\ P(A|B_2) &= \frac{4}{10} \times \frac{4}{10} = \frac{16}{100}. \end{aligned}
    The question gives the rate for one item; we need both items acceptable. The book multiplies the rates (0.9×0.90.9 \times 0.9 and 0.4×0.40.4 \times 0.4⁠), which assumes that, once the set-up is fixed, whether one item is acceptable does not affect the other. The question does not say this in words, but it is the natural reading and the book's.
    Independent: P(both)=P(first) P(second)P(\text{both}) = P(\text{first})\,P(\text{second})⁠. Lesson: independent events
  4. The chance of 2 acceptable items: total probability

    By the theorem of total probability,

    P(A)=P(B1)P(A∣B1)+P(B2)P(A∣B2)=45⋅81100+15⋅16100=324500+16500=340500.\begin{aligned} P(A) &= P(B_1)P(A|B_1) \\ &\quad + P(B_2)P(A|B_2) \\ &= \frac45\cdot\frac{81}{100} + \frac15\cdot\frac{16}{100} \\ &= \frac{324}{500} + \frac{16}{500} = \frac{340}{500}. \end{aligned}
    start set-up 2 items multiply along the path set-up B₁: correct A: both good 4/5 × 81/100 = 81/125 A′: not both 4/5 × 19/100 B₂: incorrect A: both good 1/5 × 16/100 = 4/125 A′: not both 1/5 × 84/100 4/5 81/100 19/100 1/5 16/100 84/100
    The tree for Example 24. Two acceptable items come after a correct set-up (rose path, 81125=324500\frac{81}{125} = \frac{324}{500}⁠) or after an incorrect one (green path, 4125=16500\frac{4}{125} = \frac{16}{500}⁠).
    The two paths cannot both happen, so they add. In decimals they are the book's 0.8×0.9×0.9=0.6480.8 \times 0.9 \times 0.9 = 0.648 and 0.2×0.4×0.4=0.0320.2 \times 0.4 \times 0.4 = 0.032⁠, with sum 0.68.
    Multiply along a path, add the paths. Basics: tree diagrams
  5. Correct set-up, given 2 acceptable items: Bayes' theorem

    By Bayes' theorem,

    P(B1∣A)=P(B1)P(A∣B1)P(A)=324500÷340500=324340=8185≈0.9529.\begin{aligned} P(B_1|A) &= \frac{P(B_1)P(A|B_1)}{P(A)} \\ &= \frac{324}{500} \div \frac{340}{500} = \frac{324}{340} \\ &= \frac{81}{85} \approx 0.9529. \end{aligned}
    The top is the correct-set-up path; the bottom is all ways of getting 2 acceptable items. The 500 cancels, and 324=4×81324 = 4 \times 81⁠, 340=4×85340 = 4 \times 85⁠. 81=3481 = 3^4 and 85=5×1785 = 5 \times 17 share no factor. The book writes 648680=0.95\frac{648}{680} = 0.95⁠: 648680\frac{648}{680} is the same fraction (648=8×81648 = 8 \times 81⁠, 680=8×85680 = 8 \times 85⁠); its exact value is 8185≈0.9529\frac{81}{85} \approx 0.9529⁠, and 0.95 is that value rounded to two decimal places.
    Simplify by the highest common factor. Basics: working with fractions
  6. What the answer means

    Before any items were seen, a correct set-up had probability 45=0.8\frac45 = 0.8⁠. Two acceptable items raise it to 8185≈0.95\frac{81}{85} \approx 0.95⁠. An incorrect set-up keeps P(B2∣A)=16340=485P(B_2|A) = \frac{16}{340} = \frac{4}{85}⁠, and 8185+485=1\frac{81}{85} + \frac{4}{85} = 1⁠.

    Two acceptable items are about 5 times as likely after a correct set-up as after an incorrect one (81100\frac{81}{100} against 16100\frac{16}{100}⁠), so they shift the odds strongly towards a correct set-up.
    For a partition, P(B1∣A)+P(B2∣A)=1P(B_1|A) + P(B_2|A) = 1⁠. Lesson: Bayes' theorem
Result

The probability that the machine is correctly set up is 8185≈0.95\frac{81}{85} \approx 0.95⁠.

(Textbook answer: 648680=0.95\frac{648}{680} = 0.95⁠. The fraction 648680\frac{648}{680} equals 8185\frac{81}{85}⁠, whose exact value is about 0.9529; the book's 0.95 is this value rounded to two decimal places.)

Check it with numbers

Picture 1000 set-ups. 800 are correct, and both items are acceptable after 81% of them, 648 set-ups. 200 are incorrect, and both items are acceptable after 16% of them, 32 set-ups. So 2 acceptable items appear after 648+32=680648 + 32 = 680 set-ups, and 648 of those were correct: 648680≈0.9529\frac{648}{680} \approx 0.9529⁠, the same as 8185≈0.9529\frac{81}{85} \approx 0.9529⁠.

Common mistakes
  1. Using 0.9 instead of 0.9×0.90.9 \times 0.9⁠. The machine produced 2 acceptable items; one acceptable item would have probability 0.9, two have 0.92=0.810.9^2 = 0.81 (and 0.42=0.160.4^2 = 0.16 for an incorrect set-up).
  2. Answering 0.8. That is the probability of a correct set-up before the items are seen; the question gives new information.
  3. Calling 0.95 exact. The exact answer is 8185\frac{81}{85}⁠; 0.95 is a rounded value.
What to take away
  1. When the evidence is several independent observations, P(evidence∣cause)P(\text{evidence} \mid \text{cause}) is a product, and Bayes' theorem uses it as usual.
  2. More evidence moves the probability further: with one acceptable item the answer would be 0.8×0.90.8×0.9+0.2×0.4=7280=910\frac{0.8 \times 0.9}{0.8 \times 0.9 + 0.2 \times 0.4} = \frac{72}{80} = \frac{9}{10}⁠; with two it is 8185\frac{81}{85}⁠.
  3. For another two-cause question with percentages, see Exercise 13.3, Question 8.

Every fact used, and where it comes from

FactUsed inSource
An event and its complement form a partitionStep 1Section 13.5.1 (Lesson: Bayes' theorem)
x%=x100x\% = \frac{x}{100}⁠; P(B2)=1−P(B1)P(B_2) = 1 - P(B_1)Step 2Class XI (Basics: rules of probability)
Product rule for independent eventsStep 3Section 13.4 (Lesson: independent events)
Theorem of total probabilityStep 4Section 13.5.2 (Lesson: total probability)
Bayes' theoremSteps 5, 6Section 13.5 (Examples 22 to 24)
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 →