XGBoost Forecasting of NEPSE Index Log Returns with Walk Forward Validation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Malla, Sahaj Raj, Kayastha, Shreeyash, Suwal, Rumi, Bhandari, Harish Chandra, Adhikari, Rajendra
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915727748890624
author Malla, Sahaj Raj
Kayastha, Shreeyash
Suwal, Rumi
Bhandari, Harish Chandra
Adhikari, Rajendra
author_facet Malla, Sahaj Raj
Kayastha, Shreeyash
Suwal, Rumi
Bhandari, Harish Chandra
Adhikari, Rajendra
contents This study develops a robust machine learning framework for one-step-ahead forecasting of daily log-returns in the Nepal Stock Exchange (NEPSE) Index using the XGBoost regressor. A comprehensive feature set is engineered, including lagged log-returns (up to 30 days) and established technical indicators such as short- and medium-term rolling volatility measures and the 14-period Relative Strength Index. Hyperparameter optimization is performed using Optuna with time-series cross-validation on the initial training segment. Out-of-sample performance is rigorously assessed via walk-forward validation under both expanding and fixed-length rolling window schemes across multiple lag configurations, simulating real-world deployment and avoiding lookahead bias. Predictive accuracy is evaluated using root mean squared error, mean absolute error, coefficient of determination (R-squared), and directional accuracy on both log-returns and reconstructed closing prices. Empirical results show that the optimal configuration, an expanding window with 20 lags, outperforms tuned ARIMA and Ridge regression benchmarks, achieving the lowest log-return RMSE (0.013450) and MAE (0.009814) alongside a directional accuracy of 65.15%. While the R-squared remains modest, consistent with the noisy nature of financial returns, primary emphasis is placed on relative error reduction and directional prediction. Feature importance analysis and visual inspection further enhance interpretability. These findings demonstrate the effectiveness of gradient boosting ensembles in modeling nonlinear dynamics in volatile emerging market time series and establish a reproducible benchmark for NEPSE Index forecasting.
format Preprint
id arxiv_https___arxiv_org_abs_2601_08896
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle XGBoost Forecasting of NEPSE Index Log Returns with Walk Forward Validation
Malla, Sahaj Raj
Kayastha, Shreeyash
Suwal, Rumi
Bhandari, Harish Chandra
Adhikari, Rajendra
Machine Learning
Artificial Intelligence
Statistical Finance
91B70, 62M10, 68T07
I.2.6; I.5.1; G.3
This study develops a robust machine learning framework for one-step-ahead forecasting of daily log-returns in the Nepal Stock Exchange (NEPSE) Index using the XGBoost regressor. A comprehensive feature set is engineered, including lagged log-returns (up to 30 days) and established technical indicators such as short- and medium-term rolling volatility measures and the 14-period Relative Strength Index. Hyperparameter optimization is performed using Optuna with time-series cross-validation on the initial training segment. Out-of-sample performance is rigorously assessed via walk-forward validation under both expanding and fixed-length rolling window schemes across multiple lag configurations, simulating real-world deployment and avoiding lookahead bias. Predictive accuracy is evaluated using root mean squared error, mean absolute error, coefficient of determination (R-squared), and directional accuracy on both log-returns and reconstructed closing prices. Empirical results show that the optimal configuration, an expanding window with 20 lags, outperforms tuned ARIMA and Ridge regression benchmarks, achieving the lowest log-return RMSE (0.013450) and MAE (0.009814) alongside a directional accuracy of 65.15%. While the R-squared remains modest, consistent with the noisy nature of financial returns, primary emphasis is placed on relative error reduction and directional prediction. Feature importance analysis and visual inspection further enhance interpretability. These findings demonstrate the effectiveness of gradient boosting ensembles in modeling nonlinear dynamics in volatile emerging market time series and establish a reproducible benchmark for NEPSE Index forecasting.
title XGBoost Forecasting of NEPSE Index Log Returns with Walk Forward Validation
topic Machine Learning
Artificial Intelligence
Statistical Finance
91B70, 62M10, 68T07
I.2.6; I.5.1; G.3
url https://arxiv.org/abs/2601.08896