corr
Syntax
corr(X,Y)
Arguments
X and Y are vectors of the same size.
Details
Calculate the correlation of X and Y.
Examples
$ x = 7 4 5 8 9 3 3 5 2 6 12 1 0 -5 32
$ y=1.1 7 8 9 9 5 4 8.6 2 1 -9 -3 5 8 13
$ corr(x,y);
0.238769
Syntax
corr(X,Y)
Arguments
X and Y are vectors of the same size.
Details
Calculate the correlation of X and Y.
Examples
$ x = 7 4 5 8 9 3 3 5 2 6 12 1 0 -5 32
$ y=1.1 7 8 9 9 5 4 8.6 2 1 -9 -3 5 8 13
$ corr(x,y);
0.238769