O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Determining concordance

A concordance index is another measure that is used in survival analysis to determine how well the model is able to discern between the observed and predicted responses. For our churn example, we would expect the churners to have higher hazard rates than those customers who remain active. If the concordance index is more than .5, that indicates that there is some predictive ability built into the model.

To compute the index we will use the concordance.index() function from the survcomp package to measure the agreement of the pred_validation statistic, with the actual churn outcome.

As in previous examples, one needs to supply the predictions, time variable, and event variable as arguments to the function. We will also ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required