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[1]:=
 Out[1]=

### Scope (2)

VarianceAround works with symbolic expressions:

 In[2]:=
 Out[2]=

VarianceAround also works with quantities with units:

 In[3]:=
 Out[3]=

### Possible Issues (2)

VarianceAround applied to symbolic expressions can get unwieldy fast:

 In[4]:=
 Out[4]=

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

 In[5]:=
 Out[5]=

### 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[6]:=
 Out[10]=

SHuisman

## Version History

• 1.0.0 – 26 June 2019