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

Inputs/Outputs
X
—
X is the input sequence.
Weighting (Sample)
—
Weighting determines whether to calculate the population or the sample standard deviation and variance.
mean
—
mean is the mean, or average, of the values in the input sequence X.
standard deviation
—
standard deviation is the standard deviation calculated from the values in the input sequence X.
variance
—
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
X
—
Weighting (Sample)
—
mean
—