Author
Listed:
- Bahaa Aly, Tarek
- Ahmed, El-Masry
Abstract
In this paper, we predicted the directional movement (up or down) of five macroeconomic variables: the equity market (EQUITY), foreign exchange rate (FX), central bank policy rate (POLRATE), GDP growth rate (GDP), and inflation rate (INF), using K-Nearest Neighbors (KNN), Artificial Neural Networks (ANN), and Support Vector Machine (SVM) classifiers, compared with a logistic regression model included as a linear benchmark. The analysis was conducted on monthly data from eight diverse markets across different geographical regions (US, UK, Mexico, Brazil, Egypt, South Africa, Indonesia, China) over forecast horizons of 1, 3, and 6 months. Our aim was to compare the predictive performance of these three fundamentally different classifiers and identify common patterns in macroeconomic variable behavior. We found that the standard KNN classifier significantly outperformed SVM and ANN, achieving the highest average out-of-sample directional accuracy. Our analysis revealed that the optimal number of neighbors, K, did not materially affect out-of-sample accuracy and remained relatively stable across forecast horizons. Feature importance analysis showed that KNN relied on a few strong signals, such as the yield curve level, while SVM and ANN distributed importance weights more broadly. The highest average prediction accuracies were achieved by the equity market and FX, while the US and China recorded the strongest country-level performance. In addition, inflation and the equity market exhibited the highest predictive power. Our results demonstrated the continued value of simple, robust models like KNN for macroeconomic directional forecasting, particularly when compared to more complex models such as SVM and ANN on limited panel data.
Suggested Citation
Bahaa Aly, Tarek & Ahmed, El-Masry, 2024.
"Directional Macroeconomic Forecasting: Robustness of KNN versus Flexibility of ANN and SVM on Limited Data,"
MPRA Paper
129067, University Library of Munich, Germany.
Handle:
RePEc:pra:mprapa:129067
Download full text from publisher
More about this item
Keywords
;
;
;
;
;
;
;
;
;
;
JEL classification:
- C32 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes; State Space Models
Statistics
Access and download statistics
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:pra:mprapa:129067. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Joachim Winter (email available below). General contact details of provider: https://edirc.repec.org/data/vfmunde.html .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.