2.1.15 vinc

Brief Information

Calculate mean and standard deviation of a vector

Command Line Usage

1. vinc 1
2. vinc Col(A)
3. vinc ix:=col(a) mean:=mymean sd:=mysd


Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input ix

Input

vector

<active>

The input vector to be calculated average increment.

Matrix mean

Output

double

mean

Mean value of the vector.

sd

Output

double

sd

Standard deviation of the vector.

Description

This function is used to describe the basic characteristics of the vector. It summarizes aspects, such as mean and standard deviation.

Examples

// vinc function can be used to determine a mean
// step size between values in a column
newbook;
// Create some unsorted random data
int N = 1000;
col(1) = normal(N);
vinc ix:=col(1) mean:=step sd:=sd;
type Mean step size of $(step), sd of$(sd);
// Now let's sort the column and try again
col(1) = sort(col(1));
vinc ix:=col(1) mean:=step sd:=sd;
type After sorting, mean step size of $(step), sd of$(sd);
// So col(1)[1]+(N-1)*step == col(1)[N]

Algorithm

For the detail of this function, please see the help of Statistics on columns.

Related X-Functions

Keywords:stats, statistics