Autocorrelation Plot (ACF) Calculator

Analyze time series autocorrelation, significant lags, seasonal structure, transformations, confidence bounds, white-noise tests, comparisons, and downloadable reports through one interactive calculator for practical forecasting.

Autocorrelation results

Results reflect the selected preprocessing, lag, confidence, and estimator settings.

ACF plot
Interpretation and diagnostics

White-noise tests

Stationarity support

Lagged-pair inspection
Selected pair correlation
IndexCurrent valueLagged valueDifference
Rolling statistics
Lag comparison table
Lag ACF Covariance Pair count Lower bound Upper bound Significant
1. Data input
Use commas, spaces, semicolons, tabs, or new lines. CSV uploads can contain several numeric columns.
Maximum recommended size: 5 MB.
2. Time-series configuration
3. Preprocessing
4. Lag and calculation settings
Leave blank for an automatic recommendation.
Fast mode uses optimized direct loops in this browser version.
5. Confidence intervals and tests
6. Plot options
Formula used

The sample autocorrelation at lag k compares each observation with an earlier observation. It measures repeated linear structure across the series. The result always lies near minus one and one.

rk = Σt=k+1n(xt - x̄)(xt-k - x̄) / Σt=1n(xt - x̄)2

Approximate pointwise confidence bounds use a normal critical value. Bartlett-style bounds widen using preceding autocorrelations. These bounds are exploratory, not simultaneous inference across every lag.

How to use
  1. Enter values or upload a CSV file.
  2. Select the primary numeric column when needed.
  3. Configure missing values, transformations, and differencing.
  4. Choose lag, confidence, estimator, and plotting options.
  5. Calculate, inspect significant lags, and export results.
Example data
MonthDemandPossible pattern
1120Starting level
2128Short-term persistence
3135Rising movement
12122Potential seasonal return
13127Lag-twelve comparison
Understanding the ACF

Positive spikes indicate observations move together across the selected lag. Negative spikes indicate alternating movement between paired observations. Small spikes indicate limited linear dependence at that lag.

Slow decay can indicate trend, persistence, or non-stationarity. Repeated peaks at seasonal multiples can indicate recurring structure. Rapid decay often reflects a shorter-memory time-series process.

ACF supports model identification but does not choose models alone. PACF measures direct lag effects after shorter lags. Stationarity checks and domain knowledge should guide final decisions.

A significant spike is not proof of causation, seasonality, or one specific ARIMA model. Multiple testing and structural changes can affect interpretation.
Frequently asked questions

What does autocorrelation measure?

It measures linear similarity between a series and lagged copies. Values near one show positive repetition. Values near minus one show alternating behavior.

Why does lag zero equal one?

Lag zero compares every observation with itself. Both sequences are identical. Their normalized correlation therefore equals exactly one.

What is a significant ACF spike?

It crosses the selected approximate confidence boundary. The spike deserves investigation. It does not establish a complete time-series model.

How should maximum lag be selected?

Use enough lags to expose meaningful cycles. Avoid using nearly the entire sample. Later lags contain fewer reliable observation pairs.

When should I difference the series?

Differencing can reduce trends and persistent level shifts. Consider it when ACF values decay slowly. Verify that differencing does not remove meaningful structure.

What is seasonal differencing?

It subtracts values separated by a seasonal period. Monthly data often uses period twelve. Weekly data may use period fifty-two.

How do ACF and PACF differ?

ACF includes direct and indirect lag relationships. PACF controls for shorter intermediate lags. Both plots support ARIMA order exploration.

What do Ljung–Box results mean?

The test evaluates several autocorrelations jointly. A small p-value rejects white-noise behavior. The chosen test lag affects the conclusion.

Can irregularly spaced data use ACF?

Standard ACF assumes regular observation spacing. Irregular timing can distort lag meaning. Resample or interpolate carefully before interpretation.

Can missing values change results?

Yes, deletion and imputation alter observation pairs. Different methods may produce different spikes. Report the selected missing-value method clearly.

Does autocorrelation prove causation?

No, it only measures repeated linear association. Trends can create misleading autocorrelation. External causes require separate evidence and analysis.

Related Calculators

Time-Series Line ChartRolling Mean PlotRolling Standard-Deviation PlotSeasonal Decomposition PlotPartial Autocorrelation Plot (PACF)Lag PlotForecast-versus-Actual PlotForecast Confidence-Band PlotSeasonal Subseries PlotCalendar Heatmap

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.