CONVEX
Correlation Deep Dive

Walmart (WMT) vs Consumer Staples (XLP): Correlation Analysis

Pearson correlation of daily returns for Walmart (WMT) and Consumer Staples (XLP). Rolling windows, yearly breakdown, regression beta, and divergence analysis. Data window spans to (1,262 aligned observations).

30-Day
+0.885
Very strong positive
90-Day
+0.758
Strong positive
1-Year
+0.607
Strong positive
5-Year
+0.600
Strong positive

What the Number Means

At 0.76, Walmart (WMT) and Consumer Staples (XLP) have a strong tendency to move together. Most daily moves align, though divergences are common enough that the relationship should not be treated as deterministic. A shared regime or macro factor is likely driving both.

Recent vs Long-Run Behavior

Last 90 Days
+0.758
5-Year Baseline
+0.600

The correlation has strengthened materially. The 90-day reading of 0.76 is 0.16 above the long-run average of 0.60. Rising correlation typically accompanies deleveraging, broad risk-off, or a dominant single-factor regime where idiosyncratic drivers get drowned out.

Statistical Details (1-Year Window)

Pearson Correlation (r)+0.607
R-Squared (r²)0.368
Beta (Walmart (WMT) vs Consumer Staples (XLP))1.055
Daily Volatility σ(Walmart (WMT))1.39%
Daily Volatility σ(Consumer Staples (XLP))0.80%
Observations252

Correlation measures directional co-movement; R² quantifies the fraction of variance explained by the linear relationship. Beta is the slope coefficient from regressing Walmart (WMT) returns on Consumer Staples (XLP) returns. A beta above 1 means the first asset amplifies moves of the second.

Year-by-Year Correlation

YearCorrelationStrengthObservations
2026+0.756Strong positive91
2025+0.575Moderate positive250
2024+0.531Moderate positive252
2023+0.596Moderate positive250
2022+0.606Strong positive251
2021+0.630Strong positive168

Year-by-year correlation reveals how the relationship has held up across different macro regimes. Sharp year-over-year swings in correlation often mark the transition between stress and calm periods.

Rolling 90-Day Extremes

Most Correlated Period
+0.774
ending 2021-09-28
Most Decoupled Period
+0.378
ending 2025-10-13

Extremes in rolling 90-day correlation often coincide with regime changes, forced deleveraging, or the arrival of a dominant new macro theme that overwhelms normal relationships.

Methodology

Correlations are computed on daily log-adjacent returns for Walmart (WMT) and Consumer Staples (XLP), aligned on shared trading dates. We use the Pearson product-moment coefficient, which measures the linear relationship between two return series.

Windows are the most recent N observations for 30D, 90D, and 1Y (252 trading days); the 5Y figure uses all aligned data up to 1,260 observations. Beta is the OLS slope from regressing the first series on the second. Data updates daily with a 24-hour revalidation cadence.

Related Correlations

More Comparisons

Get daily macro analysis on shifting correlations, regime transitions, and cross-asset signals.

Correlation is not causation and backward-looking statistics can fail when regimes shift. Positions sized on historical correlation assumptions should be stress-tested against scenarios where the relationship breaks. For informational purposes only.