Part 1 - Section 5: Measures of Concentration
This chapter covers basic information regarding data visualisation using R.
A data dashboard is a data-visualization tool that illustrates multiple metrics and automatically updates these metrics as new data become available. It is like an automobile's dashboard instrumentation that provides information on the vehicle's current speed, fuel level, and engine temperature so that a driver can access current operating conditions and take effective action. Similarly, a data dashboard provides the important metrics that mahages need to quickly assess the performance of their organization and react accordingly.
We start with some basic definitions. Let X be a discrete random varibale. Its r-th moment is defined by the formula
Moments can be calculated with R as follows:
or
Another option is to use the function moment from the e1071 package. As it is not in the core R library, the package has to be installed and loaded into the R workspace.
The sample skewness is defined by the formula
To calculate the skewness coefficient (of eruptions) one needs the function skewness from the e1071 package. As the package is not in the core R library, it has to be installed and loaded into the R workspace.
The kurtosis of a univariate population is defined by the following formula, ... moments . Intuitively, the kurtosis describes the tail shape of the data distribution. The normal distribution has zero kurtosis and thus the standard tail shape. It is said to be mesokurtic . ...
The sample kurtosis is defined by formula
Note that Excel functions SKEW and KURT calculate skewness and kurtosis by formulas