Time series and browser-side STL-style decomposition

Time Series Visualizer

Load a real series or generate a synthetic one to see, directly in the browser and in real time, how trend, seasonality and residuals relate to each other.

Points: 72Source: Sales with yearly seasonalityPeriod: 12Model: Additive

Data input

Paste a numeric column copied from Excel or Google Sheets, or build a synthetic series by configuring each component separately.

Valid: 72Ignored: 0

Decomposition parameters

Choose the model, let the app detect the dominant period from the ACF or enter it manually, and tune how much the trend should be smoothed.

Use it when seasonal amplitude stays roughly constant over time.

Automatically detected period: 12
Current window: 13 observations

Model parameters

Summary of the effective configuration currently driving the decomposition and charts.

Decomposition modelAdditive
Seasonal period12
Period modeAutomatic detection
Trend smoothing window13
Time frequency Monthly
Points72
SourceSales with yearly seasonality
Start date (optional)2019-01-01

Model

Shows the observed series together with the fitted model prediction and its error bounds.

Visible range: 1-72 of 72

Use the mouse wheel to zoom, drag to select a range, and hold Shift while dragging to pan across time.

Model decomposition

Breaks the model into observed series, trend, seasonality and residuals while keeping the X axis synchronized across the four panels.

Observed series

Trend

Seasonality

Residuals

Additional analysis

ACF and PACF help reveal remaining temporal dependence, while the seasonal plot shows whether the pattern is stable within each cycle.

Original-series ACF

Peaks at specific lags often reveal dominant trend or seasonality. Slow decay usually suggests persistent structure.

Residual ACF

A good decomposition leaves few bars outside the confidence bands. If many remain, there is still signal left to capture.

Original-series PACF

PACF isolates the contribution of each lag after controlling for previous ones, which is useful for spotting autoregressive order.

Residual PACF

Ideally it should look close to white noise: small bars and no systematic pattern.

Seasonal plot by cycle position

Groups observations by position within the period so you can check whether the seasonal pattern stays stable over time.

Metrics and stationarity

Compare the original series with the residuals and quantify how much variability each decomposition component explains.

Variance explained by trend79.3%
Variance explained by seasonality17.6%
Residual variance3.1%
MetricOriginal seriesResiduals
Mean125.20-0.0166
Standard deviation21.56553.656
Minimum / Maximum 85.50 / 180.90 -6.7139 / 6.7047
Variance explained by trend79.3%—
Variance explained by seasonality17.6%—
Residual variance—3.1%

ADF on the original series

-1.559

ADF statistic

Non-stationary series

Approximate p-value: 0.258

ADF on the residuals

-11.602

ADF statistic

Stationary series

Approximate p-value: 0.001

About this tool

Time series have statistical properties that distinguish them from other data types: successive values are not independent of each other. The autocorrelation function ρ(k)=Cov(xt,xt−k)Var(xt)\rho(k) = \frac{\text{Cov}(x_t, x_{t-k})}{\text{Var}(x_t)} measures the correlation between an observation and its value kk periods earlier. Ignoring this temporal structure leads to incorrect models and erroneous conclusions.

Classical additive decomposition expresses the series as xt=Tt+St+Rtx_t = T_t + S_t + R_t, where TtT_t is the trend, StS_t the seasonal component, and RtR_t the residual. When the amplitude of seasonality grows with the level of the series, multiplicative decomposition xt=Tt⋅St⋅Rtx_t = T_t \cdot S_t \cdot R_t is more appropriate. Exponential smoothing weights past observations decreasingly: x^t+1=αxt+(1−α)x^t\hat{x}_{t+1} = \alpha x_t + (1-\alpha)\hat{x}_t, with α∈(0,1)\alpha \in (0,1).

This tool lets you load or generate time series and visualize them along with their decomposition. Examine autocorrelation to detect temporal dependencies, identify trends and seasonality, and explore how different smoothing parameters affect component separation.