• No results found

Modelling Time-varying Market Efficiency

CHAPTER 4: DATA AND METHODOLOGY

4.3 Model Specifications

4.3.1 Modelling Time-varying Market Efficiency

The empirical method for the evaluation of weak-form EMH has undergone considerable evolution over the years and the methodology employed seems to impart on the results. The techniques range from linear dependency tests to nonlinear dependency tests. There are four major linear tests employed in testing weak-form efficiency in literature, namely the autocorrelation/partial autocorrelation tests, VR, run and unit root tests (Urquhart, 2013) and they constitute the earliest testing tools. However, it has been observed that markets/returns sometimes exhibit nonlinear dependence, which is tantamount to predictability, even when there is no linear dependence (Granger & Andersen, 1978; Amini et al, 2010; Lim & Hooy, 2012). Since nonlinear dependence cannot be picked by linear testing tools, combining both the linear and non-linear testing tools24 or one that is able to pick both nonlinear and linear dependence will ensure the

avoidance of possible wrong inferences. Therefore, this study considers linear and non- linear tests.

87

4.3.1.1 Methodological Note on Weak-Form Efficiency

The majority of the weak-form EMH and calendar anomaly literature largely applies above tests or models on the full sample period, assuming that market efficiency is a fixed feature that remains the same irrespective of stages of market development. By so doing, they ended up addressing the issue of market efficiency and anomalies in absolute form. However, the researchers have now come up with new alternatives in order to evaluate cyclical efficiency. The first set is the equal-length non-overlapping sub- samples estimation in which the entire sample period is broken into two or more subsamples and one or more of the various tests/methods of efficiency is applied to each subperiods. This practice enabled the researcher to assess the effect of major events (e.g. pre & post liberalisation, financial crisis, adoption of electronic trading system, change in regulatory system, etc.) on the efficiency of the market (Lim & Brooks, 2011). This may have been accompanied by conflicting result too; nevertheless, the research framework adopted shows that these investigators are aware of the non-static characteristic of market efficiency. Non-overlapping sub-period analyses suppose that the road toward market efficiency follows a distinct switch in the underlying parameter at a known breakpoint. However, it is ideal to allow market efficiency to vary over time, a dynamic feature, which non-overlapping sub-period analyses failed to capture (Lim & Brooks, 2011). As a result, few recent literatures on weak-form efficiency use state space model to capture the time-varying weak-form efficiency, which permits standard regression parameters to change over time (Lim & Brooks, 2011). The merit of this method lies in permitting the application of regression models to a more dynamic conception like time-varying efficiency. This model, however, is said to require more methodological innovations for it to be a more appropriate measure of weak-form market efficiency (Verheyden et. al., 2013).

Furthermore, rolling window estimation constitutes another alternative to absolute method. A rolling analysis assesses the stability of a model over time. A time series model assumed parameter constancy. If so, then the estimates over rolling windows should not be too different (Springer, 2006). This method involves breaking the full

88

sample (N) into a number of consecutive observations (m-known as window size), pushed by a certain number of observations (k-step size) ahead at each repetition (Evanthia, 2017). Different windows overlap as they are rolled (k step) forward, dropping the farthest K observation, until the entire sample is exhausted. This rolling method enables one to look at the underlying changes in efficiency on a shorter time scale, compared to non-overlapping sub-period analysis and to measure varying and relative levels of efficiencies over time. This method is relatively new and has only been employed by a few researchers. Rather than applying the traditional tests in full sample, researchers are now using rolling window analyses, hence the terms rolling VR tests; rolling ADF unit root tests; rolling bicorrelation tests; rolling parameters of ARCH models; rolling Hurst exponents (Verheyden, et al., 2013). The superiority of rolling window analyses lies in the fact that, apart from capturing sub-period analyses, it also captures dynamics that otherwise would have been omitted in non-overlapping sub- period analyses. In fact, the procedure of rolling estimation was employed by Lo (2005) in the maiden test of the AMH in the US. Verheyden et al. (2013 p. 38) state that “[r]olling estimation windows are more suited for broad market efficiency research……that take into account the possible time-variant character of weak-form market efficiency”. Hence, the approach is more suited for the investigation of time- varying behaviour inherent in the new AMH and is now being applied to test EMH.

4.3.1.2 Rolling Windows Approach

Consequent to the preference for rolling methodology in the investigation of varying behaviour, this study uses the rolling linear and nonlinear tests to investigate whether market efficiency changes in cyclical version over time in African stock markets according to AMH. This study uses two-year rolling windows (window size), rolled forward by one-year (step size) and dropping the farthest year to detect the behaviour of stock returns through time. There are a total of 20 years, 2 month daily data points in the study sample. The study uses the first 2 years to estimate the tests and then rolls the sample forward by one year at a time, constructing a new one-step (year) ahead p- value at each stage. A two-year window (window size) generates about 500 observations of daily data, which is enough to produce robust results. This is consistent

89

with previous studies (Smith. 2012, Lim et al., 2013; Smith &Dyakova, 2014). The adequacy of one-year step size in evaluating changing efficiency has been established in literature (Urquhart & McGroarty, 2014).

4.3.1.3 Linear Dependence Tests

The linear dependence tools constitute the earliest methods of testing weak-form EMH. It has been established that the unit root test is not enough to establish the randomness of price changes, except when it is complemented with serial correlation tests (Rahman & Saadi, 2008). This study places emphasis on the VR test being the primary and the most influential test (Verheyden, et al., 2013), although autocorrelation and unit root tests, which are common linear dependence tests, are also estimated for robustness and confirmation purposes. Urquhart (2013) noted that none of the linear tests is without its own weakness but the accuracy of the results can be confirmed if different tests point to the same conclusion. These linear dependence tests are explained below.

4.3.1.3.1 Unit Root Tests

Unit root is a necessary but insufficient condition for RWH (Gilmore & McManus, 2003, p. 44; Rahman & Saadi 2008). Stationary stochastic process has received great attention from researchers. Gujarati (2013, p. 752) states, that “a stochastic process is said to be stationary if its mean and variance are constant over time and the value of the covariance between the two time periods depends only on the distance or gap or lag between the two time periods and not the actual time at which the covariance is computed”

To explain weak stationarity, let 𝑃𝑡 be a stochastic time series with these properties:

Mean is constant: 𝐸(𝑃𝑡) = 𝜇

Variant is constant: 𝑉𝑎𝑟 (𝑃𝑡) = 𝐸(𝑃𝑡)2 = 𝜎2

90

Where 𝛾𝑘, is the covariance (or autocovariance) at lag 𝑘, between the values of 𝑃𝑡 and 𝑃𝑡+𝑘, that is, between two Y values k periods apart. If 𝑘=0, we obtain 𝛾0, which is simply the variance of 𝑃(=𝜎2); if 𝑘 = 1, 𝛾

1 is the covariance between two adjacent values

of𝑅. Summarily, a stationary time series has 𝐸(𝑃𝑡), 𝑉𝑎𝑟 (𝑃𝑡) and 𝛾𝑘 unchanged at various lags, which means that they are time invariant.

The RWM provides a classic instance of nonstationary process. The terms nonstationarity, random walk and unit root are synonymous (Gujarati, 2013). RWM could be without drift, with drift or with drift and intercept. Assume a white noise error term 𝑢𝑡 with mean 0 and variance 𝜎2, then the series 𝑃

𝑡 is said to be a random walk if

𝑃𝑡 = 𝑃𝑡−1+ 𝑢𝑡 (5)

The RWM as 𝑃𝑡 shows the value of 𝑃at time𝑡amounts to its lagged 𝑡 − 1 plus a stochastic error term. While 𝑃𝑡 is a unit root, its first order derivative is stationary. Thus, the first order derivative of a random walk time series are stationary, such that:

𝛥𝑃𝑡 = (𝑃𝑡− 𝑃𝑡−1) = 𝑢𝑡 (6)

By introducing drift term δ in equation, it becomes RWM with drift, which is nonstationary as shown below.

𝑃𝑡 = δ + 𝑃𝑡−1+ 𝑢𝑡 (7)

Again, the first order derivative of 𝑃𝑡 is stationary. Thus, the first order derivative of a random walk time series are stationary, such that:

𝛥𝑃𝑡 = (𝑃𝑡− 𝑃𝑡−1) = δ + 𝑢𝑡 (8)

It implies that 𝑃𝑡 drifts up or down, subject to whether the sign associated with δ is positive or negative. By adding a deterministic trend 𝛽𝑡 to equation (7), the last form of non stationary RWM is obtained as:

91

𝑃𝑡 = 𝛽𝑡 + δ + 𝑃𝑡−1+ 𝑢𝑡 (9)

If the mean of 𝑃𝑡 is removed from 𝑃𝑡, the ensuing series will be stationary, thus the

name trend stationary. Again, the first order derivative of a random walk time series is stationary, such that

𝛥𝑃𝑡 = 𝛽𝑡 + δ + 𝑢𝑡 (10)

Brooks (2014) noted that RWH with drift and trend stationary processes are the two main commonly tested features of nonstationarity. The Dickey-Fuller (1979) tests have been employed in the literature to establish nonstationarity or whether series of return is efficient in weak form from the above equations. The test is based on the assumption that error terms (𝑢𝑡) are not autocorrelated. Augmented Dickey-Fuller (ADF) has, however, been designed to take care of autocorrelation in the error term, basically by incorporating adequate amounts of lagged terms 𝛥𝑃𝑡. The ADF equation, according to Brooks (2014), is given thus:

𝛥𝑃𝑡 = 𝛽1+ 𝛽2𝑡 + δ𝑃𝑡−1+ ∑ 𝛼𝑖∆𝑃𝑡−1+

𝑚

𝑖=1

𝜀𝑡 (11)

Where 𝜀𝑡 is a pure white noise error term and 𝑃𝑡−1 = (𝑃𝑡−1− 𝑃𝑡−2), 𝑃𝑡−2 = (𝑃𝑡−2− 𝑃𝑡−3) and so on. The test belongs to asymptotic distribution and examines whether the

series contain unit root (δ = 0) against the alternative of stationarity (δ ∠ 0). The statistical significance of the results is discussed using p-values that are drawn from the test statistic (t-statistic).

The ADF has been criticised on certain grounds. For example, its power is low if the process is stationary and hence, it is biased toward accepting null hypothesis of unit root (Brooks, 2014, Gujarati 2013). The test is also exposed to size distortion, leading to high probability of committing a Type I error (i.e. rejecting the null hypothesis when in fact, it is true (Gujarati, 2013). Brooks (2014) suggested the joint use of the stationarity and the unit root tests, the approach which is known as confirmatory data analysis as a

92

way around the weaknesses of ADF test. Thus, the result of the ADF test is compared to one alternative test, namely the KPSS.

The Kwiatkowski, Phillips, Schmidt and Shin (KPSS) (1992) test differs from the ADF explained above because it tests the null hypothesis that series 𝑃𝑡 is (trend-) stationary. The KPSS statistic is based on the residuals from the OLS regression of 𝑃𝑡 on the

exogenous variables 𝑄𝑡 :

𝑃𝑡 = 𝑄𝑡′𝛿 + 𝑢𝑡 (12)

𝑢𝑡 = 𝑢𝑡−1+ 𝑒𝑡𝑒𝑡 ~ (0, 𝛿2)

Where 𝑄𝑡′𝛿 contains deterministic components, 𝑢𝑡 is I(0) and is a pure random walk with variance. The hypothesis of stationarity is stated as 𝐻0 ∶ 𝛿2 = 0, which implies that 𝑢

𝑡 is

constant.

The LM statistic is defined as:

𝐿𝑀 = ∑ 𝑆(𝑡)

2

(𝑇2𝑓𝑜) 𝑡

(13)

Where 𝑓𝑜, represents estimator of the residual spectrum at frequency zero and 𝑆(𝑡) stands for cumulative residual function:

𝑆(𝑡) = ∑ 𝑢̂𝑟

𝑡

𝑟=1

(14)

based on the residuals 𝑢̂𝑡=𝑃𝑡− 𝑄𝑡𝛿(0) . The reported critical values for the LM test statistic are based upon the asymptotic results presented in KPSS (1992, p. 166). Where the ADF results conflict with KPSS, the latter should be trusted (Pfaff, 2008, p.103). Using stock prices, the unit root is accepted when ADF statistic is greater than critical value at 5 percent or when the KPSS statistic is less than critical values at 5 percent at level, which implies that the return follows a RWH. The tests as also carried

93

out in rolling windows and successive windows of unit roots and stationarity would mean that market efficiency varies over time.

4.3.1.3.2 Autocorrelation Test

The autocorrelation test is one of the earliest tests for the examination of independence of stochastic variable in return series. The presence of autocorrelation is tantamount to dependency in stock returns. Absence of autocorrelation, however, does not necessarily amount to independence but an absence of linear autocorrelation. Of course, such return series could possess nonlinear dependence, which cannot be observed by autocorrelation test (Amini et al., 2010).

The autocorrelation of a series Y at lag K is estimated by:

𝜌𝑘= ∑ ((𝑌𝑡− 𝑌̌)(𝑌𝑡−𝑘− 𝑌̌𝑡−𝐾))

𝑇

𝑡=𝑘+1 /(𝑇 − 𝐾)

∑𝑇𝑡=1(𝑌𝑡− 𝑌̌)2/𝑇 (15)

Where 𝑌̌𝑡−𝑘=∑𝑌𝑡−𝑘/(𝑇 − 𝑘). 𝜌𝑘 is the correlation coefficient for return series, 𝑘 periods

apart, which is a consistent estimator. T stands for the total number of observations. First order serial correlation occurs if 𝜌1 is non-zero. The null hypothesis is that 𝜌 = 0. If 𝜌 < 0, it is a case of negative autocorrelation. If 𝜌 > 0, it is a case of positive autocorrelation. The denominator is the covariance at lag k and numerator is the variance. 𝑌̌ is the overall sample mean, which is the mean of both 𝑌𝑡 and 𝑌𝑡−𝑘. The dotted lines in the plots of the autocorrelations are the approximate two standard error bounds computed as ±1.96/(√𝑇). If the autocorrelation is within these bounds, it is not significantly different from zero at (approximately) the 5 percent level of significance. A non-zero value of 𝜌1 denotes market inefficiency. The hypothesis is tested across rolling windows to determine how the market efficiency varies over time. If windows of zero value of 𝜌1 interchange with windows of nonzero value of 𝜌1, over time, market efficiency is said to vary over time, in line with the AMH.

94 4.3.1.3.3 Variance-Ratio Test

Among the linear estimation tools, namely the runs test, the autocorrelation test, the unit root test and the VR test, the latter (VR test) is the standard and most popular test for determining whether price changes are not serially correlated because it is efficient and has good power (Lo & MacKinlay, 1988; Urquhart, 2013). Its advantage also lies in its ability to correct the heteroscedasticity property inherent in stock returns. The test assumes that if changes in asset price are consistent with RWH, the variance of the p- period change must be p multiplied by the variance of 1-period change (Lo &MacKinlay, 1988). 𝑉𝑅 for Г𝑡, with holding period P is given as:

𝑉𝑅(𝑃) = 𝛿

2p

(1)𝛿2 (16)

where 𝑉𝑅(𝑃) is variance ratio; 𝛿2p is variance (Г𝑡+ Г𝑡−1+ Г𝑡−2+ ⋯ + Г𝑡+𝑝−1)of return at p-period; (1)𝛿2 is the variance of the first difference. Г𝑡 is time 𝑡 stock return, with 𝑡

taking the value from 1, 2, 3, … , 𝑀. Alternatively, equation (16) can be expressed as follows: 𝑉𝑅(𝑃) = 1 + 2 ∑ (1 − j p) 𝑝−1 𝑗=1 𝜑(𝑗) (17)

where 𝜑(𝑗) is the autocorrelation of Г𝑡 of lag 𝑗. That is, 𝑉𝑅(𝑃) is 1 plus t a weighted sum of autocorrelation coefficients for the stock returns with positive and declining weights. Since stock return series are prone to heteroscedasticity, Lo and MacKinlay (1988) derived the heteroscedasticity consistent VR with test statistics 𝑀2(𝑃):

𝑀2(𝑃) =𝑉𝐴𝑅(𝑋; 𝑃) − 1

ψ(P)−12 (18)

95 ψ(𝑃) = ∑ [2(𝑝 − 𝑗) 𝑃 ] 2 𝑝−1 𝑗=1 𝛽(𝑗) β(𝑗) ={∑ (𝑋𝑡− 𝜇) 2(𝑋 𝑡− 𝜇)2 𝑀 𝑡=𝑗+1 } {[∑𝑀𝑡−1(𝑋𝑡− 𝜇)2]2}

VR sets the null hypothesis (H0) as: 𝑉𝑅(𝑃) = 1 for all 𝑃 as long as price changes are

uncorrelated. This hypothesis is rejected when probability of VR statistic is significant (<0.05). The rejection of this hypothesis implies that returns are not uncorrelated or unpredictable or the market is not efficient. The hypothesis is tested across rolling windows to determine how the market efficiency varies over time. Where windows of significant dependence (predictability) alternate independence (unpredictability), over time, market efficiency is said to vary over time, in line with the AMH. The VR p-values are generated for all windows and they can be referred to as annual25 measures of

linear predictability. A graphical plot of the windows’ VR p-values result can show how linear dependence behaves over time.

VR has undergone significant developments over the years as contained in Charles and Darné (2009). It was been observed that statistical inference of VR test could be misleading in small sample because the VR statistics follow asymptotic theory (Richardson & Stock, 1989). To deal with this shortcoming, a wild bootstrap VR statistics of Kim (2006) is implemented. The approach requires estimating the individual VR with joint VR test statistics on samples of observations formed by weighting the original data by mean 0 and variance 1 random variables, and using the results to form bootstrap distributions of the test statistics. The bootstrap p-values are computed directly from the fraction of replications falling outside the bounds defined by the estimated statistic. Another alternative to the popular Lo and MacKinlay VR test was offered by Wright (2000) who modified the tests using standardised ranks of the increments, 𝛥𝑋𝑡. If 𝑟(𝛥𝑋𝑡) is the rank of 𝛥𝑋𝑡, the standardised rank (𝑟𝑖𝑡) is

96 𝑟𝑖𝑡 ={𝑟(𝛥𝑋𝑡) − 𝑀+1 2 } √(𝑀−1)(𝑀+1) 12 (19)

Wright (2000) equally replaced 𝛥𝑋𝑡 by its sign to derive the sign-based VR test, 𝑠𝑖𝑡:

𝑠𝑖𝑡 = {𝑠(𝛥𝑋𝑡) − 𝑀+1 2 } √(𝑀−1)(𝑀+1) 12 (20)

The Wright VR test statistics are derived by computing the Lo and MacKinlay homoscedastic t statistic using the ranks and signs as opposed to the original data. By assuming that 𝑋𝑡 is generated from martingale difference sequence with no drift, 𝑠𝑡 is an i.i.d. The original heteroscedasticity consistent VR of Lo and MacKinlay (1988) and subsequent innovations (using wild bootstrap, ranks and signs) are performed in this study for comparison. However, the former is reported, being the most influential in the past.

4.3.1.4 Nonlinear Dependence Test

The linear dependence tests considered in this study are highlighted in the previous section. However, Alagidede (2009) quoted Campbell et al. (1997, p. 467) that:

Many aspects of economic behaviour may not be linear. Experimental evidence and casual introspection suggest that investor’s attitudes towards risk and expected return are non- linear. And the strategic interactions among market participants, the process by which information is incorporated into security prices, and the dynamics of economy wide fluctuations are all inherently non-linear. Therefore, a natural frontier for financial econometrics is the modelling of non-linear phenomena.

97

Arising from the above, consideration is given to nonlinear dependence, in addition to linear tests, in order to avoid the possibility of wrong inference. In the family of non- linear dependency tests, namely Engle LM test (1982), McLeod and Li test (1983) and BDS (1987, 1996) test, BDS is relatively better under different situations (Patterson & Ashley, 2000). Named after the three authors, BDS by Brock, Dechert and Scheinkman (1987; 1996) is a common test of nonlinear predictability in time series and its one of the