- Research
- Open Access
- Published:

# How to compare market efficiency? The Sharpe ratio based on the ARMA-GARCH forecast

*Financial Innovation*
**volume 6**, Article number: 38 (2020)

## Abstract

This paper derives a new method for comparing the weak-form efficiency of markets. The author derives the formula of the Sharpe ratio from the ARMA-GARCH model and finds that the Sharpe ratio just depends on the coefficients of the AR and MA terms and is not affected by the GARCH process. For empirical purposes, the Sharpe ratio can be formulated with a monotonic increasing function of *R-squared* if the sample size is large enough. One can utilize the Sharpe ratio to compare weak-form efficiency among different markets. The results of stochastic simulation demonstrate the validity of the proposed method. The author also constructs empirical AR-GARCH models and computes the Sharpe ratio for S&P 500 Index and the SSE Composite Index.

## Introduction

Since Fama (1970) published his influential paper, there has been a thorough assessment of market efficiency. Various methods have been proposed over the decades to test the efficient market hypothesis (EMH), but the empirical results vary according to the specific markets chosen, periods of time, and even the selected methods. For instance, like the frictionless state in physics, the efficient market could just be viewed as an ideal state with no real existence in the world. However, it could serve as a useful benchmark for measuring relative efficiency of markets over space and time.

In fact, it is more relevant to measure the relative efficiency of markets from the empirical perspective. Just as Campbell et al. (1997) pointed out, “The notion of relative efficiency—the efficiency of one market measured against another—may be a more useful concept than the all-or-nothing view taken by much of the traditional market-efficiency literature.”

So far, researchers have tended to measure and investigate market efficiency using various statistical methods. One market efficiency measure is based on autocorrelation of returns. The idea behind this method is that a strong autocorrelation reflects a deviation from random walk pricing and is indicative of violations of the EMH. For example, the Q-statistic of Box and Pierce (1970) is usually used as a measure for market efficiency. Lo and Mackinlay (1988) proposed a test statistic, the ratio of variances, which is also used as a measure for market efficiency. Another type of market efficiency measure reflects the degree to which returns are associated with past market returns; it is similar to the delay measure of Mech (1993) and Hou and Moskowitz (2005). The logic behind it is that a security price has a lower efficiency if it incorporates the information contained in the market index movement slower than another.

The literature mentioned above is based on the EMH, which uses many assumptions to describe the model, such as independence, limited variance, normality, and linear paradigm, among many others. However, some literature that tests the market efficiency relies on an alternative theory known as the fractal market hypothesis (FMH). This theory does not have the aforementioned strict assumptions but instead focuses on the nonlinearities in the financial market and supposes that the behavior of investors is affected by their level of understanding of the information along with the investment period. Based on the FMH, Liu et al. (1999) used a Hurst exponent and a time-varying Hurst exponent to describe the dynamic changes of market efficiency in the Hong Kong REITS market. They determined that the market had not yet reached the state of weak efficiency. Han et al. (2019) compared the efficiency of five primary indexes of different boards of the Chinese stock market using multifractal detrended fluctuation analysis (MF-DFA). This method measures the multifractal degrees. The authors found that the SHSE-SZS300 index that reflects the overall trend of the Shanghai and Shenzhen main board markets was less efficient than the ChiNext index, which had the lowest multifractal lever among five indexes. Moradi et al. (2019) used the L-Co-R algorithm analyze the fractal features of the Tehran Stock Exchange and the London Stock Exchange. In essence, fractal theory is a type of chaos theory to some extent. Ola et al. (2014) applied the local polynomial approximation model, which is a method relating to chaos processes and testing to determine the efficiency of the Tehran Stock Exchange and found that the efficiency of the market could not be confirmed. Moreover, as the efficiency of the market is related to investor behavior, some works have indirectly analyzed the efficiency of the market from this perspective, for example, Wen et al. (2019).

In principle, profitability is at the core of market efficiency. According to Malkiel (1992), “Moreover, efficiency with respect to an information set … implies that it is impossible to make economic profits by trading on the basis of [that information set].” However, the traditional measures of market efficiency do not reflect profitability. For example, using data from 56 markets, Griffin et al. (2010) found that variance ratios and market delay measures often showed greater deviation from random walk pricing in developed markets than emerging markets. However, they also found that short-term reversal strategies and momentum strategies could earn similar returns in both types of markets. Therefore, they argued that the usual efficiency measures might yield misleading inferences.

It is regarded that a proper measure of market efficiency should directly reflect the expected return and the relevant risk. The Sharpe ratio (SR) is one of the main criteria of portfolio assessment, and it has been widely used to evaluate the performance of mutual funds. Sharpe (1966) proposed the now well-known Sharpe ratio to evaluate a fund’s return in excess of the risk-free rate, adjusted by the additional risk the fund assumes. A high Sharpe ratio indicates superior risk-adjusted performance.

The Sharpe ratio can help measure market efficiency. Fortunately, one can derive the formula of the Sharpe ratio from the ARMA-GARCH model. Financial returns are often modeled as autoregressive time series with random disturbances having conditional heteroscedastic variances, especially with GARCH type processes that have been extensively used in the financial and econometric literature as risk models of many financial time series.

The relationship between the SR and the *R*^{2} of the ARMA-GARCH model is investigated in this paper. This is related to the research on return predictability by the *R*^{2} of the regression of stock return on predictors implied by the rational asset pricing model. These research studies compare the observed *R*^{2} of predictive regressions with the maximal bounds permitted by asset pricing models, and through the comparison, they conclude whether the market is effective. Kirby (1998) first proposed the frame of analyzing the restrictions on predictability implied by the rational asset pricing model. Based on similar frameworks, Levich and Potì (2015) constructed an upper bound on the explanatory power of predictive regressions motivated by “no good-deal” restrictions in the currency market and found that the currency predictability exceeded the bound, thereby showing that the market is not effective. Huang and Zhou (2017) provided two theoretical upper bounds on the *R*^{2} of the regression and reported that the predictive *R*^{2} was significantly larger than the upper bounds. Their bounds were tighter than Ross (2005), who is a pioneer of providing the bounds on predictability for all asset pricing models under no arbitrage conditions. Potì (2018) proposed an upper bound on the predictability of asset returns, which was at least as tight as Huang and Zhou (2017).

However, we do not make a comparison between the predicted *R*^{2} and the theoretical boundaries based on asset pricing models under capital market equilibrium because we do not measure the degree of market efficiency precisely but only compare the market efficiency among markets. So, we focus on testing whether the SR can show differences in market efficiency. We find that the SR can be formulated with a monotonic increasing function of *R*^{2}. We also compare the SR with another indicator proposed by Zhang (1999), namely conditional entropy.

This paper proceeds as follows. In "The Sharpe Ratio based on the ARMA-GARCH Forecast" section, the formula of the SR is derived from the ARMA-GARCH model. "Stochastic simulation" section applies the method through stochastic simulation and provides a comparison with the conditional entropy indicator. "Empirical Research" section presents the empirical results of the S&P 500 Index and the SSE Composite Index. "Conclusion" section gives concluding remarks.

## The Sharpe ratio based on the ARMA-GARCH forecast

To compare technical analysis with the time series forecast, Fang and Xu (2003) derived the expected value of a one-period excess return from the AR (1) model forecast. Following on these methods, we derive the expected value of a one-period excess return from the general ARMA(*p*, *q*)-GARCH(*r*,*s*) model forecast. Furthermore, we deduce its standard deviation so that the formula of the SR can be obtained.

### The basic approach

We start with the ARMA (*p*, *q*) model.

Let *S*_{t}, *t* = 0, 1, ⋯, *T* denote stock prices observed at discrete moments. Let *Y*_{t} denote the continuously compounded return at time *t*. So:

Suppose {*Y*_{t}} satisfies the following ARMA (*p*, *q*) process:

where {*ε*_{t}} is the Gaussian white noise, *WN*(0, *σ*^{2}). Neither *a*_{p} nor *b*_{q} is equal to zero.

Provided that all the roots of

lie outside the unit circle, it is straightforward to verify that {*Y*_{t}} is a covariance-stationary process.

According to eq. (2.2), we can express *Y*_{t + 1} as

Let *I*_{t} denote the information set at time *t*, which includes the present and past records of both {*ε*_{t}} and {*Y*_{t}}. Then the forecast of *Y*_{t + 1} based on *I*_{t} is

Now, eq. (2.3) can be simplified to

As is known, *Y*_{t + 1} in eq. (2.3) can also be formulated with an MA(∞) process:

Because {*ε*_{t}} is the Gaussian white noise, both *Y*_{t + 1} and *E*_{t}[*Y*_{t + 1}] follow the Gaussian distribution with zero mean.

For simplicity, we assume that the risk-free return and the trading cost rate are both zero. Then, it is trivial that the strategy at time *t* that maximizes the expected value of the one-period excess return can be formulated as follows.

**Definition 1:** A buy (sell) signal is generated at time *t* if

Accordingly, the expected value of the one-period excess return is

If the standard deviation of *E*_{t}[*Y*_{t + 1}] is known and denoted by *σ*_{E}, it’s easy to verify (proof in Appendix) that

Because *ε*_{t + 1} and *E*_{t}[*Y*_{t + 1}] are uncorrelated, we can compute *σ*_{E} according to the variance of *Y*_{t + 1}, which is denoted by *γ*_{0}. So,

According to the strategy given by Definition 1, we can verify that the standard deviation of the one-period excess return is (proof in Appendix)

Therefore, the Sharpe ratio is

or

According to formula (2.12) or (2.13), we conclude that the Sharpe ratio lies in a specific scope:

In fact, *γ*_{0} is a function of *σ*^{2}. For a few simple processes such as the AR (1), AR (2), MA(*q*), and ARMA (1,1), we are able to derive the formula of *γ*_{0} and thereby formulate the SR with the parameters of the original model.

For a general ARMA(*p*, *q*) process, it is difficult to obtain the formula of *γ*_{0}, but we can adopt the following ways to calculate its value.

First, according to Box et al. (2008), the series {*ψ*_{j}} in eq. (2.6) can be computed recursively from the following relations:

with *ψ*_{j} = 0 for *j* < 0, and *b*_{j} = 0 for *j* > *q*.

Because the values of {*ψ*_{j}} decay geometrically toward zero, we need to compute only a few terms.

Secondly, it is easy to calculate the value of *γ*_{0} according to eq. (2.6).

From eq. (2.13), (2.14), and (2.15), we find that the SR just depends on the autoregressive coefficients, *a*_{1}, ⋯, *a*_{p}, and the moving average coefficients, *b*_{1}, ⋯, *b*_{q}.

For empirical purposes, we can estimate the SR by means of formula (2.13), in which *σ* can be replaced by the standard error of the regression, and *γ*_{0} can be estimated as the sample variance of {*Y*_{t}}. In fact, if the sample size is large enough, formula (2.13) can be reduced to

Formula (2.16) shows the SR is a monotonic increasing function of the *R-squared*. Therefore, the *R-squared* in time series models is of great significance with respect to market efficiency. The *R-squared* in time series models can be used as a measure of market efficiency.

The relationship between the SR and *R-squared* can also be shown as the curve in Fig. 1.

From Fig. 1, we see that the relationship between the SR and *R-squared* is approximately linear positive dependence when the value of *R-squared* is larger than 0.1.

Cochrane (1999) derived a similar result from the following model:

The author demonstrated that the SR associated with a market timing strategy based on this predictor equation is given by

where *SR*_{0} is the SR based on a buy-and-hold strategy, and *R-squared* is taken from the predictor equation.

It is obvious that the SR in formula (2.16’) is also a monotonic increasing function of *R-squared*. Nevertheless, if {*Y*_{t}} satisfies the ARMA(*p*, *q*) process, it is improper to use formula (2.16’), which gives an overestimate of the SR.

### Several simple examples

#### The AR (1) process

To start with, we consider the AR (1) process:

where 0 < |*a*_{1}| < 1.

It is easy to verify

First, substituting eq. (2.19) into eq. (2.9) gives

Then, substituting eq. (2.19) into eq. (2.11) gives

Finally, substituting eq. (2.19) into eq. (2.12) gives

Now it can be seen that the SR just depends on *a*_{1} and is not affected by the variance of *ε*_{t}. The smaller the absolute value of *a*_{1} is, the lower the SR is. The SR is equal to zero when *a*_{1} is equal to zero.

#### The AR (2) process

In order to derive the formula of *γ*_{0} for the AR (2) or ARMA (1,1) processes, we make use of the autocovariance-generating function. According to Hamilton (1994), the autocovariance-generating function for a stationary ARMA(*p*, *q*) process can be written as:

If we convert expression (2.23) to a polynomial of *z*, then the coefficient of *z*^{0} is exactly *γ*_{0}.

Now, we consider the AR (2) process:

where 0 < |*a*_{2}| < 1, *a*_{2} ± *a*_{1} < 1.

By the way proposed above, we obtain

Substituting formula (2.25) into formula (2.10) gives

Then, substituting formula (2.26) into formula (2.9) gives

Now, substituting formula (2.26) into formula (2.11) gives

In the end, dividing eq. (2.27) by eq. (2.28) gives

Now it can be seen that the SR just depends on *a*_{1} and *a*_{2}, and it is not affected by the variance of *ε*_{t}. From formula (2.29), we can see that the AR (2) process is reduced to the AR (1) process when *a*_{2} is equal to zero. Furthermore, both *μ*_{g} and SR will be zero if both *a*_{1} and *a*_{2} are equal to zero.

#### The ARMA (1,1) process

Now, let us consider the ARMA (1,1) process. In a similar way, we obtain

Now, it can be seen that the SR just depends on *a*_{1} and *b*_{1}, and it is not affected by the variance of *ε*_{t}.

It is obvious that the SR will be zero only if

In fact, at this point, the ARMA (1,1) process is equivalent to white noise, so it is impossible to realize any positive return.

In addition, it is easy to verify that formula (2.34) is equivalent to formula (2.22) only if

Then, the SR is the same for the ARMA (1,1) and AR (1) processes.

The SR for the ARMA (1,1) process is approximately equal to that for the AR (1) process if both *a*_{1} and *b*_{1} are small enough (e.g., less than 0.1) and the coefficient *a*′_{1} in the AR (1) meets the following condition:

#### The MA (2) process

Finally, we consider the MA (2) process and compare the SR with the *Q*-statistic of Box and Pierce (1970).

For the MA (2) process, it is easy to verify

Substituting the expression of *γ*_{0} into formula (2.13) gives

Now, it can be seen that the SR just depends on *b*_{1} and *b*_{2}, and it is not affected by the variance of *ε*_{t}.

The autocorrelation parameters of {*Y*_{t}} are as follows:

According to Box and Pierce (1970), the *Q*-statistic at lag *k* is a test statistic for the null hypothesis that there is no autocorrelation up to order *k*. It is computed as:

where *r*_{j} is the *j*-th sample’s autocorrelation and *T* is the number of observations.

For large *T*, *r*_{j} approximates *ρ*_{j}, so expression (2.36) can be reduced to

Formula (2.37) shows that the *Q*-statistic is proportional to the sample size, *T*. Therefore, it is unreasonable to use the *Q*-statistic as a measure of market efficiency if the sample size is ignored.

Applying formula (2.37) to the MA (2) process gives

or

Now, we consider whether the ratio of *Q* to *T* can be used to measure market efficiency. For example, given *b*_{1} = 0.5, let us change the value of *b*_{2} from − 0.45 to 0.45 and observe how the values of *SR* and *Q*/*T* change with it (Fig. 2).

Figure 2 shows that the Sharpe ratio achieves the minimum when *b*_{2} is equal to zero and the *SR* curve is symmetrical. In contrast, *Q*/*T* achieves the minimum when *b*_{2} is equal to − 0.23, and the curve is asymmetrical. It is obvious that ranking by *Q*/*T* is different from ranking by *SR*. Therefore *Q*/*T* is not a proper measure of market efficiency.

### The ARMA-GARCH model

Now, we consider the general ARMA-GARCH model.

If the {*ε*_{t}} in expression (2.2) follows a GARCH(*r*,*s*) process:

where {*v*_{t}} is the Gaussian white noise, *WN*(0, *σ*^{2}), and *φ* > 0, *α*_{j} > 0, *j* = 1, ⋯, *r*, *β*_{k} > 0, *k* = 1, ⋯, *s*, \( \sum \limits_{j=1}^r{\alpha}_j+\sum \limits_{k=1}^s{\beta}_k<1 \).

According to Lu (1999), we can conclude that {*ε*_{t}} is a covariance-stationary process:

Because *v*_{t + 1} and *E*_{t}[*Y*_{t + 1}] are uncorrelated, *ε*_{t + 1} and *E*_{t}[*Y*_{t + 1}] are uncorrelated. So, we can compute the standard deviation of *E*_{t}[*Y*_{t + 1}] according to formula (2.10) if we use \( \sqrt{\frac{\varphi }{1-\sum \limits_{j=1}^r{\alpha}_j-\sum \limits_{k=1}^s{\beta}_k}} \) to replace *σ*. In fact, all results are the same as the ARMA model if *σ* is replaced by \( \sqrt{\frac{\varphi }{1-\sum \limits_{j=1}^r{\alpha}_j-\sum \limits_{k=1}^s{\beta}_k}} \).

Furthermore, the SR is not affected by the variance of *ε*_{t}, so it is not affected by the GARCH process. The SR just depends on the coefficients of the ARMA(*p*, *q*) process, namely *a*_{1}, ⋯, *a*_{p}, *b*_{1}, ⋯, *b*_{q}.

## Stochastic simulation

We explore the proposed method by means of stochastic simulation. We study the AR (1), ARMA (1,1), and AR (1)-GARCH (1,1) processes, which serve as three examples.

### Stochastic simulation of the AR (1) process

#### Simulation about risk

Given a set of parameters, according to eq. (2.17), we simulated the AR (1) process to produce a series consisting of 10,000 observations. Then, we simulated trading in accordance with the strategy described in Definition 1 and generated a series of returns whose standard deviation (denoted by *σ*_{simul}) can be computed and compared with the value from formula (2.21).

The results for nine sets of parameters are displayed in Table 1.

From Table 1, we can see the values of *σ*_{simul} are very close to the values of *σ*_{g}. The results confirm formula (2.21).

#### Simulation about return

Now, we specify the parameters as follows:

Substituting them into formula (2.20) gives

Similarly, we simulated to produce a series consisting of 1000 observations according to eq. (2.17). Then, we simulated trading according to the strategy described in Definition 1 and generated a series of returns whose average value (denoted by *R*) can be computed and compared with the value from formula (2.20).

We carried out the simulation 100 times and found the mean of *R* to be 0.0793%, which approximates 0.0802%.

Figure 3 shows the distribution of *R* along with its summary statistics.

It can be seen that *R* approximately follows the Gaussian distribution.

### Stochastic simulation of the ARMA (1,1) process

#### Simulation about risk

First, given a set of parameters, we simulated to produce a series consisting of 10,000 observations according to eq. (2.3). Then, we simulated trading according to the strategy described in Definition 1 and generated a series of returns whose standard deviation (denoted by *σ*_{simul}) can be computed and compared with the value from formula (2.33).

The results for eight sets of parameters are displayed in Table 2.

Just like Tables 1 and 2 shows that the value of *σ*_{simul} is very close to the value of *σ*_{g}. The results confirm formula (2.33).

#### Simulation about return

Now, we specify the parameters as follows:

According to formula (2.32), we obtain

We simulated to produce a series consisting of 1000 observations according to eq. (2.3). Then, we simulated trading according to the strategy described in Definition 1 and generate a series of returns whose average value (denoted by *R*) can be computed and compared with the value from formula (2.32).

We carried out the simulation 100 times and found the mean of *R* to be 0.0588%, which approximates 0.0540%. In fact, their difference can be accounted for by the low value of the SR, which was only 0.036.

Figure 4 shows the distribution of *R* along with its summary statistics.

It can be seen that *R* approximately follows the Gaussian distribution.

### Stochastic simulation of the AR (1)-GARCH (1,1) process

#### Simulation about risk

Given a set of parameters, according to eqs. (2.17), (2.40), and (2.41), we simulated the AR (1)-GARCH (1,1) process to produce a series consisting of 10,000 observations. Then, we simulated trading in accordance with the strategy described in Definition 1 and generated a series of returns whose standard deviation (denoted by *σ*_{simul}) can be computed and compared with the value from the following formula:

The results for eight sets of parameters are displayed in Table 3.

From Table 3, we can see the values of *σ*_{simul} are very close to the values of *σ*_{g}. The results confirm formula (3.1).

#### Simulation about return

Now, the expected value of the one-period excess return is

We specify the parameters as follows:

Substituting them into formula (3.2) gives

Similarly, we simulated to produce a series consisting of 1000 observations according to eqs. (2.17), (2.40), and (2.41). Then, we simulated trading according to the strategy described in Definition 1 and generated a series of returns whose average value (denoted by *R*) can be computed and compared with the value from formula (3.2).

We carried out the simulation 100 times and found the mean of *R* to be 0.0913%, which approximates 0.0897%.

Figure 5 shows the distribution of *R* along with its summary statistics.

### Comparison with the method of conditional entropy

In physics and information theory, Shannon entropy is used to measure the degree of disorder:

where *p*(*i*) is the probability that the event *i* appears out of *n* events.

Based on this concept, Zhang proposed to measure market efficiency with conditional entropy (Wen et al. 2019):

where *p*(*j*|*i*) is the conditional probability that the event *j* would follow, with the event *i* given. Here, “event” stands for the direction of price movement. For example, *p*(+|−, − , +) means the conditional probability that price will rise if the price history is “fall,” “fall,” and “rise” in turn for the recent three periods.

Conditional entropy uses the information from a given previous event (i.e., the past price) to help predict future price movement. The higher the conditional entropy is, the better the market efficiency is. For the binary case when *i* and *j* are both binary strings, its maximal value is one. Zhang (1999) did not present empirical research on the concept.

Because the MA(q) process is equivalent to an AR(∞) process, it is impossible to compute conditional entropy for the MA(q) or ARMA(p,q) process. Here, we just consider the AR (1) process.

First, given a set of parameters, we computed the expected value of the one-period excess return and the Sharpe ratio according to the corresponding formula.

Then, we simulated to produce a series consisting of 1000 observations according to the corresponding model.

For the AR (1) process, different absolute values of *a*_{1} mean different degrees of market efficiency. The smaller the value of |*a*_{1}| is, the better the market efficiency is. If *a*_{1} is equal to zero, then the market is perfectly efficient, meaning the prices conform to a random walk.

Given *σ* = 0.15, we simulated five times for each value of *a*_{1} and computed conditional entropy according to formula (3.4).

Table 4 displays the results for nine sets of parameters.

The first column in Table 4 is the result for random walk. As expected, its Sharpe ratio is equal to zero, and its conditional entropy is very close to one.

The SR in the second column is equal to 0.0359, but the conditional entropy is nearly the same as the one in the first column. It shows that the conditional entropy is not a proper measure of market efficiency when the signal-noise ratio of the market is at a low level.

Figure 6 shows the scatter plot corresponding to Table 4.

From Fig. 6 and Table 4, we can observe that the conditional entropy declines when the SR rises to a value larger than 0.1 though its range of fluctuation expands correspondingly. In summary, both the Sharpe ratio and conditional entropy can be used to measure market efficiency. However, the former is more accurate than the latter, especially when the degree of market efficiency is very high.

## Empirical research

As examples, we measured the market efficiency of the S&P 500 Index and the SSE Composite Index. The two samples span from January 1, 2000 to December 31, 2014. From Yahoo finance, we obtained a total of 782 weekly closing prices of the S&P 500 Index, and a total of 754 weekly closing prices of the SSE Composite Index. Returns were the log differences of the closing prices.

We chose the AR(*p*)-GARCH (1,1) process to apply to the data. Table 5 reports the parameter estimates for the time series model.

Table 5 shows that the ARCH and GARCH effects are always significant at the 1% level in the two models. We can compute the *R-squared* according to the residual error and the data of returns. Then, we can obtain the Sharpe ratio according to formula (2.16). For the S&P 500 Index, the Sharpe ratio is 0.055; for the SSE Composite Index, the Sharpe ratio is 0.086. So, we conclude that the market efficiency of the S&P 500 Index is higher than that of the SSE Composite Index.

Based on the AR-GARCH model, we propose a trading strategy on the S&P 500 Index, which we call the AR-GARCH strategy. We compare the return of the strategy to the buy-and-hold strategy over the sample period. The merit of the strategy is captured in Definition 1, as also mentioned in "The Sharpe Ratio based on the ARMA-GARCH Forecast" section. It is namely that if the prediction of the AR-GARCH model is positive, we should buy the index at the closing price. Conversely, we should sell the index at the closing price if the prediction is negative. We carried out the strategy on a rolling basis without considering trading friction.

Firstly, for each trading week, we used the previous 50 weekly yields of the S&P 500 Index as a sample window to fit the optimal AR-GARCH model. Secondly, we obtained the predicted yield of the next trading week through the estimated model. Thirdly, if the prediction of the next week was positive, then we went long the index at the latest closing price; if the prediction was negative, we went short the index at the same price. Lastly, for the next trading week, in case we got the same direction of the prediction as the previous week, then we held our position. If not, then we closed our position and made a reverse position at the close price. Based on the strategy, we got the following two curves in the Fig. 7.

The AR-GARCH strategy did not always outperform the buy-and-hold strategy. The excess return of the AR-GARCH strategy most occurred during the financial crisis period of 2008 and in the period of the tech bubble burst of 2001. While in other period, the AR-GARCH strategy could not gain excess return obviously better than the buy-and-hold strategy.. This may mean that during these crisis periods, the market was not as effective as the ordinary period. This may also mean that one can obtain excess returns through the time series strategy only when the market is not efficient. During these periods, the model predicts better because of the available past information.

To show the results’ stability, we fit the daily and monthly data to the AR-GARCH process. Table 6 reports the parameter estimates for the four series.

Table 6 shows that the ARCH and GARCH effects are always significant at the 1% level in all four models. Formula (2.16) was used to compute the Sharp ratios for the S&P 500 Index, which were 0.0745 and 0.0515 for the monthly and daily data, respectively. The Sharp ratios of the SSE Composite Index were 0.122 and 0.056 for the monthly and daily data, respectively. So, we can also conclude that the market efficiency of the S&P 500 Index is higher than that of the SSE Composite Index.

## Conclusion

From the empirical research perspective, it is more meaningful to measure relative efficiency of markets as opposed to testing the EMH. A proper measure of market efficiency can reflect the potential return and the relevant risk. However, the traditional test statistics reflect neither of these two aspects. In this paper, we proposed a new method for comparing the weak-form efficiency of a market. We deduced the formulae of the expected return and risk from the ARMA-GARCH model and thereby acquired the formula of the Sharpe ratio. The study found that the Sharpe ratio is not affected by the variance of *ε*_{t} and thus not affected by the GARCH process. The Sharpe ratio just depends on the coefficients of the ARMA (*p*, *q*) process, namely *a*_{1}, ⋯, *a*_{p}, *b*_{1}, ⋯, *b*_{q}.

In empirical research, the Sharpe ratio can be formulated with a monotonic increasing function of *R-squared* if the sample size is large enough. This shows that the *R-squared* in time series models is of great significance for the measure of market efficiency. One can utilize the Sharpe ratio to measure weak-form efficiency and compare different markets. The results of our stochastic simulation demonstrated the validity of the proposed method. It can be applied in both high and low efficiency markets.

## Availability of data and materials

The datasets used or analyzed during the current study are available from the authors on reasonable request.

## References

Box G, Jenkins GM, Reinsel GC (2008) Time series analysis. Wiley, NJ

Box G, Pierce D (1970) Distribution of residual autocorrelations in autoregressive-integrated moving average time series models. J Am Stat Assoc 65:1509–1526

Campbell JY, Lo AW, MacKinlay AC (1997) The econometrics of financial markets. Princeton University Press, Princeton

Cochrane JH (1999) Portfolio advice for a multifactor world. Econ Perspect 23:59–78

Fama EF (1970) Efficient capital markets: a review of theory and empirical work. J Financ 25:383–417

Fang Y, Xu D (2003) The predictability of asset returns: an approach combining technical analysis and time series forecasts. Int J Forecast 19:369–385

Griffin JM, Kelly PJ, Nardari F (2010) Do market efficiency measures yield correct inferences? A Comparison of Developed and Emerging Markets. Rev Financ Stud 23:3225–3277

Hamilton JD (1994) Time series analysis. Princeton University Press, Princeton

Han CY, Wang YM, Ning Y (2019) Analysis and comparison of the Multifractality and efficiency of Chinese stock market: evidence from dynamics of major indexes in different boards. Phys A 528:121305

Hou K, Moskowitz TJ (2005) Market frictions, Price delay, and the cross-section of expected returns. Rev Financ Stud 18:981–1020

Huang D, Zhou GF (2017) Upper bounds on return predictability. J Financ Quant Anal 52:401–425

Kirby C (1998) The restrictions on predictability implied by rational asset pricing models. Rev Financ Stud 11:343–382

Levich RM, Potì V (2015) Predictability and ‘good deals’ in currency markets. Int J Forecast 31:454–472

Liu J, Cheng C, Yang XL, Yan LZ, Lai YZ (1999) Analysis of the efficiency of Hong Kong REITs market based on Hurst exponent. Phys A 534:122035

Lo AW, Mackinlay AC (1988) Stock market prices do not follow random walks: evidence from a simple specification test. Rev Financ Stud 1:41–66

Lu M (1999) Advanced time series econometrics. Shanghai People’s Publishing House, Shanghai

Malkiel B (1992) Efficient market hypothesis. In: Newman P, Milgate M, Eatwell J (eds) New Palgrave dictionary of money and finance. London, Macmillan

Mech T (1993) Portfolio return autocorrelation. J Financ Econ 34:307–344

Moradi M, Nooghabi MJ, Rounaghi MM (2019) Investigation of Fractal Market Hypothesis and Forecasting Time Series Stock Returns for Tehran Stock Exchange and London Stock Exchange. Int J Financ Econ 11:1002/IJFE.1809

Ola MR, Nooghabi MJ, Rounaghi MM (2014) Chaos process testing (using local polynomial approximation model) in predicting stock returns in Tehran stock exchange. Asian J Res Bank Financ 4:100–109

Potì V (2018) A new tight and general bound on return predictability. Econ Lett 162:140–145

Ross SA (2005) Neoclassical Finance. Princeton: Princton University Press

Sharpe WF (1966) Mutual Fund Performance. J Bus 39:119–138

Wen FH, Xu LH, Ouyang GD, Kou G (2019) Retail investor attention and stock Price crash risk: evidence from China. Int Rev Financ Anal 65:101376

Zhang Y (1999) Toward a theory of marginally efficient markets. Phys A 269:30–40

## Funding

This research received no external funding.

## Author information

### Affiliations

### Contributions

Lin Liu contributed the central idea, conceived and designed this research, supervised the study, provided mathematical and model Derivation, and wrote the initial draft of the paper. Qiguang Chen contributed to refining the ideas, performed the data and statistical analysis, carrying out additional analyses and coordination and finalizing this manuscript. Both authors wrote, corrected and agreed to the published version of the manuscript. Both authors have read and agreed to the published version of the manuscript.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare that they have no competing interests.

## Additional information

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Appendix: Proofs

### Appendix: Proofs

Lemma 1: Provided that {*Y*_{t}} satisfies the ARMA(*p*, *q*) process, and both the risk-free return and the trading cost rate are zero, trading in accordance with the strategy described in Definition 1 will produce a series of excess returns.

If the standard deviation of *E*_{t}[*Y*_{t + 1}] is known and denoted by *σ*_{E}, then the expected value of one-period excess return is

Meanwhile, the standard deviation of one-period excess return is

*Proof of Lemma 1*: According to the original assumption, we know

According to eq. (2.8), we have

This is just formula (2.9).

Because *ε*_{t + 1} and *E*_{t}[*Y*_{t + 1}] are uncorrelated, according to eq. (2.5) and Definition 1, we have

Substituting expression (A.1) into eq. (A.2) gives

This is just formula (2.11).

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Liu, L., Chen, Q. How to compare market efficiency? The Sharpe ratio based on the ARMA-GARCH forecast.
*Financ Innov* **6, **38 (2020). https://doi.org/10.1186/s40854-020-00200-6

Received:

Accepted:

Published:

### Keywords

- ARMA
- GARCH
- Measurement of market efficiency
- Sharpe ratio
- Stochastic simulation

### Mathematics subject classification

- 60G10
- 62 M10

### JEL classification

- G10
- G14
- G17
- C22