Machine Learning Methods for Predicting the Price of Exchange-Traded Funds

Authors

  • Zhibo Feng

DOI:

https://doi.org/10.61173/37xawa31

Keywords:

Exchange-traded Funds, XGBoost Model, Random Forest model, Quantitative investment

Abstract

This study applies machine learning algorithms to the field of quantitative finance. By employing both Random Forest and Extreme Gradient Boosting (XGBoost) models to predict price movements of nine different Exchange-traded funds (ETFs) from the US, it assesses the practical performance of machine learning in ETFs’ price forecasting, thereby assisting investors and institutions in better evaluating future ETF trends. The ETFs’ price data used in this research are sourced from the US ETF Prices datasets on Kaggle. Technical indicators such as Bollinger Bands, Relative Strength Index (RSI), and Moving Average (MA) were incorporated into the models through feature engineering. The performance of both models was evaluated across different time windows and ETF products. Comparative analysis revealed that both Random Forest and XGBoost perform well within the 5 to 200-day forecasting horizon. The results indicate that larger sample sizes positively impact the goodness-of-fit of the Random Forest model, while excessively large samples may lead to degraded performance in XGBoost. In conclusion, while machine learning algorithms show strong promise in predicting ETF price movements, practitioners should still integrate market experience, sentiment analysis, and multi-factor evaluation to comprehensively assess ETF performance.

References

results suggest that more complex and volatile ETFs may model. Journal of Advanced Management Science, 2016, 4(2): require more diverse datasets to optimize prediction accu- 117–121. racy. [2] Jim K S. Forecasting ETFs with machine learning algorithms.

The importance of feature engineering in future machine Johns Hopkins Carey Business School Version 1.3. 2017. http:// learning optimization cannot be overstated. Feature im- etfprediction.pythonanywhere.com/. portance analysis revealed that only a small subset of fea- [3] Perry S. A random forests approach to predicting clean tures significantly influences model performance. Ideally, energy stock prices. Journal of Risk and Financial Management,

feature importance should be more evenly distributed 2021, 14(2): 48. rather than dominated by a single variable accounting for [4] Stefano L. US funds dataset from Yahoo Finance. 2021- over 70% of the weight. Moving forward, incorporating 01-01 [2025-09-20]. https://www.kaggle.com/datasets/ non-technical features—particularly quantitative measures stefanoleone992/mutual-funds-and-etfs/data. of market sentiment and social media influence—could [5] Samraj G, Sanchal N, Nirmala P. Stock market time series substantially enhance the predictive power of machine forecasting using comparative machine learning algorithms. learning models in financial market applications.

Procedia Computer Science, 2025, 252: 893–904. In summary, machine learning algorithms already play a [6] Zimo L, Weijia X, Aihua L. Research on multi-factor stock pivotal role in today’s financial markets. To better support selection model based on LightGBM and Bayesian optimization. institutional and individual investors in making informed

decisions, there remains substantial room for optimization. Procedia Computer Science, 2022, 214: 1234–1240.

Downloads

Published

2025-12-19