Glossary term
Covariance
Covariance measures how two variables move together, showing whether they tend to rise and fall in the same or opposite directions.
Updated
Read time
What Is Covariance?
Covariance is a statistical measure of how two variables move together. In finance, it is often used to understand whether two assets' returns tend to move in the same direction, opposite directions, or with little consistent relationship.
A positive covariance means the variables tend to move together. A negative covariance means they tend to move in opposite directions. A covariance near zero suggests no strong linear co-movement.
Key Takeaways
- Covariance measures directional co-movement between two variables.
- Positive covariance means the variables tend to move in the same direction.
- Negative covariance means they tend to move in opposite directions.
- Covariance is used in portfolio risk, diversification, and modern portfolio theory.
- The scale of covariance can be hard to interpret, so correlation is often easier for comparisons.
Covariance Formula
A simplified sample covariance formula is:
X and Y are the two variables being compared. Xi and Yi are individual paired observations. X-bar and Y-bar are the sample averages, and n is the number of paired observations.
In investing, X and Y might be monthly returns for two assets. The formula checks whether each asset's return is above or below its own average at the same time.
Covariance vs. Correlation
Measure | What it shows | Ease of interpretation |
|---|---|---|
Covariance | Direction and scale of co-movement | Harder because units affect the number |
Correlation | Standardized co-movement from -1 to +1 | Easier to compare across pairs |
Variance | How one variable moves around its mean | Single-variable risk measure |
Beta | Sensitivity to a benchmark | Useful for market-relative risk |
Portfolio Construction Context
Covariance matters because portfolio risk depends on how holdings move together, not just how risky each holding is alone. Combining assets with low or negative covariance can reduce overall volatility.
It also helps explain why diversification is not just owning many investments. If every holding rises and falls together, the portfolio may still be highly concentrated in one economic exposure.
Scale and Interpretation
Covariance does not prove causation. Two assets may move together because of a shared driver, a temporary market regime, or random chance.
It is also sensitive to the time period and frequency of data. Daily, monthly, and crisis-period covariance estimates can tell different stories.
Covariance can change when markets are stressed. Assets that looked diversifying in calm periods may suddenly move together when liquidity dries up or investors sell risk broadly.
The scale problem is the main reason covariance is usually a behind-the-scenes input rather than a headline statistic. Correlation standardizes the relationship, making it easier to compare one pair of assets with another. Covariance remains essential because portfolio variance calculations need both each asset's own variance and the way assets move together.
Changing Market Regimes
Covariance is not fixed. Assets that move independently in a calm expansion can become tightly linked when investors sell risky assets at the same time. That is one reason diversification can disappoint during crises, even when it looked sound in a long historical sample.
Portfolio builders often examine covariance over multiple windows rather than relying on a single estimate. Short windows can overreact to recent conditions, while long windows can hide structural changes in markets, policy, inflation, or business models. The number is an estimate, not a permanent law.
The measure is also sensitive to outliers. A few crisis months can dominate the estimate, especially when the sample is short. That is not necessarily a flaw, but it means the analyst should understand whether the covariance is being driven by normal co-movement or by rare stress events.
The Bottom Line
Covariance measures how two variables move together. It is useful for portfolio construction and risk analysis, but correlation is often easier to read and both measures depend heavily on the data used.