Section 1.7 Other Statistical Point Measures
Above, we have investigated statistical measures that help determine the middle and the spread of a given data set. There are however other metrics available that help describe the distribution of that data. Skewness is one of those metrics and describes any lack of symmetry of the data set’s distribution and whether data is stretched out to one side or the other.
Consider a standard die (a cube with six sides often used in games) and pick a desired side. Continue to roll the die until that side appears the first time and report the number of rolls that it took. Repeat this experiment 12 times and collect the various responses.
- Collect the response numbers on a number line.
- What would be the set of "possible" response numbers?
- Discuss whether you would ever get a response number of (say) 50 rolls.
- Would you expect any symmetries in general if this experiment were repeated a large number of times?
Definition 1.7.2. Skewness.
A positive skewness indicates that the positive terms (likewise terms) overwhelm the negative terms. So, a positive skewness indicates that the data set is strung out to the right. Likewise, a negative skewness indicates a data set that is strung out to the left.
Definition 1.7.3. Kurtosis.
Data might tend to be clustered around the mean. The "kurtosis" can be used to measure how closely data resembles a "bell-shaped" collection. However, note that data values that are far from the mean will generate relatively larger contributions when the difference in the formula is raised to the fourth power. So, the kurtosis that is relatively large can indicate the presence of "outliers"...that is, a significant number of data values far from the mean. In this case, notice that that would also preclude the clumping of data in the middle (since lots are far from the middle) and so a possibly flatter distribution would be indicated by a larger kurtosis.
A kurtosis of 3 indicates that the data is perfectly bell shaped (a "normal" distribution).
Theorem 1.7.4. Alternate Formulas for Skewness and Kurtosis.
Skewness =Proof.
For skewness, expand the cubic and break up the sum. Factoring out constants (such as ) gives
and divide by the cube of the standard deviation to finish. Note that the first expansion in the derivation above can be used quickly if the data is collected in a table and powers easily computed.
For kurtosis, similarly expand the quartic and break up the sum as before. Then,
and then divide by the fourth power of the standard deviation. Note again that the first expansion in the derivation above might also be a useful shortcut.
The interactive cell below creates the various sample measures using the original formulas and then recreates them using the alternate formulas.
xxxxxxxxxx
x <- faithful$eruptions
n <- length(x)
print(paste("n = ", n))
## Compute the 3rd absolute centered moment
m <- sum(x)/n
print(paste("mean = ", m))
v <- sum((x-m)^2)/n
ssq <- (n/(n-1))*v
s <- sqrt(ssq)
print(paste("variance = ", ssq))
skew <- (sum((x-m)^3)/(n-1))/s^3
print(paste("skewness = ", skew))
kurt <- (sum((x-m)^4)/(n-1))/s^4
print(paste("kurtosis = ", kurt))
print(paste('Now, using the alternate formulas for variance, skewness, and kurtosis'))
# Compute the average of the moments
m1 <- sum(x)/n
m2 <- sum(x^2)/n
m3 <- sum(x^3)/n
m4 <- sum(x^4)/n
print(paste("mean = ", m1))
v <- m2 - m1^2
ssq <- (n/(n-1))*v
s <- sqrt(ssq)
print(paste("variance = ", ssq))
skew <- (n/(n-1))*(m3 - 3*m1*m2+2*m1^3)/s^3
print(paste("skewness = ", skew))
kurt <- (n/(n-1))*(m4-4*m1*m3+6*m1^2*m2-3*m1^4)/s^4
print(paste("kurtosis = ", kurt))
hist(x)
print(paste("Compare the shape of this grouped data with the metrics computed above."))
It should be noted that there are other possible ways to come up with interesting alternate ways to compute the kurtosis, etc. based on previous values. The ones presented above relate back to the mean and variance whose values might be more readily obtained from calculators for example.
Going back to a previous example...
Computing skewness and kurtosis by hand can often be better organized using a table. Below, notice that the column would be the given data values but the other columns you could again easily compute. Table 1.7.5. Computing data statistics by hand
So, and as before and so
1 | 1 | 1 | 1 |
-1 | 1 | -1 | 1 |
0 | 0 | 0 | 0 |
2 | 4 | 8 | 16 |
2 | 4 | 8 | 16 |
5 | 25 | 125 | 625 |
and
and kurtosis of
Of course, these expanded formulas are much more useful when the data set is significantly larger.