Correlation Analysis
Union Pacific Corp. vs Walmart Inc. Common Stock
UNP vs WMT
+0.336
Light positive
When one moves up, the other tends to follow.
Union Pacific Corp.
↗UNP
Omaha, Nebraska-based Union Pacific is the largest public railroad in North America. Operating on more than 30,000 miles of track in the western two-thirds of the US, Union Pacific generated $24.5 billion of revenue in 2025 by hauling coal, industrial products, intermodal containers, agricultural goods, chemicals, fertilizers, and automotive goods. Union Pacific owns about one-fourth of Mexican railroad Ferromex and historically derives roughly 10% of its revenue hauling freight to and from Mexico.
Market cap 145.8B · 29,287 employees
Walmart Inc. Common Stock
↗WMT
Since its founding in 1962, Walmart has become the world's largest retailer, operating over 10,700 stores globally (including 4,600 namesake locations on its home turf and another 600 Sam's Club outlets) and growing its e-commerce presence, attracting 270 million customers weekly. In aggregate, the firm posted more than $680 billion in fiscal 2025 sales. Its core operations span three reporting segments: Walmart US (68% of fiscal 2025 sales), Walmart International (18%), and Sam's Club (14%). Within the US, nearly 60% of its $465 billion in fiscal 2025 revenue came from its grocery offerings, with another quarter from general merchandise. Internationally, Walmart's operations are concentrated in Mexico, though it also has budding exposure to India.
Market cap 1T
Time Series
Relative Performance
Who Moves First
in sync
UNP and WMT tend to move at the same time.
After testing 13 timing shifts, the strongest relationship was +0.336 (they moved in the same direction).
Do They Crash Together?
Correlation by Market Regime
How these series behave when markets are rising, falling, or diverging. A correlation that holds in drawdowns is very different from one that only works in rallies.
Both Rising
+0.286
14 periods · Return correlation when both series rose
Both Falling
+0.960
7 periods · Return correlation when both series fell
Diverging
-0.496
14 periods · Return correlation when series moved apart
R-Squared
11.3%
Share of variance in one series explained by the other.
Trend Agreement
59.5%
How often both series moved in the same direction period-to-period.
Overlap Quality
1,254
Deep shared window — 1,254 usable pairs.
Significance
p < 0.001
95% CI: [0.286, 0.384]
Scatter
XY Regression
Pipeline
Data quality details
Pipeline
Data quality details
Pipeline Summary
1,254 paired data points survived the daily window.
Raw input
1,254
1,254
Normalized
1,254
1,254
Prepared
1,254
1,254
Aligned
1,254
1,254
Invalid removed
0
A: 0 / B: 0
Duplicates removed
0
A: 0 / B: 0
Alignment drops
0
A: 0 / B: 0
Series A
Union Pacific Corp.
UNP
Market cap 145.8B · 29,287 employees
Stock · 1,254 raw → 1,254 prepared
Series B
Walmart Inc. Common Stock
WMT
Market cap 1T
Stock · 1,254 raw → 1,254 prepared
Sign agreement
100.0%
How often both values share the same sign.
Zero crossings
41
Estimated crossover points between normalized spreads.
Slope
0.4833
Linear regression slope.
Intercept
-43.0718
Linear regression intercept.
Related Extremes
Highest and Lowest Correlated
Saved 9 hours ago · ID: stock-unp-vs-stock-wmt-daily