Scilab-Branch-5.3-GIT
- Scilab help
- Statistics
- cdfbet
- cdfbin
- cdfchi
- cdfchn
- cdff
- cdffnc
- cdfgam
- cdfnbn
- cdfnor
- cdfpoi
- cdft
- center
- wcenter
- cmoment
- correl
- covar
- ftest
- ftuneq
- geomean
- harmean
- iqr
- mad
- mean
- meanf
- median
- moment
- msd
- mvvacov
- nancumsum
- nand2mean
- nanmax
- nanmean
- nanmeanf
- nanmedian
- nanmin
- nanstdev
- nansum
- nfreq
- pca
- perctl
- princomp
- quart
- regress
- sample
- samplef
- samwr
- show_pca
- st_deviation
- stdevf
- strange
- tabul
- thrownan
- trimmean
- variance
- variancef
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
correl
correlation of two variables
Calling Sequence
rho=correl(x,y,fre)
Arguments
- x
real or complex vector
- y
real or complex vector
- fre
matrix of type length(x) x length(y)
Description
correl(x,y,fre)
computes the correlation of two variables x and y.
fre is a matrix of dimensions length(x) x length(y). In fre the element
of indices (i,j) corresponds to the value or number or frequences of
x_i&y_j.
References
Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, J.Wiley & Sons, 1990.
Examples
x=[2.5 7.5 12.5 17.5] h=[0 1 2] fre=[.03 .12 .07;.02 .13 .11;.01 .13 .14;.01 .09 .14] rho=correl(x,h,fre)
See Also
- covar — covariance of two variables
Authors
Carlos Klimann
<< cmoment | Statistics | covar >> |