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

Exercise 13.3 · Q4: Knows or guesses: knew the answer, given it is correct, P=1213P = \frac{12}{13}

Exercise 13.3Bayes' theorem · Section 13.5
The question

In answering a question on a multiple choice test, a student either knows the answer or guesses. Let 34\frac34 be the probability that he knows the answer and 14\frac14 be the probability that he guesses. Assuming that a student who guesses at the answer will be correct with probability 14\frac14⁠. What is the probability that the student knows the answer given that he answered it correctly?

Exam answer

Let E1E_1⁠: the student knows the answer, E2E_2⁠: the student guesses the answer, and AA⁠: the answer is correct.

E1E_1 and E2E_2 form a partition of the sample space (he either knows or guesses).

P(E1)=34P(E_1) = \frac34 and P(E2)=14P(E_2) = \frac14

A student who knows the answer answers correctly, so P(A∣E1)=1P(A|E_1) = 1⁠. Also P(A∣E2)=14P(A|E_2) = \frac14⁠.

By the theorem of total probability,

P(A)=P(E1)P(A∣E1)+P(E2)P(A∣E2)=34⋅1+14⋅14=1216+116=1316\begin{aligned} P(A) &= P(E_1)P(A|E_1) \\ &\quad + P(E_2)P(A|E_2) \\ &= \frac34\cdot 1 + \frac14\cdot\frac14 \\ &= \frac{12}{16} + \frac{1}{16} = \frac{13}{16} \end{aligned}

By Bayes' theorem,

P(E1∣A)=P(E1)P(A∣E1)P(A)=34÷1316=34×1613\begin{aligned} P(E_1|A) &= \frac{P(E_1)P(A|E_1)}{P(A)} \\ &= \frac34 \div \frac{13}{16} \\ &= \frac34 \times \frac{16}{13} \end{aligned}

∴\therefore The probability that the student knows the answer, given that it is correct, is 1213\dfrac{12}{13}⁠.

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

The one idea this problem is built on

A correct answer can come from knowing or from a lucky guess. Knowing always gives a correct answer, while guessing rarely does, so a correct answer is strong evidence that the student knew. Bayes' theorem measures how strong: the "knows" route to a correct answer, divided by both routes together.

Given, to find, and the plan
Given
The student knows the answer with probability 34\frac34 and guesses with probability 14\frac14⁠; a guess is correct with probability 14\frac14⁠. Not written, but meant: a student who knows the answer gives the correct answer.
To find
The probability that he knew the answer, given that his answer is correct: P(E1∣A)P(E_1|A)⁠.
Plan
(1) Name the events; check the partition. (2) List the four probabilities, including P(A∣E1)=1P(A|E_1) = 1⁠. (3) Total probability for P(A)P(A)⁠. (4) Bayes' theorem.

Basics you need

1A certain event has probability 1

If knowing the answer always leads to a correct answer, then P(correct∣knows)=1P(\text{correct} \mid \text{knows}) = 1⁠. Basics: rules of probability

2Conditional probability (Section 13.2)

"A student who guesses will be correct with probability 14\frac14" is a statement about guessers only: P(A∣E2)=14P(A|E_2) = \frac14⁠. Lesson: conditional probability

3Total probability and Bayes' theorem (Section 13.5)

For a partition E1,E2E_1, E_2⁠: P(A)=∑P(Ei)P(A∣Ei)P(A) = \sum P(E_i)P(A|E_i) and P(E1∣A)=P(E1)P(A∣E1)P(A)P(E_1|A) = \frac{P(E_1)P(A|E_1)}{P(A)}⁠. Lesson: Bayes' theorem

4Fractions with a common denominator

34=1216\frac34 = \frac{12}{16}⁠, so 34+116=1316\frac34 + \frac{1}{16} = \frac{13}{16}⁠; dividing by 1316\frac{13}{16} is multiplying by 1613\frac{16}{13}⁠. Basics: dividing by a fraction

Solution

  1. Name the events

    Let

    • E1E_1⁠: the student knows the answer;
    • E2E_2⁠: the student guesses the answer;
    • AA⁠: the student answers the question correctly.

    E1E_1 and E2E_2 form a partition of the sample space: the question says he "either knows the answer or guesses", so exactly one happens, and 34+14=1\frac34 + \frac14 = 1⁠.

    Knowing and guessing are the two possible causes; a correct answer is the result we observe. Bayes' theorem works backwards from the result to the cause.
    Partition: pairwise disjoint, exhaustive, nonzero probabilities (Section 13.5.1). Lesson: Bayes' theorem
  2. The four probabilities

    P(E1)=34,P(E2)=14,\begin{aligned} P(E_1) &= \frac34, \\ P(E_2) &= \frac14, \end{aligned} P(A∣E1)=1,P(A∣E2)=14.\begin{aligned} P(A|E_1) &= 1, \\ P(A|E_2) &= \frac14. \end{aligned}
    The first three come straight from the question. P(A∣E1)=1P(A|E_1) = 1 is not printed, but it is what "knows the answer" means: a student who knows the answer marks it correctly. The book's answer 1213\frac{12}{13} uses this value too (Step 4).
    A certain event has probability 1. Basics: rules of probability
  3. The chance of a correct answer

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

    P(A)=P(E1)P(A∣E1)+P(E2)P(A∣E2)=34⋅1+14⋅14=1216+116=1316.\begin{aligned} P(A) &= P(E_1)P(A|E_1) \\ &\quad + P(E_2)P(A|E_2) \\ &= \frac34\cdot 1 + \frac14\cdot\frac14 \\ &= \frac{12}{16} + \frac{1}{16} = \frac{13}{16}. \end{aligned}
    start knows or guesses answer multiply along the path student E₁: knows A: correct 3/4 × 1 = 3/4 A′: wrong 3/4 × 0 = 0 E₂: guesses A: correct 1/4 × 1/4 = 1/16 A′: wrong 1/4 × 3/4 = 3/16 3/4 1 0 1/4 1/4 3/4
    The tree for Question 4. Knowing leads to a correct answer every time (the rose path, 34\frac34⁠); guessing leads to a correct answer only a quarter of the time (the green path, 116\frac{1}{16}⁠).
    A correct answer comes either from knowing or from a lucky guess; these two routes cannot both happen, so their path probabilities add.
    Multiply along a path, add the paths. Basics: tree diagrams
  4. Knew it, given it is correct: Bayes' theorem

    By Bayes' theorem,

    P(E1∣A)=P(E1)P(A∣E1)P(A)=34÷1316=34×1613=1213.\begin{aligned} P(E_1|A) &= \frac{P(E_1)P(A|E_1)}{P(A)} \\ &= \frac34 \div \frac{13}{16} \\ &= \frac34 \times \frac{16}{13} = \frac{12}{13}. \end{aligned}
    The top is the "knows" path, 34×1=34\frac34 \times 1 = \frac34⁠; the bottom is every route to a correct answer, 1316\frac{13}{16}⁠. Out of every 13 correct answers, on average 12 come from knowing and 1 from a lucky guess.
    Dividing by a fraction is multiplying by its flip. Basics: dividing by a fraction
  5. A quick sense check

    The guess route gets the rest: P(E2∣A)=116÷1316=113P(E_2|A) = \frac{1}{16} \div \frac{13}{16} = \frac{1}{13}⁠, and 1213+113=1\frac{12}{13} + \frac{1}{13} = 1⁠. The correct answer raised the chance that he knew from 34=0.75\frac34 = 0.75 to 1213≈0.923\frac{12}{13} \approx 0.923⁠.

    A correct answer is more likely after knowing than after guessing (1 against 14\frac14⁠), so seeing it must make "knows" more likely, never less.
    P(E1∣A)+P(E2∣A)=1P(E_1|A) + P(E_2|A) = 1 for a partition. Lesson: Bayes' theorem
Result

The probability that the student knows the answer, given that he answered it correctly, is 1213\frac{12}{13}⁠. (Textbook answer: 1213\frac{12}{13}⁠.)

Check it with numbers

Picture 64 students answering the question. 34\frac34 of them, 48, know the answer and are all correct. The other 16 guess, and 14\frac14 of them, 4, are lucky. So 48+4=5248 + 4 = 52 answers are correct and 48 of these came from knowing: 4852≈0.9231\frac{48}{52} \approx 0.9231⁠, the same as 1213≈0.9231\frac{12}{13} \approx 0.9231⁠.

Common mistakes
  1. Answering 34\frac34⁠. That is P(E1)P(E_1)⁠, the chance before we know the answer was correct. The correct answer is extra information, and it changes the chance.
  2. Leaving out P(A∣E1)P(A|E_1)⁠. It is not printed, but it is needed: it equals 1, because a student who knows marks the right answer.
  3. Using 14\frac14 as P(A)P(A)⁠. 14\frac14 is the chance of a correct guess only; overall a correct answer has probability 1316\frac{13}{16}⁠.
What to take away
  1. Look for probabilities that the question leaves unsaid but means, such as "knows the answer" giving P(correct)=1P(\text{correct}) = 1⁠. State them in your answer.
  2. A result that is much more likely under one cause (here 1 against 14\frac14⁠) pushes the probability of that cause up.
  3. Book Example 18 and Question 5 show the opposite effect: a rare cause stays fairly unlikely even after a positive test.

Every fact used, and where it comes from

FactUsed inSource
Partition of a sample spaceStep 1Section 13.5.1 (Lesson: Bayes' theorem)
A certain event has probability 1Step 2Class XI axioms (Basics: rules of probability)
Conditional probability P(A∣E)P(A|E)Step 2Section 13.2 (Lesson: conditional probability)
Theorem of total probabilityStep 3Section 13.5.2 (Lesson: Bayes' theorem)
Bayes' theoremSteps 4, 5Section 13.5 (Examples 15 to 21)
Dividing by a fractionStep 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 →