Search
Duplicate
Try Notion
Bayes’ Theorem
Let there be two events AA and  BB. Denote the probabilities of AA and BB occurring independently be P(A)P(A) and P(B)P(B). Let P(AB),P(BA)P(A|B), P(B|A) denote the probability of event AA occurring given BB happens, and the probability of event BB occurring given AA happens. Bayes’ Theorem states,
P(AB)P(B)=P(BA)P(A)=P(AB)P(A|B)P(B)=P(B|A)P(A)=P(A\cap B).
Take an example where the chance of getting COVID-19 is 64%. For our COVID-19 test, there will be a 1% chance that the test obtains a false positive, and a 5% chance that the test obtains a false negative.
Question: Suppose the test returns positive. What is the probability you really have COVID-19?
P(COVID+)=P(+COVID)P(+)P(COVID)=0.99×0.64÷(P(+COVID)P(COVID)+P(+!COVID)P(!COVID))=0.972...P(\text{COVID}|+)\\=\frac{P(+|\text{COVID})}{P(+)}P(\text{COVID})\\ =0.99\times0.64\div \\(P(+|\text{COVID})P(\text{COVID})+P(+|!\text{COVID})P(!\text{COVID}))\\=0.972...