Covariance measures how two variables vary together: positive when they tend to rise together, negative when one rises as the other falls. Its value is in the product of the two variables’ units, so its size is hard to interpret on its own.
Formula
cov(X, Y) = Σ(xᵢ − x̄)(yᵢ − ȳ) / (n − 1)