Function Repository Resource:

# VarianceAround

Calculate the variance of a list along with its uncertainty

Contributed by: Sander Huisman
 ResourceFunction["VarianceAround"][{x1,x2,x3,…}] gives an Around object describing the variance of xi and its uncertainty.

## Details and Options

The standard error of the variance is defined as: ,  where s2 represents the variance of the sample.
The "Value" of the Around object is calculated using the built-in Variance function.

## Examples

### Basic Examples (1)

Calculate the variance of some numbers:

 In:= Out= ### Scope (2)

VarianceAround works with symbolic expressions:

 In:= Out= VarianceAround also works with quantities with units:

 In:= Out= ### Possible Issues (2)

VarianceAround applied to symbolic expressions can get unwieldy fast:

 In:= Out= The variance can not be calculated for a list with a single element:

 In:=   Out= ### Neat Examples (1)

Study the variance and its uncertainty for a sequence of values and compare it to the theoretical value of the distribution:

 In:= Out= SHuisman

## Version History

• 1.0.0 – 26 June 2019