Statistics calculator

Standard Deviation Calculator

sd command returns the standard deviation of given values.

sd 1 2 3

Result:

0.816496580927726

The arguments should be separated by space or comma.

sd 1, 2, 3

How to calculate standard deviation

The standard deviation of 4, 5, 12 is 3.559026084010437.

sd 4 5 12

Result:

3.559026084010437

How can we get the standard deviation of 4, 5, 12?

First, calculate the average of them.

\[ \frac{ (4 + 5 + 12) }{ 3 } = 7 \]

The average is 7. Next, get the square of difference between the element value and the average:

\[ (4-7)^2 = 9 \\ (5-7)^2 = 4 \\ (12-7)^2 = 25 \]

Then, get the average of them.

\[ \frac{ (9 + 4 + 25) }{ 3 } = 12.67 \]

Finally, calculate the square root of 12.67.

\[ \sqrt{ 12.67 } = 3.5590 \]

This value is the standard deviation of 4, 5, 12. How to calculate the standard deviation can be concluded as the below.

  1. Calculate the average of elements
  2. Calculate the square of difference between the element value and the average
  3. Calculate the average of them
  4. Calculate the square root of it

Statistics

Calculator