150 likes | 264 Views
Chapter 9.2 ROC Curves How does this relate to logistic regression?. Two Types of Error. False negative (“miss”), FN alarm doesn’t sound but person is carrying metal = 1-sensitivity. False positive (“false alarm”), FP alarm sounds but person is not carrying metal =1-specificity.
E N D
Chapter 9.2ROC CurvesHow does this relate to logistic regression?
Two Types of Error False negative (“miss”), FN alarm doesn’t sound but person is carrying metal = 1-sensitivity False positive (“false alarm”), FP alarm sounds but person is not carrying metal =1-specificity Slide copied from : Lecture on Cost-Sensitive Classifier Evaluation by Robert Holte at the Computing Science Dept. University of Alberta
ROC Receiver Operating Characteristic (historic name from radar studies) Relative Operating Characteristic (psychology, psychophysics) Operating Characteristic (preferred by some) Slide adapted from : An Overview of Contemporary ROC Methodology in Medical Imaging and Computer-Assist Modalities by Robert F. Wagner, Ph.D., OST, CDRH, FDA
Non-diseased patient Diseased patient Threshold Test result value or likelihood that patient is diseased –>P( Y = 1) = p (based on proc logistic) Slide adapted from :An Overview of Contemporary ROC Methodology in Medical Imaging and Computer-Assist Modalities by Robert F. Wagner, Ph.D., OST, CDRH, FDA
Typical Results of Testing Non-diseased patient Diseased patient Threshold False Positives False Negatives Negative Test p<0.5 Positive test p>0.5 Test result value ( Logistic P(Y=1) = p ) Slide adapted from :An Overview of Contemporary ROC Methodology in Medical Imaging and Computer-Assist Modalities by Robert F. Wagner, Ph.D., OST, CDRH, FDA
p>0.7 is positive test Non-diseased patient TPF, sensitivity Threshold less aggressive mindset Diseased patient FPF, 1-specificity Slide adapted from :An Overview of Contemporary ROC Methodology in Medical Imaging and Computer-Assist Modalities by Robert F. Wagner, Ph.D., OST, CDRH, FDA
p>0.5 is positive test Non-diseased patient moderate mindset TPF, sensitivity Threshold Diseased patient FPF, 1-specificity Slide adapted from :An Overview of Contemporary ROC Methodology in Medical Imaging and Computer-Assist Modalities by Robert F. Wagner, Ph.D., OST, CDRH, FDA
p>0.3 is positive test Non-diseased patient more aggressive mindset TPF, sensitivity Threshold Diseased patient FPF, 1-specificity Slide adapted from :An Overview of Contemporary ROC Methodology in Medical Imaging and Computer-Assist Modalities by Robert F. Wagner, Ph.D., OST, CDRH, FDA
p>0 is positive test Threshold Non-diseased patients Entire ROC curve TPF, sensitivity Diseased patients FPF, 1-specificity Slide adapted from :An Overview of Contemporary ROC Methodology in Medical Imaging and Computer-Assist Modalities by Robert F. Wagner, Ph.D., OST, CDRH, FDA
Entire ROC curve chance line TPF, sensitivity Skill to predict Y=1 correctly FPF, 1-specificity Slide adapted from :An Overview of Contemporary ROC Methodology in Medical Imaging and Computer-Assist Modalities by Robert F. Wagner, Ph.D., OST, CDRH, FDA
Suppose the n individuals undergo a test for predicting the event and the test is based on the estimated probability of the event (p). • Higher values of this estimated probability are assumed to be associated with the event. • A receiver operating characteristic (ROC) curve can be constructed by varying the cut-point that determines which estimated event probabilities are considered to predict the event. • The statistic c estimates the area under the ROC curve.
ROC Curves in SAS /* area under the curve is c statistic – generally speaking bigger c is better */ proclogisticdescending; model event=diabetes gender diabetes_gender/outroc=roc1; RUN; /* plotting the roc curve */ symbol1i=join v=none c=blue; procgplotdata=roc1; title'ROC Curve'; plot _sensit_*_1mspec_=1 / vaxis=0 to 1 by .1cframe=ligr; run;
Model event=diabetes gender diabetes_gender Association of Predicted Probabilities and Observed Responses Percent Concordant 47.7 Somers' D 0.206 Percent Discordant 27.1 Gamma 0.276 Percent Tied 25.2 Tau-a 0.055 Pairs 41741 c 0.603 Measures area under ROC curve