Methodology

This page describes the software exactly as it runs: the same tests, thresholds and defaults that produce every score, screener ranking and verdict on the site. Nothing here is computed differently on the analysis page. If you find a mismatch, tell us and we will fix it and log the change.

1. Data

Every instrument comes from the source that publishes or licenses it. The data-status line above each result names the provider of each leg, the last available timestamp, the historical coverage and whether prices are adjusted. All results are labelled REAL DATA. The product serves no demonstration or synthetic data; if it ever did, the result would be labelled DEMO DATA — illustrative only.

Missing observations. The two legs are matched on common timestamps. A bar is used only when both legs have a price on it; gaps are never filled, interpolated or replaced with synthetic observations. Everything downstream uses natural-log prices.

2. Correlation

Pearson correlation of the two legs' log returns, over the whole sample and over the last lookback bars (252 by default). Correlation measures day-to-day co-movement. It says nothing about whether the gap between the two comes back, so it carries a small weight in the score and can never on its own make a pair look strong. A pair with correlation of 0.7 or more but no cointegration evidence is described as "correlated, but not cointegrated".

3. Cointegration

Two tests are run on log prices.

The relationship is Confirmed when Engle-Granger p ≤ 0.05 and Johansen passes. It is Partial when only one of the two passes, or when Engle-Granger p ≤ 0.10. Otherwise it is Not confirmed. The screener's "Cointegration" column shows the same label.

4. Hedge ratio, spread and half-life

For the statistics, the hedge ratio β is the slope of an ordinary least squares regression of log A on log B over the whole sample. The spread is log A − β·log B. Its half-life is −ln 2 / λ from the regression Δst = α + λ·st−1 + ε; it is infinite when λ ≥ 0.

5. Z-score

The z-score is the spread's distance from its rolling mean, divided by its rolling standard deviation. Both use bars t−lookback to t−1, so the current bar is never part of its own window. The default lookback is 252 Daily bars. This rolling statistical lookback is a separate parameter from the backtest history (ten years).

6. Stability and the current regime

Every 10 bars, the Engle-Granger test, the OLS β and the half-life are recomputed on a trailing window of 250 bars (or a third of the sample, at least 60 bars, when the history is shorter). Short windows have little statistical power: even for pairs that are clearly cointegrated over ten years, most one-year windows fail the test. So the relationship weakening flag is set only when the whole sample passes Engle-Granger, the three most recent windows all have p > 0.10, and at least 30% of the earlier windows passed at p ≤ 0.10, meaning the relationship used to show up and has stopped. It is also set when the recent half-life is more than twice the whole-sample value. Hedge-ratio instability is the standard deviation of a rolling β (window = lookback) divided by the whole-sample β; above 0.75 the hedge ratio counts as unstable.

7. Three separate assessments

A good statistical result never hides a weak trading result. Every pair gets three labels:

8. Score out of 10

One function scores every pair, on the analysis page and in the screener, so both always agree. The score is shown with one decimal place, for example 8.6/10. It is a measure of statistical evidence, never a trading recommendation.

Components (each from 0 to 1):

Caps. Whatever the components say, the score cannot exceed:

Interpretation: 9.0–10.0 exceptional statistical evidence · 8.0–8.9 strong · 7.0–7.9 promising · 6.0–6.9 mixed evidence · below 6.0 weak evidence.

9. Backtesting method

10. Screener

The screener runs every Monday on Daily data. Inside each market every pair is tested, except single stocks, which are paired only inside their industry group. Cross-asset combinations cross a liquid subset of each market. Inverse duplicates are removed (XLE/XOP and XOP/XLE are one pair). A pair is excluded when the legs share fewer than three years of matched bars or fewer than 90% of the sparser leg's bars line up. Every remaining pair gets exactly the evaluation in sections 2 to 9 with the default rules, and the list is sorted by score. Flags mark too few completed trades, unstable relationships and insufficient history. Visitors see the top five pairs of each market; the full ranking needs a free account.

What is not modelled

References

Change log