Covariance Calculator: A Step-by-Step Guide
ByKruskalCode Team•SaaS & Automation Studio
24:02
6 min read

Covariance measures the linear relationship between two datasets
Explanation
The formula for covariance is cov(X, Y) = Σ[(xi - x̄)(yi - ȳ)] / (n - 1)
Formula
cov(X, Y) = Σ[(xi - x̄)(yi - ȳ)] / (n - 1)
Example
Calculate the covariance between two datasets: X = [1, 2, 3], Y = [2, 3, 5]
How to use the related calculator
Enter the datasets in the input fields and click calculate to get the covariance
Try the related calculator
Open toolFAQ
What is covariance?
Covariance measures the linear relationship between two datasets
Related articles

About the author
KruskalCode Team. KruskalCode builds scalable SaaS platforms, custom tools, mobile apps, and APIs for modern businesses.
Need a custom calculator, dashboard, or automation workflow? Reach out to KruskalCode.