The stdDev( Command

Command Summary

Finds the sample standard deviation of a list.

Command Syntax


Menu Location


  1. 2ND LIST to enter the LIST menu.
  2. LEFT to enter the MATH submenu.
  3. 7 to select stdDev(, or use arrows.

Calculator Compatibility


Token Size

1 byte

The stdDev( command finds the sample standard deviation of a list, a measure of the spread of a distribution. It takes a list of real numbers as a parameter. For example:

:Prompt L1
:Disp "STD. DEV. OF L1",stdDev(L1

Caution: the standard deviation found by this command is the sample standard deviation, not the population standard deviation, which is the one most commonly used when dealing with a sample rather than the whole population. The formula for population standard deviation is similar, but N-1 is replaced by N. There is no single command that will calculate population standard deviation for you, but 1-Var Stats will return both (sample standard deviation, the one returned by stdDev(), is Sx, while population standard deviation is σx). You can also calculate population standard deviation of L1 with the following code:


Advanced Uses

Frequency lists don't need to be whole numbers. Amazing as that may sound, your calculator can handle being told that one element of the list occurs 1/3 of a time, and another occurs 22.7 times. It can even handle a frequency of 0 - it will just ignore that element, as though it weren't there. One caveat, though - if all of the elements occur 0 times, there's no elements actually in the list and your calculator will throw an error.


The formula for standard deviation used by this command is:

\begin{align} s = \sqrt{\frac{1}{N-1} \sum_{i=1}^N (x_i - \overline{x})^2} \end{align}

This is the formula for sample standard deviation. The formula for population standard deviation, which this command does not use, varies slightly:

\begin{align} \sigma = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \overline{x})^2} \end{align}

Related Commands


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.