variance

Describes the spread of distribution.

Syntax

variance(expr)

Argument

expr
A valid scalar, vector, or matrix expression.

Example

Templex Expression Results
{variance(6)} 0
{variance( {1, 2, 3, 4, 5} )} 2.5
{variance( { {1, 0}, {0, -1} } )} 0.666667

Comments

The following equation is used to calculate variance:

(1)

The result is always a scalar.