Compare AUC, Gini and KS for Ranking Credit Card Default Risk

Last updated: November 29, 2026

Quick Overview

You are evaluating a new probability of default model for credit card applicants. Explain how AUC, the Gini coefficient and the KS statistic relate, compute KS, and say when each would mislead you.

Capital One
Machine Learning
Data Scientist
Capital One
November 29, 2026
Data Scientist
Technical Screen
Machine Learning
Medium

0

0

0 solved


You are evaluating a new probability of default model for credit card applicants. Explain how AUC, the Gini coefficient and the KS statistic relate, compute KS, and say when each would mislead you.

Credit risk teams at Capital One and across US banking report KS and Gini to model risk management, while ML teams usually think in AUC. The interviewer is checking that you know these are ranking metrics, how they relate, and what they do not tell you about calibration or business value.

What the Interviewer Expects
  • States Gini = 2 x AUC - 1
  • Defines KS as the max gap between cumulative bad and good distributions
  • Computes KS from a scored sample
  • Explains that all three ignore calibration
  • Points out that the operating region matters more than the global metric
Key Topics to Cover
AUC
Gini
KS statistic
credit risk
ranking metrics
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • Two models have equal AUC but cross on the ROC curve. Which do you pick?
  • Why might KS look great while approvals at the actual cutoff are worse?
  • How would you test whether an AUC improvement of 0.005 is real?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Labels: bad = default within 12 months. The model ranks applicants; underwriting applies a cutoff. I would ask what the approval rate is, since a model only needs to separate well near the cutoff, and...

Approach
  • AUC is the probability a random bad scores above a random good.
  • Gini (accuracy ratio) =2⋅AUC−1= 2 \cdot AUC - 1, the same information rescaled to [−1,1][-1, 1].
  • KS =max⁡t∣Fbad(t)−Fgood(t)∣= \max_t |F_{bad}(t) - F_{good}(t)|, t...

Submit Your Answer
Markdown supported