3.5.2.43 StdDev

Description

Calculate the sample Standard Deviation.

s = \sqrt{\frac{1}{n-1} \sum_{i=1}^n (x_i - \overline{x})^2}


Notes:

StdDev function calculates SD by column. If you want to calculate SD of multiple datasets by row, you can use syntax sum(vd) to sum datasets by row and generate temporary datasets of related statistics values, and then use _sd to get SD value. See the sum() function for more information.

Syntax

double StdDev(dataset vd)

Parameters

vd

Input dataset.

Return

Return the Sample Standard Deviation.

Example

double ee=StdDev(col(A));
ee=;

See Also

StdDevP