FrequencyTable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Statistics

  

FrequencyTable

  

compute the frequency table for a data sample

 

Calling Sequence

Parameters

Options

Description

Computation

Examples

References

Compatibility

Calling Sequence

FrequencyTable(A, options)

Parameters

A

-

data sample

options

-

(optional) equation(s) of the form option=value where option is one of bins, headers, ignore, summarize, tableweights, or weights; specify options for the FrequencyTable function

Options

  

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.

• 

bins : posint; If this option is set, every data range will be subdivided into the given number of equal subintervals. Note that each subinterval except for the last one is considered closed from the left and open from the right; the last subinterval in each range includes both endpoints. The default value of bins is 10 if only one range is given and 1 if multiple ranges are given.

• 

headers : truefalse; If this option is set to true, the returned array contains the header information for each of the columns. The default is false.

• 

ignore : truefalse; This option controls how missing data is handled by the FrequencyTable 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.

• 

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 .

Description

• 

The FrequencyTable command computes the frequency table for the data set A. This is done by subdividing all data from A into the specified number of ranges of equal size and computing the number of observations falling in each range. The ranges are considered closed from the left and open from the right, the rightmost range is also closed from the right. The FrequencyTable command returns a 5-column Array. The first column contains the ranges. The remaining four columns contain the absolute frequency, the percentage, the cumulative frequency and the cumulative percentage of the data.

• 

The first parameter A is the data set - such as a Vector.

Computation

• 

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.

Examples

(1)

Try fewer bins.

(2)

Consider a data set with missing values.

(3)

(4)

Try weighted data.

(5)

(6)

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 FrequencyTable command is unchanged.

 

(7)

The tableweights option controls the width of columns in an embedded table.

 

References

  

Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.

Compatibility

• 

The headers option was introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

• 

The summarize option was introduced in Maple 2016.

• 

For more information on Maple 2016 changes, see Updates in Maple 2016.

• 

The Statistics[FrequencyTable] 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.

See Also

Statistics

Statistics[Computation]

Statistics[DescriptiveStatistics]

Statistics[Tally]

Statistics[TallyInto]

 


Download Help Document