PairBook
HomeCNI › CNI vs XLB

CNI vs XLB: Correlation

Canadian National Railway Company (CNI) and Materials Select Sector SPDR Fund (XLB) show a moderate relationship: their 3-year correlation of weekly returns is 0.53.

Data as of 2026-08-27 · refreshed every trading day · weekly returns · methodology

Correlation (3Y)
0.53
moderate
Correlation (1Y)
0.50
last 12 months
Correlation (5Y)
0.58
long-run
Ann. covariance
164.4
%² · weekly, annualized

How correlated are CNI and XLB?

On 3 years of weekly data the CNI/XLB correlation comes out at 0.53, moderate. Recent behaviour matches the longer record: 0.50 over 1 year against 0.53 over 3. The 5-year figure is 0.58, and annualized covariance runs at 164.4 %².

By 3-year correlation, XLB places #5 of the 10 assets tracked against CNI. On 12-month performance CNI holds a 14.9-point edge, +32.5% against +17.6%.

How is this computed?

Pearson correlation on weekly returns: ρ(A,B) = cov(rA, rB) / (σA · σB), over windows of 52, 156 and 260 weeks. Covariance is annualized (×52) and expressed in %². Full definitions on the methodology page.

CNI vs XLB: side by side

CNI (Canadian National Railway Company)XLB (Materials Select Sector SPDR Fund)
1-year return+32.5%+17.6%
5-year return+27.2%+36.9%
Volatility (ann.)18.6%16.7%
Beta vs S&P 5000.480.72
Max drawdown (3Y)-29.1%-23.2%
Market cap$76.5B
P/E (trailing)22.7
Dividend yield2.83%1.68%
Expense ratio0.08%
Assets under management$8.3B
Sector / categoryUS ListedSector ETF
Higher yield: CNI 2.83% vs 1.68%Smaller drawdown: XLB -23.2% vs -29.1%Higher 5y return: XLB +36.9% vs +27.2%

XLB is a Natural Resources fund from State Street Investment Management: $8.3B under management, 26 holdings, a 0.08% expense ratio, a 1.68% trailing dividend yield.

-6%0%+37%2025-09-052026-08-27
Price paths over the last 12 months, both indexed to 100 at the start (weekly closes). CNI · XLB

Year-by-year returns

YearCNIXLB
2022-1.4%-12.3%
2023+7.8%+12.5%
2024-17.5%+0.1%
2025-0.8%+9.9%
2026+29.5%+18.3%

Calendar-year price returns; the current year is year-to-date as of the data date above.

Are CNI and XLB good diversifiers for each other?

Only partially. A correlation of 0.53 means CNI and XLB share most of their swings. Pairing them dampens volatility somewhat, but it will not protect against a common drawdown.

FAQ

What is the correlation between CNI and XLB?

Using weekly returns as of 2026-08-27: 0.53 over 3 years, with 0.50 over the last year and 0.58 over 5 years.

Is XLB a good diversifier for CNI?

Only partially. A correlation of 0.53 means CNI and XLB share most of their swings. Pairing them dampens volatility somewhat, but it will not protect against a common drawdown.

What does a correlation of 0.53 mean?

A reading of 0.53 sits on a scale from −1 (opposite moves) through 0 (unrelated) to +1 (identical moves). Correlation captures direction, not magnitude or performance.

Use this data

JSON API · no key required
$ curl https://www.pairbook.io/api/v1/pairs/cni-vs-xlb.json

CNI vs XLB: 3-year weekly correlation 0.53CNI vs XLB0.53

Embed this badge (it refreshes with the data), with attribution:

[![CNI vs XLB correlation](https://www.pairbook.io/api/v1/badge/cni-vs-xlb.svg)](https://www.pairbook.io/pair/cni-vs-xlb/)

No key needed, free to use. Full endpoint list in the API documentation.

Related comparisons

Hubs: CNI correlations · XLB correlations