TI-BASIC:Stddev

From Learn @ Cemetech
Jump to navigationJump to search

STDDEV.GIF

Command Summary

Finds the sample standard deviation of a list.

Command Syntax

stdDev(list,[freqlist])

Menu Location

Press:

  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

TI-83/84/+/SE

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:

:stdDev(augment(L1,{mean(L1

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.

Formulas

The formula for standard deviation used by this command is:

Template:TI-BASIC:Math

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

Template:TI-BASIC:Math

Related Commands