Bias-Variance Curve Calculator

Visualize bias, variance, noise, training error, and validation behavior to find model complexity that balances underfitting, overfitting, stability, and predictive performance across datasets clearly.

Result summary

Simulation mode
Generate a curve to begin.
The calculator will identify balanced complexity and explain the trade-off.
Recommended complexity
Minimum validation error
Minimum expected error
Bias² + variance + noise
Generalisation gap
Validation minus training error
Selected model condition
Choose a complexity point

Interactive bias-variance graph

Data source and model setup

Simulation controls

Higher values reduce simulated jitter.

Validation and experiment settings

Graph options

Visible curves
Observed errors
Annotations

Detailed results table

The optimal row is highlighted.
ComplexityBiasBias²VarianceNoiseExpectedTrainingValidationTestGapCondition

Model comparison

Add current models to compare their validation curves.
ModelOptimal complexityMinimum validationMinimum expectedGeneralisation gapRanking score
No comparison models added.

Formula used

Expected Prediction Error = Bias² + Variance + Irreducible Noise

How to use

  1. Choose simulation mode or enter measured experiment results.
  2. Select the model complexity measure and optimisation target.
  3. Adjust noise, sample size, validation, and confidence settings.
  4. Generate the curves and inspect the recommended complexity.
  5. Select any point to review its fitting condition.
  6. Add models for comparison, then export the analysis.

Example data

ComplexityBiasVarianceTrainingValidationTestStd.
11.120.080.621.431.470.08
40.470.220.270.610.640.06
60.250.450.180.590.620.08
90.091.180.101.281.340.16

Interpretation guide

Underfitting region

Bias is high and predictions remain too simple. Training and validation errors can both stay elevated.

Balanced region

Bias and variance remain reasonably controlled. Validation error usually reaches its lowest practical level.

Overfitting region

Variance and the generalisation gap rise. Training improves while unseen-data performance becomes worse.

Frequently asked questions

What is the bias-variance trade-off?

It describes tension between simple stable models and flexible sensitive models. Good complexity controls both error sources.

Why is validation error often U-shaped?

Bias dominates at low complexity. Variance dominates after complexity becomes excessive.

Does bias always decrease with complexity?

It usually decreases in teaching examples. Real measurements can contain irregular movements.

How does sample size affect variance?

Larger datasets usually stabilise fitted parameters. This can reduce variance and confidence-band width.

What does irreducible noise mean?

It is unexplained randomness in outcomes. Better model complexity cannot completely remove it.

Which error should determine the optimum?

Validation error is normally preferred during tuning. Test error should support final evaluation.

Can I use cross-validation results?

Yes. Enter mean errors and their standard deviations for every complexity point.

How does regularisation change the curves?

Stronger regularisation can increase bias. It often reduces variance and limits overfitting.

What is the bias-variance crossover?

It is the point where bias squared and variance are closest. It is informative but not always optimal.

Can multiple models be compared?

Yes. Add each current curve to the comparison panel and review their rankings.

Related Calculators

Validation CurveTraining Loss CurveValidation Loss CurveAccuracy CurveError Rate CurveCross-Validation Score PlotModel Comparison Bar ChartMetric Radar ChartHyperparameter Performance HeatmapRuntime-versus-Accuracy Plot

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.