RainbowStats command reference
ACF_CHART
Displays the autocorrelation of a time series across successive lags, helping reveal persistence, seasonality, and remaining structure in model residuals.
Syntax
ACF_CHART(series)
series
The numeric time series whose autocorrelation function will be plotted.
What the chart shows
For each lag, the chart measures the correlation between the series and a delayed copy of itself. Autocorrelation values range from −1 to +1. Bars near zero indicate little linear dependence at that lag; larger positive or negative bars indicate stronger serial structure.
Often signals persistence or a non-stationary level series.
Can reveal a seasonal or cyclical pattern.
Suggest that a fitted model may still be missing time dependence.
Examples
ACF_CHART(logdiff(UNRATE))
ACF_CHART(UNRATE)
ACF_CHART(logdiff(DSG10))
Interpretation guidance
Use stationary data when possible.
Trending economic levels often produce high autocorrelation even when the apparent
relationship is not economically meaningful. Apply a transformation such as
diff(series) or logdiff(series) when appropriate.
- Plot the original series and look for trend or changing variance.
- Transform the data if necessary, then run
ACF_CHART. - After fitting a model, run the chart on its residuals.
- Well-specified residuals should generally resemble uncorrelated noise.
Notes
Autocorrelation is descriptive, not proof of causation. Individual spikes should be interpreted alongside the sample size, the number of lags examined, the data frequency, and the economic context.