Forecasting Bitcoin Prices in the Context of the COVID-19 Pandemic Using Machine Learning Approaches
摘要
Using daily data from 1st April 2016 to 3rd March 2022, this study aims to explore the use and effectiveness of machine learning algorithms in forecasting the price of Bitcoin. The paper examines the forecasting performance based on different time lags within the selected periods: (1) before pandemic and (2) including pandemic. The second time frame is selected to examine the effect of the Covid pandemic on the Bitcoin market fluctuations. This research employs four machine learning models, including linear regression, support vector regression, extreme gradient boosting, and long short-term memory. These are refined and calibrated to produce the most accurate forecasts. The performance of the algorithms was measured and compared using regression metrics. The results show that before the pandemic, the linear regression model performed the best for next-day predictions, while extreme gradient boosting performed best overall and for longer-term predictions. For the period including the pandemic, extreme gradient boosting and linear regression performed the best, consistently outperforming long short-term memory and support vector regression. The prediction models for data before the pandemic have demonstrated improved performance, whereas the selected model for the period including the pandemic exhibited satisfactory results. This is because Bitcoin prices displayed the highest volatility during the Covid pandemic. The study finds that extreme gradient boosting performs best overall and for longer-term predictions, while linear regression performs the best for next-day predictions before the pandemic. Moreover, the study reports satisfactory results for Bitcoin price prediction for the period including the pandemic, despite the high volatility of prices.