Mathematics· Exact, step by step
Calculate the sample and population covariance between two paired data sets.
Formula
cov = Σ(x − x̄)(y − ȳ) ÷ (n − 1) for a sample, ÷ n for a population
Worked example
x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 4, 5: sample covariance 1.5, population 1.2.
Free to use with a link back. Nothing you type is shared.
Preparing citation…
Keep exploring
Calculate Pearson's r and Spearman's rank correlation for paired data, with r², a significance test and a scatter plot.
Open calculatorFit a straight line of best fit to your data and get the slope, intercept, correlation and R².
Open calculatorFind the sample and population variance and standard deviation of a data set, with each value's contribution.
Open calculator