L41 Frequency Domain Analysis
Spectral Analysis¶
- Decomposing a TS into \(\sin\) and \(\cos\) functions of different frequencies.
- Appropriate when you observe cycle dynamics (periodicity, cyclicity)
- Infectious disease data (periodicity of immunity)
- Business cycles (periodicity of cycles)
- Decompose stationary TS \(\{ Y_{t} \}\) into combination of sinusoids1 with uncorrelated random coefficients
where \(A_{1}\) and \(A_{2}\) are frequencies. We have to identify those frequencies which are particularly important (strong).
- Till now, time domain approach
- Regression on past values of TS (\(y_{t-i}\)) and shocks (\(e_{t}\))
- Regression approach considers regression on sinusiods
- Spectral density function is required
Trigonometry refresher¶
- \(\sin k\pi = 0\) for all \(k = \pm 1,\pm 2,\dots\)
- \(\cos k\pi = (-1)^{|k-1|}|\) for all \(k = \pm 1,\pm 2,\dots\)
- \(\sin(-A) = -\sin A\)
- \(\cos (-A) = \cos A\)
Fourier and Inverse Fourier Transforms¶
- DFT of a function \(h(t)\) for \(t \in \{ \dots, -1, 0, 1,\dots \}\) is
Inverse Fourier Transform of \(H(\omega)\) is given by,
Properties¶
If \(h(t) = h(-t)\)
$$
H(\omega) = h(0) + \sum_{t=1}^{\infty} h(t) (e^{ -\omega t } + e^{ i \omega t})
$$
or
Thus, \(h(t) = \dfrac{1}{\pi} = \int_{0}^{\pi}H(\omega) \cos(\omega t)\ d\omega\)
Notation¶
- \(\omega:\) frequency of periodic variation \((0 \leq \omega \leq 2\pi)\)
- \(R:\) amplitude of variation
- \(\nu\) phase
- \(\{ u_{t} \}:\) purely random process
If \(R, \nu\) are constants
- Assume, \(R\) has 0 mean and finite variance, or \(\mu \sim Uniform(0,2\pi)\) then \(E(y_{t})=0\). Thus the process is stationary.
Practical applications of Fourier Transform¶
- Signal procesing
- Audio processing
- Noise Reduction
- Equalization (adjust the balance of frequency components)
- Compression (represent audio signals more compactly by prioritizing significant frequency components)
- Image processing
- Edge detection (detect outlier)
- Image compression (JPEG uses DCT)
- Audio processing
- Communications
- Modulation
- Demodulation
- Spectrum Analysis
- Physics and Engineering
- Wave Analysis
- Optics
- Structural Analysis
which is \(t\)-dependent and thus becomes non-stationary.
-
Sine and cosine function together are called sinusoids ↩