Std Deviation and Variance VI
- Updated2025-01-28
- 2 minute(s) read
Std Deviation and Variance VI
Computes the mean, standard deviation, and variance of the values in the input sequence X.

Inputs/Outputs
![]() X is the input sequence. ![]() Weighting determines whether to calculate the population or the sample standard deviation and variance.
![]() 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. |
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 σ² 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 example files included with LabVIEW.
- labview\examples\Mathematics\Probability and Statistics\Statistics Solver.vi
- labview\examples\Signal Processing\Spectral Analysis\Power & Frequency Estimator.vi
- labview\examples\Mathematics\Probability and Statistics\Noise Statistics.vi