Correlation Analysis
Bank of America Corporation vs Costco Wholesale Corp
BAC vs COST
+0.578
Moderate positive
When one moves up, the other tends to follow.
Bank of America Corporation
↗BAC
Bank of America is one of the largest financial institutions in the United States, with more than $3.4 trillion in assets. It is organized into four major segments: consumer banking, global wealth and investment management, global banking, and global markets. Bank of America's consumer-facing lines of business include its network of branches and deposit-gathering operations, retail lending products, credit and debit cards, and small-business services. The company's Merrill Lynch operations provide brokerage and wealth-management services, as does its private bank. Wholesale lines of business include investment banking, corporate and commercial real estate lending, and capital markets operations. Bank of America has operations in several countries but is primarily US-focused.
Market cap 357.7B
Costco Wholesale Corp
↗COST
Founded in 1983, Costco Wholesale now operates a global chain of membership-based warehouse clubs, delivering high-quality goods and services at consistently low prices. As of its most recent fiscal year, Costco operated approximately 910 warehouses, serving more than 80 million members across its three geographic segments: Costco US (approximately 73% of total revenue), Costco Canada (13%), and Costco International (14%).Costco's core value proposition—quality products at unbeatable prices—has yielded consistently strong member renewal rates (93% in the US and Canada and nearly 90% internationally). About 55% of Costco's fiscal 2025 revenue came from its grocery offerings, and another 25% from general merchandise.
Market cap 451.9B
Time Series
Relative Performance
Who Moves First
COST leads BAC by 6 days
COST tends to move before BAC.
After testing 13 timing shifts, the strongest relationship was +0.579 (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.360
14 periods · Return correlation when both series rose
Both Falling
+0.493
5 periods · Return correlation when both series fell
Diverging
-0.740
16 periods · Return correlation when series moved apart
R-Squared
33.4%
Share of variance in one series explained by the other.
Trend Agreement
56.8%
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.540, 0.614]
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
Bank of America Corporation
BAC
Market cap 357.7B
Stock · 1,254 raw → 1,254 prepared
Series B
Costco Wholesale Corp
COST
Market cap 451.9B
Stock · 1,254 raw → 1,254 prepared
Sign agreement
100.0%
How often both values share the same sign.
Zero crossings
3
Estimated crossover points between normalized spreads.
Slope
16.5834
Linear regression slope.
Intercept
24.2427
Linear regression intercept.
Related Extremes
Highest and Lowest Correlated
Saved 7 hours ago · ID: stock-bac-vs-stock-cost-daily