Covariance Calculator (Sample & Population)
Calculate the sample and population covariance of two variables, with their means and correlation.
Calculate the sample and population covariance of two variables, with their means and correlation.
Results
Enter your details and click Calculate to see your results.
About This Calculator
cov = Σ(x − x̄)(y − ȳ)/(n − 1) for a sample, /n for a population.
Example
Example: x = 1–5, y = 2 4 5 4 5 → sample covariance 1.5.
Assumptions
Covariance depends on units; r is the unit-free version.
Frequently Asked Questions
What does a negative covariance mean?
y tends to fall as x rises.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile