Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Matrix Data Sets in Statistics
Description
This help page describes how to use Statistics commands on spreadsheet-type data in matrices.
Many of the data sets you might encounter are two-dimensional in nature. They will have information about a number of items or events; for each item or event, the same properties are known. Such data sets can easily be represented in a Matrix by having each row of the Matrix correspond to an item and each column to one property of all these items. This is how you would typically store such data in a spreadsheet.
Many commands in the Statistics package can be used with this type of data:
Statistics[SplitByColumn] and Statistics[Join] split Matrices into submatrices and join them back together.
The following commands can be run on Matrix data sets; they are computed per column and the results are returned in a row Vector:
AbsoluteDeviation
CentralMoment
Count
CountMissing
Cumulant
DataSummary
Decile
ExpectedValue
FivePointSummary
GeometricMean
HarmonicMean
InterquartileRange
Kurtosis
Mean
MeanDeviation
Median
MedianDeviation
Mode
Moment
Percentile
QuadraticMean
Quantile
Quartile
Range
Skewness
StandardDeviation
StandardError
StandardizedMoment
TrimmedMean
Variance
Variation
WindsorizedMean
Examples
We construct a Matrix with housing data. The first column has number of bedrooms, the second has number of square feet, the third has price.
We can create box plots of the price for subgroups of sales defined by number of bedrooms.
We can determine the average area and price for the whole data set and for the sets with , , and bedrooms. For the latter, we use the elementwise version of Mean by appending a tilde to the command.
We can also determine the standard error for this mean.
Or the 30th percentile for each column.
Some commands have calling sequences where one of the arguments is compared to the data; this is the case for the second argument of AbsoluteDeviation and for the origin parameter of Moment. In these cases, it typically doesn't make much sense to use the same value for each column, so Maple supports using a list or Vector of values instead.
Download Help Document