Page 87 - Computational Statistics Handbook with MATLAB
P. 87
Chapter 3: Sampling Concepts 73
3.6 MATLAB Code
The MATLAB Statistics Toolbox has functions for calculating the maximum
likelihood estimates for most of the common distributions, including the
gamma and the Weibull distributions. It is important to remember that the
parameters estimated for some of the distributions (e.g., exponential and
gamma) are different from those defined in Chapters 2 and 3. We refer the
reader to Appendix E for a complete list of the functions appropriate to this
chapter. Table 3.2 provides a partial list of MATLAB functions for calculating
statistics.We also provide some functions for statistics with the Computa-
tional Statistics Toolbox. These are summarized in Table 3.3.
AB
3
T
A
B
B
E3
E
TA A BL LE L L E 3.2 .2 .2
T
.2
T
3
List of MATLAB functions for calculating statistics
Purpose MATLAB Function
These functions are available in the mean
standard MATLAB package. var
std
cov
median
corrcoef
max, min
sort
These functions for calculating harmmean
descriptive statistics are available in the iqr
MATLAB Statistics Toolbox. kurtosis
mad
moment
prctile
range
skewness
trimmean
These MATLAB Statistics Toolbox betafit
functions provide the maximum binofit
likelihood estimates for distributions. expfit
gamfit
normfit
poissfit
weibfit
unifit
mle
© 2002 by Chapman & Hall/CRC