The most common form splits on an event and its complement, which together always form a partition:
Return P(A)P(A)P(A).
Input
p_a_given_b = 0.95 p_a_given_not_b = 0.05 p_b = 0.01
Output
0.059000000000000004
This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.
solve(...)