Covariance
You can explore the materials without registering, but with a free account you can track your progress and earn rewards along the way. By the end of your learning journey, you can have the knowledge you need to become a profitable Trader!
Join →ID: E-005
Introduction
E-004 examined correlation as a standardized measure of how two variables move together. E-005 goes one layer deeper: covariance describes the direction in which two variables tend to move together while retaining the scale of their joint movement.
For a trader, covariance is useful because portfolio risk is not determined only by the volatility of individual positions. The interaction between positions matters as well. Two assets can each have substantial volatility, yet their combined behavior can be materially different depending on whether their returns tend to move together or in opposite directions.
Covariance is therefore one of the mathematical building blocks behind portfolio risk, diversification, correlation, and many quantitative allocation models. The Expert trader should understand both its usefulness and its limitations: covariance is scale-dependent, sample-dependent, time-window dependent, and not a prediction of future co-movement.
1. What Covariance Measures
Covariance measures whether two variables tend to deviate from their respective means in the same direction or in opposite directions.
If both variables tend to be above their means at the same observations and below their means at the same observations, covariance is positive.
If one variable tends to be above its mean when the other is below its mean, covariance is negative.
If there is little systematic joint deviation from the means, covariance may be close to zero.
The important distinction from correlation is that covariance does not standardize the result. Its magnitude therefore depends on the scale and volatility of the two variables.
2. The Intuition Behind the Calculation
At a conceptual level, covariance starts by asking how far each observation is from its own mean. Those two deviations are multiplied together.
When both deviations have the same sign, their product is positive. When they have opposite signs, their product is negative. The products are then aggregated across the sample and divided by an appropriate normalization factor.
This simple mechanism explains much of covariance's behavior. It rewards synchronized deviations and penalizes opposite deviations.
For a trader, the mental model is straightforward: covariance asks whether two return streams tend to be away from their normal level in the same direction at the same time.
3. Population and Sample Covariance
As with variance, covariance has population and sample forms.
A population covariance is appropriate when the available observations represent the complete population of interest. A sample covariance estimates the relationship in a larger population from a sample of observations.
For sample covariance, the familiar denominator is n−1 rather than n. This adjustment is related to estimating population characteristics from a sample and is the covariance counterpart of the correction discussed in variance.
The mathematical distinction is important, but the more important trading question is whether the chosen observations actually represent the process you are trying to understand.
4. Why the Units Matter
Covariance retains the units of both variables multiplied together. If one variable is measured in dollars and another in dollars, covariance is expressed in squared monetary units. If returns are used, the result reflects the scale of those return variables.
This makes raw covariance difficult to compare across instruments with very different volatility or measurement scales.
Consider two pairs of assets. Pair A may have a covariance of 0.0008 and Pair B a covariance of 0.08. Those numbers cannot be interpreted as 'B is one hundred times more correlated.' Correlation is designed for standardized comparison; covariance is not.
Covariance is therefore especially useful inside a defined model where the scale is meaningful, rather than as a standalone ranking number.
5. Covariance vs. Correlation
Correlation can be understood as covariance after standardization by the standard deviations of the two variables.
Covariance answers: 'Do these variables tend to deviate from their means together, and in which direction?'
Correlation answers a related but standardized question: 'How strong is their linear co-movement relative to their individual dispersion?'
Because correlation removes the scale effect, two pairs can have similar correlation while having very different covariance.
This distinction is central to portfolio mathematics. Covariance carries information about the actual scale of joint movement; correlation makes relationships easier to compare independently of scale.
6. Why Covariance Matters for Portfolio Risk
Suppose a portfolio contains two positions. The portfolio's return is the weighted combination of their returns.
The variance of that combined return contains three conceptual components: the variance contributed by the first position, the variance contributed by the second position, and a cross-term involving their covariance.
That cross-term is crucial. If covariance is positive, the two positions tend to reinforce one another's deviations and can increase combined variance. If covariance is negative, the interaction can reduce combined variance.
This is the mathematical reason diversification can work even when every individual position is risky.
The key insight is that portfolio risk is not simply the sum of individual risks. The relationships between positions matter.
7. A Two-Asset Example
Assume Asset A and Asset B each have volatile returns. If their return deviations frequently occur in the same direction, their covariance is positive.
If a portfolio allocates capital to both, the combined return stream can experience larger synchronized swings than either position considered in isolation.
Now imagine a second asset whose returns tend to move against Asset A. Its covariance with A is negative. Adding some exposure to that asset can reduce the portfolio's overall variance, depending on the position weights and the magnitude of the covariance.
Notice that this does not mean negative covariance makes an asset 'safe.' The asset can still have substantial standalone volatility and can still lose money. The statement concerns the interaction between the two return streams.
8. Covariance Is Scale-Dependent
Suppose two strategies have identical underlying behavior but one is traded at ten times the position size. Their return or P&L covariance can be dramatically different because the scale of the observations has changed.
This is one reason covariance must be interpreted together with position sizing and the definition of the return series.
A covariance matrix built from normalized returns answers a different practical question from one built from dollar P&L.
For portfolio construction, the analyst must therefore define whether the objective is to understand the statistical relationship between assets, or the actual risk interaction produced by the chosen allocations.
9. Covariance and Position Sizing
Position sizing changes the contribution of covariance to portfolio risk. The same two instruments can produce a very different portfolio-risk profile when the weights change.
A large allocation to one asset and a small allocation to another may make the covariance interaction relatively modest. Equal allocations can make the interaction much more important.
This means covariance cannot be separated from exposure. A statistical relationship becomes a portfolio-risk problem only through actual capital or risk weights.
Expert practice therefore avoids statements such as 'these two assets have dangerous covariance' without specifying the measurement, the sample, and the portfolio weights.
10. Covariance Matrices
When a portfolio contains many assets, pairwise covariance values are commonly organized into a covariance matrix.
The diagonal elements represent the variance of each asset. The off-diagonal elements represent covariance between different assets.
The matrix therefore describes both individual dispersion and pairwise interaction in one structure.
For example, a three-asset covariance matrix contains three individual variance terms and the corresponding pairwise covariance terms. In a larger portfolio, the number of pairwise relationships grows rapidly.
This is one reason portfolio risk becomes a systems problem rather than a simple list of independent trade risks.
11. Positive Covariance and Hidden Concentration
Positive covariance can reveal that positions are exposed to common movement even when their names or instruments differ.
Imagine several growth-sensitive equities. Their individual businesses may be different, but their returns can respond similarly to interest-rate expectations, broad market sentiment, or sector flows.
If those relationships produce positive covariance, simultaneous exposure can amplify portfolio variance.
This is closely related to Correlation Risk and Concentration Risk. Covariance provides the scale-sensitive mathematical relationship; portfolio analysis determines how that relationship affects actual exposure.
12. Negative Covariance and Diversification
Negative covariance can contribute to diversification because one asset tends to move above its mean when the other tends to move below its mean.
However, negative covariance is not a permanent hedge guarantee. Market relationships can change, especially when liquidity conditions, macroeconomic expectations, or market regimes shift.
A portfolio that relies heavily on a historical negative relationship can therefore become vulnerable if the relationship weakens or reverses.
Professional diversification is not the search for a permanently negative covariance. It is the management of dependencies under realistic uncertainty.
13. Zero Covariance Does Not Mean Independence
A covariance near zero means that systematic linear co-movement around the selected means is weak in the measured sample.
It does not prove that the variables are independent.
Two variables can have a nonlinear relationship while their covariance is close to zero. They can also become strongly related only under specific market conditions.
This is the same conceptual warning encountered with correlation, but covariance makes the issue particularly important when a trader builds a portfolio model from historical data.
Zero covariance should therefore be interpreted as limited measured linear joint movement, not as a certificate of independence.
14. Covariance Changes with the Measurement Window
Covariance is estimated from observations, so changing the observation window can change the result.
A long historical sample may blend several market regimes. A shorter window may better reflect the current environment but will usually be noisier.
Changing the timeframe also changes the meaning of covariance. Daily return covariance and weekly return covariance are not interchangeable statistics.
The trader should therefore document the observation frequency, measurement window, return definition, and sample size whenever covariance is used in analysis.
Comparing covariance values without keeping these dimensions consistent can produce conclusions that look quantitative while being statistically incoherent.
15. Volatility and Covariance Are Connected
Covariance depends partly on how strongly the two variables fluctuate. If both series become much more volatile while retaining a similar standardized relationship, their covariance can increase in magnitude.
This explains why covariance and correlation answer different questions. Correlation may remain relatively stable while covariance changes because the underlying Volatility changes.
For a trader, this distinction is highly practical. A relationship can remain similar in relative terms while the absolute size of joint moves becomes much larger.
Portfolio risk can therefore rise even when correlation appears unchanged, simply because the volatility of the components has expanded.
16. Covariance of Strategy Returns and R-Multiples
Covariance is not limited to asset returns. It can be applied to strategy return streams, provided the observations are properly aligned.
Two strategies may trade different instruments and use different setups but still have positive covariance in their R-Multiple outcomes if they respond similarly to the same market environment.
Using R-Multiples can help normalize individual trade outcomes by initial risk, but the observation design remains critical. Trade-level outcomes need a defensible matching structure; arbitrary pairing of unrelated trades can create meaningless covariance.
For multi-strategy portfolios, the relevant question is often not 'Do these strategies trade different symbols?' but 'How does the distribution of their normalized outcomes interact when they are active together?'
17. Covariance, Correlation and Portfolio Models
In a quantitative portfolio model, covariance is often the direct input into portfolio-variance calculations, while correlation is useful for understanding the standardized structure behind those relationships.
The practical sequence is therefore: estimate individual volatility, estimate pairwise covariance, define portfolio weights, and evaluate the resulting combined variance.
This does not make the model automatically correct. If the covariance estimates are unstable, the portfolio weights are unrealistic, or the future market regime differs materially from the historical sample, the calculated portfolio risk can be misleading.
Quantitative sophistication does not remove Uncertainty. It makes the assumptions explicit.
18. Expert Workflow — From Data to Portfolio Interpretation
1. Define the variable. Decide whether you are using asset returns, strategy returns, equity changes, or normalized R-Multiples.
2. Align observations. Every paired observation must represent the same logical period or explicitly defined event.
3. Define the sample. Record the Sample Size, timeframe, frequency, and market regime represented.
4. Calculate covariance. Preserve the sign and magnitude rather than converting immediately to a standardized score.
5. Calculate correlation as a complementary measure. This separates scale effects from relative co-movement.
6. Examine volatility. Ask whether changes in covariance are being driven partly by changing component volatility.
7. Stress-test the relationship. Inspect high-volatility and major Drawdown periods separately.
8. Apply actual weights. Translate the statistical relationship into the portfolio exposures you really intend to hold.
9. Review stability. Compare different windows and determine whether the relationship is persistent or regime-dependent.
10. Document uncertainty. State what the data supports and what remains an assumption about the future.
19. Expert Case Study — Same Correlation, Different Covariance
Consider two asset pairs. Pair A and Pair B both have approximately the same positive correlation.
Pair A consists of relatively stable assets. Pair B consists of much more volatile assets. Because correlation is standardized, the two relationships can look similar when viewed only through the correlation coefficient.
The covariance, however, can be substantially larger in Pair B because the underlying deviations are larger.
From a portfolio perspective, this distinction matters. A trader who looks only at correlation may correctly identify the direction and relative strength of co-movement but underestimate the absolute scale of joint risk.
The correct interpretation is therefore two-dimensional: correlation describes standardized dependency; covariance preserves the scale of that dependency.
20. Common Trading Mistakes
Treating covariance as though it were directly comparable across differently scaled datasets.
Assuming a positive covariance means that two assets will rise together on the next trade or day.
Assuming zero covariance means complete independence.
Ignoring position weights when interpreting portfolio covariance.
Comparing daily covariance with weekly covariance as though they were the same statistic.
Using too small a sample and treating an unstable estimate as a structural market property.
Ignoring changes in Volatility that can alter covariance even when standardized co-movement remains similar.
Using arbitrarily paired strategy trades instead of properly aligned observations.
Building a complex covariance model while ignoring regime changes and model uncertainty.
21. Knowledge Check
1. What does covariance measure conceptually?
2. Why can covariance be positive, negative, or close to zero?
3. Why does sample covariance normally use n−1?
4. Why is covariance scale-dependent?
5. What does correlation add to the interpretation of covariance?
6. Why does covariance appear in portfolio variance?
7. How can changing position weights change the practical impact of covariance?
8. Why does zero covariance not prove independence?
9. Why can covariance change when Volatility changes even if correlation remains similar?
10. Why must strategy R-Multiple observations be properly aligned before covariance is calculated?
11. What information is contained in the diagonal and off-diagonal elements of a covariance matrix?
12. Why can historical covariance become unreliable after a regime change?
13. What is the difference between statistical covariance and actual portfolio exposure?
14. Why should covariance and correlation be examined together rather than treating either one as sufficient?
15. What does an Expert trader document before relying on a covariance estimate?
Expert answer principle: distinguish the mathematical relationship from its portfolio interpretation, preserve the scale information, identify the sample and timeframe, and make uncertainty explicit.
Conclusion
Covariance is one of the fundamental mathematical structures behind portfolio risk. It describes whether two variables tend to deviate from their means together or in opposite directions, while preserving the scale of those joint movements.
Its importance becomes clear when moving from individual positions to portfolios. Individual volatility tells us how much each component can move; covariance tells us how those movements interact. The combined risk depends on both.
The Expert trader should therefore treat covariance as a model input, not as a standalone signal. Its meaning depends on the return definition, scale, sample, timeframe, volatility regime, and portfolio weights.
The deeper lesson is the same principle that runs through quantitative trading: a precise number is not automatically precise knowledge. A covariance estimate becomes useful only when its construction, assumptions, limitations, and connection to actual trading exposure are understood.
Az Akadémia szöveges tartalmának részben, vagy egészben történő másolása, többszörözése, átdolgozása, terjesztése, valamint nyilvános bemutatása a szerző előzetes, írásos hozzájárulása nélkül tilos.