Forecasting volatility with k-nearest neighbors : a comparison between a non-parametric model and GARCH-family models
Ikuta, Leo (2026)
Pro gradu -tutkielma
Ikuta, Leo
2026
School of Business and Management, Kauppatieteet
Kaikki oikeudet pidätetään.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi-fe20260708110089
https://urn.fi/URN:NBN:fi-fe20260708110089
Tiivistelmä
The rise in computational power and availability of machine learning algorithms provides the opportunity to employ novel approaches in forecasting financial phenomena. This thesis focuses on forecasting volatility, a measure of risk attributed to the returns of a financial instrument. A non-parametric model called, K-Nearest Neighbor (KNN) is used perform a short-term forecast of the volatility of the S&P500 market index. The KNN is selected for analysis since its efficiency in forecasting other financial phenomena has been documented. However, previous literature in forecasting volatility using KNN is scarce. To address this gap, the KNN-model in this study finds historical instances of returns that resemble recent S&P500 returns from several market indices. Then, the volatility forecast is generated by aggregating the S&P500 volatility that immediately followed the analogous historical returns. To determine KNN’s feasibility, predictions using GARCH-family models are performed to serve as benchmarks. A total of 24 predictions which forecasts 2 business weeks of volatility during January 2025 to January 2026 are performed using a walk forward analysis. Each prediction is evaluated using mean absolute error (MAE), root mean square error (RMSE) and quasi-likelihood function (QLIKE). Furthermore, descriptive statistics are used to aggregate the predictions, enabling for general comparison between the studied models. The findings suggest that while an outperforming model is not found, the KNN-model is competitive against GARCH-family models. Intriguingly, the results reveal that the KNN-model successfully predicted low volatility after a period of high volatility, unlike GARCH-family models.
