Periodogram

The periodogram of a length- time series is the rescaled squared modulus of the DFT at every Fourier frequency :

It is the sample estimate of how power is distributed across frequencies, the frequency-domain analogue of the sample autocovariance in the time domain. By the symmetry of the DFT, for real-valued data, so plots conventionally show only the half-band and double the value at every interior frequency to preserve total power.

The periodogram estimates the spectral density : the population quantity that says how variance is distributed across frequencies in the data-generating process. The estimator is asymptotically unbiased (the average of many periodograms approaches ) but is not consistent at any individual frequency: its variance does not shrink as the sample size grows. The raw periodogram therefore stays jagged regardless of how much data is collected, and consistent estimation requires either smoothing across nearby frequencies or averaging across non-overlapping windows.

Under Gaussian white noise with variance , the rescaled periodogram values are approximately distributed as random variables, independently across distinct interior Fourier frequencies. Since has variance , the standard deviation of is approximately at every frequency, a relative error that does not improve with .

Inconsistency of the Raw Periodogram . Consistent spectral-density estimation requires either smoothing (averaging across neighboring Fourier frequencies, which reduces variance by at the cost of resolving power ) or Welch's method, which averages periodograms across overlapping windows of the record.

Adding more data does not make the periodogram smoother. Each Fourier frequency receives only two degrees of freedom (the sine and cosine coefficients), so each estimate sees a constant amount of information regardless of

Intuition

The periodogram is to the spectral density what the histogram is to a probability density: a sample-based decomposition of how the data’s variability is distributed, here across frequencies instead of across values. A spike in at some frequency says “a sinusoid at frequency explains a substantial part of the variation in the observed series.” More precisely, equals (up to scaling) the residual-sum-of-squares improvement when adding the and pair to a regression, so the periodogram is, literally, a regression diagnostic in disguise.

The roughness of the raw periodogram is not a bug to patch away with more data; it is the unavoidable price of resolving frequency at all. With samples there are frequency bins, each receiving exactly two degrees of freedom (the orthogonal sine-cosine pair). Increasing creates more bins rather than tightening the existing ones. To stabilize individual frequency estimates the analyst must pool information across nearby frequencies (smoothing) or across record segments (averaging), both of which trade frequency resolution for variance reduction.

Properties

(Periodogram-Autocovariance Identity) The periodogram is the discrete Fourier transform of the sample autocovariance.

For mean-centered data,

Up to normalization, the periodogram is the DFT of the sample autocovariance function. This is the sample-side reflection of the population identity , and is why the time-domain and frequency-domain analyses contain “the same information” rearranged.

(Symmetry) For real-valued data, .

The squared modulus inherits the conjugate symmetry of the DFT, so all the information is contained in the half-band . Plots typically show this half and double the values at interior frequencies (so that integration over the visible band recovers the total variance). The Nyquist frequency is the highest oscillation that a discretely sampled series can express.

(Sampling Distribution) Under Gaussian white noise, are approximately i.i.d. across distinct Fourier frequencies.

A has mean and variance , so (asymptotically unbiased) but (relative error of ). Approximate confidence bands at each frequency are

which are wide because the distribution is heavy-tailed. A practical consequence: a single periodogram peak that fails to clear a confidence band is weak evidence of a true spectral feature.

(Smoothed Periodogram) Averaging over neighboring Fourier frequencies stabilizes the estimate.

The smoothed periodogram with has approximate distribution . The variance shrinks by a factor of , but the resolving power degrades by : too little smoothing leaves the estimate noisy, too much washes out genuine sharp peaks. Choosing is a bias-variance trade-off, typically guided by visual inspection or by the expected width of the spectral features being sought.

(Welch’s Method) Splitting the record into overlapping segments, computing periodograms separately, and averaging gives a consistent spectral estimator.

Welch’s method has effective degrees of freedom , so its variance is times smaller than the raw periodogram. Overlapping windows (typically ) recover information lost at segment boundaries by the windowing taper. This is the production-grade spectral estimator implemented in scipy.signal.welch and is what most signal-processing pipelines actually use.

If the series has a non-zero mean or a polynomial trend, near inflates dramatically and can mask higher-frequency structure. Standard pre-processing for spectral analysis is therefore to subtract the sample mean, optionally remove a low-order polynomial trend by regression, and sometimes apply a window taper (Hanning, Hamming) to reduce edge effects before computing the DFT. Skipping these steps produces a periodogram dominated by a giant spike at that has nothing to do with the spectral structure of interest.

Examples

Periodogram of white noise

For , the true spectral density is the constant . What does the sample periodogram look like, and why doesn’t it converge to a flat line?

Detecting a hidden sinusoid

For with and on the Fourier grid, how strong does the sinusoid need to be to show up against the noise floor?