Probability, Data Science, Python, Python Programming, Statistics.
1000 # 1000 people counts = {} for i in range(pop): has_disease = i % 10 == 0 # one in 10 people have disease # assuming that every person gets tested regardless of any symptoms if has_disease: tests_positive = True # True Positive 95% if random() < 0.05: tests_positive = False # False Negative 5%