Overview of the stats[describe] Subpackage
Calling Sequence
Description
List of stats[describe] Subpackage Commands
Examples
References
stats[describe][command](arguments)
command(arguments)
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The stats[describe] subpackage provides various descriptive statistical functions for the analysis of statistical data.
Each command in the stats[describe] package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
The following is a list of available commands.
coefficientofvariation
count
countmissing
covariance
decile
geometricmean
gaps
harmonicmean
kurtosis
linearcorrelation
mean
meandeviation
median
mode
moment
percentile
quadraticmean
quantile
quartile
range
skewness
standarddeviation
sumdata
variance
To display the help page for a particular stats[describe] command, see Getting Help with a Command in a Package.
The descriptive statistics functions are used to reduce each data sets to single numbers. Measures of central tendencies, such as the mean, or the median, represent data sets by values that are considered typical. Measures of dispersion, such as the standard deviation, are used to measure the spread of the data. The skewness measures the departure from symmetry of a distribution. The kurtosis measures the flatness of a distribution.
If a particular call cannot be evaluated, for example trying to find the mode of a statistical list that contains a non numerical entry, then the call is returned unevaluated. Information is provided in the variable `stats/lasterror` as to the reason why a call was not evaluated. Also, this information is automatically given if infolevel[stats] has a value greater than or equal to one, prior to the unsuccessful call.
See stats[data] on how to represent data for the stats package. The help page describe[gaps] provides more information about gaps between classes.
Some commands either require or use parameters in addition to the data given as arguments. These parameters appear as an index to the command name. For an example, see describe[standarddeviation].
with⁡stats:
data≔Weight⁡3,10,missing,4,Weight⁡11..12,3
describemean⁡data
13728
describestandarddeviation⁡data
938528
For standard deviation of a sample use
describestandarddeviation1⁡data
1708070364
Third moment about the mean:
describemoment3,mean⁡data
1561652744
In floating points, this is:
evalf⁡
56.91144315
A list of operations can be formed to apply on the same data
description_functions≔describecount,describemean,describevariance:
description_functions⁡data
14,13728,9385784
quartiles≔describequartile1,describequartile2,describequartile3:
quartiles⁡data
3,3,72
There are various books where more details about descriptive statistics can be found. An example of an introductory text is Murray R. Spiegel, Schaum's Outline of Theory and Problems of Statistics, Second Edition, McGraw-Hill, 1988. Of particular relevance to the describe subpackage are chapters 3,4,5, and 14.
See Also
Statistics[DescriptiveStatistics]
stats(deprecated)
Download Help Document