Lag Plot Calculator

Explore time-series dependence using interactive lag plots, flexible preprocessing, multi-lag comparisons, statistical diagnostics, seasonal clues, outlier detection, and exportable forecasting insights in seconds online.

Analysis Results

Results update after the calculator processes your time-series data.

Ready
Load an example or enter data to begin.
Selected lag
Observations
Valid pairs
Pearson r
Dependence
Strongest lag

Interpretation

No interpretation is available yet.

1. Time-Series Data

Optional date-value rows may use formats such as 2026-01-01, 25.4.
Parsed observations: 0

2. Lag Configuration

3. Data Preprocessing

4. Plot Customisation

5. Reference Lines and Diagnostics

6. Filtering and Display Limits

Multiple Lag Analysis

Compare selected lags, correlation strength, and recurring time-series structure.

Run an analysis to create lag comparison plots.

Lagged Pair Data

The table shows current values, lagged values, differences, and diagnostic flags.

ObservationDateCurrent valueLagged observationLagged dateLagged valueDifferenceAbsolute differenceValidOutlier
No data available.

Export and Utility Tools

Statistical Details

Run the calculator to view detailed statistics.

Formula Used

Lag plot pairs: (x[t − k], x[t])

Pearson correlation:
r = Σ((x − x̄)(y − ȳ)) / √(Σ(x − x̄)² × Σ(y − ȳ)²)

Autocorrelation at lag k:
rₖ = Σ((xₜ − x̄)(xₜ₋ₖ − x̄)) / Σ(xₜ − x̄)²

Linear regression:
y = b₀ + b₁x

How to Use

  1. Enter values manually or upload a CSV file.
  2. Select the value column and optional date column.
  3. Choose a lag and optional lag comparison range.
  4. Apply transformations, smoothing, differencing, or outlier controls.
  5. Adjust chart labels, markers, ranges, and reference lines.
  6. Generate the analysis and review the plots and statistics.
  7. Export charts, tables, processed data, or a PDF report.

Example Data

MonthValuePossible meaning
January12Starting observation
February15Moderate increase
March18Continued movement
April13Seasonal decline
May16Recurring recovery

Understanding Lag Plots

A lag plot compares each value with an earlier value. Tight diagonal patterns usually indicate positive dependence. Scattered points often suggest weak serial structure.

Downward patterns can reveal negative dependence between observations. Curves may indicate nonlinear time-series behaviour. Repeating structures can suggest seasonal cycles.

Lag plots support forecasting, feature engineering, and residual checking. They also help reveal anomalies and variance changes. Visual results should accompany formal statistical tests.

Machine-Learning Applications

  • Time-series forecasting
  • Autoregressive feature engineering
  • Seasonality detection
  • Anomaly detection
  • Sensor-data analysis
  • Financial-data diagnostics
  • Demand forecasting
  • Predictive maintenance
  • Residual diagnostics
  • Model validation

Frequently Asked Questions

What is a lag plot?

It plots current values against earlier observations. The selected lag controls the time separation.

What does a diagonal pattern mean?

An upward diagonal often indicates positive autocorrelation. A downward diagonal suggests negative autocorrelation.

Which lag should I choose?

Start with lag one. Then test known seasonal periods and correlation peaks.

Can the calculator detect seasonality?

It compares many lags and highlights strong recurring correlations. Formal seasonal modelling may still be necessary.

How are missing values handled?

You can remove, forward-fill, backward-fill, or impute them. Choose a method suitable for your data.

What is the difference between a lag plot and ACF?

A lag plot shows point geometry. An ACF chart summarises correlation across many lags.

Can I analyse CSV files?

Yes. Upload a CSV and select the value and date columns.

Why is my lag plot empty?

The lag may exceed the available series length. Invalid transformations can also remove observations.

Can I export the results?

Yes. Export data, charts, summaries, tables, and PDF reports.

Related Calculators

Time-Series Line ChartRolling Mean PlotRolling Standard-Deviation PlotSeasonal Decomposition PlotAutocorrelation Plot (ACF)Partial Autocorrelation Plot (PACF)Forecast-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.