describe(deprecated)/sumdata - Maple Help

stats[describe]

 sumdata
 Sum powers of Statistical List

 Calling Sequence stats[describe, sumdata[which, origin]](data) describe[sumdata[which, origin, Nconstraint]](data)

Parameters

 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.

Description

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

Examples

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

 > $\mathrm{with}\left(\mathrm{stats}\right):$
 > $\mathrm{data}≔\left[1,3,5\right]$
 ${\mathrm{data}}{≔}\left[{1}{,}{3}{,}{5}\right]$ (1)

Sum of third power about 0:

 > ${\mathrm{describe}}_{{\mathrm{sumdata}}_{3}}\left(\mathrm{data}\right)={1}^{3}+{3}^{3}+{5}^{3}$
 ${153}{=}{153}$ (2)

Sum of fourth power about 1:

 > ${\mathrm{describe}}_{{\mathrm{sumdata}}_{4,1}}\left(\mathrm{data}\right)={\left(1-1\right)}^{4}+{\left(3-1\right)}^{4}+{\left(5-1\right)}^{4}$
 ${272}{=}{272}$ (3)

Sum of fifth power about the mean

 > ${\mathrm{describe}}_{{\mathrm{moment}}_{5,\mathrm{mean}}}\left(\mathrm{data}\right)={\left(1-3\right)}^{5}+{\left(3-3\right)}^{5}+{\left(5-3\right)}^{5}$
 ${0}{=}{0}$ (4)