Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
stats[transform, apply] - apply a function to each item of a statistical list
Calling Sequence
stats[transform, apply[fctn]](data)
transform[apply[fctn]](data)
Parameters
fctn
-
function
data
statistical list
Description
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function apply of the subpackage stats[transform, ...] applies the requested function to the given data.
It is much easier to analyze the relationship between two sets of data when the relationship is linear. It may very well be, though, that the relationship is not linear. For example, one set of data could be made of points that are the square of the corresponding points in the other set of data. In that case, a linear relation is obtained between the square root of the first set and the original second set. The map() function can be useful in that regard, but it does not behave correctly with respect to weighted data, classes and missing data. The apply() function handles correctly the various stats data types.
Another common use of data transformation is to make the distribution more symmetric. This makes it easier to do the comparison with theoretical distributions such as the normal distribution. Transformations such as raising to a power greater than one increases the skewness to the right (in other words spreads the data towards the right), whereas a power lower than one increases the skewness to the left (the data is spread towards the left). Refer to describe[skewness] for more information on the skewness.
The requested function is applied at each boundary points of classes. To ensure correct subsequent results, the requested function must preserve the order of the boundary points. For example, the transformation does not preserve the order; therefore, the transformation is preferred.
The functions transform[divideby] and transform[remove] are specialized versions of transform[apply]. They might be more appropriate to your particular requirements.
Missing items remain unchanged.
Examples
First set of data
skew to the left
Second set of data
skew to the right
with weighted data and classes.
Here are two sets of data which are not in linear relationship.
However, taking the cube root of data5 gives a linear relationship with data4.
Compare
with
See Also
describe(deprecated)[skewness], Statistics, transform(deprecated)[divideby], transform(deprecated)[multiapply], transform(deprecated)[subtractfrom]
Download Help Document