American Journal of Mathematics and Statistics
p-ISSN: 2162-948X e-ISSN: 2162-8475
2019; 9(4): 151-159
doi:10.5923/j.ajms.20190904.01

Kofi Agyarko, Albert Buabeng, Joseph Acquah
University of Mines and Technology, Department of Mathematical Sciences, Tarkwa, Ghana
Correspondence to: Kofi Agyarko, University of Mines and Technology, Department of Mathematical Sciences, Tarkwa, Ghana.
| Email: | ![]() |
Copyright © 2019 The Author(s). Published by Scientific & Academic Publishing.
This work is licensed under the Creative Commons Attribution International License (CC BY).
http://creativecommons.org/licenses/by/4.0/

This study assessed the volatility and the Value at Risk (VaR) of daily returns of Bitcoins by conducting a comparative study in the forecast performance of symmetric and asymmetric GARCH models based on three different error distributions. The models employed are the SGARCH and TGARCH which were validated based on AIC, MAE and MSE measures. The results indicated that the SGARCHGED (1,1) with generalised error distribution term was identified as the best fitted GARCH model. Though, this best fitted model based on information loss (AIC) did not provide the best out-of-sample forecast, the differences was insignificant. Thus, the study clearly demonstrates that it is reliable to use the best fitted model for volatility forecasting. Also, to further validate the performance of the best fitted model, it was subjected to a historical back-test using Value at Risk (VaR). Though, it was evident from the study that no model was superior, it was indicated that an average loss of 1.2% is expected to be exceeded only 1% of the time. Moreover, volatility forecast from the back testing was relatively high during the first quarter of 2018 but begun decreasing steadily with time.
Keywords: Volatility, Bitcoin, GARCH models, Value at Risk
Cite this paper: Kofi Agyarko, Albert Buabeng, Joseph Acquah, Modelling the Volatility of the Price of Bitcoin, American Journal of Mathematics and Statistics, Vol. 9 No. 4, 2019, pp. 151-159. doi: 10.5923/j.ajms.20190904.01.
![]() | (1) |
is the logarithmic return at time
is the current closing price at time t and
is the previous closing price.![]() | (2) |
(non-stationary) against the alternate
(covariance stationary). Where
is the characteristic root of an AR polynomial. The ADF test statistic is given by Equation (3);![]() | (3) |
is a vector of deterministic terms (constant, trend etc.). The plagged difference terms,
, are used to approximate the mean equation structure of the errors,
, and the value of p is set so that the error,
is serially uncorrelated.Contrary to most unit root test, like ADF, the absence of a unit root is not a proof of stationarity, but by design, of trend-stationarity. This is being addressed by the Kwiatkowski-Phillips-Schmidt-Shin (KPSS) test developed by [15]. KPSS is defined by Equation (4)![]() | (4) |
,
is the residual of a regression of
on
and
is a consistent estimate of the long-run variance of
using
.![]() | (5) |
is the returns at time,
and
are constants and the innovation respectively.![]() | (6) |
![]() | (7) |
![]() | (8) |
![]() | (9) |
denotes the conditional variance,
the intercept and
the residuals from the mean filtration process. The GARCH order is defined by (q, p) (ARCH, GARCH). One of the key features of the observed behavior of financial data which GARCH models capture is volatility clustering which may be quantified in the persistence parameter,
, defined as Equation (10)![]() | (10) |
), is the half-life (H), defined as the number of days it takes for half of the expected reversion back towards
to occur. H is expressed as Equation (11)![]() | (11) |
![]() | (12) |
From the model, depending on whether
is above or below the threshold value of zero,
can have different effects on the conditional variance
. The persistence of the model
is given by Equation (13)![]() | (13) |
is the expected value of the standardized residuals below zero, and the half-life H is estimated using Equation (11).
where the error term in this case is normally distributed with zero mean and variance one. The density function for the Normal distribution is given by Equation (14)![]() | (14) |
constitute the mean and
is the standard deviation.Student-t Distribution (STD)The fatter tails, frequently observed in financial time series, are allowed for in the Student’s t distribution assumed by [17] which is given by the density function shown as Equation (15)![]() | (15) |
denotes the number of degrees of freedom and
denotes the Gamma function.Generalized Error Distribution (GED)[11] proposed the use of the GED in order to account for fat-tails observed commonly in financial time series. It is given by Equation (16);![]() | (16) |
is the degrees of freedom or tail-thickness parameter. If
, the GED yields the normal distribution. If
, the density function has thicker tails than the normal density function, whereas for
it has thinner tails.![]() | (17) |
![]() | (18) |
is the variance of the residuals, s is the sample size, k is the total number of parameters. For a GARCH (p,q) model,
. The best model is the model that has least AIC and BIC values.![]() | (19) |
is the residual sample autocorrelation at lag i, s is the size of the series, k is the number of time lags included in the test.
has an approximately chi-square distribution with k degree of freedom.Testing for ARCH EffectsIn applying GARCH methodology it is imperative to examine the residuals for any evidence of ARCH effects. The Lagrange Multiplier (LM) and the Ljung-Box statistic tests are used to test the ARCH effect in the residuals of a model by letting the
lag autocorrelation of the squared residuals to be
, the Ljung-Box statistic is given by Equation (20);![]() | (20) |
![]() | (21) |
forms the regression.![]() | (22) |
![]() | (23) |
is the
observed value;
is the
fitted value; n is the sample size.In situations where the best fitted models do not provide the best volatility forecasts in terms of the values of MSE and MAE, the Percent Error (PE) of MSE/MAE for each underlying case is evaluated. This will help investigate the difference of the values of MSE/MAE given by the best fitted model and the best performance model. PE is defined as Equation (24)![]() | (24) |
is expressed as Equation (25)![]() | (25) |
is the significance level. VaR is therefore a quantile in the distribution of profit and loss that is expected to be exceeded only with a certain probability, which is given Equation (26)![]() | (26) |
![]() | (27) |
![]() | (28) |
is the number of observations with the value i followed by j for
and
is the corresponding probabilities.
under the null hypothesis which states that the violations are independently distributed. Hence, a rejection of the null hypothesis infers that the violations are clustered and consequently not independent.
|
![]() | Figure 1. Time Series Plot of Daily Returns of Bitcoins |
|
|
|
|
|
|
|
were significant (p-values<0.05) suggesting that volatility is persistent in the sense that the volatility of time
is greatly affected by the volatility at time
. Also, all the
have their p-values less than 0.05 implying that the volatilities are less spiky since a shock at time
(caused by an unusually high or low return) affects the volatility of time
. With regards to the
, only SGARCHGED (1,1) has p-values greater than 0.05. The fact that
is not different from zero means that the unconditional long run variance is zero. Also, the estimated volatility persistence is very high for all best fitted models and implies half-lives of shocks to volatility to SGARCHGED (1,1) and TGARCHGED (1,1) of 20 and 15 days, respectively. The shape parameter
, showing the estimated degrees of freedom are slightly different from each other which implies that the density plot of all the best fitted models would look the same.
|
|
|
![]() | Figure 2. 1% VaR Forecast at 1% |
|
![]() | Figure 3. Forecast of Volatility vs Daily Returns of Bitcoins (Absolute) |