VAR

Member Of Menu: 
Stat
Argument Types: 
None
Result Type(s): 
Real
Array
Invertible: 
No
Valid In Expression: 
No
Stack Diagram: 
Real1
Array1

This operation calculates the variance of the statistics data. It expects to find a variable called ∑DAT which has a set of statistics values stored in a real matrix. Each row in the real matrix represents a single set of samples. Each column contains one of the set of values associated with a single sample. The operation calculates the variance of each column of data in the real matrix and pushes the result into the stack.

If the real matrix has a single column, then a real value which is the variance of all values in that column is pushed onto the stack. If the real matrix has two or more columns, then a real vector with the same number of columns is pushed onto the stack where each value in the vector is the variance of values from that column.

Note that the ∑DAT must have at least two rows in order to calculate a variance.