variance

Calculates the variance.

Syntax

Description

Calculates the variance of all the observations.

That is

σ2=1n−1∑i=1n(xi−x¯)2

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

x¯=1n∑inxi

σ 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