HexMathv1.0.4

Coefficient of variation calculator

This coefficient of variation calculator finds the ratio of the standard deviation to the mean of a data set, also called relative standard deviation. Type the numbers or scan them. HexMath returns the result as a decimal and a percentage and shows the mean, the standard deviation and the division, for a sample or a population.

Loading math input...

What this page covers

  • The coefficient of variation of a sample, using the sample standard deviation.
  • The population version, when the data is the whole group you care about.
  • The result as a decimal or as a percentage (relative standard deviation, RSD).
  • Not covered here: the standard deviation or the variance on their own (see the statistics calculator).

How to enter the problem

  • Type it or paste it. Write coefficient of variation or RSD, then the numbers separated by commas. Say population if the data is the whole group.
  • Scan it. Fit the one problem in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked examples

Example 1: Find the coefficient of variation of the sample 18, 24, 30.

Problem

Find the coefficient of variation of the sample 18, 24, 30.

Answer

Verified

The answer is

0.250.25 (25%)

Explanation

  1. Find the mean
    xˉ=18+24+303=723=24\bar{x} = \frac{18 + 24 + 30}{3} = \frac{72}{3} = 24
  2. Square the deviations from the mean
    (18−24)2=36(18 - 24)^2 = 36, (24−24)2=0(24 - 24)^2 = 0, (30−24)2=36(30 - 24)^2 = 36. Sum: 7272.
  3. Find the sample standard deviation
    Divide by n−1=2n - 1 = 2: variance 722=36\frac{72}{2} = 36, so s=36=6s = \sqrt{36} = 6.
  4. Divide the standard deviation by the mean
    CV=sxˉ=624=0.25CV = \frac{s}{\bar{x}} = \frac{6}{24} = 0.25, or 25%25\%.

Example 2: The 4 players on a team scored 70, 80, 90, 80. Treat the team as the whole population and find the coefficient of variation.

Problem

The 4 players on a team scored 70,80,90,80\displaystyle 70, 80, 90, 80. Treat the team as the whole population and find the coefficient of variation.

Answer

Verified

The answer is

CV=216≈0.088CV = \frac{\sqrt{2}}{16} \approx 0.088

Explanation

  1. Find the mean
    μ=70+80+90+804=80\mu = \frac{70 + 80 + 90 + 80}{4} = 80
  2. Find the population variance
    The squared deviations are 100,0,100,0100, 0, 100, 0. Divide their sum by n=4n = 4
    σ2=50\sigma^2 = 50
  3. Take the square root
    σ=50=52\sigma = \sqrt{50} = 5\sqrt{2}
  4. Divide by the mean
    CV=5280=216≈0.088CV = \frac{5\sqrt{2}}{80} = \frac{\sqrt{2}}{16} \approx 0.088, about 8.8%8.8\%.

Common mistakes

  • Using the population formula (divide by nn) for a sample. For 18,24,3018, 24, 30 that gives about 0.2040.204 instead of 0.250.25.
  • Dividing the variance by the mean instead of the standard deviation.
  • Forgetting to multiply by 100 when the answer is asked as a percentage, or multiplying twice.
  • Using it for data with a mean near zero or with negative values, where the ratio has no clear meaning.

Checks, assumptions and limits

  • Check the scale. Multiplying every value by the same positive number leaves the coefficient of variation unchanged, because the mean and the standard deviation scale together.
  • The coefficient of variation is meant for data on a ratio scale with a positive mean, such as lengths, weights or times. This page uses the sample standard deviation unless you say population.
  • HexMath can make mistakes. Double check important steps.

Frequently asked questions

Yes. The relative standard deviation is the coefficient of variation written as a percentage: multiply the decimal by 100.

Use the sample version (divide by n − 1) when the data is a sample from a larger group. Use the population version when the data is the whole group. Say which one when you type the problem.

Yes. The mean, the squared deviations and the standard deviation each get a numbered step before the final ratio.

Yes. It is the standard deviation divided by the mean, so it passes 100% whenever the standard deviation is larger than the mean. That happens with widely spread data or a mean close to zero.

Ready to solve your next math problem?

Create a free account for 3 math questions a day in your browser. No card.

Get HexMath on your phone

The same solver and camera scan on iPhone and Android.

Last updated: · HexMath