Open Family Office Datasets Tickers Strategies Portfolios Research Posts About Changelog

Fast Fourier Transform in Predicting Financial Securities Prices

Source

Citation. M. Barrett Williams. "Fast Fourier Transform in Predicting Financial Securities Prices". University of Utah, 3 May 2016. A student project of 17 pages with MATLAB code, hosted on a course page. The URL suggests Math 2270, linear algebra, but the PDF doesn't say so. No venue, no review, no data file and no funding. The price data, PANWdata.mat, isn't shared, and the dates aren't given.

Status. Not applicable as a method. It is useful as a worked example of a backtest that looks good with no predictive content, and of what the harness (#87) must catch.

Read. Read on 2026-11-28, in full, from the PDF's text, which I extracted myself, with its MATLAB code. I re-ran the method in Python, line for line, on simulated random walks. The PANW data aren't available, so I didn't reproduce the paper's own numbers.

Summary

Claim. The FFT can forecast a stock's price. The method is fitted on 415 days of closing prices of Palo Alto Networks (PANW). It forecasts the next 90 days with "a 62% correlation" and "a 12.4% error of average". The author concludes that it "typically was able to forecast in the correct directional movement of the stock price".

Method. A cubic is fitted by least squares to the first 415 closes. The residual from the cubic is transformed by the FFT. The step that would filter it is commented out, so every frequency is kept. The forecast for days 416 to 505 is the cubic's extrapolation plus the inverse transform evaluated at those days. The appendix repeats the method on PANW over 252 days and on VXX. Most of the paper's first half describes Carr and Madan's (1999) FFT method for pricing options, which the forecast doesn't use.

Findings, as the source reports them.

Setting Correlation with the actual prices Percentage error
PANW, fit on 415 days, forecast 90 62% (62.7% elsewhere in the text) 12.4%
PANW, over 252 days 55.4% 15.5%
VXX 43.9% 29.9%

Where the claims go beyond the evidence

The forecast is old noise, reversed. A DFT of 415 points describes a series with a period of 415. Evaluated at days 416 to 505, the inverse transform repeats days 1 to 90, and the code's factor of −1/415 flips its sign. So the forecast for day 415 + j is the cubic's extrapolation minus the residual of day j. My re-run shows it to within 10⁻¹² on a random walk. Nothing in the forecast comes from the recent data except the cubic.

No baseline. The correlation and the error of price levels are given with nothing to compare them to. On 2,000 random walks of 505 days, with daily volatility of 2% and no edge, the method's median error was 23%. Predicting the last price had a median error of 8.4%, and beat the method in 87.5% of the walks. The cubic alone did slightly better than the method, at 22%.

A correlation of levels says little. On the same random walks, the method's correlation with the actual prices reached 62% or more in 17.8% of them. The median was −0.04. One in six series with no edge would give the paper's headline. And the author writes that "This high of correlation was not obtained by every stock that I used the FFT on". So the shown result was selected from several.

"The correct directional movement" is not tested. The paper gives no hit rate. On the random walks, the forecast's direction over the 90 days was right 50.6% of the time. The standard error is 1.1 points, so it is a coin flip.

The cubic was chosen by eye. The author chose cubic over linear and quadratic by looking at the same data, and notes that cubic fits can "go to infinity or zero".

Inconsistencies. The text gives omk=2*pi*(k-1)/365, and the code /415. The first plot draws NFLXdata against PANW's fit. The FFT's axis is labelled "rad/sec" for daily data. The correlation is 62% in one sentence and 62.7% in the next.

Credit. The author shares the code, which made these checks possible. The author also notes that the result didn't hold for every stock tried, and that cubic fits can explode.

Use in this repo

A test case for the harness. The method fails each check that the evaluation plan sets. It is a good fixture for the synthetic no-edge tests of RQ1 (#5) and the harness (#87):

The other Fourier sources. #247 (Fourier analysis of volatility), #248 (wavelets with ARIMA and GARCH) and #249 (Fourier features for a GRU) need the same checks. The question in each is whether the transform uses data from after the forecast's date.

Carr and Madan (1999). The FFT's real use in finance is pricing options from a model's characteristic function. That is a different subject, and #366 holds it.