What the coefficient of variation shows

A standard deviation of 5 means very different things for values near 10 and for values near 10,000. The coefficient of variation, usually written CV, removes that scale problem by dividing the standard deviation by the mean. The result is a pure ratio that this page shows as a percentage, so you can compare the relative variability of measurements in different units or at different magnitudes. Quality control labs use it to describe the repeatability of an assay, manufacturers use it for consistency of dimensions, and analysts use it to compare the volatility of items with different averages. The NIST Engineering Statistics Handbook describes it as a relative measure of scatter.

The formula the page uses

The page computes CV = 100 × s / mean, where s is the sample standard deviation with n − 1 in the denominator and the mean is the arithmetic average of the list. It uses the sample form, so at least two values are needed. The mean must be positive, and the page rejects a nonpositive mean because the ratio is not meaningful then. Values are processed with floating-point arithmetic, and results show up to 12 significant digits. The list may hold up to 10,000 numbers. Because the denominator is the mean, a list with a mean near zero can give an enormous or unstable percentage.

The default list

The page opens with the list 1, 2, 3. The mean is 2. The deviations from the mean are −1, 0 and 1, whose squares sum to 2. Dividing by n − 1 = 2 gives a sample variance of 1, so the standard deviation is 1. The CV is 100 × 1 / 2 = 50 percent. A second list, 10, 12, 14, has the same standard deviation of 2 around a larger mean of 12, which gives 16.6667 percent. The scatter is identical in absolute terms, but it is much smaller relative to the level, and that contrast is what the CV is designed to reveal.

More examples with different numbers

For the list 50, 60, 70, 80, 90 the mean is 70, the squared deviations sum to 1,000, the sample variance is 250 and the standard deviation is about 15.8114. The CV is about 22.5877 percent. For the two values 4 and 8 the mean is 6, the sample standard deviation is about 2.8284, and the CV is about 47.1405 percent. A list in which every value is the same, such as 100, 100, 100, has a standard deviation of zero and therefore a CV of 0. Scaling every value by the same factor leaves CV unchanged: 1000, 2000, 3000 gives 50 percent, the same as 1, 2, 3.

Where the ratio is valid

The CV is meaningful for ratio-scale data, meaning data with a true zero where a value twice as large represents twice the quantity. Mass, length, concentration, counts and durations qualify. Temperatures in Celsius or Fahrenheit do not, because their zero is arbitrary, and the CV changes when you shift the scale. The values 10, 20, 30 degrees Celsius give a CV of 50 percent, but the same temperatures in kelvins, 283.15, 293.15, 303.15, give about 3.4112 percent. The spread is the same 10 degrees, but the denominator changed. This is why the page states the ratio-scale assumption and rejects nonpositive means.

Interpreting the percentage

There is no universal cutoff for a good or bad CV. An analytical chemistry method might aim for a few percent or less, a biological assay may tolerate 15 or 20 percent, and daily sales figures can easily show 50 percent or more. The meaningful comparison is with the expectation for your process or with another dataset measured the same way, using the same method, instrument and sampling plan. Keep in mind that a small sample gives a noisy estimate of both the mean and the standard deviation. Three values, as in the default, say little about the process that produced them, and the CV from a handful of readings can change a lot when you add more.

Sample versus population conventions

This page uses the sample standard deviation, which divides by n − 1 and is the usual choice when the list is a sample drawn from a larger process. If your list is the entire population of interest, the population standard deviation divides by n and gives a smaller figure, and the matching CV would be lower. For the default list the population standard deviation is about 0.8165 and the CV would be about 40.8 percent, compared with 50 on this page. For large lists the two conventions converge. When you share a CV, note which convention you used, because the difference is noticeable for short lists.

Comparing two processes

The CV is most useful when you hold two datasets side by side. Suppose machine A fills bags with 498, 501, 500, 503 and 498 grams, and machine B fills larger bags with 1,998, 2,002, 2,000, 2,004 and 1,996 grams. Machine A has a standard deviation of about 2.12 grams and a CV of about 0.4243 percent. Machine B has the larger standard deviation, about 3.16 grams, but a CV of only about 0.1581 percent because the target is four times heavier. A comparison in absolute grams would call B the worse machine, while the relative view shows that B is more consistent per gram filled. Which view is right depends on the cost of error. A regulator that sets limits in percent of nominal weight cares about relative spread, while a customer who pours exactly one bag cares about the absolute error.

Comma decimals and other entry errors

Entering values with comma decimals, such as 1,5, will be read as two separate values, so write 1.5 instead. Mixing units within one list, for example some values in grams and others in kilograms, produces a meaningless result. Including a placeholder like zero for a missing measurement drags the mean down and raises the CV. A very small mean makes the CV large even if the absolute spread is tiny, so a CV of 300 percent on near-zero values may only reflect rounding noise. Check the data for outliers, because both the mean and the standard deviation are sensitive to them, and the CV inherits that sensitivity.