HyperMath

Variance

Variance

Previous topic Next topic No expanding text in this topic  

Variance

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Provides the spread of distribution.

Syntax

V = Variance(Data)

Argument

Name

Description

 

Data

A scalar, vector or matrix of data.

Output

Name

Description

 

V

The variance of the data. If the input is a matrix, then the median of each column is returned in a vector.

Example

Find the variance of the data set [1,2,3,5,6].

 

Syntax

 

v = Variance([1,2,3,5,6])

 

Result

 

v = 4.3

Comments

The following equation is used to calculate variance:

(yi – ŷ)2 / (N-1)

Where N is the number of samples.

See Also:

Descriptive Statistics