How is covariance related to the variance of a single variable?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In statistics, the covariance between a variable and itself is equivalent to the variance of that single variable. This relationship is expressed by the formula:

Cov(X,X)=Var(X)

While covariance generally measures the joint variability between two different random variables, applying the covariance calculation to a single variable X effectively measures how that variable deviates from its own mean, resulting in its variance.1