I know the two terms in the context of a classification problem:
A classification algorithms sensitivity/specificity is defined as
sensitivity = TP / (TP + FN)
specificity = TN / (TN + FP)
I like the comparison with a fire alarm:
- If the sensitivity is high, that means it actually starts ringing when there is a fire. It could still be that FP is high, meaning it just rings all the time.
- If the specificity is high, it means it does not ring when there is no fire. It could still be that FN is high which means it does not ring when there is a fire.
Now I found a table for Influenza symptoms and I'm a bit confused what it means in this context. Does it essentially define each isolated symptom as a classification algorithm, e.g. for fever:
- I get a patient who has Influenza. I only check for fever. If the patient has fever, I conclude that he has Influenza. I'm right in 68–86% of the cases. (For simplicity, assume 77%)
- I get a patient and and apply my "fever => Influenza" logic. In 25–73% of the cases I correctly say that they don't have fever (for simplicity, assume 49%).
So essentially the number come from filling this table:
| | Correct Pred. (True) | Wrong Prediction (False) |
| ----------------------- | -------------------- | ------------------------ |
| Has Fever (Positive) | | |
| Has no Fever (Negative) | | |
Specificity: Hence, if I divide the number of people without fever and who also don't have influenza by the number of all people without influenza, it should be 49%? Or is it all people who visit the doctor? All people who feel sick? All people who think they have Influenza?
Sensitivity: I divide the number of people who have fever and influenza by the number of people with Influenza. Same question here: If people are asymptomatic, they probably don't go to the doctor. If there is no check if they had influenza, how can one have FN
?
Did I get something completely wrong?