Covariance is a foundational concept in statistics used to measure how two variables move together. It serves as the starting point for understanding more complex statistical tools like correlation and regression. If you're beginning your study of correlation, mastering the concept of covariance is essential.

What is Covariance?
Covariance is a statistical measure that helps determine the direction of the relationship between two variables. If the variables tend to increase or decrease together, the covariance is positive. If one increases while the other decreases, the covariance is negative.
It does not tell us the strength or the consistency of the relationship, only the direction of the linear relationship.
Formula for Covariance:
The formula for covariance between two variables X and Y (for a sample) is:
Cov(X, Y) = Σ[(Xi - X̄)(Yi - Ȳ)] / (n - 1)
- Xi, Yi: Individual data points of variables X and Y
- X̄, Ȳ: Mean (average) of X and Y respectively
- n: Number of data points
Interpretation of Covariance:
- Cov(X, Y) > 0: Indicates a positive relationship. As X increases, Y also tends to increase.
- Cov(X, Y) < 0: Indicates a negative relationship. As X increases, Y tends to decrease.
- Cov(X, Y) ≈ 0: Indicates no linear relationship between X and Y.
Important: Covariance does not standardize the result. A large covariance value doesn’t necessarily mean a strong relationship; it could simply reflect the scale of the data.
Covariance vs. Correlation
Aspect | Covariance | Correlation |
---|---|---|
Measure | Direction of linear relationship | Direction and strength of linear relationship |
Value Range | Unbounded (−∞ to +∞) | Between −1 and +1 |
Unit Dependency | Depends on the units of variables | Unit-free |
Use | Intermediate step to compute correlation | Final measure used for interpretation |
Positive vs. Negative Covariance
Positive Covariance: Variables move in the same direction. E.g., hours studied and exam score.
Negative Covariance: Variables move in opposite directions. E.g., price of product and quantity demanded.
Example:
Given Data:
X (Hours Studied) | Y (Marks Scored) |
---|---|
2 | 40 |
4 | 60 |
6 | 65 |
8 | 80 |
10 | 85 |
Step 1: Calculate Mean of X and Y
X̄ = (2+4+6+8+10)/5 = 6
Ȳ = (40+60+65+80+85)/5 = 66
Step 2: Apply Formula
X | Y | X−X̄ | Y−Ȳ | (X−X̄)(Y−Ȳ) |
---|---|---|---|---|
2 | 40 | -4 | -26 | 104 |
4 | 60 | -2 | -6 | 12 |
6 | 65 | 0 | -1 | 0 |
8 | 80 | 2 | 14 | 28 |
10 | 85 | 4 | 19 | 76 |
Σ(X−X̄)(Y−Ȳ) = 104 + 12 + 0 + 28 + 76 = 220
Cov(X, Y) = 220 / (5 − 1) = 55
Interpretation of Result:
The covariance is positive (55), which indicates a positive linear relationship between the number of hours studied and the marks scored. As the study hours increase, the marks tend to increase.
Properties of Covariance
- Cov(X, Y) = Cov(Y, X)
- Cov(X, X) = Variance of X
- If X and Y are independent, Cov(X, Y) = 0 (but not vice versa)
Merits and Demerits of Covariance
Merits:
- Simple to compute and understand
- Gives direction of relationship
- Foundation for understanding correlation
Demerits:
- Does not indicate strength of relationship
- Affected by units of measurement
- Not standardized – values are not comparable across datasets
Application Cases
- In finance: Covariance between two stock returns helps assess portfolio risk
- In economics: Covariance between income and expenditure helps identify spending behavior
- In marketing: Covariance between advertising spend and sales can reveal trends
- Subjective use: In behavioral studies, qualitative ordinal data may be assigned scores to derive covariance
Quick View
- Positive covariance: Points show an upward pattern
- Negative covariance: Points show a downward pattern
- Zero covariance: Points are scattered without any pattern
Conclusion
Covariance is the preliminary step in understanding the relationship between variables. While it provides the direction of the relationship, it lacks the standardization needed for comparative analysis. Yet, understanding covariance deeply is crucial for mastering correlation and regression analysis, both vital in UGC NET Commerce preparation. Always remember that a strong foundation in concepts like covariance ensures clarity in advanced statistical topics.