Student[Statistics] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Packages : Statistics : Student/Statistics/DataSummary

Student[Statistics]

  

DataSummary

  

compute six summary statistics for a data sample

 

Calling Sequence

Parameters

Description

Computation

Examples

References

Compatibility

Calling Sequence

DataSummary(A, numeric_option, output_option, quantity_option)

DataSummary(M, numeric_option, output_option, quantity_option)

Parameters

A

-

data sample

M

-

Matrix data sample

numeric_option

-

(optional) equation of the form numeric=value where value is true or false

output_option

-

(optional) equation of the form output=x where x is value, plot, or both

quantity_option

-

(optional) equation of the form quantity=y where y is one of mean, standarddeviation, skewness, kurtosis, minimum and maximum, or a list of these names

Description

• 

The DataSummary function computes six summary statistics for the input data set. These include the mean, standard deviation, coefficient of skewness, coefficient of kurtosis, minimum and maximum of the sample. By default the DataSummary command returns a list of equations of the form quantity=value where quantity is one of mean, standarddeviation, skewness, kurtosis, minimum, or maximum.

• 

The first parameter can be a data sample (e.g., a Vector), or a Matrix data sample.

• 

If the option quantity is not included, then data summary is a list of equations defining the mean, standard deviation, coefficient of skewness, coefficient of kurtosis, minimum and maximum. If quantity is one of the names mean, standarddeviation, skewness, kurtosis, minimum, or maximum, then the data summary is just that value. Finally, if quantity is a list of these names, then the data summary is a list of equations defining these quantities.

• 

If the option output is not included or is specified to be output=value, then the function will return the value of the data summary. If output=plot is specified, then the function will return a plot of the input data set and all of its statistics. If output=both is specified, then both the value and the plot of the data summary will be returned.

Computation

• 

If there are floating point values or the option numeric is included, then the computation is done in floating point. Otherwise the computation is exact.

• 

If the option output is not included or is specified to be output= value, then the function will return the data summary: those statistics specified by the expect option, or all of them if the expect option is not present. If output=plot is specified, then the function will return a plot of the input data set and all selected statistics. If output=both is specified, then both the value and the plot of the data summary will be returned.

Examples

withStudentStatistics:

Compute the data summary of the following data sample.

A4,Pi,ⅇ3

4πⅇ3

(1)

DataSummaryA,quantity=mean

43+π3+ⅇ33

(2)

Use numeric option.

DataSummaryA,numeric

mean=6.40904319225915,standarddeviation=12.3707496533778,skewness=0.368551181161869,kurtosis=0.999999999227709,minimum=−4.,maximum=20.08553692

(3)

If you specify quantity=[mean,maximum], then only the mean and the maximum will be returned.

DataSummaryA,quantity=mean,maximum

43+π3+ⅇ33,ⅇ3

(4)

If output=plot is specified, then a plot will be returned.

DataSummaryA,output=plot

Consider the following Matrix data sample.

MMatrix3,1130,114694,4,1527,127368,3,907,88464,2,878,96484,4,995,128007

31130114694415271273683907884642878964844995128007

(5)

Compute the data summary of each of the columns.

DataSummaryM,numeric

mean=3.2,standarddeviation=0.8366600265340756,skewness=0.3073444995431305,kurtosis=1.4775510204081637,minimum=2.,maximum=4.mean=1087.4,standarddeviation=264.57191838893254,skewness=0.9339774575409037,kurtosis=2.0614694674978806,minimum=878.,maximum=1527.mean=1.110034105,standarddeviation=17953.973120175935,skewness=0.22301188518436266,kurtosis=1.1020141039120812,minimum=88464.,maximum=1.28007105

(6)

Specify the output=both option to obtain both the value and plot of the data summary.

datasummary,graphDataSummaryM,numeric,output=both

datasummary,graphmean=3.20000000000000,standarddeviation=0.836660026534076,skewness=−0.307344499543130,kurtosis=1.47755102040816,minimum=2.,maximum=4.mean=1087.40000000000,standarddeviation=264.571918388933,skewness=0.933977457540904,kurtosis=2.06146946749788,minimum=878.,maximum=1527.mean=111003.400000000,standarddeviation=17953.9731201759,skewness=−0.223011885184363,kurtosis=1.10201410391208,minimum=88464.,maximum=128007.,

(7)

datasummary

mean=3.2,standarddeviation=0.8366600265340756,skewness=0.3073444995431305,kurtosis=1.4775510204081637,minimum=2.,maximum=4.mean=1087.4,standarddeviation=264.57191838893254,skewness=0.9339774575409037,kurtosis=2.0614694674978806,minimum=878.,maximum=1527.mean=1.110034105,standarddeviation=17953.973120175935,skewness=0.22301188518436266,kurtosis=1.1020141039120812,minimum=88464.,maximum=1.28007105

(8)

graph

References

  

Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.

Compatibility

• 

The Student[Statistics][DataSummary] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

Statistics[DataSummary]

Student[Statistics]

Student[Statistics][Kurtosis]

Student[Statistics][Mean]

Student[Statistics][Skewness]

Student[Statistics][StandardDeviation]