XGBoost Forecasting of NEPSE Index Log Returns with Walk Forward Validation
Sahaj Raj Malla, Shreeyash Kayastha, Rumi Suwal, Harish Chandra Bhandari, and Rajendra Adhikari

TL;DR
This paper presents a machine learning framework using XGBoost for accurate one-step-ahead forecasting of NEPSE Index log-returns, employing walk-forward validation to ensure realistic performance assessment in volatile emerging markets.
Contribution
It introduces a comprehensive feature set, hyperparameter optimization, and rigorous validation schemes, establishing a benchmark for NEPSE Index forecasting with gradient boosting models.
Findings
XGBoost outperforms ARIMA and Ridge benchmarks in RMSE and MAE
Expanding window with 20 lags yields best predictive accuracy
Directional accuracy reaches 65.15% in out-of-sample tests
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsStock Market Forecasting Methods · Forecasting Techniques and Applications · Time Series Analysis and Forecasting
