skewness(x, na.rm = FALSE, method = c("moment", "fisher", "sample"), ...)
"moment"
or "fisher"
The "moment"
method is based on the definitions of skewnessfor distributions; these forms
should be used when resampling (bootstrap or jackknife). The "fisher"
method correspond to the usual "unbiased" definition of sample variance,
although in the case of skewness exact unbiasedness is not possible. The
"sample"
method gives the sample skewness of the distribution.checkData and column support.
where $n$ is the number of return, $\overline{r}$ is the mean of the return distribution, $\sigma_P$ is its standard deviation and $\sigma_{S_P}$ is its sample standard deviation
kurtosis
## mean -
## var -
# Mean, Variance:
r = rnorm(100)
mean(r)
var(r)
## skewness -
skewness(r)
data(managers)
skewness(managers)
Run the code above in your browser using DataLab