variance

Calculates the variance.

Syntax

Description

Calculates the variance of all the observations.

That is

σ2=1n1i=1n(xix¯)2

where xi,i=1,2,,n represents the i-th observed value, and

x¯=1ninxi

σ is the unbiased estimate of the standard deviation.

Examples

Input Arguments

x —— A N-D array of observations.

For an n-by-m array, it indicates n observations with m features.

Properties of Arguments

Name of the parametersIs optional?Source, dialog or input port?
xNoInput port