# Has spectrum analysis ever been used successfully to analyse historical price data?

Spectrum analysis is often used to analyse waveforms. A common configuration, for example, is to create a graph where X is time, Y is frequency, and the brightness of each position represents amplitude.

Has spectrum analysis ever been used successfully as an indicator to analyse historical price data, for example the price of shares over time?

-
Those who say don't know. Those who know don't say. --Lao-tzu, Tao Te Ching (via Pat Burns). – Joshua Ulrich Jan 24 '12 at 18:48
Hmm, sounds like a hammer looking for its nail. – chrisaycock Jan 24 '12 at 18:49
Thanks, it seems the concept has been used before and there are even books on the topic. Thanks as well for the assertion that moving averages are like a low frequency filter. I've marked the most voted answer as correct. – alan2here Jan 30 '12 at 2:18

I would recommend Marc Wildi's work on signal extraction.

-

Yes. Check out Time-Series Analysis by Shumway and Stoffer. Spectral Analysis and Filtering is covered in Chapter 4.

-

In the academic literature it is extremely widely applied in the last 20 years. I would estimate maybe 200 empirical papers, or more. For example a common finding is that higher frequency (daily) wavelet correlations have been high since 2007, attributable either to increasing financial interation or the financial crisis. It is also popular to estimate the time-varying variance as a non-parametric alternative to GARCH models. There are costs and benefits to this, sometimes we want to impose a hypothesis of a functional form onto the data if we have pre-existing knowledge we want to incorporate to improve generalisation of our estimate, or to ensure we are not fitting noise. You can also combine the two approaches; wavelets for the pass band filter and a parametric model for the volatility estimates. This will bais your test though.

Specifically wavelet analysis and not Fourier analysis is popular due to the non-stationarity of the mean and variance in the time domain and other characeristics that vary in the frequency domain over time. Fitting a linear combination of trig basis functions is just not going to give you good results in finance. Autocorrelation also varies in the frequency domain. It is also prefered to STFT so that we do not have to assume stationarity within a time-band. Wavelets are intuitively nice with typical process assumptions in stochastic finance that assume a fractal like property of the price process (stemming from the assumption that our price is some function of a Wiener process). This is incorrect in practice due to phenomena such as the Epps effect and the discreteness of markets imposed by latency and microstructure, but for the time scales of interest to empirical researchers it is acceptable. Indeed these ultra high frequency crystals are generally not estimated for both computation and redundancy reasons (yet there are some papers; the unbiasedness of the white noise hypothesis test I am unsure of). Another reason is that Datastream and Bloomberg are the go-to databases and they are shocking for high frequency data.

Other findings surround frequency-dependent Granger causality testing, changepoint analysis and other analyses.

It is also commonly used to analyse lead-lag relationships through the phase difference in the Morlet wavelet; since the complex sinusoid is fit you can compare the real and imaginary parts of the cofficient through the inverse tangent function to get a phase difference. This isn't a causal wavelet though so you will not be able to construct a time-frequency localised pair trading strategy with this unless your strategy can tolerate the edge effects, which I find to be highly dubious. Also, this is just for the bivariate setting.

All in all, good if your goal is to get a qualitative understanding of interrelationships and correlations in the past, not necessarily good if you are trying to extrapolate into the future since it is not built to be able to generalise. However, you can use it as part of something else if you want to extrapolate, but I am not allowed to share this.

-

Fractal spectra are covered in Multifractal Volatility: Theory, Forecasting, and Pricing. Also note that your run-of-the-mill moving average of a price series is a low-pass filter (filters out the higher frequencies), and moving averages are very used in basic financial analysis.

-

Here is a gentle introduction to wavelet methods.

-

Something like a moving average smoother is akin to a low pass filter, the 'stochastics' of technical analysis crudely akin to a band pass filter. Going up the ladder of sophistication, you can see something like http://www.jstor.org/pss/3592665 or applications of wavelet decomposition.

This paper from 1963 by GRANGER, CLIVE W. J., and MORGENSTERN, 0. titled “Spectral Analysis of New York Stock Market Prices,” Kyklos, XVI (January, 1963), I-27 should convince you that people have been more than thinking of applying frequency-domain analysis to this.

-

Singular Spectrum Analysis ( SSA ) is a relatively new technique ( although Lorenz suggested something similar 1956 ) that is starting to be more widely used. The jury is still out on just how much underlying structure, if any, there actually is in financial time series. Nonetheless a very powerful and easy to use data smoothing and filtering/de-noising technique. A very basic Excel and VBA demonstration available here

-

Take a look at someone using spectral analysis on the market: stock market analysis http://www.stockforecasttoday.com

-