Residuals

    Residuals are the gaps between what a model predicted and what actually happened, one for each time period.

    Last reviewed

    In a sound model they look like random scatter. Patterns are clues. A run of positive residuals every December means the season isn't fully captured. A sudden shift means something changed that the model doesn't know about. Plotting residuals over time is one of the cheapest and most revealing checks there is.

    Also called
    Errors
    Topic
    Model quality and Bayesian methods

    Related terms

    Autocorrelation
    Autocorrelation is when a time series is correlated with its own past values. In a model's residuals, it means the errors aren't random and something is missing.
    R-squared
    R-squared is the share of the variation in the outcome that a model accounts for, from 0 (none) to 1 (all).
    Mean absolute percentage error (MAPE)
    Mean absolute percentage error is the average size of a model's prediction errors, expressed as a percentage of the actual values.
    Posterior predictive check
    A posterior predictive check simulates data from a fitted Bayesian model and compares it with the real data, to see whether the model can reproduce what was observed.
    Structural break
    A structural break is a point in time after which the relationships in your data changed, so history before it no longer describes the present well.

    Want a second opinion?

    Tell us what you're trying to decide and what data you have, and we'll tell you what we'd do. Or take the short readiness quiz first. It's a rough screen, not a verdict. Both open on the home page.