Covariance: Explained Simply
Covariance is a statistical measure that shows the direction of the relationship between two variables.
🔍 Definition:
Covariance measures how two variables change together.
If they tend to increase together, the covariance is positive.
If one increases while the other decreases, it’s negative.
🧮 Covariance Formula:
For two variables X and Y, with n data points:
Where:
-
= individual values
-
= mean of X and Y
-
= number of observations
Great! Here's a numerical example of covariance with a business application in finance (portfolio management).
🔢 Numerical Example:
Suppose we have two stocks – Stock A and Stock B
Month Return of Stock A (X) Return of Stock B (Y) Jan 10% 8% Feb 12% 11% Mar 14% 10% Apr 13% 12% May 15% 14%
| Month | Return of Stock A (X) | Return of Stock B (Y) |
|---|---|---|
| Jan | 10% | 8% |
| Feb | 12% | 11% |
| Mar | 14% | 10% |
| Apr | 13% | 12% |
| May | 15% | 14% |
Step 1: Convert percentages to decimals
X (A) Y (B) 0.10 0.08 0.12 0.11 0.14 0.10 0.13 0.12 0.15 0.14
| X (A) | Y (B) |
|---|---|
| 0.10 | 0.08 |
| 0.12 | 0.11 |
| 0.14 | 0.10 |
| 0.13 | 0.12 |
| 0.15 | 0.14 |
Step 2: Calculate the means
Step 3: Apply the covariance formula
Let's calculate each term:
| X | Y | Product | ||
|---|---|---|---|---|
| 0.10 | 0.08 | -0.028 | -0.03 | 0.00084 |
| 0.12 | 0.11 | -0.008 | 0.00 | 0.00000 |
| 0.14 | 0.10 | 0.012 | -0.01 | -0.00012 |
| 0.13 | 0.12 | 0.002 | 0.01 | 0.00002 |
| 0.15 | 0.14 | 0.022 | 0.03 | 0.00066 |
✅ Interpretation:
-
Covariance = 0.00028 (positive)
-
This means that the returns of Stock A and Stock B move in the same direction (positive relationship).
-
The value is small because we're dealing with percentages in decimal form.
Covariance = 0.00028 (positive)
This means that the returns of Stock A and Stock B move in the same direction (positive relationship).
The value is small because we're dealing with percentages in decimal form.
📊 Application in Finance:
In portfolio management, covariance helps in:
-
Diversification: Selecting assets with low or negative covariance to reduce risk.
-
Portfolio Risk: It is a component of calculating portfolio variance and correlation.
-
Efficient Frontier: Modern Portfolio Theory (MPT) uses covariance to optimize portfolios.
📉 Real-life Insight:
If two stocks always increase or decrease together, they have high positive covariance → not good for diversification.
If one stock increases while another decreases → negative covariance → helps balance risk.
✅ Interpreting Covariance:
| Covariance Value | Interpretation |
|---|---|
| Positive | X and Y tend to increase together |
| Negative | As X increases, Y tends to decrease |
| Zero (or close to) | No linear relationship between X and Y |
🧠 Example:
| X (Study Hours) | Y (Test Score) |
|---|---|
| 2 | 60 |
| 4 | 70 |
| 6 | 80 |
Here, as study hours increase, test scores also increase → positive covariance.
⚠️ Important Notes:
-
Covariance gives direction, not strength of relationship.
-
It is scale-dependent (units matter).
-
Unlike correlation, covariance does not range between -1 and +1.
📏 Covariance vs. Correlation:
| Feature | Covariance | Correlation |
|---|---|---|
| Tells you | Direction of relationship | Direction and strength (scaled -1 to +1) |
| Units | Product of units of X and Y | Unitless |
| Range | to | to |
| Use | Intermediate step in correlation | Final standardized measure |
Comments
Post a Comment