← Search

Stock Correlation
Finance
⚙ Needs: Use "Stock Correlation" with your Muse.

Stock Correlation

Find what moves with a stock: correlated peers discovered for you, pair correlation with beta and spread, full correlation matrices with clustering, and rolling or regime-based co-movement.

⚠️ **Trading warning / Avertissement trading** : informational only, not investment advice. Correlation describes how prices moved together in the past; it is not causation and it does not hold still. Curated by Skill Harbor: a correlation workbench with four routes. Co-movement discovery builds a peer universe for a single ticker at runtime with the Yahoo Finance screener (same industry first, then sector and adjacent themes, no hardcoded lists) and ranks the top correlated names with the reasons they might be linked. Pair analysis goes deep on two tickers: Pearson correlation, beta, R-squared, 60-day rolling correlation, and the log-price spread with its z-score for pairs and hedging work. Sector clustering computes the full matrix for a group and orders it with hierarchical clustering so blocks of tightly linked names become visible, outliers included. Realized correlation tracks how the relationship changes: rolling windows of 20, 60, and 120 days, plus regime splits for up days, down days, high volatility, and large drawdowns. Defaults are one year of daily log returns and a 0.60 correlation threshold. Data comes from Yahoo Finance through the free yfinance library, with pandas, numpy, and optionally scipy. From the himself65/finance-skills repository (MIT). Honest caveats: you need Python 3 with pip (the skill installs the libraries itself if missing); correlations famously spike toward 1 during sell-offs, so diversification measured in calm times can fail exactly when it is needed most, and the regime view exists precisely to show that; short lookback windows produce noisy numbers, and a spread z-score is a statistic, not a promise that two prices will converge. Skill Harbor never reviews the code, review it yourself before use.
At a glance
What
Find what moves with a stock: correlated peers discovered for you, pair correlation with beta and spread, full correlation matrices with clustering, and rolling or regime-based co-movement.
Cost
Free
Needs
Use "Stock Correlation" with your Muse.
Install
Copy the installer prompt below into your Muse — your agent does the rest.

Version:

⌁

Install

Copy the install package below, then paste it into Muse
Wanna be extra careful?

The install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?

How to check a build before installing →

Use "Stock Correlation" with your Muse. Prerequisites: Python 3 with pip and an agent that can run Python code. The skill installs yfinance, pandas, and numpy itself if they are missing (scipy is optional, with a fallback). No API key and no paid data subscription are required; the data comes from Yahoo Finance via the free yfinance library. 1. Open the skill: https://github.com/himself65/finance-skills/blob/main/plugins/market-analysis/skills/stock-correlation/SKILL.md and copy the full SKILL.md text (the skill also reads its included references/sector_universes.md, keep the repo folder handy). 2. Paste it into a chat with Muse and add one of these: "What moves with [TICKER]? Find its top correlated peers." or "Give me the correlation, beta, and spread picture for [TICKER A] versus [TICKER B]." or "Build a correlation matrix for [list of tickers] and show me the clusters." 3. Check the regime table before using any pair for hedging: a correlation that jumps during drawdowns is a weaker hedge than its average suggests. Tip: lengthen the lookback to two years for the realized view when you care about how the relationship behaved in a real sell-off. Safety: a skill is plain-text instructions; it runs nothing by itself. This is informational only, not investment advice.

?

Questions

How do I install a build?

Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the build up for you — no manual configuration.

Where does my money go?

Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.

What does the ✓ next to a creator’s name mean?

It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a build before installing it.