transform(deprecated)/divideby - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

stats[transform, divideby]

divide statistical data by a number or a descriptive statistic

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

stats[transform, divideby[divisor]](data)

transform[divideby[divisor]](data)

Parameters

divisor

-

numerical value, or descriptive statistic function

data

-

statistical list

Description

• 

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

• 

The function divideby of the subpackage stats[transform, ...] divides the data by the given divisor

• 

Missing items remain unchanged.

• 

The requested division is applied at each of the boundary points of classes. To ensure correct subsequent results, the requested divisor must preserve the order of the boundary points, and so must be positive.

• 

If the divisor is not numeric, a call to stats[describe, divisor](data) is made to compute it.

• 

It is usually more meaningful to compare two distributions when they are brought to a common scale. For example, to compare the dispersion of the data, it is convenient to divide the data by some appropriate measure of the dispersion (see describe[standarddeviation] for more information on this topic. Another common divisor is to use some "typical" value of the data, in other words, to use a central measure of the data. Refer to describe[mean] for more information on this topic.

• 

The function transform[apply] is more general than transform[divideby]. A common procedure is to remove the mean from the data and then divide by the standard deviation. The function transform[standardscore] performs this transformation directly.

Examples

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

withstats:

data110,20,30,40

data110,20,30,40

(1)

transformdivideby4data1

52,5,152,10

(2)

Mdescribemeandata1

M25

(3)

transformdividebymeandata1=transformdividebyMdata1

25,45,65,85=25,45,65,85

(4)

Compare with another distribution

data210,24,26,40

data210,24,26,40

(5)

describemeandata2

25

(6)

The mean is the same. The range is the same. But the scaled data is quite different.

transformdividebymeandata1:evalf

25.

(7)

transformdividebymeandata2:evalf

25.

(8)

plotzipx,yx,y,,:

See Also

describe(deprecated)[mean]

describe(deprecated)[standarddeviation]

Statistics

transform(deprecated)[apply]

transform(deprecated)[multiapply]

transform(deprecated)[standardscore]

transform(deprecated)[subtractfrom]