Skip to main content

Correlation vs cointegration: why moving together is not being tied

Published Β· 6 min read

Also available in Italiano, EspaΓ±ol, FranΓ§ais, Deutsch, PortuguΓͺs

Correlation vs cointegration are two different questions. Correlation asks whether two assets move together day by day, on a scale from -1 to +1. Cointegration asks whether the gap between their prices keeps returning to its average over the long run. Two assets can score high on the first and still fail the second.

Correlation: how closely two assets move together

Take two charts that look like twins. The first question anyone asks is how closely they move together. That is correlation.

The textbook version is the Pearson coefficient, and it can be measured on two different things. On daily returns (the percentage change from one day to the next) it tells you how much two assets swing together, which is the number that matters for diversification. On price levels it tends to come out higher, because two prices that both rose over twenty years look related even when their daily moves are not. Correlation also changes with the period: it can be low for a year and jump in a market stress.

See it in Rising Gamma. On the Correlation and Cointegration page, enter two tickers and read the Correlation table: it shows the price correlation and the log returns correlation side by side. The Correlation Evolution chart below it shows the same number over rolling windows, so you can see whether the link was stable.

Cointegration: does the gap keep coming back?

Now imagine a dog on a leash. The dog and its owner can wander anywhere, but the distance between them never grows without limit. Two prices can behave the same way: both drift, yet the gap between them keeps returning to its usual level.

The classic recipe has two steps. First, fit one price against the other to find the usual relationship between them. Then test whether what is left, the gap, behaves like something that returns to its average rather than wandering off. The result is a p-value, the probability of seeing such a result if there were no link at all, and by convention a value under 0.05 counts as evidence of cointegration. The verdict can change with how the test is set up, so read it as a flag, not as a law.

See it in Rising Gamma. On the same page, the Cointegration chart shows how the price ratio is distributed and a z-score, which measures how far today's gap sits from its usual level. The Cointegration test row gives you the p-value to compare with 0.05.

A short animation of the idea. In English, no sound.

Can two almost identical ETFs fail the test?

Let us try it on a real case. SOXX is an ETF holding large US-listed semiconductor (chip) companies. SMH is a similar ETF from another issuer, also holding large chip companies. We also use QQQ, an ETF that follows the Nasdaq-100, and SPY, an ETF that follows the S&P 500.

Pair with SOXXReturns correlationPrice correlationCointegration p-valueCointegrated?
SMH0.980.990.37No
QQQ0.860.950.31No
SPY0.780.940.20No

Data: Rising Gamma, Correlation and Cointegration page, 5,497 common daily observations, 3 Jan 2005 to 9 Nov 2026. Our calculation.

SOXX against SMH, QQQ and SPY: correlation and cointegration p-value

Read the first row twice. SOXX and SMH move together almost perfectly day by day, with a returns correlation of 0.98, and still the test does not find a leash: the p-value is 0.37, far above 0.05. We are not claiming a cause. Possible reasons are that the two baskets weigh their companies differently, and that twenty-one years include several market regimes, while the test asks for one stable relationship across all of them.

The point is the gap between the two questions. A high correlation tells you the daily moves look alike. It does not tell you that the distance between the prices is anchored.

What these numbers can and cannot tell you

  • They depend on the window. These figures cover 3 January 2005 to 9 November 2026. A different period can give different numbers.
  • 0.05 is a convention. A p-value of 0.06 and one of 0.04 are not different worlds.
  • A high correlation means less diversification. SOXX and SMH move almost as one asset on a daily basis, so holding both adds little variety.
  • It is history, not a forecast. Passing the test in the past does not mean two prices will stay tied, and nothing here suggests a trade.

Try it on your own pair

  1. Open the Correlation and Cointegration page.
  2. Enter two tickers you follow.
  3. Read the log returns correlation first, then the price correlation, and note the gap between them.
  4. Read the cointegration p-value and compare it with 0.05.
  5. Look at the rolling chart: was the link stable, or did it come and go?

To go deeper, the Knowledge Base explains correlation and cointegration step by step.

FAQ

What is the difference between correlation and cointegration?

Correlation measures how closely two assets move together day by day. Cointegration tests whether the gap between their prices keeps coming back to an average over time. They answer different questions, so one can be high while the other fails.

Can two assets be cointegrated but not correlated day by day?

In principle yes. Daily moves can look unrelated while the gap between the two prices still returns to its average. That is why the two measures are read together and not in place of each other.

Is a high correlation enough to say two assets are tied?

No. A high correlation says the daily moves look alike over the period measured. In our example SOXX and SMH have a returns correlation of 0.98 but do not pass the cointegration test at the 5% level.

No. It says the link was visible in the data tested. Relations between assets change with the period and the market, and past data are not a forecast.

When two charts look like twins, ask both questions: do they move together, and does the gap keep coming back? Only the second one tells you whether they are tied.

Past data, not a forecast. Not investment advice.

Working with clients? See the portfolio tools and the branded report β†’