The most common form splits on an event and its complement, which together always form a partition:
Return .
solve(0.95, 0.05, 0.01) -> 0.059
# A test with 95% sensitivity and a 5% false-positive rate, disease prevalence 1%.
# This is the denominator Bayes' theorem needs.
Sign in to write and run your own code.
solve(...)