ECONOMETRICS
Conditional volatility model
Introduction
The study involved the prices of shares in the stock exchange market from 2007-01-03 till 2018-
4-30. The researcher selected a sample size of 2582 for the study. The prices’ opening, closing,
high and low values were recorded. Also, the researcher collected volumes of sales of the shares.
The data entry and cleaning were done in excel and then exported to R statistical software for
analysis. The data was converted into time-series data in R, ready for analysis. The study aimed
at obtaining the returns and fitting the generalized autoregressive conditional heteroskedasticity
(GARCH) and autoregressive conditional heteroskedasticity (ARCH). Those are the conditional
vitality model.
Results and findings
Prices
The share prices were plotted using the charSeries function in R. The data series shows that the
prices were high at the start of 2008 (around 35) but dropped significantly to the least price in the
series of around 16 at the end of the year. The highest prices were witnessed around the mid of
2016, with a price value of above 40. The plot of the prices of the shares demonstrated an
increasing trend, meaning that it was not stationary. The variance was not constant over the
series; thus, there was the presence of heteroskedasticity. Figure 1 below shows how the prices
of shares were distributed.
6
Figure 1: Time series plot of prices of shares from 2007 to 2018
Returns
The returns are the changes in the prices of investment, asset, or a project over time. It can be
represented by the real values of the price change or percentage. A positive return indicates a
profit was made, while a negative return indicates a loss. The returns of the share prices were
estimated using dailyReturn in R as shown in the appendix. The returns indicated a maximum
profit of 14% and a maximum loss of 13% over the period. The average and standard deviations
of the returns were 0. The researcher plotted returns for easy interpretation and observed that
normality existed. Figure 2 below shows that the mean of the returns was constant all through at
zero. Mid 2013 was associated with the maximum loss while mid-2014 was associated with the
maximum profit, as evidenced in the graph below;
6
Figure 2: Plot of returns of the prices of shares
Model
It is the most used measure of the risk associated with assets and investments. Volatility models
are very important when dealing with economic and financial models because of the high
fluctuations. In my case, the data was entered daily, showing how fluctuating it was. As a result,
GARCH was fitted to aid in understanding the fluctuations and making predictions on the
possibility of prices increasing or decreasing. The GARCH model of conditional variance was
fitted as GARCH (1, 1) and ARFIMA (1, 0, 1), the mean model, for the returns. The distribution
of the returns was normal; thus, the shape, skew, and lambda was not produced. As per the
Pearson adjusted goodness of fit statistics, the p-values are less than the alpha at 0.05 test of
significance; thus, we conclude that the model was statistically significant. Additionally, the
likelihood estimate was obtained to be 7425. 046. The high value of the likelihood estimate
6
indicates the model’s goodness of fit. The optimal parameters of the model were as shown by
table 1 below;
Table 1: Optimal parameters of the GARCH model
The omega, alpha, and beta were statistically significant because the absolute t statistic values
were more than 2. Also, their p-values were less than the test of significance of 0.05. The alpha
value was computed as 0.0741 and the beta value as 0.8601. The alpha value is around 0.05;
thus, the market was stable. The beta was between 0.85 and 0.98; thus, the persistence was great.
The alpha value was low, and the beta value was high; thus, the GARCH volatilities had low vol-
of-vol. The stability statistic is 1.9968 indicating a stable market existed.
Heteroskedasticity rarely affects the parameters of Ordinary Least Square (OLS) estimates.
However, it has a biasness impact on the variance matrix. To reduce that, the robust standard
errors estimates were also computed as shown by table 2 below;
Table 2: Robust standard error estimates
6
The estimates were not much different from those of the optimal parameters. Moving average
(MA) effects were statistically significant with robust standard error estimates. Omega, alpha,
and beta were also statistically significant.
The information criteria were also computed. The AIC was -5.21, and BIC was -5.19. The less
the information criteria, the better the model. The estimates are shown in table 3 below;
Table 3: The information criteria of the AGARCH model
The autocorrelation between the residuals was tested using the Ljung-Box. The hypothesis was
that;
H0: No serial correlation
H1: Serial correlation exists
The researcher obtained the p-value to be 0.873. That value is greater than the alpha at 0.05
significance test; thus, we retain the null hypothesis and conclude no serial correlation in the
residuals. The descriptive statistics of the residuals of the model were calculated. It had a range
of 0.004, a mean of 3.701E-04, and a median of 7.39E-05. Table 4 summarizes that.
6
Table 4: Descriptive statistics of squared-residuals
Figure 3 below shows the squared residuals plotted with the conditional variance. The variance
was 2.054213e-06, and the mean was 3.701e-04. The variance is constant all through the series
of residuals.
Figure 3: Plot of squared residuals and conditional variance.
6
Figure 4: The Q-Q plot of the squared residuals
Forecast
The predictions were made for a future period of 10. From the sixth value, the trend of the series
flattens. The values obtained for the series and sigma are shown respectively by the table 5
below;
Table 5: The projected values of the series and the sigma
Time Series Sigma
T1 0.00054 0.01538
T2
0.00062
3 0.0159
T3
0.00059
7 0.0159
T4
0.00060
1 0.01613
T5
0.00060
2 0.01623
6
T6
0.00060
3 0.017
T7
0.00060
3 0.01673
T8
0.00060
3 0.01689
T9
0.00060
3 0.01705
T10
0.00060
3 0.0179
The variance of the residuals in the forecast was obtained and plotted as shown by figure 5;
6
Figure 5: The sigma of the fitted projections
Conclusion
♣ The prices of the shares highly fluctuated, but the prices’ returns were constant over time.
6
♣ The models fitted were GARCH (1, 1) and ARFIMA (1, 0, 1), meaning the
autoregressive factor was 1 and the moving average also 1. The model was statistically
significant, fitting the returns of the prices of shares.
♣ The residuals of returns were normally distributed with a mean and variance of almost
zero.
♣ There exist no autocorrelation between the residual values of the returns.
♣ The projection for the next 10 days indicates that the company will make a profit over
that period and has no probability of a loss. The residuals of the projected model were
also normally distributed with set mean and sigma values.
References
6
Huskamp, H. A., Epstein, A. M., & Blumenthal, D. (2003). The impact of a national prescription
drug formulary on prices, market share, and spending: lessons for Medicare?. Health Affairs,
22(3), 149-158.
Blackman, S. C., Holden, K., & Thomas, W. A. (1994). Long-term relationships between
international share prices. Applied Financial Economics, 4(4), 297-304.
San-Juan-Rodriguez, A., Good, C. B., Heyman, R. A., Parekh, N., Shrank, W. H., & Hernandez,
I. (2019). Trends in prices, market share, and spending on self-administered disease-modifying
therapies for multiple sclerosis in Medicare Part D. JAMA neurology, 76(11), 1386-1390.
Choustova, O. (2008). Application of Bohmian mechanics to dynamics of prices of shares:
Stochastic model of Bohm–Vigier from properties of price trajectories. International Journal of
Theoretical Physics, 47(1), 252-260.
Wernerfelt, B. (1985). The dynamics of prices and market shares over the product life cycle.
Management Science, 31(8), 928-939.