Standard Deviation Calculator: What's the Dispersion of a Set?

Written by:
PK

Below is a standard deviation calculator, which will calculate the standard deviation from a list of numbers. Input numbers (including negative numbers or decimals) and the tool will return the standard deviation.

The variance calculator can work either as a sample variance calculator or a population variance calculator.

Need a different tool? Try another:

Standard Deviation Calculator

What is the Standard Deviation of a Set of Numbers?

The standard deviation of a set of numbers is a measure of dispersion of those numbers. In essence, it's a number which (with the average) describes or summarizes the range and shape of a set.

A higher standard deviation means that samples are more varied, or "further apart". Smaller standard deviations mean that a measure has a tighter cluster.

There are two "types" of standard deviation:

  • Sample standard deviation – standard deviation measured from a sample, not the entire whole (known as a population). This is the most common form – you almost always should use this.
  • Population standard deviation - the standard deviation measured from the entire population (e.g. all people)

Standard Deviation and the Normal Distribution

A normal distribution is a continuous probability distribution of a random variable, evenly and randomly dispersed around a mean or average. It's also known as a Gaussian distribution. Height is an excellent real world example – you can see the height distribution in the United states here.

Diagram of standard deviation

In a perfect normal distribution, the average, median, and mode are all centered at point 0. One standard deviation in either direction – with enough random samples – covers 34.1% of samples, or 68.2% if you add them together.

In this world, the data is well described by:

  • +/- 1 δ: 68.2% of samples
  • +/- 2δ: 95.4% of samples
  • +/- 3δ: 99.7% of samples

However, the normal distribution doesn't always apply...

Where a Standard Deviation Doesn't Fit

Not all data behaves normally or is perfectly randomly distributed around a whole – many things are said to have fat tails. That is, the far left and right of their theoretical distribution don't move nicely towards 0 percentage like the above ideal normal distribution graph.

Often in fields like finance and economics, events that are 'rare' if estimated from a Gaussian model are instead likely or even inevitable in certain conditions. Income distribution, net worth distribution, market crashes, wars, pandemics, and other events are all "in the realm of possibility" but don't fit a Gaussian model.

In practice, sometimes it is easier to inappropriately use normal distributions to explain things that we know have fat tails. (See, for example, the Black-Scholes derivative pricing model). Just remember, for many important subjects: the map isn't the territory – don't be fooled by the false hope implied by the skinny tales of a normal distribution.

Standard Deviation Formula

As there are two standard deviation measurements (for samples and population), there are two slightly different standard deviation formulas. For either one, you need to first compute or estimate or otherwise find the mean or average.

Population Standard Deviation Formula

The formula for population standard deviation is:

\delta=\sqrt{\frac{1}{N}\sum_{i=1}^N (x_i-\mu)^2}

Where:

  • δ = population standard deviation
  • N = number in the population
  • xi = observation in the population
  • μ = the mean in the population

Sample Standard Deviation Formula

The formula for sample standard deviation is:

s=\sqrt{\frac{1}{n-1}\sum_{i=1}^n (x_i-m)^2}

Where:

  • s = sample standard deviation
  • n = number of observations in the sample
  • xi = observations in the sample
  • m = the mean of the sample

Examples of Finding a Standard Deviation

Normally, you won't have the opportunity to measure an entire population - practicality (or resources!) often limit that. Let's walk through computing standard deviation of a sample.

Pretend you measured 5 adult men and found they weigh: 140, 170, 200, 210, and 320 pounds. Their average weight is 208 lbs.

Find the difference for each one and the sample mean:

140-208=-68\\170-208=-38\\200-208=-8\\210-208=2\\320-208=112

Next, square each number:

-68^2=4624\\-38^2=1444\\-8^2=64\\2^2=4\\112^2=12544

Now, add the numbers up and divide by 4. (If we were looking at the whole population we would instead divide by 5.)

\frac{4624+1444+64+4+12544}{5} =\\\frac{18680}{4}=4670

At this point, you have the sample variance. However, the variance is expressed in units that don't make sense (once we find the standard deviation it will be in pounds).

At this point, take the square root to find the standard deviation:

\sqrt{4670} = 68.34\ lbs

Using the Standard Deviation Calculator

To use the standard deviation calculator, enter your entire set of numbers in the text field. The input is forgiving – be sure to separate numbers and it should work. Try using commas, spaces, new lines, tabs, and so on. In the Type pulldown, choose if you want the standard deviation of a Population or Sample.

When you're done, hit the Compute Standard Deviation button to see the standard deviation based on your inputs. To check we understood your input, look at the list length in the Number of Values Input box.

Like this? Visit our other calculators and tools.

      

PK

PK started DQYDJ in 2009 to research and discuss finance and investing and help answer financial questions. He's expanded DQYDJ to build visualizations, calculators, and interactive tools.

PK lives in New Hampshire with his wife, kids, and dog.

Don't Quit Your Day Job...

DQYDJ may be compensated by our partners if you make purchases through links. See our disclosures page. As an Amazon Associate we earn from qualifying purchases.
Sign Up For Emails
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram