Beta Calibration of Classifier Probabilities
Beta calibration maps a classifier's predicted probabilities to better calibrated ones with the family mu(s) = 1 / (1 + 1 / (e^c s^a / (1 - s)^b)). It is fitted as a logistic regression of the observed outcome on ln s and -ln(1 - s), so it can correct scores that are too extreme, too timid or skewed, and it contains the identity map. A likelihood-ratio test compares the fitted map with no recalibration, and cross-validation compares beta, Platt and isotonic calibration on log loss, Brier score and expected calibration error.
분류기가 낸 예측확률을 mu(s) = 1/(1 + 1/(e^c s^a/(1-s)^b)) 형태의 사상으로 더 잘 보정된 확률로 바꾸는 방법입니다. 관측 결과를 ln s와 -ln(1-s)에 로지스틱 회귀하여 적합하므로 지나치게 극단적이거나 소극적이거나 한쪽으로 치우친 점수를 바로잡을 수 있고, 보정하지 않는 항등 사상도 포함합니다. 항등 사상과의 우도비 검정과 교차검증 비교를 함께 냅니다.
My model's probabilities look off; how should I recalibrate them?
모형의 예측확률이 실제와 맞지 않아 보이는데 어떻게 다시 보정해야 합니까?
If the test against the identity is significant, the raw probabilities are miscalibrated. a and b above 1 mean the raw scores were too timid, below 1 too extreme, and a different a and b mean the distortion differs at the two ends. Prefer the method with the lowest cross-validated log loss and calibration error; beta calibration is often a good middle ground between Platt and isotonic.
When to use Beta Calibration of Classifier Probabilities
- You have predicted probabilities and true outcomes from a validation set and want calibrated probabilities.
- Scores come from models such as naive Bayes or boosted trees whose distortion is not symmetric.
When to use something else
- You only want to assess calibration without changing the scores: use Calibration Assessment for Predicted Probabilities
- You need a formal calibration test for a clinical risk model: use Calibration Belt and GiViTI Calibration Test
Assumptions and requirements
- Scores come from data the classifier was not trained on
- Binary outcome
- Scores strictly between 0 and 1 (edges are nudged inward)
What the analysis reports
- Fitted a, b, c and the midpoint m with standard errors
- Likelihood-ratio test against the identity map
- Cross-validated log loss, Brier score and ECE for raw, beta, Platt and isotonic
How to report it
Beta calibration gave a = [value], b = [value], c = [value]; the map differed from the identity, LR chi2(3) = [value], p = [value], and cross-validated log loss fell from [value] to [value].
Related methods
- Calibration Assessment for Predicted Probabilities
- Isotonic Regression
- Calibration Belt and GiViTI Calibration Test
- Classification Performance Report
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels at a stated tolerance of 1e-5.
독립 계산. statsmodels 대조 참조 시험 1건 통과(허용오차 1e-5).
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 Beta Calibration of Classifier Probabilities on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and score
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 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.