What Covariance Reveals About How Two Quantities Move Together

Introduction

When two quantities are observed together, their values may tend to rise at the same time, move in opposite directions, or show no consistent pattern. Covariance is a statistical measure that describes this shared movement. It helps reveal whether deviations from each quantity’s average tend to occur together, although its size depends on the units used and it does not show that one quantity causes the other.

What covariance measures

Covariance describes whether two variables tend to be above or below their averages at the same time. A variable is simply a quantity that can take different values, such as daily temperature, travel time, or the number of books read. To understand covariance, imagine recording two variables for each of several observations, such as temperature and ice cream sales on the same days.

For each observation, compare each value with its own variable’s average. These differences are called deviations. If both deviations are positive, both values are above average. If both are negative, both are below average. In either case, their product is positive. If one deviation is positive and the other is negative, the product is negative.

Covariance summarizes these products across the observations. In plain language, it asks: when one quantity differs from its usual level, does the other tend to differ in the same direction or the opposite direction?

How to calculate covariance

For a set of paired observations, a common definition of population covariance is:

Cov(X, Y) = the average of (X − average of X) × (Y − average of Y)

Here, X and Y represent the two variables. The calculation finds each variable’s average, subtracts that average from each observed value, multiplies the paired deviations, and averages the products. The pairing matters: each X value must be matched with the Y value recorded for the same observation.

For example, suppose three observations have X values of 1, 2, and 3, and matching Y values of 2, 4, and 6. The averages are 2 for X and 4 for Y. The paired deviations are (−1, −2), (0, 0), and (1, 2). Their products are 2, 0, and 2. The average product is 4/3, so the population covariance is positive.

When the observations are a sample used to estimate a larger population, a commonly used sample covariance divides the sum of the products by n − 1 rather than n, where n is the number of pairs. In this example, the sample covariance is 2. The distinction reflects different statistical purposes; software may label the selected calculation, so it is useful to check which version is being reported.

What the sign reveals

Positive covariance

A positive covariance means that paired deviations tend to have the same sign. When X is above its average, Y often is too; when X is below its average, Y often is as well. This is called a positive relationship in the limited sense that the quantities tend to move in the same direction.

Imagine recording outdoor temperature and cold-drink sales over a series of days. If warmer-than-average days often coincide with higher-than-average sales, and cooler days with lower sales, the covariance is likely positive. This pattern does not need to occur in every observation. Covariance summarizes the overall tendency, not a rule that every pair must follow.

Negative covariance

A negative covariance means that paired deviations tend to have opposite signs. When X is above its average, Y tends to be below its average, or the reverse. For instance, if a fixed journey is made under varying traffic conditions, higher traffic delays might coincide with lower average travel speed. If the pattern is consistent across the recorded observations, their covariance would tend to be negative.

Covariance near zero

A covariance near zero indicates that the products of paired deviations largely balance out. It suggests little consistent linear co-movement in the data. It does not necessarily mean the variables are unrelated. They might have a curved or more complicated relationship, or a pattern that the covariance measure does not capture.

Why the size can be difficult to interpret

The sign of covariance has a straightforward interpretation, but its numerical size is harder to judge on its own. Covariance is measured in the product of the two variables’ units. If X is measured in metres and Y in seconds, their covariance is in metre-seconds. Changing either measurement scale changes the numerical value, even if the underlying observations have not meaningfully changed.

For example, changing a distance measurement from metres to centimetres multiplies its numerical values by 100. The covariance with another variable will also be multiplied by 100. A larger covariance therefore does not automatically mean a stronger relationship than a smaller covariance calculated using different units or variables.

The size is also affected by how spread out the data are. Variables with greater variation can produce larger deviation products. This is one reason covariance is useful for describing direction and for calculations involving several variables, but is less convenient as a stand-alone measure of relationship strength.

Covariance and correlation are related, but different

Correlation is a standardized measure built from covariance. For the usual Pearson correlation, covariance is divided by the product of the standard deviations of the two variables. A standard deviation describes how spread out a variable’s values are around its average. Dividing by these spreads removes the original measurement units.

As a result, Pearson correlation is usually reported as a number from −1 to +1. A positive value indicates that the variables tend to move in the same direction, while a negative value indicates movement in opposite directions. Values closer to either end represent a stronger linear pattern; a value near zero indicates little linear association. Unlike raw covariance, correlation can be compared more readily across pairs of variables measured on different scales.

Covariance and correlation are not interchangeable in every calculation. Covariance retains information about the variables’ units and spread, while correlation focuses on standardized linear association. A report that says two variables have a positive covariance gives the direction of their shared movement, but the covariance value alone may not communicate how strong or practically important the relationship is.

What covariance does not tell you

It does not establish cause and effect

Two quantities can move together without one causing the other. A third factor may influence both, or the observed pattern may reflect how the data were selected or measured. For example, temperature could be related to both drink sales and the use of cooling equipment. Observing covariance does not identify the mechanism behind it.

To investigate causation, researchers need suitable methods and context, not just a covariance calculation. The evidence required depends on the question and the way the data were collected. It is safest to describe covariance as a measure of association or co-movement, rather than proof that changing one quantity will change another.

It does not capture every kind of relationship

Covariance is especially informative about linear co-movement: patterns that can be approximated by a straight line. Consider a hypothetical relationship in which Y is low when X is near zero but high when X is either much smaller or much larger. The pattern could be strongly structured yet produce a covariance near zero if deviations on different sides balance each other.

For that reason, a scatter plot can be helpful. Each paired observation appears as a point, making it easier to notice a straight-line trend, a curve, clusters, or an unusual value. A near-zero covariance should prompt careful interpretation rather than an automatic conclusion that no relationship exists.

It can be influenced by unusual observations

Because covariance multiplies deviations, an observation far from both averages can contribute a large product. An unusual value may therefore shift the result substantially, especially in a small dataset. Checking the data for recording errors and looking at a plot can help reveal whether a few observations are dominating the pattern.

Where covariance is useful

Covariance is a building block in statistics. It is used to describe how multiple variables vary together, to calculate correlation, and to study how the uncertainty in one quantity relates to uncertainty in another. In data analysis, examining covariance can help identify pairs of measurements that tend to be high or low together.

It is also important in fields that model collections of related quantities. For example, a covariance matrix places the variances of individual variables along its diagonal and the covariances between pairs in the other positions. Such a matrix summarizes both individual spread and shared variation, and can support methods for analyzing complex datasets.

In practical work, covariance is most useful when the observations are genuinely paired and the variables are clearly defined. The analyst should consider how the data were collected, whether the units are appropriate, and whether a linear summary suits the pattern. A number without this context can be easy to misread.

A practical way to read a covariance result

When you encounter a covariance value, first check which variables are being compared and what one observation represents. Then identify whether the value is positive, negative, or close to zero. This gives a basic indication of direction, provided the data and calculation are appropriate.

Next, check the units and the convention used. A population covariance and a sample covariance may differ because they use different divisors. Then look for a correlation or a graph if you need a clearer sense of linear strength or want to spot a nonlinear pattern. Finally, keep the conclusion appropriately limited: the measure describes how the recorded values vary together, not why they do so.

Conclusion

Covariance reveals whether two quantities tend to deviate from their averages in the same direction or in opposite directions. Its sign is useful, but its size depends on units and data spread, and a value near zero does not rule out every kind of relationship. Used alongside plots, correlation, and knowledge of how observations were gathered, covariance offers a helpful starting point for understanding shared movement without confusing association with cause.