You can use the \(\text{SampleStdDev}\) function to calculate the standard deviation of a collection of basic values. Values can be provided as parameters or contained within a collection of iterable types.

You can use the \sstddev backslash command to insert this function.

The following variants of this function are available:

  • \(\text{real } \text{SampleStdDev} \left ( \ldots \right )\)

This function calculates the standard deviation with Bessel’s correction using the relationship:

\[\text{SampleStdDev} \left ( X \right ) = \sqrt{ \frac{1}{N - 1} \sum_{x \in X} \left ( x - \mu \right ) ^ 2 }\]

Note that, like the \(\text{Count}\) and \(\text{Average}\) function, you can use this function to traverse complex data structures to calculate the standard deviation.

Figure 199 shows the basic use of the \(\text{SampleStdDev}\) function.


Figure 199 Example Use Of The SampleStdDev Function