The ROC curve is a visualization tool for classification. ROC curves visualize true positive and false positive rates which also can be taken out of a confusion matrix. The steeper the curve (towards the upper left corner) the better the classification. Other performance measures are , specificity and predictive accuracy.


Example data from jrocfit.org (J. Eng) visualized in EXCEL (T. Kind)

I personally don't like ROC curves, but don't let this strong opinion get between you and the ROC curve.
(This statement is subject to change).

 

Summary statistics:

Number of Cases: 50
Number Correct: 42
Accuracy: 84.0%
Sensitivity: 88.0%
Specificity: 80.0%
Pos Cases Missed: 3
Neg Cases Missed: 5

(A rating of 3 or greater is considered positive.)

Fitted ROC Area: 0.905
Empiric ROC Area: 0.892


JROCFIT:

Maximum likelihood estimation of a binormal ROC curve from categorical rating data.


Java translation by John Eng, M.D.

The Russell H. Morgan Department of Radiology and Radiological Science
Johns Hopkins University, Baltimore, Maryland, USA

Version 1.0.2, March 2004


Original Fortran program ROCFIT by Charles Metz and colleagues
Department of Radiology, University of Chicago
January 1994

------------------------------------------------------------

DATA CHARACTERISTICS:

  •   Data collected in 5 categories with category 5 representing strongest evidence of positivity (e.g., that abnormality is present).
  •   Number of actually negative cases = 25
  •   Number of actually positive cases = 25

RESPONSE DATA:

Category12345
Actually negative cases119311
Actually positive cases123910

OBSERVED OPERATING POINTS:

FPF:0.00000.04000.08000.20000.56001.0000
TPF:0.00000.40000.76000.88000.96001.0000

INITIAL VALUES OF PARAMETERS:

A = 1.7621
B = 0.9538
Z(K): -0.1507 0.8415 1.4053 1.7511
LOGL = -68.6817


FINAL VALUES OF PARAMETERS:

Procedure converges after 6 iterations.

A = 1.8683
B = 1.0118
Z(K): -0.1202 0.7566 1.2524 2.0602
LOGL = -65.0240


VARIANCE-COVARIANCE MATRIX:

A0.25170.13030.05460.05920.0391-0.0306
B0.13030.13840.0205-0.0005-0.0375-0.1332
Z(1)0.05460.02050.06260.03630.02740.0127
Z(2)0.0592-0.00050.03630.06940.06080.0580
Z(3)0.0391-0.03750.02740.06080.09510.1126
Z(4)-0.0306-0.13320.01270.05800.11260.2485

CORRELATION MATRIX:

A1.00000.69830.43500.44800.2526-0.1225
B0.69831.00000.2207-0.0049-0.3270-0.7182
Z(1)0.43500.22071.00000.55070.35510.1018
Z(2)0.4480-0.00490.55071.00000.74920.4414
Z(3)0.2526-0.32700.35510.74921.00000.7325
Z(4)-0.1225-0.71820.10180.44140.73251.0000

SUMMARY OF ROC CURVE:

Area = 0.9055
Std. Dev. (Area) = 0.0425


ESTIMATED BINORMAL ROC CURVE WITH ASYMMETRIC 95% CONFIDENCE INTERVAL:

FPFTPF95% Conf. Interv.
0.0050.2301(0.0169, 0.7407)
0.0100.3135(0.0430, 0.7718)
0.0200.4168(0.0996, 0.8061)
0.0300.4860(0.1545, 0.8282)
0.0400.5384(0.2056, 0.8449)
0.0500.5807(0.2523, 0.8587)
0.0600.6159(0.2949, 0.8705)
0.0700.6461(0.3337, 0.8808)
0.0800.6723(0.3690, 0.8901)
0.0900.6955(0.4012, 0.8985)
0.1000.7161(0.4306, 0.9062)
0.1100.7347(0.4575, 0.9132)
0.1200.7515(0.4821, 0.9198)
0.1300.7668(0.5047, 0.9258)
0.1400.7809(0.5255, 0.9314)
0.1500.7938(0.5447, 0.9366)
0.2000.8454(0.6214, 0.9577)
0.2500.8822(0.6757, 0.9723)
0.3000.9096(0.7160, 0.9824)
0.4000.9466(0.7727, 0.9934)
0.5000.9691(0.8119, 0.9978)
0.6000.9832(0.8424, 0.9994)
0.7000.9918(0.8684, 0.9999)
0.8000.9967(0.8927, 1.0000)
0.9000.9992(0.9189, 1.0000)
0.9500.9998(0.9357, 1.0000)

ESTIMATES OF EXPECTED OPERATING POINTS ON FITTED ROC CURVE:

Expected
Operating Point
95% C.I. of
Lower Bound
95% C.I. of
Upper Bound
(FPF, TPF)(FPF, TPF)(FPF, TPF)
(0.0197, 0.4144)(0.0012, 0.1141)(0.1394, 0.7800
(0.1052, 0.7261)(0.0317, 0.4959)(0.2585, 0.8874
(0.2246, 0.8649)(0.1015, 0.7192)(0.4050, 0.9479
(0.5478, 0.9767)(0.3557, 0.9324)(0.7292, 0.9935

WARNINGS AND ERROR MESSAGES:

Chi-square goodness of fit not calculated because

some expected cell frequencies are less than 5.

Chi-square goodness of fit not calculated because

some expected cell frequencies are less than 5.


Links:

  • ROC Analysis - Web-based Calculator for ROC Curves
  • The magnificent ROC - an interactive tutorial by Lara Hopley and Jo van Schalkwyk.
  • ROCCET - a webservice from Jianguo Xia at the Wishart group in Canada.