transform(deprecated)/divideby - Help

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

data1:=10,20,30,40

(1)

transform[divideby[4]]data1

52,5,152,10

(2)

Mdescribe[mean]data1

M:=25

(3)

transform[divideby[mean]]data1=transform[divideby[M]]data1

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

(4)

Compare with another distribution

data210,24,26,40

data2:=10,24,26,40

(5)

describe[mean]data2

25

(6)

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

transform[divideby[mean]]data1:evalf

25.

(7)

transform[divideby[mean]]data2:evalf

25.

(8)

plotzipx,y→x,y,,:

See Also

describe(deprecated)[mean]

describe(deprecated)[standarddeviation]

Statistics

transform(deprecated)[apply]

transform(deprecated)[multiapply]

transform(deprecated)[standardscore]

transform(deprecated)[subtractfrom]

 


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