3/17
Part 1 of 7 · Conditional probabilityLearn and do
Count orders, not probabilities
Gigerenzer and Hoffrage showed that Bayesian reasoning is computationally simpler in frequency formats than with probabilities. So picture 10,000 orders and count:
orders = 10_000
# 1 order in 200 is fraud
fraud = orders * 0.005
good = orders - fraud
# the check flags 90% of fraud
flagged_fraud = fraud * 0.90
# and 2% of good orders
flagged_good = good * 0.02
print(f"{flagged_fraud:.0f} fraud and {flagged_good:.0f} good orders flagged")
print(f"P(fraud | flagged) = {flagged_fraud / (flagged_fraud + flagged_good):.1%}")
Out of 10,000 orders, how many does the check flag in all?
Pick one to see what it prints.
Pick an answer above to see the rest
A woman's mammogram is positive. About how likely is it that she has cancer?
Pick an answer above to see the rest