American Journal of Mathematics and Statistics
p-ISSN: 2162-948X e-ISSN: 2162-8475
2013; 3(6): 315-331
doi:10.5923/j.ajms.20130306.04
MutaiCheruiyot Noah, Mung’atu Kyalo Joseph, Waititu Gichuhi Anthony
Jomo Kenyatta University of Agriculture and Technology, Nairobi, Kenya
Correspondence to: MutaiCheruiyot Noah, Jomo Kenyatta University of Agriculture and Technology, Nairobi, Kenya.
| Email: | ![]() |
Copyright © 2012 Scientific & Academic Publishing. All Rights Reserved.
Heteroscedasticity arises when the error term of a regression equation does not have a constant variance. Financial markets are known to be very uncertain a phenomenon called volatility which is a key variable used in many financial applications such as investment, portfolio construction, option pricing and hedging as well as market risk management. This study models the heteroscedasticity of volatility of stock returns in Nairobi Securities Exchange, NSE of Safaricom and Kenya Commercial Bank, KCB using daily return series from 9th June 2008, to 31st December, 2010, using ARIMA-ARCH/GARCH models. The procedure for building the model involved model identification, order determination, estimation of parameters and diagnostic check.Shapiro–Wilk testrejected the null hypothesis of normality for both series at 5% level of significance while Philip Perron (PP) and Augmented Dickey Fuller (ADF) reveal that price series were not stationary while returns series were stationary. All the return series exhibit, leptokurtosis, volatility clustering and negative skewness. The estimation results reveal that ARIMA (1, 0, 0)-GARCH (1, 1) and ARIMA (0, 0, 2)-GARCH (1, 1) best fits Safaricom and KCB respectively. Investors who wish to avoid large, erratic swings in portfolio returns may wish to structure their investments to produce a leptokurtic distribution. Further, researches should focus on the calculation of value-at-risk (VaR) in the markets.
Keywords: Heteroscedasticity, Volatility, Returns, ARIMA-GARCH-models
Cite this paper: MutaiCheruiyot Noah, Mung’atu Kyalo Joseph, Waititu Gichuhi Anthony, Heteroscedastic Analysis of the Volatility of StockReturns in Nairobi Securities Exchange, American Journal of Mathematics and Statistics, Vol. 3 No. 6, 2013, pp. 315-331. doi: 10.5923/j.ajms.20130306.04.
![]() | (1) |
is the standard deviation,
is the return on day i and
is the average return over the N-day period
and
be today’s and yesterday’s prices of an asset or a portfolio, the arithmetic returns are defined by![]() | (2) |
is the price of the asset at day t. Yearly arithmetic returns are defined by:![]() | (3) |
and
are the prices of the asset at the first and the last trading day of the year, respectively. Then, R may be written as![]() | (4) |
and
be today’s and yesterday’s prices of an asset or portfolio, then the geometric returns are defined as![]() | (5) |
![]() | (6) |
![]() | (7) |
comes from a Gaussian distribution. A great number of tests have been devised for this problem. One of the tests used is the Shapiro–Wilk test. In statistics, the Shapiro–Wilk test tests the null hypothesis that a sample
came from a normally distributed population. It was published in 1965 by Samuel Shapiro and Martin Wilk. The test statistic is:![]() | (8) |
with parentheses enclosing the subscript index (i) is the
order statistic, i.e., the
-smallest number in the sample;ii)
is the sample mean;iii) the constants
are given by![]() | (9) |
are the expected values of the order statistics of independent and identically-distributed random variables sampled from the standard normal distribution, and V is the covariance matrix of those order statistics.
is a stationary time series, with constant expectation and time independent covariance. The ACF for the series is defined as![]() | (10) |
and
The value k denotes the lag.Plots of ACF as a function of k shall be done, and determine if the autocorrelation decreases as the lag gets larger or of if there is any particular lag for which the autocorrelation is large![]() | (11) |
=the coefficient of determination for the regression in the ARCH model using the residuals. The null hypothesis is that there is no ARCH effect up to order
in the residuals. The test statistic is calculated as the number of observations multiplied by
from the regression. The LM test statistic asymptotically follows a
distribution. The null hypothesis is rejected if the test statistic is larger than critical value of 
![]() | (12) |
is the sample autocorrelation coefficient; T is the sample size and m is the maximum lag lengthThe null hypothesis that all
are zerois rejected if the value of the computed Q is larger than the critical Q-statistic from the chi-square distribution at the given level of significance. According to Harvey & Jaeger[30], choosing the number of lags for the test is a practical issueas a small number of lags might fail to detect the autocorrelations at high-order lags, whereas, a large number of lags might result in diluting the significant correlation at one lag by insignificant correlations at other lags. ![]() | (13) |
where
is the variance at time t,
is square residuals at rime t, and q is the number of lags. The effect of a return shock i period ago (i≤ q) on current volatility is governed by the parameter α. In an ARCH model, old news arrived at the market more than q period ago has no effect at all on current volatility. For ARCH (1, 1) the model is 

is the mean equation. Where
is the stock return,
is the exogenous variables or belonging to the set of information
, β is a fixed parameter vector and conditional variance is, ![]() | (14) |
and
The GARCH (p, q) above defined as stationary when
. In this study we are going to use GARCH (1, 1). The model for GARCH (1, 1) is given by
where,
and 
denote the daily closing price of a stock at the end of the day t, the daily stock return series is generated by ![]() | (15) |
the LM test statistic equal to
has asymptotic chi -squared distribution with p degree of freedom.iii. An ARIMA(p,d,q) model was fitted to the data to remove serial dependenceiv. ACF, PACF and AICc was used to determine the order of the models
of n, IID observations, which comes from a distribution f(x) with unknown parameter
, then; the joint density function is![]() | (16) |
to be fixed parameters of this function, whereas
will be the function's variable and allowed to vary freely. And this function is called likelihood![]() | (17) |
![]() | (18) |
follow normal distribution with un-known parameters
then![]() | (19) |
![]() | (20) |
![]() | (21) |
and
as the un-known parameters![]() | (22) |
![]() | (23) |
![]() | (24) |
and
gives![]() | (25) |
![]() | (26) |
![]() | (27) |
![]() | (28) |
![]() | (29) |
is the white noise term,
is normally distributed with mean zero and variance 
![]() | (30) |
(
becomes![]() | (31) |
![]() | (33) |
![]() | (34) |
![]() | (35) |
![]() | (36) |
![]() | (37) |
![]() | (38) |
nor
should exhibit serial correlation.ii. The normal plots, ACF plot and time series plot was done. The normal probability plot should be a straight line while the time plot should exhibit random variation. For ACF’s all the correlation should be within the test bounds which indicates stationarity in the data.iii. Ljung-Box test is employed to check for adequacy of the fitted model. The Ljung-Box test was named after Greta M Ljung and George E. P. It is a type of statistical test which test whether any of a group of autocorrelations of a time series is different from zero. It performs a lack-of-fit hypothesis test for model specification, which is based on the Q-statistic ![]() | (39) |
is the squares sample autocorrelation at lag j. Under the null hypothesis of no serial correlation, the Q-statistic is asymptotically Chi-Square distributed. If the value of the test statistic is greater than the critical value from the Q-statistics, then the null hypothesis can be rejected. Alternatively, if p-value is smaller than the conventional significance level, the null hypothesis that there are no autocorrelation will be rejected. ![]() | (40) |
![]() | (41) |
![]() | (42) |
![]() | (43) |
![]() | (44) |
be the one step ahead forecast for σ2 made at time T. This is easy to calculate since, at time T, the values of all the terms on the right hand side are known.
, will be obtained by taking the conditional expectation of (40). Given
,
the 2-step ahead forecast for σ2 made at time T is obtained by taking the conditional expectation of (41)![]() | (45) |
is the expectation, made at time T, of
, which is the squared disturbance term. We can write![]() | (46) |
, so that the 2-step ahead forecast is given by![]() | (47) |
![]() | (48) |
![]() | (49) |
![]() | (50) |
![]() | (51) |
![]() | (52) |
![]() | (53) |
denote the daily closing price of a stock at the end of the day t, the daily stock return series was be generated by![]() | (54) |
![]() | Figure 1. Time series plot of KCB and Safaricom closing price |
![]() | Figure 2. Plots of Safaricom’s and KCB’s returns ![]() |
|
|
|
![]() | Figure 3. ACF of Asset Returns and Squared Asset Returns for Safaricom and KCB |
![]() | Figure 4. ACF and PACF Safaricom closing and log differenced closing price |
![]() | Figure 5. ACF and PACF KCB closing and log differenced closing price |
|
|

![]() | Figure 6. ACF and PACF of Safaricom and KCB residuals |
![]() | Figure 7. ACF and PACF plots of residuals and squared residuals of Safaricom and KCB |
in the Fitted ARIMA (1,0,0) and ARIMA (0,0, 2)
|
|
For Safaricom the fitted GARCH (1, 1) model is
From the following output for KCB
The fitted GARCH (1, 1) model is
To assess the accuracy of the estimates, the standard errors are used the smaller the better. Model fit statistics used to assess how well the model fit the data are the AIC and BIC. From the standard errors the estimates are precise. Based on 95% confidence level, the coefficients of the fitted GARCH (1, 1) model are significantly different from zero.![]() | Figure 8. ACF plots of residuals for Safaricom and KCB |
![]() | Figure 9. Q-Q plots and Normal probability plot of Safaricom and KCB residuals |
|
|