32
(Medical) Diagnostic Testing

(Medical) Diagnostic Testing

Embed Size (px)

DESCRIPTION

(Medical) Diagnostic Testing. The situation. Patient presents with symptoms, and is suspected of having some disease. Patient either has the disease or does not have the disease . Physician performs a diagnostic test to assist in making a diagnosis. - PowerPoint PPT Presentation

Citation preview

Page 1: (Medical) Diagnostic Testing

(Medical) Diagnostic Testing

Page 2: (Medical) Diagnostic Testing

The situation

• Patient presents with symptoms, and is suspected of having some disease. Patient either has the disease or does not have the disease.

• Physician performs a diagnostic test to assist in making a diagnosis.

• Test result is either positive (diseased) or negative (healthy).

Page 3: (Medical) Diagnostic Testing

Situation presented in a two-way table

Test Result

True DiseaseStatus

Diseased(+)

Healthy(-)

Diseased (+) CorrectFalse

Negative

Healthy (-)False

Positive Correct

Page 4: (Medical) Diagnostic Testing

Definitions

• False Positive: Healthy person incorrectly receives a positive (diseased) test result.

• False Negative: Diseased person incorrectly receives a negative (healthy) test result.

Page 5: (Medical) Diagnostic Testing

Goal

• Minimize chance (probability) of false positive and false negative test results.

• Or, equivalently, maximize probability of correct results.

Page 6: (Medical) Diagnostic Testing

Accuracy of tests in development

• Sensitivity: probability that a person who truly has the disease correctly receives a positive test result.

• Specificity: probability that a person who is truly healthy correctly receives a negative test result.

Page 7: (Medical) Diagnostic Testing

In conditional probability notation

Sensitivity = P(Test +|True +)

= P(Test+ and True+) ÷ P(True +)

Specificity = P(Test -|True -)= P(Test- and True-) ÷ P(True -)

Page 8: (Medical) Diagnostic Testing

Example

Lead levels Test Result

True Status Elevated Normal Total

Elevated 49 36 85

Normal 1418 1475 2893

Total 1467 1511 2978

Page 9: (Medical) Diagnostic Testing

Example (continued)

Sensitivity = 49/85 = 0.58

Specificity = 1475/2893 = 0.51

CDC screening questionnaire about as good as tossing a coin in identifying kids with

elevated and normal lead levels.

Page 10: (Medical) Diagnostic Testing

Interpretation of accuracy

• (Conditional) probabilities, so numbers between 0 and 1

• Closer sensitivity is to 1, the more accurate the test is in identifying diseased individuals

• Closer specificity is to 1, the more accurate the test is in identifying healthy individuals

Page 11: (Medical) Diagnostic Testing

Alternatively

False negative rate

= P(Test -|True +)

= 1 - P(Test +|True+)

= 1 - sensitivity

False positive rate= P(Test +|True -)= 1 - P(Test -|True -)= 1 - specificity

Page 12: (Medical) Diagnostic Testing

Example

Lead levels Test Result

True Status Elevated Normal Total

Elevated 49 36 85

Normal 1418 1475 2893

Total 1467 1511 2978

Page 13: (Medical) Diagnostic Testing

Example (continued)

False negative rate = 1 - 49/85 = 36/85 = 0.42

False positive rate = 1 -1475/2893

= 1418/2893 = 0.49

Page 14: (Medical) Diagnostic Testing

Accuracy of tests in use

• Positive predictive value: probability that a person who has a positive test result really has the disease.

• Negative predictive value: probability that a person who has a negative test result really is healthy.

Page 15: (Medical) Diagnostic Testing

In conditional probability notation

Positive predictive value

= P(True +|Test +)

= P(True + and Test +) ÷ P(Test +)

Negative predictive value= P(True -|Test -)= P(True - and Test -) ÷ P(Test -)

Page 16: (Medical) Diagnostic Testing

Example

Lead levels Test Result

True Status Elevated Normal Total

Elevated 49 36 85

Normal 1418 1475 2893

Total 1467 1511 2978

Page 17: (Medical) Diagnostic Testing

Example (continued)

Positive predictive value = 49/1467 = 0.033

Negative predictive value = 1475/1511 = 0.98

Kids who test positive have small chance in having elevated lead levels, while kids who test negative can be quite confident that they have normal lead levels.

Page 18: (Medical) Diagnostic Testing

Caution about predictive values!

Reading positive and negative predictive values directly from table is accurate only if the proportion of diseased people in the sample is representative of the proportion of diseased people in the population. (Random sample!)

Page 19: (Medical) Diagnostic Testing

Example

Test Result

True Status Diseased Healthy Total

Diseased 392 8 400

Healthy 24 576 600

Total 416 584 1000

Page 20: (Medical) Diagnostic Testing

Example (continued)

• Sens = 392/400 = 0.98

• Spec = 576/600 = 0.96

• PPV = 392/416 = 0.94

• NPV = 576/584 = 0.99

Note prevalence of disease is 400/1000 or 40%

Looks good?

Page 21: (Medical) Diagnostic Testing

Example

Test Result

True Status Diseased Healthy Total

Diseased 49 1 50

Healthy 38 912 950

Total 87 913 1000

Page 22: (Medical) Diagnostic Testing

Example (continued)

• Sens = 49/50 = 0.98

• Spec = 912/950 = 0.96

• PPV = 49/87 = 0.56

• NPV = 912/913 = 0.999

Sensitivity and specificity the same, and yet PPV smaller -- because prevalence of disease is smaller, namely 50/1000 or 5%.

Page 23: (Medical) Diagnostic Testing

Morals

• Don’t recklessly read PPV and NPV directly from tables without knowing prevalence of disease.

• PPV in screening tests naturally low, but not all that bad since NPV generally high.

Page 24: (Medical) Diagnostic Testing

Find correct predictive values by knowing….

• True proportion of diseased people in the population.

• Sensitivity of the test

• Specificity of the test

Page 25: (Medical) Diagnostic Testing

Example: PPV of pap smears?

• Rate of atypia in normal population is 0.001

• Sensitivity = 0.70

• Specificity = 0.90

Find probability that a woman will have atypical cervical cells given that she had a positive pap smear.

Page 26: (Medical) Diagnostic Testing

Example

Pap smear

True Status Atypia Normal Total

Atypia

Normal

Total 100,000

Page 27: (Medical) Diagnostic Testing

Example

Pap smear

True Status Atypia Normal Total

Atypia 100

Normal 99,900

Total 100,000

Page 28: (Medical) Diagnostic Testing

Example

Pap smear

True Status Atypia Normal Total

Atypia 70 30 100

Normal 99,900

Total 100,000

Page 29: (Medical) Diagnostic Testing

Example

Pap smear

True Status Atypia Normal Total

Atypia 70 30 100

Normal 9,990 89,910 99,900

Total 100,000

Page 30: (Medical) Diagnostic Testing

Example

Pap smear

True Status Atypia Normal Total

Atypia 70 30 100

Normal 9,990 89,910 99,900

Total 10,060 89,940 100,000

Page 31: (Medical) Diagnostic Testing

Example (continued)

• PPV = 70/10,060 = 0.00696

• NPV = 89,910/89,940 = 0.999

Person with positive pap has tiny chance (0.6%) of truly having disease, while person with negative pap almost certainly will be disease free.

Page 32: (Medical) Diagnostic Testing

What to know

• How to calculate sensitivity and specificity• Relationship between false negative

(positive) rate and sensitivity (specificity)• How disease prevalence affects predictive

values• How to calculate predictive values correctly• Methodological standards…how good is that

test?