Explore Library
Code QuizIntermediate

Bayes' Theorem Application

Find the error in applying Bayes' theorem to update a disease probability.

Codepython
# P(disease) = 0.01, P(pos|disease) = 0.9, P(pos) = 0.108
p_disease = 0.01
p_pos_given_disease = 0.9
p_pos = 0.108

# Compute P(disease | positive test)
p_disease_given_pos = p_pos_given_disease / p_pos
print(p_disease_given_pos)

What is the bug in this Bayes' theorem calculation?