When to use it
You want to separate a series into its long-run trend, a repeating seasonal pattern, and the leftover noise: to understand structure or to seasonally adjust the data.
When not to: 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).
Step by step
Open it from the menu
Click Time Series in the menu bar; under Decomposition choose STL Decomposition.
Fill in the form
Choose the columns: Series over time, Dates or periods (optional). The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: Seasonal period. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| Series over time Series required | One numeric column. The time-ordered numeric series to decompose |
|---|---|
| Dates or periods (optional) Period | One temporal or categorical or ordered categorical or numeric column. Optional date or period column (a date, 2023-01, Jan 2023, 2023Q1 or a year) that gives the series its calendar: used for the spacing check and the plot axis; it never changes the numbers. |
| Seasonal period | Length of the seasonal cycle (e.g. 12 for monthly) Default: 12. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
A worked example
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.
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.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- How much of the variation in monthly sales is seasonal vs trend?
- Explain the STL decomposition in plain words.
- What does residual mean?
Last reviewed November 16, 2026.
