Calibration Curve Calculator

Evaluate predicted probabilities, compare models, inspect calibration bins, measure reliability errors, apply recalibration methods, and export publication-ready machine learning graphs with confidence and clarity.

Calibration results

Run the calculator to view results.

Calibration curve

Probability distribution

Bin calibration error

Bin-level results

ModelBinRangeCountWeightMean probabilityPositivesObserved rateAbsolute errorSquared errorConfidence intervalDirection

Interpretation

Calculator options

Use commas, spaces, tabs, or line breaks.
Every probability must be between zero and one.
In multiclass mode, actual labels can be class names or zero-based class indexes.
Select a file, then use the column-name mappings below.

CSV column mapping

Recalibration uses an internal calibration/evaluation split. Use an independent holdout set for production decisions.

Formula used

ECE = Σ (nₘ / n) × |observed rateₘ − mean probabilityₘ|
Brier score = (1 / n) × Σ (probabilityᵢ − outcomeᵢ)²
Log loss = −(1 / n) × Σ [yᵢ log(pᵢ) + (1 − yᵢ) log(1 − pᵢ)]

How to use

  1. Enter actual labels and predicted probabilities.
  2. Select binning, interval, recalibration, and chart options.
  3. Click Calculate calibration to generate metrics and graphs.
  4. Review the diagonal gap, bin errors, and probability distribution.
  5. Export tables, observations, images, or a printable report.

Example data

ObservationActualPredicted probability
100.08
200.17
310.28
400.35
510.46

Calibration guidance

Calibration measures probability reliability. A calibrated model predicts frequencies that match observed outcomes. It does not measure ranking quality alone.

Points below the diagonal indicate overconfidence. Points above the diagonal indicate underconfidence. Sparse bins require cautious interpretation.

Calibration should use unseen data. Recalibration and evaluation should use separate samples. This avoids optimistic reliability estimates.

Frequently asked questions

What does a calibration curve show?

It compares predicted probabilities with observed event frequencies across probability bins.

What is perfect calibration?

Perfect calibration places the model curve directly on the diagonal reference line.

What does overconfidence mean?

Predicted probabilities are higher than the observed positive rate in corresponding bins.

What does underconfidence mean?

Observed positive rates exceed the model’s average predicted probabilities.

How many bins should I use?

Use enough bins for detail while retaining sufficient observations within every bin.

What is ECE?

Expected Calibration Error summarizes weighted absolute gaps between confidence and observed frequency.

Is a lower Brier score better?

Yes. Lower values indicate more accurate probability predictions for binary outcomes.

Does good AUC guarantee calibration?

No. Discrimination and probability calibration measure different properties of a model.

When should recalibration be applied?

Apply recalibration when probabilities are systematically biased on representative unseen validation data.

Related Calculators

Confusion Matrix HeatmapPrecision-Recall CurveCumulative Gain ChartLift ChartDecision Boundary PlotProbability Distribution PlotThreshold Performance PlotClass Distribution ChartMulticlass ROC CurveError Analysis Bar Chart

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.