CorrlensCorrlens
Correlate

Correlation Analysis

Microsoft Corp vs The Hershey Company

MSFT vs HSY

-0.474

Moderate inverse

When one moves up, the other tends to move down.

MSFT logo

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

HSY logo

The Hershey Company

HSY

Hershey is a leading US confectionery manufacturer (around a $55 billion market, according to Euromonitor), controlling 35% of the domestic chocolate aisle. Beyond its namesake label, the firm's portfolio has expanded over the last 85 years and now comprises 100 brands, including Reese's, Kit Kat, Kisses, and Ice Breakers. Hershey's products are sold in about 80 countries, albeit with just a high-single-digit percentage of sales coming from markets outside the US, including Brazil, India, and Mexico. The firm has sought inorganic opportunities to extend its reach beyond its core confectionery business, adding Amplify Snack Brands and its Skinny Pop ready-to-eat popcorn to its portfolio, as well as Pirate Brands, Dot's Pretzels, and LesserEvil over the past few years.

Market cap 42.2B · 19,595 employees

Apr 9, 2021 — Apr 7, 2026Daily1,254 observationsStockStockTechnology

Time Series

Rebased to 100

Green: MSFTGray: HSY36 of 1,254 points (sampled)

Who Moves First

MSFT leads HSY by 6 days

MSFT tends to move before HSY.

Best correlation after shifting: -0.482 (13 shifts scanned)

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.102

9 periods · Return correlation when both series rose

Both Falling

-0.779

5 periods · Return correlation when both series fell

Diverging

-0.734

21 periods · Return correlation when series moved apart

R-Squared

22.4%

Share of variance in one series explained by the other.

Trend Agreement

54.0%

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.515, -0.429]

Scatter

XY Regression

208.6250300350400450500549.3147.6160180200220240260267.7Microsoft CorpThe Hershey CompanyData pointsFit (r = -0.474)

Pipeline

Data quality details

Pipeline Summary

1,254 paired observations 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

MSFT logo

Microsoft Corp

MSFT

Market cap 2.8T

Stock · 1,254 raw → 1,254 prepared

Series B

HSY logo

The Hershey Company

HSY

Market cap 42.2B · 19,595 employees

Stock · 1,254 raw → 1,254 prepared

Sign agreement

100.0%

How often both values share the same sign.

Zero crossings

11

Estimated crossover points between normalized spreads.

Slope

-0.1509

Linear regression slope.

Intercept

253.0134

Linear regression intercept.

Related Extremes

Highest and Lowest Correlated

Saved 3 hours ago · ID: stock-msft-vs-stock-hsy-daily-20260408-2wk6fu