transform(deprecated)/cumulativefrequency - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : transform(deprecated)/cumulativefrequency

stats[transform, cumulativefrequency] - partial sums of frequencies

Calling Sequence

stats[transform, cumulativefrequency](data)

transform[cumulativefrequency](data)

Parameters

data

-

statistical list

Description

• 

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

• 

The function cumulativefrequency of the subpackage stats[transform, ...] computes the partial sums of the frequencies in the given data.

• 

The data is used in its given order, and missing data is taken into consideration.

• 

Cumulative frequencies are useful in constructing cumulative distributions and cumulative frequency polygons (or ogives). Ogives are plots of the cumulative frequencies against the upper class boundaries.

• 

If the total weight of the data is scaled to one (see transform[scaleweight] and describe[count]), prior to the call to cumulativefrequency then the relative cumulative frequency distribution is obtained. If the weight is scaled to 100, the percentage cumulative frequency distribution attains. The corresponding ogive is referred to as  the percentage ogive. A closely related graph is the quantile plot, see statplots[quantile] for more information.

Examples

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

withstats:

data1:=Weight3,10,missing,4,Weight11..12,3,15..17

data1:=Weight3,10,missing,4,Weight11..12,3,15..17

(1)

This is obtained as follows:

10,10+1,10+1+1,10+1+1+3,10+1+1+3+1

10,11,12,15,16

(2)

transformcumulativefrequencydata1

10,11,12,15,16

(3)

The next few steps show the construction of an ogive.

data2:=Weight1..5,2,Weight6..10,3,Weight11..15,1

data2:=Weight1..5,2,Weight6..10,3,Weight11..15,1

(4)

Upper range of classes:

classes:=transformstatvaluedata2

classes:=1..5,6..10,11..15

(5)

upper_classes:=mapx→op2,x,classes

upper_classes:=5,10,15

(6)

Cumulative frequencies

data2cumulative:=transformcumulativefrequencydata2

data2cumulative:=2,5,6

(7)

Points of the ogive

ogive:=zipx,y→x,y,upper_classes,data2cumulative

ogive:=5,2,10,5,15,6

(8)

Display the result. (Make the ogive start at the origin).

plot0,0,opogive,title=`Cumulative frequency distribution`:

See Also

Statistics, statplots(deprecated)[quantile], stats(deprecated)[data], stats(deprecated)[transform], transform(deprecated)[frequency], transform(deprecated)[statvalue]


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