Home Knowledge Base Isotonic Regression

Isotonic Regression is a non-parametric calibration technique that fits a monotonically non-decreasing step function to map a model's raw prediction scores to calibrated probabilities, without assuming any specific functional form for the calibration mapping. The method partitions the score range into bins where the calibrated probability within each bin equals the empirical accuracy, subject to the constraint that the mapping is monotonically increasing.

Why Isotonic Regression Matters in AI/ML: Isotonic regression provides flexible, assumption-free calibration that can correct arbitrary distortions in a model's probability estimates—including non-linear miscalibration patterns that parametric methods like Platt scaling cannot capture.

Non-parametric flexibility — Unlike Platt scaling (which assumes a sigmoid calibration curve), isotonic regression makes no assumptions about the shape of the miscalibration; it can correct S-shaped, concave, step-wise, or arbitrarily distorted probability mappings • Monotonicity constraint — The only assumption is that higher model scores should correspond to higher true probabilities (monotonicity); this minimal constraint preserves the model's ranking while adjusting the probability magnitudes • Pool Adjacent Violators (PAV) algorithm — Isotonic regression is solved efficiently by the PAV algorithm: scores are sorted, and whenever the monotonicity constraint is violated (a higher score has lower observed accuracy), the violating groups are merged and their probabilities averaged • Calibration quality — With sufficient data, isotonic regression achieves better calibration than Platt scaling because it can model complex miscalibration patterns; however, it requires more calibration data (5,000-10,000 examples) to avoid overfitting • Step function output — The calibrated mapping is a step function with as many steps as distinct score-accuracy groups; for smooth probabilities, the output can be further smoothed with interpolation

PropertyIsotonic RegressionPlatt Scaling
ParametricNo (non-parametric)Yes (2 parameters)
FlexibilityArbitrary monotone mappingSigmoid only
Data Requirements5,000-10,000 examples1,000-5,000 examples
Overfitting RiskHigher (with small data)Lower (constrained)
Calibration QualityBetter (with enough data)Good (if sigmoid appropriate)
Output ShapeStep functionSmooth sigmoid
MulticlassOne-vs-allTemperature scaling

Isotonic regression is the most flexible post-hoc calibration technique available, providing non-parametric, assumption-free correction of arbitrary probability miscalibration patterns while preserving the model's ranking, making it the preferred calibration method when sufficient validation data is available and the miscalibration pattern is complex or unknown.

isotonic regressionai safety

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.