14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

338 Recursively Partitioning Data Chapter 13<br />

Graphs for Goodness of Fit<br />

ROC curves are nothing more than a curve of the sorting efficiency of the model. The model rank-orders<br />

the fitted probabilities for a given Y-value, then starting at the lower left corner, draws the curve up when the<br />

row comes from that category, <strong>and</strong> to the right when the Y is another category.<br />

In the following picture, the Y axis shows the number of Y’s where Y=1, <strong>and</strong> the X axis shows the number of<br />

Y’s where Y=0.<br />

Portion of Y=1 values<br />

0<br />

1<br />

0<br />

1<br />

1<br />

0<br />

Portion of Y=0 values<br />

as you go through data sorted<br />

by predicted value<br />

If the model perfectly rank-orders the response values, then the sorted data has all the targeted values first,<br />

followed by all the other values. The curve moves all the way to the top before it moves at all to the right.<br />

Figure 13.14 ROC for Perfect Fit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!