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.
Data input
Paste a numeric column copied from Excel or Google Sheets, or build a synthetic series by configuring each component separately.
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.
Model parameters
Summary of the effective configuration currently driving the decomposition and charts.
Model
Shows the observed series together with the fitted model prediction and its error bounds.
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.
| Metric | Original series | Residuals |
|---|---|---|
| Mean | 125.20 | -0.0166 |
| Standard deviation | 21.5655 | 3.656 |
| Minimum / Maximum | 85.50 / 180.90 | -6.7139 / 6.7047 |
| Variance explained by trend | 79.3% | — |
| Variance explained by seasonality | 17.6% | — |
| Residual variance | — | 3.1% |
ADF on the original series
ADF statistic
Approximate p-value: 0.258
ADF on the residuals
ADF statistic
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 measures the correlation between an observation and its value periods earlier. Ignoring this temporal structure leads to incorrect models and erroneous conclusions.
Classical additive decomposition expresses the series as , where is the trend, the seasonal component, and the residual. When the amplitude of seasonality grows with the level of the series, multiplicative decomposition is more appropriate. Exponential smoothing weights past observations decreasingly: , with .
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.
Articles published on the blog
