Skewness Explained

In probability theory and statistics, skewness is a measure of the asymmetry of the probability distribution of a real-valued random variable about its mean. The skewness value can be positive, zero, negative, or undefined.

For a unimodal distribution (a distribution with a single peak), negative skew commonly indicates that the tail is on the left side of the distribution, and positive skew indicates that the tail is on the right. In cases where one tail is long but the other tail is fat, skewness does not obey a simple rule. For example, a zero value in skewness means that the tails on both sides of the mean balance out overall; this is the case for a symmetric distribution but can also be true for an asymmetric distribution where one tail is long and thin, and the other is short but fat. Thus, the judgement on the symmetry of a given distribution by using only its skewness is risky; the distribution shape must be taken into account.

Introduction

Consider the two distributions in the figure just below. Within each graph, the values on the right side of the distribution taper differently from the values on the left side. These tapering sides are called tails, and they provide a visual means to determine which of the two kinds of skewness a distribution has:

  1. : The left tail is longer; the mass of the distribution is concentrated on the right of the figure. The distribution is said to be left-skewed, left-tailed, or skewed to the left, despite the fact that the curve itself appears to be skewed or leaning to the right; left instead refers to the left tail being drawn out and, often, the mean being skewed to the left of a typical center of the data. A left-skewed distribution usually appears as a right-leaning curve.[1]
  2. : The right tail is longer; the mass of the distribution is concentrated on the left of the figure. The distribution is said to be right-skewed, right-tailed, or skewed to the right, despite the fact that the curve itself appears to be skewed or leaning to the left; right instead refers to the right tail being drawn out and, often, the mean being skewed to the right of a typical center of the data. A right-skewed distribution usually appears as a left-leaning curve.

Skewness in a data series may sometimes be observed not only graphically but by simple inspection of the values. For instance, consider the numeric sequence (49, 50, 51), whose values are evenly distributed around a central value of 50. We can transform this sequence into a negatively skewed distribution by adding a value far below the mean, which is probably a negative outlier, e.g. (40, 49, 50, 51). Therefore, the mean of the sequence becomes 47.5, and the median is 49.5. Based on the formula of nonparametric skew, defined as

(\mu-\nu)/\sigma,

the skew is negative. Similarly, we can make the sequence positively skewed by adding a value far above the mean, which is probably a positive outlier, e.g. (49, 50, 51, 60), where the mean is 52.5, and the median is 50.5.

As mentioned earlier, a unimodal distribution with zero value of skewness does not imply that this distribution is symmetric necessarily. However, a symmetric unimodal or multimodal distribution always has zero skewness.

Relationship of mean and median

The skewness is not directly related to the relationship between the mean and median: a distribution with negative skew can have its mean greater than or less than the median, and likewise for positive skew.[2] In the older notion of nonparametric skew, defined as

(\mu-\nu)/\sigma,

where

\mu

is the mean,

\nu

is the median, and

\sigma

is the standard deviation, the skewness is defined in terms of this relationship: positive/right nonparametric skew means the mean is greater than (to the right of) the median, while negative/left nonparametric skew means the mean is less than (to the left of) the median. However, the modern definition of skewness and the traditional nonparametric definition do not always have the same sign: while they agree for some families of distributions, they differ in some of the cases, and conflating them is misleading.

If the distribution is symmetric, then the mean is equal to the median, and the distribution has zero skewness.[3] If the distribution is both symmetric and unimodal, then the mean = median = mode. This is the case of a coin toss or the series 1,2,3,4,... Note, however, that the converse is not true in general, i.e. zero skewness (defined below) does not imply that the mean is equal to the median.

A 2005 journal article points out:[2]

Many textbooks teach a rule of thumb stating that the mean is right of the median under right skew, and left of the median under left skew. This rule fails with surprising frequency. It can fail in multimodal distributions, or in distributions where one tail is long but the other is heavy. Most commonly, though, the rule fails in discrete distributions where the areas to the left and right of the median are not equal. Such distributions not only contradict the textbook relationship between mean, median, and skew, they also contradict the textbook interpretation of the median.
For example, in the distribution of adult residents across US households, the skew is to the right. However, since the majority of cases is less than or equal to the mode, which is also the median, the mean sits in the heavier left tail. As a result, the rule of thumb that the mean is right of the median under right skew failed.

Definition

Fisher's moment coefficient of skewness

The skewness

\gamma1

of a random variable X is the third standardized moment

\tilde{\mu}3

, defined as:

\gamma1:=\tilde{\mu}3=\operatorname{E}\left[\left(

X-\mu
\sigma

\right)3\right] =

\mu3
\sigma3

=

\operatorname{E
\left[(X-\mu)

3\right]}{(\operatorname{E}\left[(X-\mu)2\right])3/2

} = \frac where μ is the mean, σ is the standard deviation, E is the expectation operator, μ3 is the third central moment, and κt are the t-th cumulants. It is sometimes referred to as Pearson's moment coefficient of skewness,[4] or simply the moment coefficient of skewness,[5] but should not be confused with Pearson's other skewness statistics (see below). The last equality expresses skewness in terms of the ratio of the third cumulant κ3 to the 1.5th power of the second cumulant κ2. This is analogous to the definition of kurtosis as the fourth cumulant normalized by the square of the second cumulant. The skewness is also sometimes denoted Skew[''X''].

If σ is finite and μ is finite too, then skewness can be expressed in terms of the non-central moment E[''X''<sup>3</sup>] by expanding the previous formula:

\begin{align} \tilde{\mu}3 &=\operatorname{E}\left[\left(

X-\mu
\sigma

\right)3\right]\\ &=

\operatorname{E
[X

3]-3\mu\operatornameE[X2]+3\mu2\operatornameE[X]-\mu3}{\sigma3}\\ &=

\operatorname{E
[X

3]-3\mu(\operatornameE[X2]-\mu\operatornameE[X])-\mu3}{\sigma3}\\ &=

\operatorname{E
[X

3]-3\mu\sigma2-\mu3}{\sigma3}. \end{align}

Examples

Skewness can be infinite, as when

\Pr\left[X>x\right]=x-2forx>1,\Pr[X<1]=0

where the third cumulants are infinite, or as when

\Pr[X<x]=(1-x)-3/2fornegativexand\Pr[X>x]=(1+x)-3/2forpositivex.

where the third cumulant is undefined.

Examples of distributions with finite skewness include the following.

Sample skewness

For a sample of n values, two natural estimators of the population skewness are[6]

b1=

m3
s3

=

\tfrac{1
n
n
\sum
i=1
3}{\left[\tfrac{1}{n-1}
(x
i-\overline{x})
n
\sum
i=1
2
(x
i-\overline{x})

\right]3/2

}

and

g1=

m3
3/2
m
2

=

\tfrac{1
n
n
\sum
i=1
3}{\left[\tfrac{1}{n}
(x
i-\overline{x})
n
\sum
i=1
2
(x
i-\overline{x})

\right]3/2

},

where

\overline{x}

is the sample mean, s is the sample standard deviation, m2 is the (biased) sample second central moment, and m3 is the (biased) sample third central moment.[6]

g1

is a method of moments estimator.

Another common definition of the sample skewness is[6] [7]

\begin{align} G1&=

k3
3/2
k
2

=

n2
(n-1)(n-2)

b1=

\sqrt{n(n-1)
}\; g_1, \\\end

where

k3

is the unique symmetric unbiased estimator of the third cumulant and

k2=s2

is the symmetric unbiased estimator of the second cumulant (i.e. the sample variance). This adjusted Fisher–Pearson standardized moment coefficient

G1

is the version found in Excel and several statistical packages including Minitab, SAS and SPSS.[7]

Under the assumption that the underlying random variable

X

is normally distributed, it can be shown that all three ratios

b1

,

g1

and

G1

are unbiased and consistent estimators of the population skewness

\gamma1=0

, with

\sqrt{n}b1l{\xrightarrow{d}}N(0,6)

, i.e., their distributions converge to a normal distribution with mean 0 and variance 6 (Fisher, 1930).[6] The variance of the sample skewness is thus approximately

6/n

for sufficiently large samples. More precisely, in a random sample of size n from a normal distribution,[8] [9]

\operatorname{var}(G1)=

6n(n-1)
(n-2)(n+1)(n+3)

.

In normal samples,

b1

has the smaller variance of the three estimators, with[6]

\operatorname{var}(b1)<\operatorname{var}(g1)<\operatorname{var}(G1).

For non-normal distributions,

b1

,

g1

and

G1

are generally biased estimators of the population skewness

\gamma1

; their expected values can even have the opposite sign from the true skewness. For instance, a mixed distribution consisting of very thin Gaussians centred at −99, 0.5, and 2 with weights 0.01, 0.66, and 0.33 has a skewness

\gamma1

of about −9.77, but in a sample of 3

G1

has an expected value of about 0.32, since usually all three samples are in the positive-valued part of the distribution, which is skewed the other way.

Applications

Skewness is a descriptive statistic that can be used in conjunction with the histogram and the normal quantile plot to characterize the data or distribution.

Skewness indicates the direction and relative magnitude of a distribution's deviation from the normal distribution.

With pronounced skewness, standard statistical inference procedures such as a confidence interval for a mean will be not only incorrect, in the sense that the true coverage level will differ from the nominal (e.g., 95%) level, but they will also result in unequal error probabilities on each side.

Skewness can be used to obtain approximate probabilities and quantiles of distributions (such as value at risk in finance) via the Cornish–Fisher expansion.

Many models assume normal distribution; i.e., data are symmetric about the mean. The normal distribution has a skewness of zero. But in reality, data points may not be perfectly symmetric. So, an understanding of the skewness of the dataset indicates whether deviations from the mean are going to be positive or negative.

D'Agostino's K-squared test is a goodness-of-fit normality test based on sample skewness and sample kurtosis.

Other measures of skewness

Other measures of skewness have been used, including simpler calculations suggested by Karl Pearson[10] (not to be confused with Pearson's moment coefficient of skewness, see above). These other measures are:

Pearson's first skewness coefficient (mode skewness)

The Pearson mode skewness, or first skewness coefficient, is defined as

.

Pearson's second skewness coefficient (median skewness)

The Pearson median skewness, or second skewness coefficient,[11] is defined as

.

Which is a simple multiple of the nonparametric skew.

Quantile-based measures

Bowley's measure of skewness (from 1901),[12] [13] also called Yule's coefficient (from 1912)[14] [15] is defined as:

{{Q
(3/4)
+{{Q}(1/4)}}{2}-{{Q}(1/2)}}{{{Q
(3/4)}-{{Q}(1/4)}}{2}} ={{Q
(3/4)}+{{Q}(1/4)}-2{{Q}(1/2)}}{{{Q}(3/4)}-{{Q}(1/4)}},
where Q is the quantile function (i.e., the inverse of the cumulative distribution function). The numerator is difference between the average of the upper and lower quartiles (a measure of location) and the median (another measure of location), while the denominator is the semi-interquartile range

({Q}(3/4)}-{{Q}(1/4))/2

, which for symmetric distributions is equal to the MAD measure of dispersion.

Other names for this measure are Galton's measure of skewness,[16] the Yule–Kendall index[17] and the quartile skewness,[18]

Similarly, Kelly's measure of skewness is defined as[19]

{{Q
(9/10)}+{{Q}(1/10)}-2{{Q}(1/2)}}{{{Q}(9/10)}-{{Q}(1/10)}}.

A more general formulation of a skewness function was described by Groeneveld, R. A. and Meeden, G. (1984):[20] [21] [22]

\gamma(u)=

Q(u)+Q(1-u)-2Q(1/2)
Q(u)-Q(1-u)

The function γ(u) satisfies −1 ≤ γ(u) ≤ 1 and is well defined without requiring the existence of any moments of the distribution.[20] Bowley's measure of skewness is γ(u) evaluated at u = 3/4 while Kelly's measure of skewness is γ(u) evaluated at u = 9/10. This definition leads to a corresponding overall measure of skewness[23] defined as the supremum of this over the range 1/2 ≤ u < 1. Another measure can be obtained by integrating the numerator and denominator of this expression.[20]

Quantile-based skewness measures are at first glance easy to interpret, but they often show significantly larger sample variations than moment-based methods. This means that often samples from a symmetric distribution (like the uniform distribution) have a large quantile-based skewness, just by chance.

Groeneveld and Meeden's coefficient

Groeneveld and Meeden have suggested, as an alternative measure of skewness,

\operatorname{skew}(X)=

(\mu-\nu)
\operatornameE(|X-\nu|)

,

where μ is the mean, ν is the median, |...| is the absolute value, and E is the expectation operator. This is closely related in form to Pearson's second skewness coefficient.

L-moments

Use of L-moments in place of moments provides a measure of skewness known as the L-skewness.[24]

Distance skewness

A value of skewness equal to zero does not imply that the probability distribution is symmetric. Thus there is a need for another measure of asymmetry that has this property: such a measure was introduced in 2000.[25] It is called distance skewness and denoted by dSkew. If X is a random variable taking values in the d-dimensional Euclidean space, X has finite expectation, X is an independent identically distributed copy of X, and

\|\|

denotes the norm in the Euclidean space, then a simple measure of asymmetry with respect to location parameter θ is

\operatorname{dSkew}(X):=1-

\operatorname{E
\|X-X'\|}{\operatorname{E}\|X+X'-2

\theta\|}if\Pr(X=\theta)\ne1

and dSkew(X) := 0 for X = θ (with probability 1). Distance skewness is always between 0 and 1, equals 0 if and only if X is diagonally symmetric with respect to θ (X and 2θ−X have the same probability distribution) and equals 1 if and only if X is a constant c (

c\theta

) with probability one.[26] Thus there is a simple consistent statistical test of diagonal symmetry based on the sample distance skewness:

\operatorname{dSkew}n(X):=1-

\sumi,j\|xi-xj\|
\sumi,j\|xi+xj-2\theta\|

.

Medcouple

The medcouple is a scale-invariant robust measure of skewness, with a breakdown point of 25%.[27] It is the median of the values of the kernel function

h(xi,xj)=

(xi-xm)-(xm-xj)
xi-xj

taken over all couples

(xi,xj)

such that

xi\geqxm\geqxj

, where

xm

is the median of the sample

\{x1,x2,\ldots,xn\}

. It can be seen as the median of all possible quantile skewness measures.

See also

References

Sources

External links

Notes and References

  1. Web site: Illowsky . Barbara . Dean . Susan . 2020-03-27 . 2.6 Skewness and the Mean, Median, and Mode – Statistics . 2022-12-21 . . en.
  2. von Hippel . Paul T. . 2005 . Mean, Median, and Skew: Correcting a Textbook Rule . dead . Journal of Statistics Education . 13 . 2 . https://web.archive.org/web/20160220181456/http://www.amstat.org/publications/jse/v13n2/vonhippel.html . 2016-02-20.
  3. Web site: 1.3.5.11. Measures of Skewness and Kurtosis . NIST. 18 March 2012.
  4. http://www.fxsolver.com/browse/formulas/Pearson's+moment+coefficient+of+skewness Pearson's moment coefficient of skewness
  5. http://brownmath.com/stat/shape.htm "Measures of Shape: Skewness and Kurtosis"
  6. Joanes . D. N. . Gill . C. A. . 1998 . Comparing measures of sample skewness and kurtosis . . 47 . 1 . 183–189 . 10.1111/1467-9884.00122.
  7. Doane, David P., and Lori E. Seward. "Measuring skewness: a forgotten statistic." Journal of Statistics Education 19.2 (2011): 1-18. (Page 7)
  8. Duncan Cramer (1997) Fundamental Statistics for Social Research. Routledge. (p 85)
  9. Kendall, M.G.; Stuart, A. (1969) The Advanced Theory of Statistics, Volume 1: Distribution Theory, 3rd Edition, Griffin. (Ex 12.9)
  10. Web site: Archived copy . 2010-04-09 . dead . https://web.archive.org/web/20100705025706/http://www.stat.upd.edu.ph/s114%20cnotes%20fcapistrano/Chapter%2010.pdf . 5 July 2010.
  11. Doane . David P. . Seward . Lori E. . 2011 . Measuring Skewness: A Forgotten Statistic? . Journal of Statistics Education . 19 . 2. 1–18 . 10.1080/10691898.2011.11889611 . free .
  12. Bowley, A. L. (1901). Elements of Statistics, P.S. King & Son, Laondon. Or in a later edition: BOWLEY, AL. "Elements of Statistics, 4th Edn (New York, Charles Scribner)."(1920).
  13. Kenney JF and Keeping ES (1962) Mathematics of Statistics, Pt. 1, 3rd ed., Van Nostrand, (page 102).
  14. Yule, George Udny. An introduction to the theory of statistics. C. Griffin, limited, 1912.
  15. Groeneveld . Richard A . 1991 . An influence function approach to describing the skewness of a distribution . The American Statistician . 45 . 2. 97–102 . 10.2307/2684367 . 2684367 .
  16. p. 3 and p. 40
  17. Wilks DS (1995) Statistical Methods in the Atmospheric Sciences, p 27. Academic Press.
  18. Web site: Skewness. Weisstein. Eric W.. mathworld.wolfram.com. en. 2019-11-21.
  19. Web site: Applied Statistics I: Chapter 5: Measures of skewness . A.W.L. Pubudu Thilan . University of Ruhuna . 21.
  20. 10.2307/2987742 . Groeneveld . R.A. . Meeden . G. . 1984 . Measuring Skewness and Kurtosis . 2987742. The Statistician . 33 . 4. 391–399 .
  21. MacGillivray (1992)
  22. Hinkley DV (1975) "On power transformations to symmetry", Biometrika, 62, 101–111
  23. MacGillivray (1992)
  24. Hosking . J.R.M. . 1992 . Moments or L moments? An example comparing two measures of distributional shape . The American Statistician . 46 . 3 . 186–189 . 2685210 . 10.2307/2685210.
  25. Szekely, G.J. (2000). "Pre-limit and post-limit theorems for statistics", In: Statistics for the 21st Century (eds. C. R. Rao and G. J. Szekely), Dekker, New York, pp. 411–422.
  26. Szekely, G. J. and Mori, T. F. (2001) "A characteristic measure of asymmetry and its application for testing diagonal symmetry", Communications in Statistics – Theory and Methods 30/8&9, 1633–1639.
  27. G. Brys. M. Hubert. Mia Hubert. A. Struyf. November 2004. A Robust Measure of Skewness. Journal of Computational and Graphical Statistics. 13. 4. 996–1017. 10.1198/106186004X12632. 120919149 .