The variance( Command

We're glad you came by, but you might find what you're looking for elsewhere.

TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it.

Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope.

VARIANCE.GIF

Command Summary

Finds the sample variance of a list.

Command Syntax

variance(list,[freqlist])

Menu Location

Press:

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

Calculator Compatibility

TI-83/84/+/SE

Token Size

1 byte

The variance( command finds the sample variance 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 "VARIANCE OF L1",variance(L1

Advanced Uses

Frequency lists don't need to be whole numbers; 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.

Formulas

The formula for variance used by this command is:

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

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

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

If the population variance is required, just multiply the result of variance() by $1-1/N$.

With frequencies wi, the formula becomes

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

where $\overline{x}$ is the mean with frequencies included.

Related Commands

.

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