Measuring the Performance of Machine Learning Forecasting Models to Support Bitcoin Investment Decisions
DOI:
https://doi.org/10.47852/bonviewJDSIS3202677Keywords:
bitcoin, cryptocurrency, decision tree, machine learning, moving average crossoverAbstract
This research proposed machine learning forecasting models to support bitcoin investment decisions based on bitcoin price and trade volume from 2019 to 2021. The moving average crossovers of 5, 30, and 90 daily closing prices and their variances were inputs loaded into decision tree, random forest, and extreme gradient boosting (XGBoost) techniques to forecast bitcoin investment strategies, including market trends, actions, and holding amounts. The research also measured the models' performance based on accuracy, precision, recall, F1-score, and area under the curve-receiver operating characteristics (AUC-ROC). The results indicated that the XGBoost is the most efficient model: (1) trend (0.930 accuracy, 0.930 precision, 0.930 recall, 0.929 F1-score, and 0.983 AUC-ROC); (2) action (0.985 accuracy, 0.985 precision, 0.985 recall, 0.985 F1-score, and 0.998 AUC-ROC); and (3) amount (0.987 accuracy, 0.987 precision, 0.987 recall, 0.987 F1-score, and 0.997 AUC-ROC). The random forest achieved the second most efficient model, while the decision tree provided the lowest forecasting results. Since the bitcoin investment market in 2022 is significantly different from the previous two years due to several negative factors, the research further validated the models' performance with an unseen data set comprising 275 days of bitcoin market prices from January 1 to October 2, 2022. All the models suggested that investors hold with half the investment consistent with the investment market in 2022. Furthermore, although the decision tree and XGBoost models forecasted the investment trend for most days as up, the random forest forecasted the trend as sideway, consistent with the 2022 trend.
Received: 23 January 2023 | Revised: 22 February 2023 | Accepted: 23 March 2023
Conflicts of Interest
The authors declare that they have no conflicts of interest to this work.
Data Availability Statement
The data that support the findings of this study are openly available in [The Securities and Exchange Commission] at https://www.sec.or.th/TH/Pages/WEEKLYREPORT-2564-12.aspx; in [Yahoo Finance] at https://finance.yahoo.com/.
Downloads
Published
Issue
Section
License
Copyright (c) 2023 Authors
This work is licensed under a Creative Commons Attribution 4.0 International License.