Measure how two variables change together and their relationship strength.
Last updated: March 2026
Covariance measures how two variables change together. A positive covariance means when one variable increases, the other tends to increase as well. A negative covariance means when one increases, the other tends to decrease. Zero covariance means no linear relationship.
Unlike correlation, covariance is unbounded — it depends on the units and scale of your variables. This makes it harder to interpret directly. For example, covariance in dollars × pounds looks completely different from covariance in cents × ounces, even though the relationship is the same.
Correlation standardizes covariance to fix this problem. In fact, correlation = covariance / (SD of X × SD of Y). This is why correlation is often preferred for comparison, while covariance is useful in statistical models and portfolio analysis.
Calculate covariance between study hours (X) and test scores (Y) for 5 students:
Covariance depends on the units and scale. If X is in dollars and Y is in kilograms, doubling units doubles covariance. Correlation solves this by standardizing.
Correlation is better for understanding relationship strength. Use covariance in statistical models, portfolio analysis, or when you need the raw joint variance.
No, but it can be very large if variables have large variances. Correlation is always bounded [-1, +1], making it more interpretable.
Cov(X, X) = Var(X). The covariance of a variable with itself is its variance.
Dividing by n-1 provides an unbiased estimate of population covariance. Dividing by n underestimates population covariance.
Yes, absolutely. The order doesn't matter. Cov(X,Y) = Cov(Y,X) always.
Related Tools