compute the frequency table for a data sample - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Statistics : Statistics Package : Summary and Tabulation : Statistics/FrequencyTable

Statistics[FrequencyTable] - compute the frequency table for a data sample

Calling Sequence

FrequencyTable(A, options)




data sample



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



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.



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.



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 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.


weights=Vector -- 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.


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.




A:= 1 .. 601 ArrayData Type: anythingStorage: rectangularOrder: Fortran_order





Try fewer bins.


RangeAbsolute FrequencyPercentageCumulative FrequencyCumulative Percentage101...301.193.32.11314476193.32.11314476301...501.206.34.27620632399.66.38935108501...701.202.33.61064892601.100.


Consider a data set with missing values.


B:= 1 .. 301 ArrayData Type: anythingStorage: rectangularOrder: Fortran_order








Try weighted data.


C:= 1 .. 11 ArrayData Type: anythingStorage: rectangularOrder: Fortran_order



W:= 1 .. 11 ArrayData Type: anythingStorage: rectangularOrder: Fortran_order





See Also

Statistics, Statistics[Computation], Statistics[DescriptiveStatistics], Statistics[Tally], Statistics[TallyInto]



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

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam