Gauth

Calculator

Standard Deviation Calculator with Steps

Paste a data set and get the mean, the full table of deviations and squared deviations, the variance, and both the sample and population standard deviation.

Solve a statistics problem now

First solution free

How to use it

Paste the values separated by commas or spaces, and say whether the data is a sample or a population — that single word changes the divisor and therefore the answer. For a frequency table, give value and frequency pairs and say the data is grouped. Standard deviation feeding into a confidence interval or a hypothesis test is better sent to the statistics solver, which carries the value through the rest of the procedure.

The method behind it

Standard deviation answers one question: how far is a typical value from the mean? The obvious way to measure that — average the deviations — fails immediately, because the deviations always cancel exactly.

That is not a coincidence; it is what the mean is. Squaring each deviation removes the cancellation and, as a side effect, weights large departures more heavily than small ones. Averaging the squares gives the variance, and taking the square root at the end returns the answer to the units the data was measured in.

The two formulas differ only in the divisor, and the reason is worth understanding rather than memorising. When you have the whole population, you know the true mean and divide by . When you have a sample, you do not know the true mean and must use the sample mean instead. The sample mean is, by construction, the value that makes the sum of squared deviations as small as it can possibly be for that sample — smaller than it would be around the true mean. So the sum of squares is biased downward, and dividing by rather than corrects that bias exactly.

For hand calculation there is a shortcut that avoids computing every deviation, which matters when the mean is not a whole number.

Two properties are worth carrying. Adding a constant to every value leaves the standard deviation unchanged, because every deviation is unchanged — the whole data set slides along without spreading. Multiplying every value by a constant multiplies the standard deviation by the absolute value of that constant. Together these explain why standardising data by subtracting the mean and dividing by the standard deviation always produces a set with mean 0 and standard deviation 1.

The full hand method, including how to lay out a table that a marker can follow, is in standard deviation by hand. The formula is also a trap for evaluation order — square before summing, divide before taking the root — which order of operations beyond PEMDAS covers directly.

Worked examples

Worked example

  1. 1

    These eight values are stated to be the whole population, so the divisor will be N, not N − 1. Start with the mean.

  2. 2

    Subtract the mean from each value. The deviations sum to zero, which confirms the mean is right.

  3. 3

    Square each deviation. Negative deviations become positive here, which is the entire purpose of the step.

  4. 4

    Add the squares and divide by 8 to get the population variance.

  5. 5

    Take the square root. The variance is in squared units; the standard deviation is back in the original ones.

Answer

Worked example

  1. 1

    Collect the two sums the shortcut needs. There is no need to find the mean first.

  2. 2

    Compute the correction term: the square of the total, divided by the count.

  3. 3

    Subtract to get the sum of squared deviations. Checking directly against the mean of 9 gives 36 + 4 + 4 + 100, which is the same 144.

  4. 4

    This is a sample, so divide by n − 1 = 3 for the variance.

  5. 5

    Take the root and simplify the surd. Dividing by 4 instead of 3 would have given 6, which understates the spread.

Answer

The deviation table, one row at a time

Nearly every mark in a standard deviation question is in the table, not the final number. Build it column by column for the data set 4, 8, 11, 13, 14, revealing each step only after you have tried it.

Sample and population standard deviation of 4, 8, 11, 13, 14

0 of 8 steps
    Try it yourself first — you'll remember it longer.

    Common mistakes

    Using the wrong divisor

    Dividing a sample by understates the spread. In the example above it gives 3.63 instead of 4.06. Read the question for the words sample, survey, or estimate; any of them means .

    Squaring the sum, not the terms

    is not . The second expression is zero for every data set, because the deviations always cancel. Square each row of the table before adding the column.

    Stopping at the variance

    The variance 16.5 is not the standard deviation, and it is not even in the right units — if the data was in centimetres, the variance is in square centimetres. The final square root is part of the answer, not a rounding step.

    Practice

    Answers are checked here — nothing is sent anywhere.

    1. 1
    2. 2
    3. 3

    Frequently asked questions

    Should I divide by n or by n − 1?
    Divide by n only when your numbers are the entire population you care about. Divide by n − 1 whenever they are a sample used to estimate a wider population, which covers almost every exercise phrased around a survey or an experiment.
    Does it show the full deviation table?
    Yes: each value, its deviation from the mean, and that deviation squared, followed by the totals. The deviations must sum to zero, and seeing that column is the quickest check that the mean was computed correctly.
    Can it handle frequency tables?
    Yes. Each squared deviation is multiplied by its frequency, and the divisor becomes the total frequency rather than the number of distinct values. Say that your data is grouped and the working uses class midpoints.
    What does the number actually tell me?
    It is the typical distance of a value from the mean, in the original units. For data that is roughly normal, about 68 percent of values lie within one standard deviation of the mean and about 95 percent within two.
    What does it cost?
    The first solution is free with no account needed. Free accounts get three solutions a day, and Gauth Plus removes the limit for $11.99 a month with a three-day free trial.

    Keep going

    Gauth AIAsk me for any help!