compute the five-point summary for a data sample
data set or Matrix data set
(optional) equation(s) of the form option=value where option is one of ignore, output, summarize, tableweights, or weights; specify options for the FivePointSummary function
The options argument can contain one or more of the options shown below. Some of these options are described in more detail in the Statistics[DescriptiveStatistics] help page.
ignore : truefalse; This option controls how missing data is handled by the FivePointSummary command. Missing items are represented by undefined or Float(undefined). So, if ignore=false and A contains missing data, most of the statistics command will yield undefined. If ignore=true all missing items in A will be ignored. The default value is false.
output : default or quantity where quantity is any of minimum, lowerhinge, median, upperhinge, or maximum, indicates which quantities need be calculated. The value of this option can also be a list. In this case the FivePointSummary command will return a list of the specified quantities in the specified order.
summarize : false or embed; Display an embedded summary table. The default is false.
tableweights : list(integer); Relative weights for the Table's columns' widths. By default all columns have equal weight.
weights : Vector of data weights. The number of elements in the weights array must be equal to the number of elements in the original data sample. By default, all elements in A are assigned weight 1.
The FivePointSummary command computes the minimum, lower hinge, median, upper hinge and the maximum of a data sample. By default, the FivePointSummary command returns a column vector of equations of the form quantity=value where quantity is one of minimum, lowerhinge, median, upperhinge, or maximum.
The first parameter A is a data set (e.g., a Vector) or a Matrix data set.
All computations involving data are performed in floating-point; therefore, all data provided must have type realcons and all returned solutions are floating-point, even if the problem is specified with exact values.
For more information about computation in the Statistics package, see the Statistics[Computation] help page.
X := RandomVariable(Normal(10, 3)):
A := Sample(X, 10^4):
The FivePointSummary command returns a Vector containing the summary statistics.
FivePointSummary(A, output = [lowerhinge, upperhinge]);
Note the difference between the quantities computed by the FivePointSummary and the Quantile commands.
FivePointSummary(A, output = [lowerhinge, median, upperhinge]);
Quantile(A, [.25, .5, .75]);
Consider the following Matrix data set.
M := Matrix([[3,1130,114694],[4,1527,127368],[3,907,88464],[2,878,96484],[4,995,128007]]);
For Matrix input, the FivePointSummary command outputs a Vector containing the corresponding summary statistics by column.
results := FivePointSummary(M);
To display the summary for one of the columns:
If the input is a DataFrame object, then the result is a DataFrame that has the same column labels as the original input, and the row labels correspond to the output quantities requested.
df := DataFrame(M, columns=[a, b, c]);
df_results := FivePointSummary(df);
The summarize option makes it possible to display an embedded table containing the results. Note that the embedded table is only for display and that the returned value of the FivePointSummary command is unchanged.
results := FivePointSummary(df, summarize = embed):
Similar to the previous example, the returned value for results is the same:
The tableweights option controls the width of columns in an embedded table.
FivePointSummary(df, summarize = embed, tableweights = [4,2,2,2]):
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
The data parameter was updated in Maple 16.
The summarize option was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
The Statistics[FivePointSummary] command was updated in Maple 2019.
The tableweights option was introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
Download Help Document
What kind of issue would you like to report? (Optional)