Template:Short description Template:For
Template:Use American English Template:Use dmy dates
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.
IntroductionEdit
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:
- Template:Visible anchor: 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.<ref name="cnx.org">{{#invoke:citation/CS1|citation
|CitationClass=web }}</ref>
- Template:Visible anchor: 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.<ref name="cnx.org" />
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 <math>(\mu - \nu)/\sigma,</math> 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 medianEdit
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.<ref name="von Hippel 2005">Template:Cite journal</ref>
In the older notion of nonparametric skew, defined as <math>(\mu - \nu)/\sigma,</math> where <math>\mu</math> is the mean, <math>\nu</math> is the median, and <math>\sigma</math> 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.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> 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:<ref name="von Hippel 2005"/>
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.<ref name="von Hippel 2005" />
DefinitionEdit
Fisher's moment coefficient of skewnessEdit
The skewness <math>\gamma_1</math> of a random variable Template:Mvar is the third standardized moment <math>\tilde{\mu}_3</math>, defined as:<ref name="StanBrown1"/><ref name="FXSolver1"/>
<math display="block">
\gamma_1 := \tilde{\mu}_3 = \operatorname{E}\left[\left(\frac{X-\mu}{\sigma}\right)^3 \right] = \frac{\mu_3}{\sigma^3} = \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}} </math>
where Template:Mvar is the mean, Template:Mvar is the standard deviation, E is the expectation operator, Template:Math is the third central moment, and Template:Math are the Template:Mvar-th cumulants. It is sometimes referred to as Pearson's moment coefficient of skewness,<ref name="FXSolver1">Pearson's moment coefficient of skewness, FXSolver.com</ref> or simply the moment coefficient of skewness,<ref name="StanBrown1">"Measures of Shape: Skewness and Kurtosis", 2008–2016 by Stan Brown, Oak Road Systems</ref> 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 Template:Math to the 1.5th power of the second cumulant Template:Math. 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 Template:Math.
If Template:Mvar is finite and Template:Mvar is finite too, then skewness can be expressed in terms of the non-central moment Template:Math by expanding the previous formula: <math display="block"> \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] -\mu\operatorname E[X]) - \mu^3}{\sigma^3}\\ &= \frac{\operatorname{E}[X^3] - 3\mu\sigma^2 - \mu^3}{\sigma^3}.
\end{align}
</math>
ExamplesEdit
Skewness can be infinite, as when <math display="block">\Pr \left[ X > x \right]=x^{-2}\mbox{ for }x>1,\ \Pr[X<1]=0</math> where the third cumulants are infinite, or as when <math display="block">\Pr[X<x] = \begin{cases} \frac{1}{2} (1-x)^{-3} & \text{ for } x < 0, \\[2pt] \frac{1}{2} (1+x)^{-3} & \text{ for } x > 0. \end{cases}</math> 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 skewnessEdit
For a sample of n values, two natural estimators of the population skewness are<ref name=JG>Template:Cite journal</ref>
<math display="block"> 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}}
</math>
and
<math display="block"> 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}},
</math>
where <math>\bar{x}</math> is the sample mean, Template:Mvar is the sample standard deviation, Template:Math is the (biased) sample second central moment, and Template:Math is the (biased) sample third central moment.<ref name=JG/> <math>g_1</math> is a method of moments estimator.
Another common definition of the sample skewness is<ref name=JG/><ref name=Doane2011>Doane, David P., and Lori E. Seward. "Measuring skewness: a forgotten statistic." Journal of Statistics Education 19.2 (2011): 1-18. (Page 7)</ref>
<math display="block">\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}</math>
where <math>k_3</math> is the unique symmetric unbiased estimator of the third cumulant and <math>k_2 = s^2</math> is the symmetric unbiased estimator of the second cumulant (i.e. the sample variance). This adjusted Fisher–Pearson standardized moment coefficient <math> G_1 </math> is the version found in Excel and several statistical packages including Minitab, SAS and SPSS.<ref name=Doane2011/>
Under the assumption that the underlying random variable <math>X</math> is normally distributed, it can be shown that all three ratios <math>b_1</math>, <math>g_1</math> and <math>G_1</math> are unbiased and consistent estimators of the population skewness <math>\gamma_1=0</math>, with <math>\sqrt{n} b_1 \mathrel{\xrightarrow{d}} N(0, 6)</math>, i.e., their distributions converge to a normal distribution with mean 0 and variance 6 (Fisher, 1930).<ref name=JG/> The variance of the sample skewness is thus approximately <math>6/n</math> for sufficiently large samples. More precisely, in a random sample of size n from a normal distribution,<ref name=Duncan1997>Duncan Cramer (1997) Fundamental Statistics for Social Research. Routledge. Template:Isbn (p 85)</ref><ref>Kendall, M.G.; Stuart, A. (1969) The Advanced Theory of Statistics, Volume 1: Distribution Theory, 3rd Edition, Griffin. Template:Isbn (Ex 12.9)</ref>
<math display="block"> \operatorname{var}(G_1)= \frac{6n ( n - 1 )}{ ( n - 2 )( n + 1 )( n + 3 ) } .</math>
In normal samples, <math>b_1</math> has the smaller variance of the three estimators, with<ref name=JG/>
<math display="block"> \operatorname{var}(b_1) < \operatorname{var} (g_1) < \operatorname{var}(G_1).</math>
For non-normal distributions, <math>b_1</math>, <math>g_1</math> and <math>G_1</math> are generally biased estimators of the population skewness <math>\gamma_1</math>; 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 <math>\gamma_1</math> of about −9.77, but in a sample of 3 <math>G_1</math> 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.
ApplicationsEdit
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 skewnessEdit
Other measures of skewness have been used, including simpler calculations suggested by Karl Pearson<ref name="Capistrano1">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> (not to be confused with Pearson's moment coefficient of skewness, see above). These other measures are:
Pearson's first skewness coefficient (mode skewness)Edit
The Pearson mode skewness,<ref>{{#invoke:Template wrapper|{{#if:|list|wrap}}|_template=cite web |_exclude=urlname, _debug, id |url = https://mathworld.wolfram.com/{{#if:PearsonModeSkewness%7CPearsonModeSkewness.html}} |title = Pearson Mode Skewness |author = Weisstein, Eric W. |website = MathWorld |access-date = |ref = Template:SfnRef }}</ref> or first skewness coefficient, is defined as
Pearson's second skewness coefficient (median skewness)Edit
The Pearson median skewness, or second skewness coefficient,<ref name="MWPSK">{{#invoke:Template wrapper|{{#if:|list|wrap}}|_template=cite web |_exclude=urlname, _debug, id |url = https://mathworld.wolfram.com/{{#if:PearsonsSkewnessCoefficients%7CPearsonsSkewnessCoefficients.html}} |title = Pearson's skewness coefficients |author = Weisstein, Eric W. |website = MathWorld |access-date = |ref = Template:SfnRef }}</ref><ref name="amstat2011">Template:Cite journal</ref> is defined as
Which is a simple multiple of the nonparametric skew.
Quantile-based measuresEdit
Bowley's measure of skewness (from 1901),<ref>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).</ref><ref name=Kenney1962>Kenney JF and Keeping ES (1962) Mathematics of Statistics, Pt. 1, 3rd ed., Van Nostrand, (page 102).</ref> also called Yule's coefficient (from 1912)<ref>Yule, George Udny. An introduction to the theory of statistics. C. Griffin, limited, 1912.</ref><ref>Template:Cite journal</ref> is defined as: <math display="block">\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)},</math> 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 <math>(Q(3/4)}-{Q(1/4))/2</math>, which for symmetric distributions is equal to the MAD measure of dispersion.Template:Citation needed
Other names for this measure are Galton's measure of skewness,<ref name=Johnson1994>Template:Harvp p. 3 and p. 40</ref> the Yule–Kendall index<ref name=Wilks1995>Wilks DS (1995) Statistical Methods in the Atmospheric Sciences, p 27. Academic Press. Template:Isbn</ref> and the quartile skewness,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
Similarly, Kelly's measure of skewness is defined as<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> <math display="block">\frac{Q(9/10) + Q(1/10) - 2 Q(1/2)}{Q(9/10) - Q(1/10)}.</math>
A more general formulation of a skewness function was described by Groeneveld, R. A. and Meeden, G. (1984):<ref name=Groeneveld1984>Template:Cite journal</ref><ref name=MacGillivray1992>MacGillivray (1992)</ref><ref name=Hinkley1975>Hinkley DV (1975) "On power transformations to symmetry", Biometrika, 62, 101–111</ref> <math display="block"> \gamma( u ) = \frac{ Q( u ) +Q( 1 - u )-2Q( 1 / 2 ) }{Q( u ) -Q( 1 - u ) } </math> The function Template:Math satisfies Template:Math and is well defined without requiring the existence of any moments of the distribution.<ref name=Groeneveld1984/> Bowley's measure of skewness is Template:Math evaluated at Template:Math while Kelly's measure of skewness is Template:Math evaluated at Template:Math. This definition leads to a corresponding overall measure of skewness<ref name=MacGillivray1992>MacGillivray (1992)</ref> defined as the supremum of this over the range Template:Math. Another measure can be obtained by integrating the numerator and denominator of this expression.<ref name=Groeneveld1984/>
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 coefficientEdit
Groeneveld and Meeden have suggested, as an alternative measure of skewness,<ref name=Groeneveld1984 />
<math display="block"> \operatorname{skew}(X) = \frac{\mu - \nu}{ \operatorname E( | X - \nu | ) }, </math>
where Template:Mvar is the mean, Template:Mvar is the median, Template:Math is the absolute value, and Template:Math is the expectation operator. This is closely related in form to Pearson's second skewness coefficient.
L-momentsEdit
Use of L-moments in place of moments provides a measure of skewness known as the L-skewness.<ref name=hos:92>Template:Cite journal</ref>
Distance skewnessEdit
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.<ref>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.</ref> It is called distance skewness and denoted by Template:Math. If X is a random variable taking values in the Template:Mvar-dimensional Euclidean space, Template:Mvar has finite expectation, Template:Math is an independent identically distributed copy of Template:Mvar, and <math>\|\cdot\|</math> denotes the norm in the Euclidean space, then a simple measure of asymmetry with respect to location parameter Template:Mvar is <math display="block"> \operatorname{dSkew}(X) := 1 - \frac{\operatorname{E}\|X-X'\|}{\operatorname{E}\|X+X'-2 \theta\|} \text{ if } \Pr(X=\theta)\ne 1 </math> and Template:Math for Template:Math (with probability 1). Distance skewness is always between 0 and 1, equals 0 if and only if X is diagonally symmetric with respect to Template:Mvar (Template:Mvar and Template:Math have the same probability distribution) and equals 1 if and only if X is a constant c (<math>c \neq \theta</math>) with probability one.<ref>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.</ref> Thus there is a simple consistent statistical test of diagonal symmetry based on the sample distance skewness: <math display="block"> \operatorname{dSkew}_n(X) := 1 - \frac{\sum_{i,j} \|x_i-x_j\| }{\sum_{i,j} \|x_i+x_j-2\theta \|}. </math>
MedcoupleEdit
The medcouple is a scale-invariant robust measure of skewness, with a breakdown point of 25%.<ref name="Brys2004">Template:Cite journal</ref> It is the median of the values of the kernel function <math display="block"> h(x_i, x_j) = \frac{ (x_i - x_m) - (x_m - x_j)}{x_i - x_j} </math> taken over all couples <math>(x_i, x_j)</math> such that <math>x_i \geq x_m \geq x_j</math>, where <math>x_m</math> is the median of the sample <math>\{x_1, x_2, \ldots, x_n\}</math>. It can be seen as the median of all possible quantile skewness measures.
See alsoEdit
ReferencesEdit
CitationsEdit
SourcesEdit
- Template:Cite book
- Template:Cite journal
- Premaratne, G., Bera, A. K. (2001). Adjusting the Tests for Skewness and Kurtosis for Distributional Misspecifications. Working Paper Number 01-0116, University of Illinois. Forthcoming in Comm in Statistics, Simulation and Computation. 2016 1–15
- Premaratne, G., Bera, A. K. (2000). Modeling Asymmetry and Excess Kurtosis in Stock Return Data. Office of Research Working Paper Number 00-0123, University of Illinois.
- Skewness Measures for the Weibull Distribution
External linksEdit
Template:Wikiversity Template:Sister project
- Template:Springer
- An Asymmetry Coefficient for Multivariate Distributions by Michel Petitjean
- On More Robust Estimation of Skewness and Kurtosis Comparison of skew estimators by Kim and White.
- Closed-skew Distributions — Simulation, Inversion and Parameter Estimation
Template:Statistics Template:Theory of probability distributions