Integrated variable selection with hyperparameter-tuned random forest for modeling exchange rate volatility in Iraq
DOI:
https://doi.org/10.19139/soic-2310-5070-4538Keywords:
Exchange rate volatility, random forest, hyperparameter tuning, sparrow search algorithm, variable selectionAbstract
This study proposes an integrated random forest framework to forecast exchange rate volatility in Iraq. Traditional econometric models often struggle with the high dimensionality and multicollinearity of macro‑financial indicators, which leads to overfitting and weak out‑of‑sample performance. To address these challenges, the paper develops an integrated sparrow search algorithm–random forest (ISSA‑RF) that jointly performs variable selection and hyperparameter tuning. In the first stage, a binary sparrow search algorithm (SSA) selects a parsimonious subset of relevant monetary variables, balancing prediction error and model complexity. In the second stage, a continuous SSA optimizes key random forest hyperparameters, including the number of trees, maximum depth, and node‑splitting thresholds. The empirical application uses monthly data from the central bank of Iraq and international sources covering 2004–2024, with a split between training (2004–2020) and testing (2021–2024) samples. Forecasting performance is evaluated using mean absolute error, root mean squared error, coefficient of determination, and directional accuracy, and ISSA‑RF is benchmarked against random search, Bayesian optimization, cross‑validation, grid search, and SSA‑tuned random forests without variable selection. The integrated approach selects six economically meaningful predictors, capturing domestic monetary conditions, foreign exchange interventions, and global monetary and inflation factors. Across both training and testing sets, ISSA‑RF consistently delivers the lowest forecast errors, the highest explanatory power, and the strongest directional accuracy, indicating substantial gains in both fit and generalization relative to all competing models. These results suggest that combining metaheuristic‑based variable selection with hyperparameter tuning can significantly enhance exchange rate volatility forecasting, providing policymakers and market participants with more reliable tools for risk management and macro‑financial surveillance in Iraq.Downloads
Published
2026-09-19
How to Cite
Ahmed, A. M., Jwejatee, A. F., & Algamal, Z. Y. (2026). Integrated variable selection with hyperparameter-tuned random forest for modeling exchange rate volatility in Iraq. Statistics, Optimization & Information Computing. https://doi.org/10.19139/soic-2310-5070-4538
License
Copyright (c) 2026 Abdulrahman Mohammed Ahmed, Aws F.A. Jwejatee, Zakariya Yahya Algamal

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).