Var()
Summary
Returns the variance on an array of numbers.
Syntax
var_value = Var(array input_data, integer sample_flag)
| Argument | Contents |
|---|---|
| input_data | An array of numbers |
| sample_flag | 0 to compute the population variance; 1 to compute the sample variance |
Returns
A real number indicating the variance of the values in input_array.
Notes
-
The array must contain numbers only. Other types, including null, are not allowed.
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The array contains values that are null or are not numbers |
See Also
| Function | Summary |
|---|---|
| Std() | Returns the standard deviation of the elements of an array |
| Mean() | Computes the mean (average) of the elements of an array |
| Median() | Computes the median of the elements of an array |
| Skew() | Returns the skew of the values in an array |
| Kurtosis() | Returns the kurtosis of a set of numbers |