Correlation Analysis
Microsoft Corp vs Dollar General Corp.
MSFT vs DG
-0.832
Strong inverse
When one moves up, the other tends to move down.
Microsoft Corp
↗MSFT
Microsoft develops and licenses consumer and enterprise software. It is known for its Windows operating systems and Office productivity suite. The company is organized into three equally sized broad segments: productivity and business processes (legacy Microsoft Office, cloud-based Office 365, Exchange, SharePoint, Skype, LinkedIn, Dynamics), intelligence cloud (infrastructure- and platform-as-a-service offerings Azure, Windows Server OS, SQL Server), and more personal computing (Windows Client, Xbox, Bing search, display advertising, and Surface laptops, tablets, and desktops).
Market cap 2.8T
Dollar General Corp.
↗DG
Since its beginning in 1939, Dollar General has grown to become the largest dollar store operator in the United States, with more than 20,000 small-box discount stores across 48 states. The firm generated $40 billion in fiscal 2024 sales. The retailer maintains a heavy concentration of stores in rural and low-income markets underserved by big-box retailers. It's 11,000 stock-keeping units, including 2,000 priced at $1 or less, span consumables (82% of sales), seasonal items (10%), home products (5%), and apparel (3%). More than 20% of sales are derived from private label.
Market cap 27.5B · 194,000 employees
Time Series
Relative Performance
Who Moves First
DG leads MSFT by 6 days
DG tends to move before MSFT.
After testing 13 timing shifts, the strongest relationship was -0.839 (they moved in opposite directions).
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.363
9 periods · Return correlation when both series rose
Both Falling
+0.332
9 periods · Return correlation when both series fell
Diverging
-0.615
17 periods · Return correlation when series moved apart
R-Squared
69.3%
Share of variance in one series explained by the other.
Trend Agreement
53.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.848, -0.814]
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
Microsoft Corp
MSFT
Market cap 2.8T
Stock · 1,254 raw → 1,254 prepared
Series B
Dollar General Corp.
DG
Market cap 27.5B · 194,000 employees
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
-0.5824
Linear regression slope.
Intercept
373.3309
Linear regression intercept.
Related Extremes
Highest and Lowest Correlated
Saved 5 hours ago · ID: stock-msft-vs-stock-dg-daily-20260408-fhb7sr