To calculate result you have to disable your ad blocker first.
Input comma separated values of set x & y and hit the calculate button to find covariance
Use the sample covariance calculator for a detailed calculation of the relation between two data sets. This covariance calculator will find the means of both data sets. The table included in the result area contains all the necessary values.
What is covariance?
Covariance in statistics describes the relation between two variables or data sets to see if the change in one affects the other. But the measure of this relation is found by correlation.
Covariance can be positive, negative, or zero. A positive covariance means both are directly related while negative covariance indicates an indirect relation.
Zero covariance tells both variables are independent of the changes in each other.
To find the covariance, the following formula is used:
In this equation, the bar (-) above x and y is used to represent the mean.
How to find covariance?
Calculating covariance is a long process. There are several values that need to be calculated.
Below are the important steps.
- Find the mean of both data sets.
- Subtract the individual entries from the respective means of data sets.
- Multiply x1 with y1, x2 with y2, and so on after subtraction from the mean.
- Add all the values.
- Divide by the total number of values minus one (n-1).
Find the covariance for the given data sets.
X = 12, 13, 14, 15, 15, 18, 11, 12
Y = 20, 11, 12, 15, 11, 13, 12, 17
Step 1: Find the mean of both sets.
Mean of X = 12 + 13 + 14 + 15 + 15 + 18 + 11 + 12
= 110 / 8
Mean of Y = 20 + 11 + 12 + 15 + 11 + 13 + 12 + 17
= 111 / 8
Step 2: Subtract and multiply as explained.
|xi||xi - ͞x||yi||yi - ͞y||(xi - ͞x) (yi - ͞y)|
Step 3: Add these values.
= (-10.73) + 2.16+ (-0.47) + 1.41+ (-3.60) + (-3.74) + 5.17 + (-5.48)
Step 4: Use the covariance formula.
Cov( x,y) = ∑ (xi - ͞x ) (yi -͞y ) / n-1
= 15.28 / 8 -1
= 15.28 / 7
The number shows a negative covariance. Use our sample covariance calculator to cross-check the above result.