Multiclass ROC Analysis (One-vs-Rest, Hand-Till)
Multiclass ROC analysis summarises how well class scores separate three or more classes, through one-vs-rest AUCs with macro, weighted and micro averages and the pairwise Hand-Till M statistic.
다범주 ROC 분석은 범주별 점수가 셋 이상의 범주를 얼마나 잘 가르는지를 일대다 AUC와 그 매크로·가중·마이크로 평균, 쌍별 Hand-Till M 통계량으로 요약하는 방법입니다.
My model predicts probabilities for four diagnostic categories; how do I report an AUC for a multiclass problem and get a confidence interval?
모형이 네 가지 진단 범주의 확률을 예측하는데, 다범주 문제에서 AUC를 어떻게 보고하고 신뢰구간은 어떻게 구하나요?
Compute an AUC for each class against all others and average them (macro, prevalence-weighted or micro), and compute the Hand-Till M, which averages the pairwise AUCs and does not depend on class prevalence. A stratified bootstrap gives confidence intervals for the averages and for each class.
When to use Multiclass ROC Analysis (One-vs-Rest, Hand-Till)
- The outcome has three or more classes and the model gives one score per class.
- You want a threshold-free measure of discrimination rather than accuracy at one cut-off.
- Class prevalences differ and you want a summary that does not depend on them (Hand-Till M).
When to use something else
- The outcome is binary; use ordinary ROC analysis with DeLong confidence intervals.
- You need to know whether predicted probabilities are accurate in size; assess calibration with a reliability diagram or Brier score.
Assumptions and requirements
- Each score column refers to one known class, with larger values meaning that class is more likely.
- Rows are independent cases.
- Every class has enough cases for a stable AUC.
What the analysis reports
- One-vs-rest AUC per class with bootstrap CIs
- Macro, prevalence-weighted and micro averages with CIs
- Hand-Till M with CI and the pairwise AUCs
- ROC curves per class
How to report it
The macro-averaged one-vs-rest AUC was [value], 95% CI [[value], [value]], and the Hand-Till M was [value], 95% CI [[value], [value]] ([value] classes, N = [value]).
Related methods
- ROC Curve Analysis
- Conformal Classification Sets (Split, Mondrian, Adaptive Prediction Sets, Venn-Abers)
- Calibration Plot
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn and direct computations (formulas, enumeration or simulation).
독립 계산. scikit-learn·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Multiclass ROC Analysis (One-vs-Rest, Hand-Till) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.