Fiveable

Intro to Time Series Unit 11 Review

QR code for Intro to Time Series practice questions

11.1 Fourier analysis and periodogram

11.1 Fourier analysis and periodogram

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Intro to Time Series
Unit & Topic Study Guides

Fourier Analysis

Principles of Fourier analysis

The core idea behind Fourier analysis is that any time series can be broken down into a sum of sine and cosine waves, each with a different frequency. This transforms your data from the time domain (values over time) into the frequency domain (how much energy sits at each frequency).

Why does this matter? Many time series contain cyclical patterns that are hard to see just by looking at a plot. Fourier analysis pulls those cycles apart so you can identify them individually. Think of seasonal patterns in retail sales, daily temperature swings, or business cycles in economic data.

  • Represents a time series as a combination of sinusoidal (trigonometric) components
  • Detects hidden periodicities and cyclical behavior that may not be obvious in the raw data
  • Widely applied in signal processing, physics, engineering, and economics
Principles of Fourier analysis, Periodic summation - Wikipedia

Discrete Fourier transform application

In practice, you're working with sampled data (discrete observations at regular intervals), so you use the Discrete Fourier Transform (DFT) rather than the continuous version. The DFT converts a finite sequence of NN equally spaced samples into a set of complex-valued frequency components:

Xk=n=0N1xnei2πkn/NX_k = \sum_{n=0}^{N-1} x_n \, e^{-i2\pi kn/N}

Here, xnx_n is the time series value at time step nn, NN is the total number of samples, and kk is the frequency index. You can also go backwards: the inverse DFT reconstructs the original time series from its frequency components, so no information is lost.

Each frequency component XkX_k is a complex number that encodes two things:

  • Amplitude (Xk|X_k|): how strong that frequency is in the data. Larger amplitude means that frequency contributes more to the overall signal.
  • Phase (arg(Xk)\arg(X_k)): the timing offset of that frequency component. It tells you where in its cycle that wave starts relative to the beginning of your series.

Computing the DFT directly requires O(N2)O(N^2) operations, which gets slow for large datasets. The Fast Fourier Transform (FFT) algorithm reduces this to O(NlogN)O(N \log N), making Fourier analysis practical even for very long time series.

Principles of Fourier analysis, fourier_series – TikZ.net

Periodogram

Periodogram for frequency identification

The periodogram estimates the power spectral density (PSD) of a time series. While the DFT gives you complex-valued frequency components, the periodogram boils those down to a single real number at each frequency: how much of the series' total variance lives at that frequency.

The formula is straightforward:

I(ωk)=1NXk2I(\omega_k) = \frac{1}{N} |X_k|^2

where Xk2|X_k|^2 is the squared magnitude of the DFT at frequency ωk\omega_k and NN is the sample size.

When you plot the periodogram (power on the y-axis, frequency on the x-axis), you're looking for peaks. A tall peak at a particular frequency means the data has a strong cyclical component at that period. For example, a peak at frequency 1/121/12 in monthly data points to an annual cycle.

  • Peaks reveal dominant frequencies, including the fundamental frequency and its harmonics
  • Useful for detecting diurnal cycles, seasonal patterns, or any hidden periodic behavior
  • Serves as a key exploratory tool before fitting more formal spectral models

Limitations of periodogram analysis

The raw periodogram has several well-known problems you should be aware of:

Spectral leakage. If your time series doesn't contain an exact integer number of cycles for a given frequency, the power from that frequency "leaks" into neighboring frequency bins. This smears peaks and can make it harder to distinguish close frequencies. The standard fix is to apply a window function (such as Hamming or Hann) to the data before computing the DFT. These windows taper the endpoints of the series toward zero, reducing leakage at the cost of slightly wider peaks.

Inconsistent estimation. The periodogram is a statistically inconsistent estimator of the true PSD. Its variance does not shrink as you collect more data. Even with a very long series, the periodogram remains noisy. To get a smoother, more reliable estimate, you can:

  • Average power across adjacent frequency bins (Daniell smoothing)
  • Use data tapering or multitaper methods
  • Apply Welch's method, which averages periodograms from overlapping segments

Limited frequency resolution. The finest frequency difference you can resolve is:

Δf=1T\Delta f = \frac{1}{T}

where TT is the total duration of the time series. A longer observation window gives you finer resolution. You cannot improve resolution just by sampling faster; you need more total time.