The symmetry property of the cointegration relation
If we study cointegration purely theoretically, then it is easy to prove that if the series
Symmetry
Attitude
Consider two
Consider the equation
Replace
It follows that if the variable
I tested the symmetry property on the 2017 data of the Moscow and New York exchanges using the Angle-Granger test. There were 7,975 co-integrated pairs of shares on the Moscow Exchange. For 7731 (97%) cointegrated pairs, the symmetry property was confirmed, for 244 (3%) cointegrated pairs the symmetry property was not confirmed.
There were 140,903 co-integrated pairs of shares on the New York Stock Exchange. For 136586 (97%) cointegrated pairs, the symmetry property was confirmed, for 4317 (3%) cointegrated pairs the symmetry property was not confirmed.
Interpretation
This result can be interpreted by the low power and high probability of error of the second kind of the Dickey-Fuller test, on which the Angle-Granger test is based. The probability of a second kind error can be denoted by
What is a near-unsteady time series? Consider the time series
In the case of near-non-stationary time series, we are often not able to reject the null hypothesis of non-stationary. This means that the Dickey-Fuller test has a high risk of a second kind error, that is, the probability of not rejecting the false null hypothesis.
KPSS test
A possible response to the weakness of the Dickey-Fuller test is the KPSS test, which owes its name to the initials of the scientists of Kvyatkovsky, Phillips, Schmidt and Sheen. Although the methodological approach of this test is completely different from the Dickey-Fuller approach, the main difference should be understood in the permutation of the null and alternative hypotheses.
In the KPSS test, the null hypothesis states that the time series is stationary, versus the alternative about the presence of non-stationarity. Near-non-stationary time series, which were often identified as non-stationary using the Dickey-Fuller test, can be correctly identified as stationary using the KPSS test.
However, we must be aware that any results of statistical testing are merely probabilistic and should not be confused with a certain true judgment. There is always a non-zero probability that we are mistaken. For this reason, it is proposed to combine the results of the Dickey-Fuller and KPSS tests as an ideal test for non-stationarity.

Due to the low power, the Dickey-Fuller test often erroneously identifies a series as non-stationary, so the resulting set of time series identified by the Dickey-Fuller test as unsteady is larger compared to many time series identified as non-stationary using the KPSS test. Therefore, the testing order is important.
If the time series is identified as stationary using the Dickey-Fuller test, then it will most likely also be identified as stationary using the KPSS test; in this case, we can assume that the series is indeed stationary.
If the time series was identified as unsteady using the KPSS test, then it will most likely also be identified as unsteady using the Dickey-Fuller test; in this case, we can assume that the series is indeed unsteady.
However, it often happens that a time series that has been identified as non-stationary using the Dickey-Fuller test will be marked as stationary using the KPSS test. In this case, we must be very careful with our final conclusion. We can check how strong the basis for stationarity is in the case of the KPSS test and for unsteadiness in the case of the Dickey-Fuller test and make an appropriate decision. Of course, we can also leave the question of the stationarity of such a time series unresolved.
KPSS test approach assumes time series
Where
Similar to the Dickey-Fuller test, the ability to take into account an arbitrary structure of autocorrelation
From the equation above it follows that the null hypothesis
To test the hypothesis
When performing the KPSS test for a time series
If we want to check the stationarity with respect to the horizontal axis, we evaluate the first equation. If we plan to check the stationarity with respect to the trend, we choose the second equation.
Leftovers
Lagrange multiplier test
The Lagrange multiplier test is associated with a more general approach to parameter estimation using the maximum likelihood method (ML). According to this approach, data is considered evidence related to distribution parameters. The evidence is expressed as a function of unknown parameters - a likelihood function:
Where
The maximum likelihood function is the joint probability of sample observations.
The goal of the maximum likelihood method is to maximize the likelihood function. This is achieved by differentiating the maximum probability function for each of the estimated parameters and equating the partial derivatives to zero. The values of the parameters at which the value of the function is maximum is the desired estimate.
Usually, to simplify the subsequent work, the logarithm of the likelihood function is first taken.
Consider a generalized linear model
We want to test the hypothesis that the system
For each pair of observed values
On condition
Since it is easier to differentiate the sum than the product, the logarithm of the likelihood function is usually taken, thus:
This useful conversion does not affect the final result, because
ML score for
where through
Lagrange multiplier test statistics denoted by
Where
and
Where
In the above equations
In this application, the spectral window is used to estimate the spectral density of errors for a certain interval (window), which moves along the entire range of the series. Data outside the interval is ignored, since the window function is a function equal to zero outside some selected interval (window).
Variance Estimation
Finally, the Lagrange multiplier test statistics
Critical values are asymptotic and, therefore, are most suitable for large sample sizes. However, in practice they are also used for a small sample. Moreover, the critical values are independent of the parameter
When increasing
Test Results Comparison
The following methodology was developed to assess the likelihood of symmetry.
- All time series are checked for 1st order integrability using the Dickey-Fuller test at a significance level of 0.05. Only integrable series of the first order are considered below.
- Из интегрируемых рядов 1-го порядка, полученных в п. 1, составляются пары путём сочетания без повторений.
- Пары акций, составленные в п. 2, тестируются на коинтеграцию с помощью теста Энгла-Грэнджера. В результате выявляются коинтегрированные пары.
- Остатки от регрессии, полученные в результате тестирования в п. 3, тестируются на стационарность с помощью теста KPSS. Таким образом, результаты двух тестов объединяются.
- Временные ряды в коинтегрированных парах из п. 2 переставляются местами и снова проверяются на коинтеграцию с помощью теста Энгла-Грэнджера, то есть мы исследуем, является ли отношение между временными рядами симметричным.
- The time series in the co-integrated pairs from item 4 are interchanged and the residuals from the regression are checked again for stationarity using the KPSS test, that is, we will examine whether the relationship between the time series is symmetric.
All calculations are performed using the MATLAB package. The results are presented in the table below. For each test, we have a number of relations that are symmetrical according to the test results (marked
On the Moscow Exchange:
| Test | ADF | ADF + KPSS |
|---|---|---|
| 7731 | 16 | |
| 244 | 1 | |
| 97% | 94% |
On the New York Stock Exchange:
| Test | ADF | ADF + KPSS |
|---|---|---|
| 136586 | 182 | |
| 4317 | 7 | |
| 97% | 96% |
Backtest Results Comparison
Let's compare the results of a trading strategy on historical data for co-integrated pairs selected using the Angle-Granger test and for co-integrated pairs selected using the KPSS test.
| Criteria | ADF | ADF + KPSS |
|---|---|---|
| The number of symmetric pairs | 6417 | 205 |
| Maximum profit | 340.31% | 287.35% |
| Maximum loss | -53.28% | -46.35% |
| Steam traded in plus | 2904 | 113 |
| Steam traded at zero | 293 | 3 |
| Steam traded in minus | 3220 | 89 |
| Average annual return | 13.51% | 22.72% |
As can be seen from the table, due to a more accurate identification of co-integrated pairs of shares, it was possible to increase the average annual yield when trading a separate co-integrated pair by 9.21%. Thus, the proposed methodology can increase the profitability of algorithmic trading using market-neutral strategies.
Alternative interpretation
As we saw above, the results of the Angle-Granger test are a lottery. To some, my thoughts will seem overly categorical, but I think it makes great sense not to take the null hypothesis, confirmed by statistical analysis, on faith.
The conservatism of the scientific method for testing hypotheses is that when analyzing the data we can only make one valid conclusion: the null hypothesis is rejected at the chosen level of significance. This does not mean that the alternative is true.
In unison with my thoughts in September 2018, an article was written by influential people calling to abandon the concept of “statistical significance” and the paradigm of testing the null hypothesis.
Most importantly: “Suggestions such as changing the threshold level
A critical step forward will be the acceptance of uncertainty and variability of effects (Carlin, 2016; Gelman, 2016), the recognition that we can learn more (much more) about the world, abandoning the false promise of certainty offered by such dichotomization. ”
conclusions
We saw that although the symmetry property of the cointegration relation should theoretically be satisfied, the experimental data diverge from theoretical calculations. One of the interpretations of this paradox is the low power of the Dickey-Fuller test.
As a new methodology for identifying co-integrated asset pairs, it was proposed to test the regression residues obtained using the Angle-Granger test for stationarity using the KPSS test and combine the results of these tests; and combine the results of the Angle-Granger test and the KPSS test for both direct and reverse regression.
Backtests were conducted on the data of the Moscow Exchange for 2017. According to the results of backtests, the average annual yield when using the methodology for identifying cointegrated pairs of shares proposed above was 22.72%. Thus, compared with the identification of co-integrated stock pairs using the Angle-Granger test, it was possible to increase the average annual yield by 9.21%.
An alternative interpretation of the paradox is to not take the null hypothesis, confirmed by statistical analysis, on faith. The null hypothesis testing paradigm and the dichotomy offered by such a paradigm give us a false sense of market knowledge.
When I just started my research, it seemed to me that you can take the market, put it into the "meat grinder" of statistical tests and get filtered tasty rows at the exit. Unfortunately, now I see that this concept of statistical brute force will not work.
Whether there is cointegration on the market or not - for me this question remains open. I still have big questions for the founders of this theory. I used to have some trepidation in the West and those scientists who developed financial mathematics at a time when econometrics was considered a corrupt bourgeoisie in the Soviet Union. It seemed to me that we were very far behind, and somewhere in Europe and America the gods of finance were sitting, who knew the sacred grail of truth.
Now I understand that European and American scientists are not much different from ours, the only difference is in the scale of quackery. Our scientists are sitting in an ivory castle, they write some nonsense and receive grants in the amount of 500 thousand rubles. In the West, about the same scientists are sitting in about the same ivory castle, they write about the same nonsense and get "nobel" and grants in the amount of 500 thousand dollars for this. That’s the whole difference.
At the moment, I do not have a clear view of the subject of my research. It is wrong to say that “all hedge funds use pair trading” because most hedge funds go bankrupt just as well.
Unfortunately, you always have to think and make decisions with your own head, especially when we risk money.