I hope that someday Octave will include more statistics functions. If you would like to help improve Octave in this area, please contact @email{bug-octave@bevo.che.wisc.edu}.
mean (x) = SUM_i x(i) / N
If x is a matrix, compute the mean for each column and return them in a row vector.
x(ceil(N/2)), N odd median(x) = (x(N/2) + x((N/2)+1))/2, N even
If x is a matrix, compute the median value for each column and return them in a row vector.
std (x) = sqrt (sumsq (x - mean (x)) / (n - 1))
If x is a matrix, compute the standard deviation for each column and return them in a row vector.
cov (x, y)
is the covariance between the i-th
variable in x and the j-th variable in y. If called
with one argument, compute cov (x, x)
.
corrcoef (x, y)
is the correlation between the
i-th variable in x and the j-th variable in y.
If called with one argument, compute corrcoef (x, x)
.
kurtosis (x) = N^(-1) std(x)^(-4) sum ((x - mean(x)).^4) - 3
of x. If x is a matrix, return the row vector containing the kurtosis of each column.
skewness (x) = N^(-1) std(x)^(-3) sum ((x - mean(x)).^3)
of x. If x is a matrix, return the row vector containing the skewness of each column.
Go to the first, previous, next, last section, table of contents.