To solve this problem, we define the sample space using three mutually exclusive and exhaustive events:
A1: The student guesses the answer.
A2: The student copies the answer.
A3: The student knows the answer.
We are given the prior probabilities as
P(A1)=31 and
P(A2)=61. Since the sum of all probabilities must equal
1, we calculate the probability of the student knowing the answer as:
P(A3)=1−(31+61)=21
We seek the posterior probability
P(A3∣C), which represents the probability that the student knew the answer given that they answered correctly. According to
Bayes' Theorem:
P(A3∣C)=P(C)P(A3)P(C∣A3)
The numerator is the probability of the 'knowing' path:
P(A3)×P(C∣A3)=21×1=21
The denominator is the total probability of the event
C, calculated using the
Law of Total Probability:
P(C)=P(A1)P(C∣A1)+P(A2)P(C∣A2)+P(A3)P(C∣A3)
Substituting the known values into the total probability equation:
P(C)=(31×41)+(61×81)+(21×1)
P(C)=121+481+21=484+1+24=4829
Finally, we compute the posterior probability:
P(A3∣C)=29/481/2=2924