IDEAS home Printed from https://ideas.repec.org/a/gam/jjrfmx/v16y2023i1p51-d1034543.html
   My bibliography  Save this article

Analysis of Bitcoin Price Prediction Using Machine Learning

Author

Listed:
  • Junwei Chen

    (Graduate School of Economics, Kobe University, Kobe 657-8501, Japan)

Abstract

The research purpose of this paper is to obtain an algorithm model with high prediction accuracy for the price of Bitcoin on the next day through random forest regression and LSTM, and to explain which variables have influence on the price of Bitcoin. There is much prior literature on Bitcoin price prediction research, and the research methods mainly revolve around the ARMA model of time series and the LSTM algorithm of deep learning. Although it cannot be proved by the Diebold–Mariano test that the prediction accuracy of random forest regression is significantly better than that of LSTM, the prediction errors RMSE and MAPE of random forest regression are better than those of LSTM. The changes in the variables that determine the price of Bitcoin in each period are also obtained through random forest regression. From 2015 to 2018, three US stock market indexes, NASDAQ, DJI, and S&P500 and oil price, and ETH price have impact on Bitcoin prices. Since 2018, the important variables have become ETH price and Japanese stock market index JP225. The relationship between accuracy and the number of periods of explanatory variables brought into the model shows that for predicting the price of Bitcoin for the next day, the model with only one lag of the explanatory variables has the best prediction accuracy.

Suggested Citation

  • Junwei Chen, 2023. "Analysis of Bitcoin Price Prediction Using Machine Learning," JRFM, MDPI, vol. 16(1), pages 1-25, January.
  • Handle: RePEc:gam:jjrfmx:v:16:y:2023:i:1:p:51-:d:1034543
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1911-8074/16/1/51/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1911-8074/16/1/51/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Basak, Suryoday & Kar, Saibal & Saha, Snehanshu & Khaidem, Luckyson & Dey, Sudeepa Roy, 2019. "Predicting the direction of stock market prices using tree-based classifiers," The North American Journal of Economics and Finance, Elsevier, vol. 47(C), pages 552-567.
    2. Dirk G. Baur & Thomas Dimpfl, 2021. "The volatility of Bitcoin and its role as a medium of exchange and a store of value," Empirical Economics, Springer, vol. 61(5), pages 2663-2683, November.
    3. Philip, R., 2020. "Estimating permanent price impact via machine learning," Journal of Econometrics, Elsevier, vol. 215(2), pages 414-449.
    4. Mehmet Levent ERDAS & Abdullah Emre CAGLAR, 2018. "Analysis of the relationships between Bitcoin and exchange rate, commodities and global indexes by asymmetric causality test," Eastern Journal of European Studies, Centre for European Studies, Alexandru Ioan Cuza University, vol. 9, pages 27-45, December.
    5. Fan, Liwei & Pan, Sijia & Li, Zimin & Li, Huiping, 2016. "An ICA-based support vector regression scheme for forecasting crude oil prices," Technological Forecasting and Social Change, Elsevier, vol. 112(C), pages 245-253.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Erdinc Akyildirim & Oguzhan Cepni & Shaen Corbet & Gazi Salah Uddin, 2023. "Forecasting mid-price movement of Bitcoin futures using machine learning," Annals of Operations Research, Springer, vol. 330(1), pages 553-584, November.
    2. Sasan Barak & Navid Parvini, 2023. "Transfer‐entropy‐based dynamic feature selection for evaluating Bitcoin price drivers," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 43(12), pages 1695-1726, December.
    3. Baoqiang Zhan & Shu Zhang & Helen S. Du & Xiaoguang Yang, 2022. "Exploring Statistical Arbitrage Opportunities Using Machine Learning Strategy," Computational Economics, Springer;Society for Computational Economics, vol. 60(3), pages 861-882, October.
    4. Saqib Farid & Rubeena Tashfeen & Tahseen Mohsan & Arsal Burhan, 2023. "Forecasting stock prices using a data mining method: Evidence from emerging market," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(2), pages 1911-1917, April.
    5. Lu-Tao Zhao & Guan-Rong Zeng & Ling-Yun He & Ya Meng, 2020. "Forecasting Short-Term Oil Price with a Generalised Pattern Matching Model Based on Empirical Genetic Algorithm," Computational Economics, Springer;Society for Computational Economics, vol. 55(4), pages 1151-1169, April.
    6. Zhou, Zhongbao & Gao, Meng & Liu, Qing & Xiao, Helu, 2020. "Forecasting stock price movements with multiple data sources: Evidence from stock market in China," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 542(C).
    7. Bhuiyan, Rubaiyat Ahsan & Husain, Afzol & Zhang, Changyong, 2021. "A wavelet approach for causal relationship between bitcoin and conventional asset classes," Resources Policy, Elsevier, vol. 71(C).
    8. Marcin Fałdziński & Piotr Fiszeder & Witold Orzeszko, 2020. "Forecasting Volatility of Energy Commodities: Comparison of GARCH Models with Support Vector Regression," Energies, MDPI, vol. 14(1), pages 1-18, December.
    9. Ajithakumari Vijayappan Nair Biju & Ann Susan Thomas, 2023. "Uncertainties and ambivalence in the crypto market: an urgent need for a regional crypto regulation," SN Business & Economics, Springer, vol. 3(8), pages 1-21, August.
    10. Nadir Khan & Muhammad Zohair Durrani & Naila Mushtaq & S M Nabeel ul Haq & Babar Ijaz, 2022. "The Relationships among Cryptocurrencies: A Granger Causality Analysis," iRASD Journal of Economics, International Research Alliance for Sustainable Development (iRASD), vol. 4(2), pages 264-274, June.
    11. Quande Qin & Huangda He & Li Li & Ling-Yun He, 2020. "A Novel Decomposition-Ensemble Based Carbon Price Forecasting Model Integrated with Local Polynomial Prediction," Computational Economics, Springer;Society for Computational Economics, vol. 55(4), pages 1249-1273, April.
    12. Şirin Özlem & Omer Faruk Tan, 2022. "Predicting cash holdings using supervised machine learning algorithms," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-19, December.
    13. Vitor Azevedo & Christopher Hoegner, 2023. "Enhancing stock market anomalies with machine learning," Review of Quantitative Finance and Accounting, Springer, vol. 60(1), pages 195-230, January.
    14. Htet Htet Htun & Michael Biehl & Nicolai Petkov, 2023. "Survey of feature selection and extraction techniques for stock market prediction," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-25, December.
    15. Yizhe Xu & Tom H. Greene & Adam P. Bress & Brandon K. Bellows & Yue Zhang & Zugui Zhang & Paul Kolm & William S. Weintraub & Andrew S. Moran & Jincheng Shen, 2022. "An Efficient Approach for Optimizing the Cost-effective Individualized Treatment Rule Using Conditional Random Forest," Papers 2204.10971, arXiv.org.
    16. Yang, Yanlin & Hu, Xuemei & Jiang, Huifeng, 2022. "Group penalized logistic regressions predict up and down trends for stock prices," The North American Journal of Economics and Finance, Elsevier, vol. 59(C).
    17. Mercadier, Mathieu & Lardy, Jean-Pierre, 2019. "Credit spread approximation and improvement using random forest regression," European Journal of Operational Research, Elsevier, vol. 277(1), pages 351-365.
    18. Xiao, Yu-jie & Wang, Xiao-kang & Wang, Jian-qiang & Zhang, Hong-yu, 2021. "An adaptive decomposition and ensemble model for short-term air pollutant concentration forecast using ICEEMDAN-ICA," Technological Forecasting and Social Change, Elsevier, vol. 166(C).
    19. Goutte, Stéphane & Le, Hoang-Viet & Liu, Fei & von Mettenheim, Hans-Jörg, 2023. "Deep learning and technical analysis in cryptocurrency market," Finance Research Letters, Elsevier, vol. 54(C).
    20. Yi Cao & Jia Zhai, 2022. "Estimating price impact via deep reinforcement learning," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 27(4), pages 3954-3970, October.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jjrfmx:v:16:y:2023:i:1:p:51-:d:1034543. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.