AI Assignment 3
AI Assignment 3
Assignment 3
on
Exercise Set 3
Therefore:
a. 𝑷(𝑪𝒂𝒗𝒊𝒕𝒚) = 𝟎. 𝟐
b. 𝑷(𝑻𝒐𝒐𝒕𝒉𝒂𝒄𝒉𝒆 | 𝑪𝒂𝒗𝒊𝒕𝒚) = 𝟎. 𝟔
c. 𝑷(𝑪𝒂𝒗𝒊𝒕𝒚 | 𝑻𝒐𝒐𝒕𝒉𝒂𝒄𝒉𝒆 ∨ 𝑪𝒉𝒂𝒏𝒈𝒆) ≈ 𝟎. 𝟎𝟗𝟑𝟕𝟓
6. The fact that the disease is rare is good news because even though Mr. Willoughby tested
positive, the probability that he actually has the disease might still be relatively low due to
the rarity of the disease in the general population. This is a scenario where the prevalence
of the disease influences the interpretation of the test results.
Let's calculate the probability that Mr. Willoughby actually has the disease given that he
tested positive, using Bayes' Theorem:
Let:
• 𝐷 be the event that Mr. Willoughby has the disease.
• 𝐷′ be the event that Mr. Willoughby does not have the disease.
• P(𝑇 + | 𝐷) be the probability of testing positive given that he has the disease
(sensitivity of the test), which is 0.99.
• 𝑃(𝑇 − | 𝐷′ ) be the probability of testing negative given that he does not have the
disease (specificity of the test), which is also 0.99.
• P(D) be the prior probability that Mr. Willoughby has the disease, which is 1 in
10000 or 0.0001.
0.99 ⋅ 0.0001
𝑃(𝐷 |𝑇 + ) =
(0.99 ⋅ 0.0001) + (0.01 ⋅ 0.9999)
0.000099 0.000099
𝑃(𝐷 |𝑇 + ) ≈ ≈ ≈ 0.0098
0.000099 + 0.009999 0.010098
Therefore, the probability that Mr. Willoughby actually has the disease, given that he tested
positive, is approximately 0.98% (or 0.0098). Despite the high accuracy of the test, the low
prevalence of the disease in the population makes the probability of a true positive
relatively small.