Free courses in AI, Data Science & Machine Learning Written lessons · Quizzes · Final exams
Future Data Academy
Log inGet started ↗
← Regression and Prediction
FREE LESSON PREVIEW

Residual diagnostics and baseline comparison

The decision

A delivery-duration model is compared with a simple baseline on the same rows. Residuals are observed minus predicted. A small average signed residual can hide large errors because positive and negative values cancel.

Synthetic case data

observed,candidate,baseline
10,12,15
20,18,15
30,24,25
40,30,35

Work it through

Before reading the worked analysis, identify the unit of observation, required quantities and missing information. Write your own answer, including units and a limitation.

Worked analysis

Candidate residuals are -2,2,6,10: MAE=5 and RMSE=sqrt(144/4)=6. Baseline residuals are -5,5,5,5: MAE=5 and RMSE=5. The candidate ties on MAE but is worse on RMSE and underpredicts larger outcomes. Low-range candidate MAE is 2; high-range MAE is 8. Four rows do not establish broad reliability. Examine a larger representative holdout and the decision cost of underprediction. State units; a metric of 5 means five duration units, not automatically five percent.

Independent challenge

Build a paired evaluation table, residual-plot description and recommendation. Compare low and high outcome ranges. Propose a later-time holdout and explain the limits of prediction outside the observed range.

Acceptance checks

Use identical rows, report missing predictions and avoid treating one metric as universally best. Separate a diagnostic pattern from proof of its cause.

Further reading

Official reference. This original academy exercise uses synthetic data; the reference provides background and does not endorse the academy.

Explore the full course →