A test has sensitivity (it catches a true case) and specificity (it clears
a healthy one). The disease affects a prevalence fraction of people. Someone
tests positive. Return the probability they actually have it.
The answer is usually far lower than people expect, because for a rare disease the false positives drawn from the huge healthy population outnumber the true positives.
Input
prevalence = 0.001
sensitivity = 0.99
specificity = 0.99
Output
0.09016393442622944