There are many ways that you might measure the typical horizon of a stock’s demand shocks. For instance, Fourier methods might at first appear to be a promising approach, but first impressions can be deceiving. Here’s why: spikes in trading volume tend to be asynchronous. For example, you might see a -hour burst of trading activity starting at 9:37am, then another starting at 11:03am, and a third at 2:42pm, but you’d never see bursts of trading activity arriving and subsiding every hour like clockwork. Wavelet methods, as described in my earlier post, can handle these kinds of asynchronous shocks. Fourier methods can’t.
2. Spectral Analysis
Suppose there’s a minute-by-minute trading-volume time series that realizes hour-long shocks. To recover the -hour horizon from this time series, Fourier analysis tells us to estimate a collection of regressions at frequencies ranging from cycle per month to cycle per minute:
A frequency of cycles per day, for example, denotes the -minute time horizon since there are minutes in a trading day. The amount of variation at a particular frequency is then proportional to the power of that frequency, , defined as:
If the time series realizes hour-long shocks, then shouldn’t we find a peak in the power of the series at the hourly horizon, ? Isn’t this what computing the power of a time series at a particular frequency is designed to capture?
3. Asynchronous Shocks
Yes, but only if the shocks come at regular intervals. For instance, if the first minutes realized a positive shock, minutes through realized a negative shock, minutes through realized a positive shock again, and so on… then Fourier analysis would be the right approach. However, trading-volume shocks have irregular arrival times and random signs. Fourier analysis can’t handle this sort of asynchronous structure.
4. Simulation-Based Example
Let’s consider a short example to solidify this point. We simulate a month-long time series of minute-by-minute trading-volume data with -minute shocks by first randomly selecting minutes during which hour-long jumps begin, , and then adding white noise, :
Each of the jumps has a magnitude of and is equally likely to be positive or negative. The white noise has a standard deviation of . The resulting series is shown in the left-most panel of the figure below.
By construction, this process only has white noise and -minute-long shocks. That’s it. There are no other time scales to worry about. None. If Fourier analysis were the correct tool for identifying horizon-specific trading-volume fluctuations, then you’d expect there to be a spike in the power of the time series at the -minute horizon. But, what happens if we look for evidence of this -minute timescale by estimating the power spectrum shown in the middle panel of the figure above? Do we see any evidence of a -minute shock? No. There is nothing at the -minute horizon. Asynchronous shocks of a fixed length don’t show up in the Fourier power spectrum. They do, however, show up in the Wavelet-variance plot as shown in the right-most panel of the figure above where there is a clear spike at the -hour horizon.