Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Statistical Data Analysis
Topic: Basic Statistics
See also: cov mean

Function: var
Description: var computes the variance of the elements of an array regarding a given dimension.

Usage: z = var (x {,j})
Input:
x d1 x d2 x ... x dn array
j integer (number of dimension, default = 1)
Output:
z d1 x d2 x .. x d(j-1) x 1 x d(j+1) x .. x dn array

Example:

randomize(0)
x = normal(2, 4)
var(x,2)
Result:

Contents of var
[1,] 2.0185 
[2,] 1.0476 

Group: Statistical Data Analysis
Topic: Basic Statistics
See also: cov mean

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 17.8.2000