| Domain | Question |
|---|---|
| Time | How does the past predict the future? |
| Frequency | What structure generated this process? |
Two Lenses, One Reality
Throughout this book we have seen that understanding and decision support are intertwined.
Time series analysis makes this especially vivid.
| Domain | Question |
|---|---|
| Time | How does the past predict the future? |
| Frequency | What structure generated this process? |
These are not competing approaches—they are dual perspectives on the same underlying reality, connected by mathematics.
Standard assumption in statistics: Observations are independent
Time series reality: Successive observations are dependent
This dependence is not merely a technical nuisance. It is information:
The dependence structure of a stationary time series has two equivalent descriptions:
| Domain | Object | Question |
|---|---|---|
| Time | Autocorrelation function \(\rho(u)\) | How does \(X(t)\) correlate with \(X(t-u)\)? |
| Frequency | Spectral density \(f(\lambda)\) | How much variance comes from frequency \(\lambda\)? |
These contain the same information—they are Fourier transform pairs.
Understanding both illuminates what either alone obscures.
This is not historical accident. There is a deep reason.
The back-shift operator \(\mathcal{B}\) shifts a process in time:
\[[\mathcal{B}X](t) = X(t-1)\]
Complex exponentials \(e_\lambda(t) = e^{i\lambda t}\) are eigenfunctions of \(\mathcal{B}\):
\[\mathcal{B}(e_\lambda) = e^{-i\lambda} \cdot e_\lambda\]
Sinusoids are the natural “modes” of any time-invariant linear system.
One way to think about stationary processes:
In the beginning: White noise—independent observations, no memory
Then: A linear, time-invariant filter acts on the white noise
Result: Autocorrelated output—the filter’s fingerprint
The spectrum tells you what the filter did.
The ACF tells you how the present relates to the past.
Figure 1: Monthly sunspot numbers, 1749–present
Figure 2: ACF of monthly sunspot numbers
Figure 3: Spectrum of monthly sunspot numbers
Figure 4: Annual temperature deviations from 1991–2020 average
Figure 5: ACF of global land temperatures
Figure 6: Spectrum of global land temperatures
Figure 7: Southern Oscillation Index and Recruitment, 1950–1987
Figure 8: SOI: ACF and Spectrum
Figure 9: Recruitment: ACF and Spectrum
White noise is the reference point—a process with no memory:
Time domain: \(\rho(u) = 0\) for all \(u \neq 0\)
Frequency domain: Flat spectrum—equal variance at all frequencies
Bandwidth: 0.072 | Degrees of Freedom: 72.12 | split taper: 0%
Figure 10: White noise: time series, ACF, and spectrum
Any structure in ACF or spectrum reveals departure from independence:
| Observation | Time Domain | Frequency Domain |
|---|---|---|
| Slow ACF decay | Persistence/trend | Low-freq dominance |
| ACF oscillation | Cyclical dependence | Spectral peaks |
| Sharp ACF cutoff | Short memory (MA) | Smooth spectrum |
| Gradual ACF decay | Long memory (AR) | Peaked spectrum |
The two views are complementary diagnostics.
A process is second-order stationary (weakly stationary) if:
\(E\{X(t)\} = \mu\) (constant mean)
\(\text{Cov}(X(t+u), X(t)) = \gamma(u)\) (depends only on lag \(u\))
Why it matters:
Stationarity is the statistical counterpart of time-invariance in systems theory.
A linear filter is time-invariant if shifting the input shifts the output by the same amount—the filter doesn’t care what time it is.
Stationary processes are precisely those whose statistical properties don’t care what time it is.
This connection is why Fourier methods—natural for time-invariant systems—are fundamental for stationary processes.
Figure 11: Stationary vs. non-stationary
Common transformations for non-stationary data:
| Problem | Transformation |
|---|---|
| Trend in mean | Differencing: \(Y(t) = X(t) - X(t-1)\) |
| Exponential growth | Log transform, then difference |
| Changing variance | Log or Box-Cox transform |
| Seasonality | Seasonal differencing |
After transformation, check that ACF decays and spectrum is not dominated by lowest frequencies.
\[\rho_X(u) = \frac{\gamma_X(u)}{\gamma_X(0)} = \text{Corr}(X(t+u), X(t))\]
Properties:
The ACF answers: How predictable is the future from the past?
Figure 12: Sample ACF for SOI data
The PACF measures correlation between \(X(t+u)\) and \(X(t)\) after removing the linear effect of intervening values.
\[\phi_{uu} = \text{Corr}(X(t+u) - \hat{X}(t+u), \; X(t) - \hat{X}(t))\]
The PACF answers: What is the direct effect of lag \(u\), controlling for shorter lags?
Figure 13: ACF and PACF for SOI data
Suppose we estimate the mean \(\mu_X\) from \(T\) observations.
If independent: \[\text{Var}(\bar{X}) = \frac{\sigma_X^2}{T}\]
If autocorrelated: \[\text{Var}(\bar{X}) = \frac{\sigma_X^2}{T} \left(1 + 2\sum_{u=1}^{T-1}\left(1 - \frac{u}{T}\right)\rho_X(u)\right)\]
Ignoring autocorrelation gives wrong standard errors.
This is a failure of understanding producing a failure of inference.
Question: How many independent observations would give the same variance?
\[N_{\text{eff}} = \frac{T}{\displaystyle 1 + 2\sum_{u=1}^{T-1}\left(1 - \frac{u}{T}\right)\rho_X(u)}\]
Example: If \(\rho_X(1) = 0.8\) and higher lags decay geometrically…
Your sample is 9× smaller than it appears!
| If you ignore autocorrelation… | Consequence |
|---|---|
| Confidence intervals | Too narrow |
| Hypothesis tests | Too many false positives |
| Standard errors | Underestimated |
| Cross-validation | Training/test not independent |
The lesson: Understanding the dependence structure is essential for valid inference.
This is not merely academic—it affects real decisions.
Chapter 13: Time Domain Methods
Chapter 14: Frequency Domain Methods
Both perspectives are needed for complete understanding.
Time series analysis embodies the dual aims of data analysis:
Decision support: Forecast tomorrow’s value, next quarter’s earnings, next year’s climate
Scientific understanding: What periodic phenomena drive the system? What filtering has occurred? What is the physics?
Effective forecasting rests on understanding; understanding is tested by predictive success.
The two aims are inseparable.
Time series have memory—the present depends on the past
Two equivalent descriptions: ACF (time domain) and spectrum (frequency domain)
Fourier analysis is fundamental because sinusoids are eigenfunctions of time-shift
Stationarity is the statistical counterpart of time-invariance
Ignoring structure invalidates inference—ESS reveals your true sample size
Understanding and prediction are intertwined—the dual aims made precise
When you encounter a new time series:
Plot the series: Look for trend, seasonality, level shifts, changing variance
Check stationarity: Does \(X\) wander? Transform as needed
Examine the ACF: How fast does it decay? Any oscillation?
Examine the spectrum: Any dominant peaks? Low-frequency dominance?
Consider ESS: How much independent information do you really have?
Ask both questions: What predicts the future? What structure is present?
astsa DatasetChoose a time series from astsa not discussed today (e.g., nyse, oil, prodn):
Generate 500 observations of Gaussian white noise using rnorm():
For an AR(1) process, \(ESS \approx T \cdot (1 - \phi) / (1 + \phi)\).
You fit a regression and the residuals have ACF(1) = 0.4. What are the implications?
When is first differencing appropriate? When might it remove too much signal?
“The spectrum and ACF contain the same information.” True in theory—why might one be more useful in practice?