scieee AI-readable full text Open interactive document viewer

Volatility modelling and VaR: The case of Bitcoin, Ether and Ripple

Ječmínek, Jakub,Kukalová, Gabriela,Moravec, Lukáš

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Ječmínek, Jakub; Kukalová, Gabriela; Moravec, Lukáš Article Volatility modelling and VaR: The case of Bitcoin, Ether and Ripple DANUBE: Law, Economics and Social Issues Review Provided in Cooperation with: European Association Comenius (EACO), Brno Suggested Citation: Ječmínek, Jakub; Kukalová, Gabriela; Moravec, Lukáš (2020) : Volatility modelling and VaR: The case of Bitcoin, Ether and Ripple, DANUBE: Law, Economics and Social Issues Review, ISSN 1804-8285, De Gruyter, Warsaw, Vol. 11, Iss. 3, pp. 253-269, https://doi.org/10.2478/danb-2020-0015 This Version is available at: https://hdl.handle.net/10419/242171 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by-nc-nd/4.0 VOLATILITY MODELLING AND VAR: THE CASE OF BITCOIN, ETHER AND RIPPLE Jakub Ječmínek1, Gabriela Kukalová2, Lukáš Moravec3 Abstract Since Bitcoin introduction in 2008, the cryptocurrency market has grown into hundreds- of-billion-dollar market. The cryptocurrency market is well known as very volatile, mainly for the fact that the cryptocurrencies have not the price to fall back upon and that anybody can join the trading (no license or approval is required). Since empirical literature suggests that GARCH-type models dominate as VaR estimators the overall objective of this paper is to perform comprehensive volatility and VaR estimation for three major digital assets and conclude which method gives the best results in terms of risk management. The methods we used are parametric (GARCH and EWMA model), non-parametric (historical VaR) and Monte Carlo simulation (given by Geometric Brownian Motion). We conclude that the best method for value-at-risk estimation for cryptocurrencies is the Monte Carlo simulation due to the heavy diffusion (stochastic) process and robustness of the results. Keywords Cryptocurrency, Volatility, Value-at-risk, VaR, Geometric Brownian Motion, GARCH I. Introduction Bitcoin is a purely peer-to-peer electronic version of electronic cash that allows one party to send money to another without going through a financial institution. Some versions of electronic cash systems existed even before Bitcoin, but they did not solve the doublespending problem. Bitcoin and other digital assets are well-known for their volatility; as an example, Bitcoin reached the highest value of all times on 16 December 2017 and was traded for 19,497.4 USD per a single coin, while on 12 November 2017 the Bitcoin market price 1Czech University of Life Sciences Prague, Kamýcká 129, 165 21 Praha, Czech Republic. E-mail: [email protected]. 2Czech University of Life Sciences Prague, Kamýcká 129, 165 21 Praha, Czech Republic. E-mail: kukalo[email protected]. 3Czech University of Life Sciences Prague, Kamýcká 129, 165 21 Praha, Czech Republic. E-mail: morav[email protected]. 254 Jakub Ječmínek, Gabriela Kukalová, Lukáš Moravec: Volatility Modelling and VaR: The Case of Bitcoin, Ether and Ripple was 5,950.07 USD. The return on investment of such a trade is 228% in a single month. Since the cryptocurrency market is very volatile, understanding of potential risks and losses is particularly important for better decision making. Value-at-risk is arguably the most widely used instrument of risk management. Value-at-risk (denoted as VaR4) is a maximum potential loss of portfolio or a financial instrument that can occur in a certain time horizon with a given probability. There are several methods for VaR estimation, but GARCH (Generalized Autoregressive Conditional Heteroscedasticity model) dominates the empirical literature as volatility process estimator. The overall objective of this paper is to perform comprehensive volatility and VaR estimation and compare the results with the empirical market price data. The results should suggest how the estimates differ and which methods are more appropriate for the digital assets. The techniques used for volatility and VaR estimation are the following: a) standard GARCH model defined by Bollerslev (1986), b) EWMA (Exponentially Weighted Moving Average), c) historical value-at-risk, d) simulation given by Geometric Brownian Motion. II. Literature Review Satoshi Nakamoto developed an idea of network that timestamps transactions by hashing them into an ongoing chain (currently known as a blockchain) of hash-based proof- of-work, forming a record that cannot be changed without redoing the proof-of-work (Nakamoto, 2008). In the last decade, Bitcoin gained an enormous value mainly because of its anonymity (Ardia, Bluteau and Rüede, 2018), transparency (Urquhart, 2016) and security (Klein, Pham Thu and Walther, 2018). While only computer enthusiasts invested in Bitcoin in its early days, today it has become mostly a speculative asset that is used as a high-risk, high-reward investment. Additionally, Baur, Hong and Lee (2018) state that bitcoin returns are uncorrelated with all major asset classes and thus fit into portfolios for risk diversification. Blau (2018) rejected the hypothesis that extreme volatility is caused by a speculative trading. Of course, Bitcoin is a major player among other digital assets, but it is by far not the only one. According to Yi, Xu and Wang (2018) total market capitalization of all cryptocurrencies was 295 billion USD in April 2018 and the total number of cryptocurrencies surpassed 1,600. Several papers analysed cryptocurrencies using GARCH-type models. Chu et al. (2017) examined seven most popular cryptocurrencies, Bitcoin, Dash, Dogecoin, Litecoin, Maidsafecoin, Monero and Ripple, using twelve different GARCH-type models and comparing goodness-of-fit of each model. Furthermore, Value-at-Risk was computed for 25 out of the sample days. Chu et al. (2017) found that IGARCH and GJRGARCH models provided the best fits, in terms of modelling the volatility. 4Do not confuse with vector autoregression (VAR). DANUBE: Law, Economics and Social Issues Review, 11 (3), 253–269 DOI: 10.2478/danb-2020-0015 255 Dyhrberg (2016) compared Bitcoin to US dollars and Gold and found out that they shared several similarities, implicating hedging capabilities and advantages as a medium of exchange. Ardia, Bluteau and Rüede (2018) tested the presence of regime changes in GARCH volatility dynamics of Bitcoin logarithmic returns using Markov-switching GARCH. They found a strong evidence of regime changes in the GARCH process and demonstrated that Markov-switching GARCH models outperform the single-regime specifications when predicting VaR. Conrad, Custovic and Ghysels (2018) explored the relationship between Standard & Poor’s 500 index and Bitcoin volatility. They found that S&P 500 realized volatility had a negative and highly significant effect on the long-term Bitcoin volatility. Stavroyiannis (2018) examined VaR for the Bitcoin and compared the findings with S&P 500 and the gold spot price. Findings suggest that Bitcoin violates VaR measures more than the other assets. Katsiampa (2017) compared optimal heteroskedasticity models of Bitcoin price data. According to goodness-of-fit, it has been found that the best model is the AR-CGARCH, highlighting the significance of including both, a short-run and a long-run component of the conditional variance. Bitcoin network automatically adjusts the difficulty for mining, so a new block is found approximately every 10 minutes. (Li and Wang, 2017) The difficulty is increased when a total hash rate of the network rises. From today’s perspective, mining bitcoins requires a powerful ASIC hardware that is specifically dedicated to mining and designed to generate the highest hash rate. Running such hardware for 24/7 consumes a lot of energy and according to Symitsi and Chalvatzis (2018) the total annual energy consumption is 57.69 TWh. Symitsi and Chalvatzis (2018) explored spillover effects between Bitcoin and energy and technology companies using VAR(1)-AGARCH model. The findings suggest significant return spillovers from energy and technology stocks to Bitcoin. Although Chu et al. (2017) performed a comprehensive financial analysis in terms of volatility modelling, the cryptocurrency market is very dynamic and some of the features have changed; (i) only three out of seven modelled cryptocurrencies remained in TOP 7 and others gained increase in popularity, (ii) Chu et al. (2017) did not examine Ether due to the volume of available data, (iii) for the better informed decisions, continuously adjusted volatility models are appropriate, (iv) only GARCH-type models were used for VaR estimation. III. Empirical Strategy and Data Description The data are publicly available and are obtained from CoinMarketCap API. The Bitcoin daily market price data were observed from 04/28/2013 to 11/11/2019 (2,389 observations), Ether covered the period from 08/07/2015 to 11/11/2019 (1,558 observations) and Ripple covered the period from 08/04/2013 to 11/11/2019 (2,291 observations). This is the longest data range that CoinMarketCap has provided. We use the market price included in the ‘Close’ column which is, according to CoinMarketCap, defined as the latest data in range (UTC time). The close market price 256 Jakub Ječmínek, Gabriela Kukalová, Lukáš Moravec: Volatility Modelling and VaR: The Case of Bitcoin, Ether and Ripple data are then transformed to logarithmic returns, defined as: rt=ln Pt−ln Pt−1. (1) Time series array is then, of course, shortened by one observation. Figure 1 shows some standard features that are typical to financial time series, such as excess kurtosis and volatility clustering. Figure 1: Daily logarithmic returns Source: Data from CoinMarketCap, own research According to Charles and Darné (2005), it is often observed that the standardized residuals by the conditional volatility computed by using an estimated GARCH model still have excess kurtosis. Volatility clustering, first observed by Mandelbrot (1963), is the price behaviour in financial time series when large changes tend to be followed by large changes – of either sign – and small changes tend to be followed by small changes. As an example, in the Figure 1, evident volatility clustering can be seen around the year 2018. Excess kurtosis, DANUBE: Law, Economics and Social Issues Review, 11 (3), 253–269 DOI: 10.2478/danb-2020-0015 257 or leptokurtic distribution, is the scaled fourth moment of probability distribution and is defined by Cipra (2013) as: γ2=E(X−µ)4 σ4−3, (2) where γ2>0. For the case of Bitcoin, kurtosis coefficient is: γ2=7.64 −3=4.64.(3) We can observe positive kurtosis also in Ether and Ripple logarithmic returns. See “Histogram” below (Figure 2) and “Basic statistics” in the Table (Table 1) for more detailed information. Figure 2: Histogram of Bitcoin, Ether and Ripple Source: Data from CoinMarketCap, own research 258 Jakub Ječmínek, Gabriela Kukalová, Lukáš Moravec: Volatility Modelling and VaR: The Case of Bitcoin, Ether and Ripple Table 1: Basic statistics Bitcoin Ether Ripple Minimum −0.266198 −1.302106 −0.616273 Maximum 0.357451 0.412337 1.027356 1st Quartile −0.012615 −0.024548 −0.022698 3rd Quartile 0.018402 0.0284860 0.020083 Mean 0.001750 0.002700 0.001679 Median 0.001883 −0.000802 −0.002762 Sum 4.178293 4.204154 3.845187 Variance 0.001848 0.005229 0.005384 Stdev 0.042991 0.072313 0.073372 Skewness −0.162197 −3.412472 2.057162 Kurtosis 7.637610 70.186393 29.374596 Source: Data from CoinMarketCap, own research Value-at-risk estimates can be divided into two groups of methods: a parametric and a non-parametric. We start with the former. Parametric Methods Parametric methods of VaR models that are based on standard statistical distributions determine the conditional return distribution and estimate the standard deviation (or covariance matrix) of the returns of asset (Aussenegg and Miazhynskaia, 2006). General value-at-risk definition for a long position of financial instrument Xwith probability given by pin time tfor a time horizon t+kcan be defined as: Fk(VaR)=P(∆X(k)≤VaR)=p, (4) where ∆X(k)is market price change of Xin time tto time t+k. If we assign random variable Xsome probability distribution, such as normal distribution with parameters µ and σ > 0: ∆X(k)∼N(µ,σ2), (5) then VaR is defined as: VaR =µ+σ·up, (6) where upis p-quantile N(0,1). If we suppose µ=0, which is somewhat understandable assumption since we use logarithmic returns, then equation (6) is written as: VaR =σ·up. (7) DANUBE: Law, Economics and Social Issues Review, 11 (3), 253–269 DOI: 10.2478/danb-2020-0015 259 Commercial software RiskMetrics by JPMorgan uses up=−1.65 for 95% confidence interval. VaR estimation using EWMA volatility forecast is then computed as: VaR =−1.65D σt+1Xt, (8) and for any khorizon: VaR(k)=−1.65 ·√k·D σt+1·Xt, (9) where Xtis total value of portfolio (only one digital asset in our case). Exponentially weighted moving average is a method for variance (and thus volatility) estimation using exponentially declining weight. Variance for time t+kis forecasted as: σ2 t+k=(1−λ)r2 t+k−1+λσ2 t+k−1, (10) here rdenotes logarithmic returns of a financial instrument and weight λmust satisfy 0> λ > 1.5 Next volatility process estimation we used is standard GARCH(1,1), defined as (Bollerslev, 1986; Cipra, 2013): yt=µt+et,et=σtεt, σ2 t=α0+α1e2 t−1+β1σ2 t−1(11) (α0>0, α1≥0, β1≥0, α1+β1<0), and corresponding 95% VaR estimation for one time step as: VaR =D rt+1(t)−1.65D σt+1(t)Xt, (12) and for any k: rt(k)|Ωt∼N* . ,kµ, k X j=1 σ2 t+j(t)+ / -. (13) First order of the GARCH model is used for several reasons. The optimal lag was checked using corresponding information criterions (such as Akaike information criterion, Bayesian criterion and Hannah-Quinn criterion). The criterions improvement was not sufficient and thus the parsimonious design is preferred. The first order of standard GARCH process is dominating the empirical literature, which enables a greater variety of comparison. We use Xt=1000 for EWMA and GARCH model, due to easier visual comparison. Note that EWMA model is a special case of iGARCH (integrated GARCH see Engle and Bollerslev, 1986) model where α0=0 and µt=0. 5Note that RiskMetrics advices using λ=0.94 which is also the weight we used. 260 Jakub Ječmínek, Gabriela Kukalová, Lukáš Moravec: Volatility Modelling and VaR: The Case of Bitcoin, Ether and Ripple Non-parametric Methods Arguably the simplest of all VaR estimates is historical value-at-risk which is simply the p-quantile of the negative returns at a probability level p. It is ex-post analysis of the return distribution. This method is included in the paper just for benchmarking. The last method used is the Monte Carlo simulation which is harder to perform since we must draw thousands of potential outcomes. The price behaviour that follows our simulation is Geometric Brownian Motion (GBM), defined as: Pt=P0exp µ−σ2 2!·t+σ·Wt!. (14) Equation (14) consists of a constant drift and a diffusion coefficient. Note that the drift process is deterministic whereas the diffusion process is stochastic. It is easy to prove that: E(rt)= µ−σ2 2!·∆, (15) and var(rt)=σ2·∆. (16) If we set E(rt)and var(rt)equal to sample mean (¯r)and variance s2 r, we obtain parameters: D σ=sr √∆ , (17) and D µ=¯r ∆ +s2 r 2∆. (18) Following some standard properties of the Wiener process, such as that ∆Wt∼N(0,∆t), then we obtain: Pt=P0exp µ−σ2 2!·t+σ·ε·√∆t!. (19) The Monte Carlo simulation is done in Rstatistical environment and the code is included in appendix. We ran the simulation 1 000 times and computed the VaR simply as p-quantile. DANUBE: Law, Economics and Social Issues Review, 11 (3), 253–269 DOI: 10.2478/danb-2020-0015 267 V. Conclusion This paper explored the volatility and corresponding value at risk (VaR) of the three major digital assets (based on total market capitalization), such as Bitcoin, Ether and Ripple. The volatility was estimated with EWMA (Exponentially Weighted Moving Average) and GARCH(1,1) model, introduced by Bollerslev (1986). Daily logarithmic returns of Bitcoin, Ether and Ripple exhibit typical signs of other financial data, such as the leptokurtic distribution and volatility clustering. Among the most used instruments in risk management is value-at-risk which is a measurement of the potential loss that may occur for a portfolio or a financial asset in a given time horizon with a defined probability. We used both, the parametric and the non-parametric methods, for VaR estimations such as Monte Carlo method, historical VaR, GARCH and EWMA model. The value-at-risk estimation based on the parametric methods is almost the same for Bitcoin but differs for Ether and Ripple. The historical VaR is a good and simple VaR estimator but does not account for outliners and a recent (more stable) volatility process. The last method used is Monte Carlo simulations where VaR was significantly higher than all other estimators, mainly due to the high diffusion process. Market with digital assets tends to have some key features that are unique against other financial markets; (i) anybody can join trading at will – no licence or approval is required, (ii) market with digital assets is not based in a certain location – cryptocurrencies are traded all over the world. Moreover, since cryptocurrencies have not a fundamental price to fall back upon, many economists argue whether cryptocurrency market is a financial bubble or not. The differences defined above make it fundamentally harder to predict future volatility, based on historical performance than for other typical financial assets. We conclude that the best instrument for predicting VaR for cryptocurrencies is Monte Carlo simulation, due to the different nature of the cryptocurrency market. As mentioned in Chu et al. (2017) the results could serve the investors and also financial institutions in terms of risk management. Acknowledgement This paper is a partial result of the research project No. 2019B0010 – Czech Social System Fraud Rate Estimation and System Optimization Proposals, supported by the Internal Grant Agency (IGA) of Faculty of Economics and Management, CULS Prague. References Ardia, D., Bluteau, K. and Rüede, M. (2018). Regime changes in Bitcoin GARCH volatility dynamics. Finance Research Letters, 29(2019), 266–271. Aussenegg, W., Miazhynskaia, T. (2006). Uncertainty in value-at-risk estimates under parametric and non-parametric modelling. Financial Markets and Portfolio Management, 20(3), 243–264. 268 Jakub Ječmínek, Gabriela Kukalová, Lukáš Moravec: Volatility Modelling and VaR: The Case of Bitcoin, Ether and Ripple Baur, D. G., Hong, K., Lee, A. D. (2018). Bitcoin: Medium of exchange or speculative assets? Journal of International Financial Markets, Institutions and Money, 54, 177–189. Blau, B. M. (2018). Price dynamics and speculative trading in Bitcoin. Research in International Business and Finance, 43, 15–21. Bollerslev, T. (1986). Generalized Autoregressive Conditional Heteroskedasticity. Journal of Econometrics, 31, 307–327. Cipra, T. (2013). Finanční ekonometrie (Financial Econometrics). Prague: Ekopress. Charles, A., Darné, O. (2005). Outliers and GARCH models in financial data. Economics Letters, 86(3), 347–352. Chu, J., Chan, S., Nadarajah, S., Osterrieder, J. (2017). GARCH Modelling of Cryptocurrencies. Journal of Risk and Financial Management, 10(4), 17. Conrad, C., Custovic, A., Ghysels, E. (2018). Long- and Short-Term Cryptocurrency Volatility Components: A GARCH-MIDAS Analysis. Journal of Risk and Financial Management, 11(2), 23. Dyhrberg, A. H. (2016). Bitcoin, gold and the dollar – A GARCH volatility analysis. Finance Research Letters, 16, 85–92. Engle, R. F., Bollerslev, T. (1986) Modelling the persistence of conditional variances. Econometric Reviews, 5(1), 1–50. Katsiampa, P. (2017). Volatility estimation for Bitcoin: A comparison of GARCH models. Economics Letters, 158(C), 3–6. Klein, T., Pham Thu, H., Walther, T. (2018). Bitcoin is not the New Gold – A comparison of volatility, correlation, and portfolio performance. International Review of Financial Analysis, 59(C), 105–116. Li, X., Wang, C. A. (2017). The technology and economic determinants of cryptocurrency exchange rates: The case of Bitcoin. Decision Support Systems, 95, 49–60. Mandelbrot, B. (1963). The Variation of Certain Speculative Prices. The Journal of Business, 36(4), 394–419. Nakamoto, S. (2008). Bitcoin: A peer-to-peer electronic cash system. Retrieved September 12, 2019, from https://bitcoin.org/bitcoin.pdf. Stavroyiannis, S. (2018). Value-at-risk and related measures for the Bitcoin. The Journal of Risk Finance, 19(2), 127–136. Symitsi, E., Chalvatzis, K. J. (2018). Return, volatility and shock spillovers of Bitcoin with energy and technology companies. Economics Letters, 170, 127–130. Urquhart, A. (2016). The inefficiency of Bitcoin. Economics Letters, 148, 80–82. Yang, Z. (2012). Geometric brownian motion model in financial market. Graduation Work, Princeton, USA. Yi, S., Xu, Z. and Wang, G-J. (2018).Volatility connectedness in the cryptocurrency market: Is Bitcoin a dominant cryptocurrency? International Review of Financial Analysis, 60, 98–114. DANUBE: Law, Economics and Social Issues Review, 11 (3), 253–269 DOI: 10.2478/danb-2020-0015 269 Appendix Appendix 1 – EWMA model R code library(rugarch) ewma spec = ugarchspec( variance.model=list(model=''iGARCH'', garchOrder=c(1,1)), mean.model=list(armaOrder=c(0,0), include.mean=TRUE), distribution.model=''norm'', fixed.pars=list(omega=0, alpha1=0.06)) ewma fit <- ugarchfit(ewma spec, data=data) Appendix 2 – GARCH(1,1) model R code library(rugarch) sgarch spec = ugarchspec( variance.model = list(model = ''sGARCH'', garchOrder = c(1,1)), mean.model = list(armaOrder = c(0, 0))) sgarch fit <- ugarchfit(spec=sgarch spec, data=data) Appendix 3 – Historical VaR R code library(PerformanceAnalytics) value at risk <- VaR(data, p=.95, method=''historical'') Appendix 4 – Geometric Brownian Motion GBM = function(N, sigma, mu, P0){ Wt = cumsum(rnorm(N,0,1)) t = (1:N)/365 drift = (mu - 0.5 * sigmaˆ2) * t diff = sigma * Wt Pt = P0 * exp(drift + diff) return (Pt) }