Discrimination AUC as the probability of correct ranking
AUC = P(S_1 > S_0) + 0.5 * P(S_1 = S_0)
Maps the scores that a diagnostic test or risk prediction model gives to people with and without an outcome to a single probability: the chance that a randomly chosen person with the outcome scores higher than a randomly chosen person without it, with tied scores counted as half. S_1 and S_0 are the scores of the two people and P denotes probability. The result has no units, equals 0.5 for a score unrelated to the outcome and 1 for perfect separation, and is the area under the receiver operating characteristic (ROC) curve and the C-statistic for a binary outcome. It measures discrimination only; calibration and the costs and health effects of acting on the score are separate questions.
AUC estimated by counting case and non-case pairs
AUC = (n_conc + 0.5 * n_tie) / (n_1 * n_0)
AUC as the trapezoidal area under the empirical ROC curve
AUC_trap = sum_(k=1)^K [(FPR_end_k - FPR_start_k) * (TPR_start_k + TPR_end_k) / 2]
Gini index from the discrimination AUC
Gini = 2 * AUC - 1