The Impact of Stock Market Price Fourier Transform Analysis on the Gated Recurrent Unit Classifier Model
Citation. Dragana Radojičić and Simeon Kredatus (TU Wien, Institute of Statistics and Mathematical Methods in Economics). "The impact of stock market price Fourier transform analysis on the Gated Recurrent Unit classifier model". Expert Systems with Applications 159 (2020), 113565. Online 19 May 2020. DOI 10.1016/j.eswa.[removed]. Open access under CC BY 4.0. TU Wien supported the work, and the authors declare no competing interests. No code or data is released. The data come from LOBSTER, a paid academic service.
Status. Not applicable. The repo has no order-book data, and the paper's result can't be judged without the share of positive labels, which it doesn't give. Its faults are a checklist for any classifier that the harness tests.
Read. Read on 2026-11-28 from the PDF that the maintainer supplied, 10 pages. I read the whole text, the tables and both algorithms. The figures came through only as captions. I checked the paper's tests and its label by computation, as described below.
Summary
Claim. Features from the Fourier transform of a price oscillator "significantly" improve a GRU classifier that decides when to buy a stock.
Method.
- Data. Apple (AAPL) from LOBSTER's reconstruction of the NASDAQ order book, in 3-minute bars. The figures show days from June 2014 to March 2015. The paper doesn't state the full sample.
- Features. Order-book counts and prices, and TA-Lib indicators computed on past bars only. The new features come from the price oscillator, the close minus its 5-bar moving average. A Fourier transform on a trailing window of W bars gives its maximum magnitude, peak frequency, phase and average magnitude, smoothed again by moving averages. The paper doesn't state W.
- Label. A bar is "buy" if the price rises 8% before it falls 4% below its highest price since the bar, and "idle" otherwise.
- Feature selection. Of 5,996 features, 200 are drawn by stochastic universal sampling. Each feature's score is its mutual information with 400 K-means clusters of the close price, or its mean autocorrelation at lags 22 to 40.
- Model. A GRU of 50 units over the last 64 bars, then a dense sigmoid layer. The data are split 60/20/20 into train, validation and test sets.
- Test. Ten draws of the feature selection for each setting. The mean F1 scores are compared by a z-test.
Findings, as the source reports them.
| Feature set, scoring | F1 mean | F1 standard deviation |
|---|---|---|
| With the Fourier features, mutual information | 0.126 | 0.085 |
| With the Fourier features, autocorrelation | 0.070 | 0.065 |
| Without them, mutual information | 0.023 | 0.009 |
| Without them, autocorrelation | 0.015 | 0.006 |
| The z-tests, with against without | z = 3.83 and 2.68 | p = 6.5 × 10⁻⁵ and 0.0037 |
| Against a random selection of features | z = 2.17 and 0.11 | p = 0.015 and 0.456 |
Where the claims go beyond the evidence
No base rate, so the F1 has no scale. A model that always says "buy" has an F1 of 2p/(1 + p), where p is the share of buy labels. At p = 7% that is 0.131, more than the paper's best F1 of 0.126. The paper never states p, so the reader can't tell if any model beats this trivial rule.
The label's horizon is stated two ways. The text says the label looks "until the end of each trading day". The algorithm in the appendix looks to the end of the data. This changes p a great deal. On a random walk with AAPL's volatility, 15% to 21% of bars are buys to the end of the data. Within one day, almost none are, because an 8% rise in a day is about five daily standard deviations.
The second test fails at the paper's own level. The z-tests treat 10 runs as if their spread were known. Welch's t-test on the same means and standard deviations gives a one-sided p of 0.002 for mutual information. For autocorrelation it gives 0.013, which isn't significant at the paper's level of 0.01.
The test measures the feature draws, not the market. All runs share one test split of one stock. The error in the tests is the spread across feature draws, so it says nothing about other months or other stocks. The paper says the model "shall scale-out well also to other stocks", but tests no other stock.
Unclear splits and selection. The paper doesn't say if the 60/20/20 split is in time order. It also doesn't say which data the feature scores and the K-means clusters were fitted on. If they were fitted on all the data, the test set took part in choosing the features.
No trading result. There is no return, no cost and no baseline beyond the old features. The label's trade, +8% against a 4% trailing stop, is never simulated.
Small faults. The order book "is updating up to 18 quadrillion messages per day", where the paper's own data section says over a million. The stationarity test runs on one day's oscillator, which is stationary by construction, since it is a price minus its own moving average.
Credit. The Fourier windows use only past bars, which avoids the most common leak in this literature. The paper reports the standard deviations, so its tests can be checked.
Use in this repo
My checks. From Table 2, I computed the z-scores again and got 3.80 and 2.67, which agree with the paper's values. Welch's test then gives p values of 0.002 and 0.013. I simulated the label on a driftless random walk at 25% volatility a year in 3-minute bars. To the end of the data, 21% of bars were buys, near the e⁻² ≈ 15% of continuous time. Within a day, none of 20,000 bars was a buy.
No order-book data. The repo stores daily bars and option chains, not LOBSTER's message files. The paper's features can't be built here, so the review has no code to add.
Report the base rate with every classifier. scoring.py scores probabilities with proper scoring rules, which have a scale where F1 has none. A classifier's report should give the share of positives, the score of the trivial rule, and a trading result after costs. The paper's Fig. 7 gives each feature's mutual information with the label. That needs a null from shuffled labels, or a small positive value means nothing.
The Fourier features are mostly the oscillator's volatility. By Parseval's theorem, the magnitudes in a window measure the oscillator's spread over the window. fourier-stock-volatility.md shows a correlation of 0.9999 between the two. A test of such features should compare them with the rolling standard deviation, not only with no feature.
Each feature draw is a trial. The paper's ten draws from 5,996 features, two scores and two feature sets are each a trial (trials.py). The repo would also count the window W and the label's thresholds, which the paper fixed without saying how.