Standard Deviation and Variance VI

Owning Palette: Probability & Statistics VIs

Requires: Base Development System

Computes the mean, standard deviation, and variance of the values in the input sequence X.

Details  Examples

 Add to the block diagram  Find on the palette
X is the input sequence.
Weighting determines whether to calculate the population or the sample standard deviation and variance.

0Sample (default)
1Population
mean is the mean, or average, of the values in the input sequence X.
standard deviation is the standard deviation calculated from the values in the input sequence X.
variance is the calculated variance of the values in the input sequence X.

Standard Deviation and Variance Details

The VI calculates the output values using the following equations.

where µ is mean and n is the number of elements in X.

standard deviation =

where 2 is variance, µ is mean, and w is n when Weighting is set to Population and (n – 1) when Weighting is set to Sample.

Examples

Refer to the following VIs for examples of using the Standard Deviation and Variance VI: