What Is Covariance?
Covariance is a statistical measurement that indicates how two variables change in relation to each other. It helps identify whether larger values in one dataset tend to occur with larger or smaller values in another dataset.
A positive covariance generally means the two variables move in the same direction. A negative covariance means they tend to move in opposite directions. A result near zero suggests little or no linear relationship.
Sample Covariance Formula
Sample covariance uses n − 1 in the denominator. It is appropriate when the entered values represent only a sample from a larger population.
Population Covariance Formula
Population covariance uses n in the denominator. Select it when your datasets contain every observation in the population you want to study.
What the Symbols Mean
- xᵢ and yᵢ: Individual paired observations.
- x̄ and ȳ: Sample means of X and Y.
- μx and μy: Population means of X and Y.
- n: Total number of paired observations.
- Σ: The sum of all calculated values.