Sets: Medical Testing Example: 1 Example Using Set Theory
Sets: Medical Testing Example: 1 Example Using Set Theory
S = {x ∈ X : x has VBS}
H = {x ∈ X : x does not have VBS}
2 Test
P = {x ∈ X : x tests positive for VBS}
N = {x ∈ X : x tests negative for VBS}
In a perfect world, S would equal P —the sick people would always test positive, and H
would equal N —the healthy people would always test negative.
...but this is not always the case.
S∩P H ∩N S∩N H ∩P
true positive true negative false negative false positive
1
Data Science Math Skills
Paul Bendich and Daniel Egger
Duke University
3 Cardinality
|S|
|X|
= proportion of people in the study who do genuinely have VBS
|H|
|X|
= proportion of people in the study without VBS
|S| |H|
|X|
+ |X|
=1
|S∩P |
|S|
true positive rate would like to be close to 1
|H∩P |
|H|
false positive rate would like to be as small as possible
|S∩N |
|S|
false negative rate would like to be as small as possible
|H∩N |
|H|
true negative rate would like to be close to 1