Skip to content

Spectral Analysis

Breaks a time series into cycles of different lengths and shows which cycles carry the most variation (the periodogram and spectral density). For two series it shows how strongly they move together at each cycle length.

  • To find hidden periodic patterns (seasonality, business cycles) in a series.
  • To check whether two series share cycles (coherency) and which one leads (phase).
  • Equally spaced observations with no gaps; the series should be roughly stationary (remove trend first, e.g. with differencing or TSFILTER).
  • The raw periodogram is noisy; a spectral window smooths it at the cost of resolution.
  • Periodogram / spectral density: peaks mark dominant cycles; the period is 1 / frequency (e.g. frequency 0.083 in monthly data = a 12-month cycle).
  • Squared coherency: 0 to 1, how strongly two series are linearly related at each frequency.
  • Phase and gain: the lead or lag between series and how much one series’ cycle is amplified in the other.

The smoothed spectrum of monthly sales (Tukey window, span 5) peaked at a period of 12 months, indicating annual seasonality.

Syntax: SPECTRA VARIABLES=sales /CENTER /WINDOW=TUKEY(5) /PLOT=P S BY PERIOD.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.