Skip to content

Residual Distribution Plot

📉 What is this?

The model makes predictions, but predictions are always wrong. How much each prediction is "off" is the residual:

Residual = Actual value − Predicted value

The residual distribution plot draws all these "errors" as a histogram, overlaid with a normal distribution fit curve, to judge whether the model's error is "healthy".

💡 If the Prediction Scatter Plot looks at "how accurate the prediction is", then the residual distribution plot looks at "whether the errors follow a pattern".


🧐 How to read?

A healthy model's residuals should satisfy three conditions:

FeatureHealthy behaviorAbnormal behavior and meaning
Center positionSymmetrically distributed around 0Overall offset → the model has a systematic bias (e.g. an important variable was missed)
ShapeClose to a normal distribution (bell-shaped)Bimodal → the data may mix two different populations (e.g. two operating conditions)
WidthThe narrower the betterVery wide → large prediction error, insufficient model explanatory power

The chart also displays key statistics:

IndicatorMeaning
Goodness of fit
RMSERoot mean square error, reflecting the actual size of the error
Residual meanWhether it is close to 0, to judge whether there is systematic bias
Residual standard deviationThe dispersion of the error

🛠️ How to use?

Configuration items

Configuration itemDescription
Prediction typeChoose the prediction category
Target variableChoose the Y variable to analyze

Click Fit to generate.

Diagnostic checklist

  • [ ] Is the histogram centered on 0? An offset means the model systematically underestimates/overestimates
  • [ ] Is it single-peaked and bell-shaped? Bimodality is a warning sign of mixed data
  • [ ] Does the fit curve match the histogram? Deviation means the error does not follow a normal distribution, and the premise of ordinary statistical tests may not hold
  • [ ] Are RMSE and residual standard deviation within the error range acceptable to the business
  • [ ] Is there a long tail? The samples in the long tail are the worst-predicted ones, and deserve separate investigation

💡 What to do when you find a long tail: use the Data Table to find the samples with the largest absolute residuals and see whether they share common features (same batch? same time period?). This often uncovers real process problems.


ChartWhat to look atQuestion it answers
Prediction Scatter PlotPredicted vs actualHow accurate overall? Are the points close to the diagonal?
Prediction Line ChartContinuous comparison of predicted and actual valuesWhich time period did the prediction collapse in?
Residual Distribution PlotThe distribution shape of the residualsDo the errors follow a pattern? Is there systematic bias?

⚠️ Notes

  • Only regression models are supported (PLS / OPLS)——classification models have no concept of continuous residuals
  • A residual plot being normal does not mean the model is necessarily good: it must also be judged together with Q², R² and business plausibility
  • When the amount of data is too small the histogram shape is unstable; it is recommended to have no fewer than 30 samples before reading the shape

Let data speak, make decisions simpler.