startthat.work home

HE1-20 Trend and time-series decomposition Also serves: Project forward.

Separates a series into trend, seasonal and irregular parts and produces plots and a fitted trend.

Handle evidenceEvidence: DocumentedPrimary technique, runs in step 5.3Strongest statement: describe

What it does

Separates trend, seasonal and irregular parts of a series. Artefact: plots and a fitted trend; read breaks and seasonality.

When to use it

Use when you need to know whether a rising or falling series reflects a trend, a seasonal pattern or noise.

When it does not fit

Definitions changed during the series.

Result format

The result has plots of the series and its separated trend, seasonal and irregular parts, with a fitted trend. It names the breaks in the series and the seasonal pattern.

Method steps

  1. Check that the series is measured at regular intervals and identify the seasonal period.
  2. State the form: additive (trend plus seasonal plus remainder) or multiplicative. If the data allow logs, take logs and use an additive method.
  3. Estimate the trend. Classical method: a moving average with a window equal to the seasonal period. STL method: an iterative fit that alternately smooths the trend and the seasonal part.
  4. Remove the trend and average the remaining values for each season to get the seasonal component. The remainder is what is left.
  5. Inspect the parts. The seasonal pattern should repeat and be smooth, the trend should be a smooth underlying level, and the remainder should be small and noise-like. Look for breaks in the trend and large values in the remainder.
  6. Write the result: plots of the parts and the fitted trend, with the breaks and the seasonality described.

Steps drawn from: section 2.2.2 of Petropoulos et al., Forecasting: theory and practice. The rule for choosing between additive and multiplicative form is the next item to source, from a forecasting text.

Requirements on the material

PropertyRequirement typeRequirement
StructureApplies in some casesrequires=structured
Content typeAlways appliesrequires=time series
Unit of analysisAlways appliesrequires=variable; requires=dataset
Variable typesRaises a warningprefers=interval; prefers=ratio; prefers=counts or fractions
Time structureApplies in some casesrequires=aggregate time series
Level of detail availableAlways appliesrequires=aggregate tables
Appraises source credibilityApplies in some casesno

Not restricted on: How the sample was chosen, Number of sources, Whether sources can be joined, Amount of material, Known data problems, Producer interest, Source dependence, Origin, Document genre, Language, Personal information, Security classification, Licence.

Minimum materialat least two full seasonal cycles for seasonal decomposition
Additional sources needednone
Not for (rules)none
Not for (text)Definitions or measurement changed during the series, which produces false breaks.

Choosing and ordering

Kind of techniquePrimary technique, runs in step 5.3
Phase taganalyse
Other phase tagsnone
Kind of findingtrend; pattern
Question answeredwhat; how much
Strongest statement it supportsdescribe
Needs as input
Makes as output
Must exist firstNone
Loop targetproceed with limit stated

Library checks by stakes

Each stakes level includes the checks of the level below it. Checks that need a person apply at high stakes only, so the process leaves them out at lower stakes (decision 38). Repeatability: deterministic.

StakesCheckPerson involvedCounts as a different method
exploratoryinput validationnoneno
decision-informinginput validationnoneno
decision-informingspot checkoptionalno
high-stakesinput validationnoneno
high-stakesspot checkoptionalno
high-stakesindependent reviewneededno
high-stakesprovenance lognoneno

Failure modes and limits

Model suitabilitymodel plus code
Typical model failureFits a decomposition by eye or in prose without running it, and reads a definition change as a trend break.
Error sourcesinput data; statistical assumptions; data transformation
Certainty limitsCertainty drops with short series, definition breaks and outliers (imprecision and risk of bias).

Evidence and tag basis

Documented. A review of forecasting methods describes decomposition into trend, seasonal and remainder components, in additive or multiplicative form, with classical decomposition (a moving average over the seasonal period) and STL (an iterative smoothing method). (Petropoulos et al., Forecasting: theory and practice, section 2.2.2) A forecasting textbook is listed for the choice between additive and multiplicative form.

Tag basis: input profile inference; selection inference; sequencing inference; robustness inference. All tag values are inference unless a source is named.