Understand the idea
Think of ice cream sales: they rise a little every year (a TREND), they spike every summer and dip every winter (a SEASONAL pattern), and there's still day-to-day wiggle left over that neither of those explains (the REMAINDER). STL is a way to pull those three pieces apart from a single series so you can look at each one on its own.
'Seasonal strength' is a number from 0 to 1 that answers: once the trend is removed, how big is the repeating seasonal shape compared with the leftover noise? Near 1 means the seasonal swing dominates; near 0 means there is little repeating pattern. Even pure noise gives a value above 0, especially with only a few cycles, so a high value is a description, not proof that the season is real.
It's worth being clear about what STL does NOT do: it describes a series, it does not forecast one. To predict the future you would model the trend and remainder (or just use ARIMA or exponential smoothing directly), then add the seasonal pattern back on top.
STL stands for seasonal-trend decomposition using LOESS, so it is sometimes called a LOESS decomposition. Trend strength is a number from 0 (no trend) to 1 (a strong trend) saying how clearly the trend stands out from the leftover noise; both strengths depend on the settings and on how much data you have, and the card shows n/a when one cannot be computed.
Practitioner explanation
KernelStats runs statsmodels' STL (robust = False, additive only) and verifies the additive identity y = trend + seasonal + remainder numerically, reporting the maximum reconstruction error as a sanity check that the three components genuinely recombine to the original series rather than silently drifting apart.
Seasonal strength = max(0, 1 - Var(remainder)/Var(seasonal + remainder)), and trend strength is the analogous ratio using Var(trend + remainder). For a series that is constant or effectively so, both variances in the denominator sit at floating-point noise, making the ratio meaningless rather than informative; KernelStats detects this degenerate case against a noise floor set by the series' own scale and reports the strength as undefined (n/a) rather than printing an arbitrary number.
The 'additive components' assumption row is informational: it describes the chosen additive model and is not a passed data check. 'Enough seasonal cycles' is computed: KernelStats, like R's stl(), refuses a series with two cycles or fewer (n <= 2 x period) and warns below five cycles. 'Equally spaced observations' is computed for internal gaps: a blank cell inside the series is dropped and the series closed up, which shifts every later value one period earlier in the seasonal cycle, so the card flags it and lists the rows; when the optional period column is given (a date, 2023-01, Jan 2023, 2023Q1 or a year) the same row is checked against the calendar itself: a changing gap is flagged with its table rows, repeated periods are reported as several series stacked (a panel), and the component plots carry real dates, without changing any number. The settings are statsmodels' STL defaults (seasonal window 7, local-linear fits, no robustness iterations), which the R export passes explicitly; R's own stl() defaults differ.
Seasonal strength is a descriptive variance-ratio summary of this fitted decomposition, not a significance test. Random variation can produce a nonzero fitted seasonal component; its behavior depends on the period, smoother settings and available cycles. There is no universal noise floor or evidence cutoff. The warning below five cycles is a short-series caution heuristic; passing it does not establish seasonality. Inspect the seasonal and remainder panels, calendar spacing and stability across cycles.
When to use it
Consider it when
You want to separate a series into its long-run trend, a repeating seasonal pattern, and leftover noise, to understand structure, to seasonally adjust the data, or to decide whether a seasonal model is worth fitting at all.
Use caution when
You want an actual forecast rather than a description of the series (use ARIMA or exponential smoothing directly, or model the seasonally-adjusted series and add the seasonal pattern back), you have two full seasonal cycles or fewer of data, or the seasonal swing visibly grows with the level (log-transform first; this function is additive only).
Formulas and symbols
Seasonal strength
Descriptive summary between 0 and 1 when the denominator is well defined. R is the fitted remainder and S the fitted seasonal component. This is not a significance test; there is no universal noise floor or evidence cutoff. The value depends on smoothing settings, period and available cycles.
Trend strength
Analogous to seasonal strength, using the trend-plus-remainder variance in place of seasonal-plus-remainder.
Additive reconstruction identity
The maximum absolute gap between the raw series and trend+seasonal+remainder, reported as a numerical sanity check on the decomposition itself.
Assumptions and checks
- The decomposition represents the observed values as an additive sum. STL can accommodate a changing seasonal pattern and does not require a stationary raw series. Consider transformations and smoother settings if seasonal amplitude changes with the level; outliers can affect this nonrobust fit.
In KernelStats: The additive-components row is informational, not a passed data check. The card verifies numerical reconstruction, refuses two cycles or fewer, warns below five cycles, and checks internal gaps and the optional period calendar. These checks do not validate a seasonal interpretation.
Alternatives
- ARIMA Forecast. You want a forecast rather than a decomposition with descriptive trend- and seasonal-strength summaries.
- Exponential Smoothing. You want a forecast that directly uses the trend/seasonal structure, rather than decomposing first and modeling the pieces separately.
Worked example
Scenario
36 months of monthly sales with a visible year-over-year cycle, decomposed with period = 12 (three full cycles).
Result
Illustrative values: seasonal strength = 0.78, trend strength = 0.41, reconstruction max error < 1e-9. With three cycles, the card issues its below-five-cycle caution.
Interpretation
A seasonal strength of 0.78 describes this fitted decomposition; it does not establish seasonality. Three cycles offer limited information about repeatability, and the below-five-cycle warning is a caution heuristic, not a calibrated acceptance threshold. Inspect the seasonal and remainder panels, calendar spacing and stability across cycles before choosing a seasonal forecasting model.
Common misconceptions
Misconception
STL decomposition is itself a forecasting model: once you have the trend and seasonal components you can just read off next month's value.
Correction
STL is a descriptive tool: it explains the past, it does not extrapolate the future. To forecast, model the seasonally-adjusted series (trend plus remainder) and add the seasonal pattern back, or simply fit ARIMA Forecast or Exponential Smoothing directly on the original series.
Misconception
A seasonal strength close to 1 proves the seasonal pattern is a real, statistically significant effect rather than noise.
Correction
Seasonal strength is a descriptive variance ratio, not a hypothesis test or a probability of real seasonality. A fitted seasonal component can arise from random variation, with behavior depending on the period, smoother settings and available cycles. There is no universal noise floor or evidence cutoff. Inspect the component plots and repeatability; the below-five-cycle warning is a caution heuristic.
References
- STL: A Seasonal-Trend Decomposition Procedure Based on Loess, Cleveland, R. B., Cleveland, W. S., McRae, J. E. and Terpenning, I. (1990), Journal of Official Statistics, 6(1), 3-73.
- Forecasting: Principles and Practice, Hyndman, R. J. and Athanasopoulos, G. (2021).
- Forecasting: Principles and Practice: Time series features, Hyndman, R. J. and Athanasopoulos, G., §4.3 STL Features.
