What is Correlation?
Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy
How correlation is calculated
- Convert both series to returns for the same periods, such as daily or monthly % changes. Never use raw prices.
- Work out the covariance: how far the two returns move together around their averages. In Figure 1 it is 7.43.
- Divide by the product of the two standard deviations: 3.22% for the portfolio and 2.48% for Nifty.
- Result: 7.43 ÷ (3.22 × 2.48) = 0.93. Squared, it is 0.87: about 87% of the variation in the portfolio’s monthly returns is explained by Nifty’s moves.
Worked example: two positions, one risk
Illustrative: two open positions, each with a daily swing (standard deviation) of ₹5,000. How much the combined position swings depends entirely on their correlation: √(5,000² + 5,000² + 2 × r × 5,000 × 5,000).
| Correlation | Combined daily swing | What it means |
|---|---|---|
| +0.9 | ₹9,747 | Almost one double-sized position |
| +0.5 | ₹8,660 | Some offset, still mostly additive |
| 0 | ₹7,071 | Genuine diversification |
| −0.5 | ₹5,000 | Each position partly hedges the other |
A long Nifty futures position and a long Bank Nifty futures position usually sit near the top row. Holding both does not spread risk; it roughly doubles it, which is why open risk should be added up per theme, not per symbol. The same arithmetic applies to strategies. If an opening range breakout and a momentum setup both tend to win on trending days and lose on choppy ones, running both at full size doubles the bet on one kind of day. Correlating the daily P&L of each strategy tag over a few months shows whether they really spread risk or only look different on paper.
How traders use it
- Portfolio heat: before a new entry, check whether it is highly correlated with something already open, and count the two as one risk.
- Pairs trading: look for two stocks with high correlation, then trade the spread when it moves unusually far, accepting that the relationship can break.
- Strategy mix: correlate daily P&L of your strategy tags. Two setups with a correlation of 0.8 are close to the same bet.
- Hedging: a hedge only works if its correlation with the position is strongly negative over your holding period.
Limits and the beta comparison
Correlation
Beta
- Correlation is not cause. Two series can move together because both respond to something else.
- It changes with the window: 20-day and 250-day correlations between the same stocks can differ sharply.
- It tends to rise in sharp sell-offs, so diversification measured in calm months can vanish when it is needed.
- It captures straight-line relationships only, so an option position’s curved payoff is poorly described by it.
- Short samples mislead. Twenty data points can show a correlation of 0.5 between two series that are unrelated over a longer period; use at least several months of daily returns before relying on a figure.
- Price correlation is not return correlation. Two stocks that both trended up for a year will show near-perfect price correlation even if their daily moves were unrelated, which is why the calculation must use returns.
Reference guide
| Context | Value | Reading |
|---|---|---|
| Correlation measured on returns over a stated window | Usable | Re-check it periodically; it drifts and often rises in sell-offs |
| Correlation measured on raw prices | Misleading | Two rising price series can show a high correlation even if their daily moves are unrelated |
| Several open positions with high correlation | One big bet | Add up their risk as if they were one trade |
Questions
How is correlation calculated?
Divide the covariance of two return series by the product of their standard deviations. The result always falls between −1 and +1.
What is a good correlation for diversification?
Lower is better for spreading risk: near zero means largely independent moves, and negative means the positions tend to offset each other. Above about 0.7, treat the positions as one risk.
What is the difference between correlation and beta?
Correlation says how consistently two series move together; beta says how large one’s moves are relative to the other’s. A portfolio can have high correlation with Nifty and a beta below 1.
Are Nifty and Bank Nifty correlated?
Usually strongly and positively, since financial stocks are a large part of the Nifty 50. The exact figure varies with the period, so measure it on returns over your own holding window.