skewness
statistical concept
≈ 12 min read
Names in other languages
- EspañolOblicuidad (probabilidad)
- Englishskewness
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Skewness in probability theory and statistics is a measure of the asymmetry of the probability distribution of a real-valued random variable about its mean. Similarly to kurtosis, it provides insights into shape-related characteristics of a distribution. 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 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 thick, 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 thick. Thus, the symmetry of a distribution cannot be inferred using only its skewness; the distribution shape must be taken into account.
If the distribution is symmetric, then the mean is equal to the median, and the distribution has zero skewness. 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: 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.
Fisher's moment coefficient of skewness
The skewness \gamma_1 of a random variable is the third standardized moment \tilde{\mu}_3 , defined as: \begin{align} \gamma_1 &:= \tilde{\mu}_3 \equiv \frac{\mu_3}{\sigma^3}\\ &= \operatorname{E}\left[\left(\frac{X-\mu}{\sigma}\right)^3 \right] = \frac{\operatorname{E}\left[(X-\mu)^3\right]}{\left( \operatorname{E}\left[ (X-\mu)^2 \right] \right)^{3/2}}\\ &= \frac{\kappa_3}{\kappa_2^{3/2}} \end{align} where is the mean, is the standard deviation, E is the expectation operator, is the third central moment, and are the -th cumulants. It is sometimes referred to as Pearson's moment coefficient of skewness, or simply the moment coefficient of skewness, 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 to the 1.5th power of the second cumulant . 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 .
If is finite and is finite too, then skewness can be expressed in terms of the non-central moments and by expanding the previous formula: \begin{align} \tilde{\mu}_3 &= \operatorname{E}\left[\left(\frac{X-\mu}{\sigma}\right)^3 \right] \\ &= \frac{\operatorname{E}[X^3] - 3\mu\operatorname E[X^2] + 3\mu^2\operatorname E[X] - \mu^3}{\sigma^3}\\ &= \frac{\operatorname{E}[X^3] - 3\mu \operatorname E[X^2] + 3\mu^2\mu - \mu^3}{\sigma^3}\\ &= \frac{\operatorname{E}[X^3] - 3\mu \operatorname E[X^2] + 2 \mu^3}{\sigma^3}. \end{align}
Examples
Skewness can be infinite, as when \Pr(X=x) = \begin{cases} x^{-2} & \text{ for } x >1, \\[2pt] 0 & \text{ for } x where the third cumulants are infinite, or as when \Pr[X 0. \end{cases} where the third cumulant is undefined. Examples of distributions with finite skewness include the following.
A normal distribution and any other symmetric distribution with finite third moment has a skewness of 0 A half-normal distribution has a skewness just below 1 An exponential distribution has a skewness of 2 A lognormal distribution can have a skewness of any positive value, depending on its parameters
Sample skewness
For a sample of n values, two natural estimators of the population skewness are b_1 = \frac{m_3}{s^3} = \frac{\tfrac{1}{n} \sum_{i=1}^n \left(x_i-\bar{x}\right)^3}{\left[\tfrac{1}{n-1} \sum_{i=1}^n \left(x_i-\bar{x}\right)^2 \right]^{3/2}} and g_1 = \frac{m_3}{m_2^{3/2}} = \frac{\tfrac{1}{n} \sum_{i=1}^n (x_i-\bar{x})^3}{\left[\tfrac{1}{n} \sum_{i=1}^n \left(x_i-\bar{x}\right)^2 \right]^{3/2}}, where \bar{x} is the sample mean, is the sample standard deviation, is the (biased) sample second central moment, and is the (biased) sample third central moment. g_1 is a method of moments estimator. Another common definition of the sample skewness is \begin{align} G_1 & = \frac{k_3}{k_2^{3/2}} = \frac{n^2}{(n-1)(n-2)}\; b_1 = \frac{\sqrt{n(n-1)}}{n-2}\; g_1, \\ \end{align} where k_3 is the unique symmetric unbiased estimator of the third cumulant and k_2 = s^2 is the symmetric unbiased estimator of the second cumulant (i.e. the sample variance).
This adjusted Fisher–Pearson standardized moment coefficient G_1 is the version found in Excel and several statistical packages including Minitab, SAS and SPSS. Under the assumption that the underlying random variable X is normally distributed, it can be shown that all three ratios b_1 , g_1 and G_1 are unbiased and consistent estimators of the population skewness \gamma_1=0 , with \sqrt{n} b_1 \mathrel{\xrightarrow{d}} N(0, 6) , i.e., their distributions converge to a normal distribution with mean 0 and variance 6 (Fisher, 1930).
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, \operatorname{var}(G_1)= \frac{6n ( n - 1 )}{ ( n - 2 )( n + 1 )( n + 3 ) } .
In normal samples, b_1 has the smaller variance of the three estimators, with \operatorname{var}(b_1) For non-normal distributions, b_1 , g_1 and G_1 are generally biased estimators of the population skewness \gamma_1 ; 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 \gamma_1 of about −9.77, but in a sample of 3 G_1 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
, median and mode of two log-normal distributions with the same medians and different skewnesses. Other measures of skewness have been used, including simpler calculations suggested by Karl Pearson (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, is defined as Which is a simple multiple of the nonparametric skew.
Quantile-based measures
Bowley's measure of skewness (from 1901), also called Yule's coefficient (from 1912) is defined as: \frac{\frac{Q(3/4) + Q(1/4)}{2} - Q(1/2)}{\frac{Q(3/4) - Q(1/4)}{2}} = \frac{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 \frac{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, the Yule–Kendall index and the quartile skewness, Similarly, Kelly's measure of skewness is defined as \frac{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): \gamma( u ) = \frac{ Q( u ) +Q( 1 - u )-2Q( 1 / 2 ) }{Q( u ) -Q( 1 - u ) } The function satisfies and is well defined without requiring the existence of any moments of the distribution.
Bowley's measure of skewness is evaluated at while Kelly's measure of skewness is evaluated at . This definition leads to a corresponding overall measure of skewness defined as the supremum of this over the range . Another measure can be obtained by integrating the numerator and denominator of this expression.
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) = \frac{\mu - \nu}{ \operatorname E( | X - \nu | ) }, where is the mean, is the median, is the absolute value, and 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.
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. It is called distance skewness and denoted by .
If X is a random variable taking values in the -dimensional Euclidean space, has finite expectation, is an independent identically distributed copy of , and \|\cdot\| denotes the norm in the Euclidean space, then a simple measure of asymmetry with respect to location parameter is \operatorname{dSkew}(X) := 1 - \frac{\operatorname{E}\|X-X'\|}{\operatorname{E}\|X+X'-2 \theta\|} \text{ if } \Pr(X=\theta)\ne 1 and for (with probability 1). Distance skewness is always between 0 and 1, equals 0 if and only if X is diagonally symmetric with respect to ( and have the same probability distribution) and equals 1 if and only if X is a constant c ( c \neq \theta ) with probability one.
Thus there is a simple consistent statistical test of diagonal symmetry based on the sample distance skewness: \operatorname{dSkew}_n(X) := 1 - \frac{\sum_{i,j} \|x_i-x_j\| }{\sum_{i,j} \|x_i+x_j-2\theta \|}.
Medcouple
The medcouple is a scale-invariant robust measure of skewness, with a breakdown point of 25%. It is the median of the values of the kernel function h(x_i, x_j) = \frac{ (x_i - x_m) - (x_m - x_j)}{x_i - x_j} taken over all couples (x_i, x_j) such that x_i \geq x_m \geq x_j , where x_m is the median of the sample \{x_1, x_2, \ldots, x_n\} .
It can be seen as the median of all possible quantile skewness measures. Skewness Measures for the Weibull Distribution On More Robust Estimation of Skewness and Kurtosis Comparison of skew estimators by Kim and White. Closed-skew Distributions — Simulation, Inversion and Parameter Estimation
Text derived from https://en.wikipedia.org/w/index.php?oldid=1378641043 under CC BY-SA 4.0; modifications have been made.