Research article Special Issues

Forecasting the movements of Bitcoin prices: an application of machine learning algorithms

  • Received: 25 August 2020 Accepted: 12 November 2020 Published: 16 November 2020
  • JEL Codes: G1, C6, C12

  • Cryptocurrencies, such as Bitcoin, are one of the most controversial and complex technological innovations in today's financial system. This study aims to forecast the movements of Bitcoin prices at a high degree of accuracy. To this aim, four different Machine Learning (ML) algorithms are applied, namely, the Support Vector Machines (SVM), the Artificial Neural Network (ANN), the Naï ve Bayes (NB) and the Random Forest (RF) besides the logistic regression (LR) as a benchmark model. In order to test these algorithms, besides existing continuous dataset, discrete dataset was also created and used. For the evaluations of algorithm performances, the F statistic, accuracy statistic, the Mean Absolute Error (MAE), the Root Mean Square Error (RMSE) and the Root Absolute Error (RAE) metrics were used. The t test was used to compare the performances of the SVM, ANN, NB and RF with the performance of the LR. Empirical findings reveal that, while the RF has the highest forecasting performance in the continuous dataset, the NB has the lowest. On the other hand, while the ANN has the highest and the NB the lowest performance in the discrete dataset. Furthermore, the discrete dataset improves the overall forecasting performance in all algorithms (models) estimated.

    Citation: Hakan Pabuçcu, Serdar Ongan, Ayse Ongan. Forecasting the movements of Bitcoin prices: an application of machine learning algorithms[J]. Quantitative Finance and Economics, 2020, 4(4): 679-692. doi: 10.3934/QFE.2020031

    Related Papers:

  • Cryptocurrencies, such as Bitcoin, are one of the most controversial and complex technological innovations in today's financial system. This study aims to forecast the movements of Bitcoin prices at a high degree of accuracy. To this aim, four different Machine Learning (ML) algorithms are applied, namely, the Support Vector Machines (SVM), the Artificial Neural Network (ANN), the Naï ve Bayes (NB) and the Random Forest (RF) besides the logistic regression (LR) as a benchmark model. In order to test these algorithms, besides existing continuous dataset, discrete dataset was also created and used. For the evaluations of algorithm performances, the F statistic, accuracy statistic, the Mean Absolute Error (MAE), the Root Mean Square Error (RMSE) and the Root Absolute Error (RAE) metrics were used. The t test was used to compare the performances of the SVM, ANN, NB and RF with the performance of the LR. Empirical findings reveal that, while the RF has the highest forecasting performance in the continuous dataset, the NB has the lowest. On the other hand, while the ANN has the highest and the NB the lowest performance in the discrete dataset. Furthermore, the discrete dataset improves the overall forecasting performance in all algorithms (models) estimated.


    加载中


    [1] Adcock R, Gradojevic N (2019) Non-fundamental, non-parametric Bitcoin forecasting. Phys A 531: 121727.
    [2] Armano G, Marchesi M, Murru A (2005) A hybrid genetic-neural architecture for stock indexes forecasting. Inf Sci 170: 3-33. doi: 10.1016/j.ins.2003.03.023
    [3] Atsalakis GS, Atsalaki IG, Pasiouras F, et al. (2019) Bitcoin price forecasting with neuro-fuzzy techniques. Eur J Oper Res 276: 770-780. doi: 10.1016/j.ejor.2019.01.040
    [4] Atsalakis GS, Valavanis KP (2009) Forecasting stock market short-term trends using a neuro-fuzzy based methodology. Expert Syst Appl 36: 10696-10707. doi: 10.1016/j.eswa.2009.02.043
    [5] Balcilar M, Bouri E, Gupta R, et al. (2017) Can volume predict Bitcoin returns and volatility? A quantiles-based approach. Econ Model 64: 74-81. doi: 10.1016/j.econmod.2017.03.019
    [6] Breiman L (1984) Classification and regression trees (Online pub), New York, NY: Routledge.
    [7] Butner JE, Munion AK, Baucom BRW, et al. (2019) Ghost hunting in the nonlinear dynamic machine. PloS One 14: 1-21. doi: 10.1371/journal.pone.0226572
    [8] Chen Z, Li C, Sun W (2020) Bitcoin price prediction using machine learning: An approach to sample dimension engineering. J Comput Appl Math 365: 1-13. doi: 10.1007/s12190-020-01341-8
    [9] Corbet S, Eraslan V, Lucey B, et al. (2019) The effectiveness of technical trading rules in cryptocurrency markets. Financ Res Lett 31: 32-37. doi: 10.1016/j.frl.2019.04.027
    [10] Felizardo L, Oliveira R, Del-Moral-Hernandez E, et al. (2019) Comparative study of Bitcoin price prediction using WaveNets, Recurrent Neural Networks and other Machine Learning Methods, In 2019 6th International Conference on Behavioral, Economic and Socio-Cultural Computing (BESC), 1-6.
    [11] Gyamerah SA (2019) Modelling the volatility of Bitcoin returns using GARCH models. Quant Finan Econ 3: 739-753. doi: 10.3934/QFE.2019.4.739
    [12] Huang JZ, Huang W, Ni J (2019) Predicting bitcoin returns using high-dimensional technical indicators. J Financ Data Sci 5: 140-155. doi: 10.1016/j.jfds.2018.10.001
    [13] Jang H, Lee J (2018) An Empirical Study on Modeling and Prediction of Bitcoin Prices With Bayesian Neural Networks Based on Blockchain Information. IEEE Access 6: 5427-5437. doi: 10.1109/ACCESS.2017.2779181
    [14] Ji S, Kim J, Im H (2019) A comparative study of bitcoin price prediction using deep learning. Mathematics 7: 1-20.
    [15] Kara Y, Acar Boyacioglu M, Baykan ÖK (2011) Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange. Expert Syst Appl 38: 5311-5319. doi: 10.1016/j.eswa.2010.10.027
    [16] Kim KJ (2003) Financial time series forecasting using support vector machines. Neurocomputing 55: 307-319. doi: 10.1016/S0925-2312(03)00372-2
    [17] Kwon DH, Kim JB, Heo JS, et al. (2019) Time series classification of cryptocurrency price trend based on a recurrent LSTM neural network. J Inf Process Syst 15: 694-706.
    [18] Lahmiri S, Bekiros S (2020) Intelligent forecasting with machine learning trading systems in chaotic intraday Bitcoin market. Chaos Solitons Fractals 133: 109641.
    [19] Makridakis S, Spiliotis E, Assimakopoulos V (2018) Statistical and Machine Learning forecasting methods: Concerns and ways forward. PLOS ONE 13: 1-26. doi: 10.1371/journal.pone.0194889
    [20] Mallqui DCA, Fernandes RAS (2019) Predicting the direction, maximum, minimum and closing prices of daily Bitcoin exchange rate using machine learning techniques. Appl Soft Comput 75: 596-606. doi: 10.1016/j.asoc.2018.11.038
    [21] McNally S, Roche J, Caton S (2018) Predicting the Price of Bitcoin Using Machine Learning, Proceedings—26th Euromicro International Conference on Parallel, Distributed, and Network-Based Processing, PDP 2018,339-343.
    [22] Miller N, Yang Y, Sun B, et al. (2019) Identification of technical analysis patterns with smoothing splines for bitcoin prices. J Appl Stat 46: 2289-2297. doi: 10.1080/02664763.2019.1580251
    [23] Nguyen DT, Le HV (2019) Predicting the Price of Bitcoin Using Hybrid ARIMA and Machine Learning, In: T. K. Dang, J. Küng, M. Takizawa, & S. H. Bui (Eds.), Future Data and Security Engineering, Cham: Springer International Publishing, 696-704.
    [24] Panagiotidis T, Stengos T, Vravosinos O (2018) On the determinants of bitcoin returns: A LASSO approach. Financ Res Lett 27: 235-240. doi: 10.1016/j.frl.2018.03.016
    [25] Patel J, Shah S, Thakkar P, et al. (2015) Predicting stock and stock price index movement using Trend Deterministic Data Preparation and machine learning techniques. Expert Syst Appl 42: 259-268. doi: 10.1016/j.eswa.2014.07.040
    [26] Quinlan JR (1986) Induction of decision trees. Mach Learn 1: 81-106.
    [27] Quinlan JR (1988) C4.5: programs for machine learning, London, England: Morgan Kaufmann Publishers, Inc.
    [28] Rebane J, Karlsson I, Denic S, et al. (2018) Seq2Seq RNNs and ARIMA models for Cryptocurrency Prediction: A Comparative Study. SIGKDD Fintech 18: 2-6.
    [29] Shu M, Zhu W (2020) Real-time prediction of Bitcoin bubble crashes. Phys A 548: 124477.
    [30] Vapnik V (1995) The nature of statistical learning theory, New York, NY: Springer.
    [31] Yao W, Xu K, Li Q (2019) Exploring the Influence of News Articles on Bitcoin Price with Machine Learning, In: 2019 IEEE Symposium on Computers and Communications (ISCC), 1-6.
  • Reader Comments
  • © 2020 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0)
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Metrics

Article views(7812) PDF downloads(682) Cited by(21)

Article outline

Figures and Tables

Figures(2)  /  Tables(15)

Other Articles By Authors

/

DownLoad:  Full-Size Img  PowerPoint
Return
Return

Catalog