stats[describe]
sumdata
Sum powers of Statistical List
Calling Sequence
Parameters
Description
Examples
stats[describe, sumdata[which, origin]](data)
describe[sumdata[which, origin, Nconstraint]](data)
data
-
statistical list
which
(optional, default=1) value that specifies the required power
origin
(optional, default=0) the quantity about which the moment is computed.
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function sumdata of the subpackage stats[describe, ...] computes sums of the various powers of the given data about any origin.
The sum of r-th power about an origin R is computed as follows: S_R:= sum( (X-R)^r ).
The function sumdata is closely related to the function moment.
The value of origin can be either a number, or the various descriptive statistic functions that can be specified via stats[describe, descriptive statistic function].
Classes are assumed to be represented by the class mark, for example 10..12 has the value 11. Missing data are ignored.
The command with(stats[describe],sumdata) allows the use of the abbreviated form of this command.
with⁡stats:
data≔1,3,5
Sum of third power about 0:
describesumdata3⁡data=13+33+53
153=153
Sum of fourth power about 1:
describesumdata4,1⁡data=1−14+3−14+5−14
272=272
Sum of fifth power about the mean
describemoment5,mean⁡data=1−35+3−35+5−35
0=0
See Also
describe(deprecated)[kurtosis]
describe(deprecated)[mean]
describe(deprecated)[standarddeviation]
describe(deprecated)[variance]
Statistics
transform(deprecated)[classmark]
Download Help Document