Probability, Data Science, Python, Python Programming, Statistics.
else: tests_positive = False # True Negative 90% if random() < 0.1: tests_positive = True # False Positive 10% outcome = (has_disease, tests_positive) counts[outcome] = counts.get(outcome, 0) + 1 for (has_disease, tested_positive), n in counts.items(): print('Has Disease: %6s, Test Positive: %6s,