Skewness

From Eigenvector Research Documentation Wiki
Revision as of 20:16, 8 June 2015 by imported>Scott (Created page with "===Purpose=== Returns the skewness statistic for a vector or matrix. ===Synopsis=== : k = skewness(x) : k = skewness(x,flag,dim) ===Description=== Returns the skewness st...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Returns the skewness statistic for a vector or matrix.

Synopsis

k = skewness(x)
k = skewness(x,flag,dim)

Description

Returns the skewness statistic for a vector or matrix, x. Missing data is ignored for the calculation.

Inputs

  • x = Vector or matrix.

Optional Inputs

  • flag = bias-correction disable flag. When set to 0 (zero), the skewness is corrected for sampling bias. Default is 1 (one) to return the uncorrected skewness. The correction for bias is done by the formula:
s = sqrt(n*(n-1))/(n-2) * s
where n is the number of non-missing elements in the given column of x.
  • dim = dimension of x over which to calculate the skewness. Default is 1, over rows (skewness calculated down columns.)

Outputs

  • s = skewness of x over the specified dimension (dim).

See Also

kurtosis