Covariance Calculator: A Step-by-Step Guide

5/2/2026

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 tool
FAQ
What is covariance?

Covariance measures the linear relationship between two datasets


Related articles
Categories
EmailLinkedInFacebook

© 2026 PromathTools. All rights reserved.

Developed by kruskalcode.com