Neha Patil (Editor)

Nonparametric skew

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In statistics and probability theory, the nonparametric skew is a statistic occasionally used with random variables that take real values. It is a measure of the skewness of a random variable's distribution—that is, the distribution's tendency to "lean" to one side or the other of the mean. Its calculation does not require any knowledge of the form of the underlying distribution—hence the name nonparametric. It has some desirable properties: it is zero for any symmetric distribution; it is unaffected by a scale shift; and it reveals either left- or right-skewness equally well. Although its use has been mentioned in older textbooks it appears to have gone out of fashion. In statistical samples it has been shown to be less powerful than the usual measures of skewness in detecting departures of the population from normality.

Contents

Definition

The nonparametric skew is defined as

S = μ ν σ

where the mean (µ), median (ν) and standard deviation (σ) of the population have their usual meanings.

Properties

The nonparametric skew is one third of the Pearson 2 skewness coefficient and lies between −1 and +1 for any distribution. This range is implied by the fact that the mean lies within one standard deviation of any median.

Under an affine transformation of the variable (X), the value of S does not change except for a possible change in sign. In symbols

S ( a X + b ) = sign ( a ) S ( X )

where a ≠ 0 and b are constants and S( X ) is the nonparametric skew of the variable X.

Sharper bounds

The bounds of this statistic ( ±1 ) were sharpened by Majindar who showed that its absolute value is bounded by

2 ( p q ) 1 / 2 ( p + q ) 1 / 2

with

p = Pr ( X > E ( X ) )

and

q = Pr ( X < E ( X ) ) ,

where X is a random variable with finite variance, E() is the expectation operator and Pr() is the probability of the event occurring.

When p = q = 0.5 the absolute value of this statistic is bounded by 1. With p = 0.1 and p = 0.01, the statistic's absolute value is bounded by 0.6 and 0.199 respectively.

Extensions

It is also known that

| μ ν 0 | E ( | X ν 0 | ) E ( | X μ | ) σ ,

where ν0 is any median and E(.) is the expectation operator.

It has been shown that

| μ x q | σ max ( ( 1 q ) q , q ( 1 q ) )

where xq is the qth quantile. Quantiles lie between 0 and 1: the median (the 0.5 quantile) has q = 0.5. This inequality has also been used to define a measure of skewness.

This latter inequality has been sharpened further.

μ σ 1 q q x q μ + σ q 1 q

Another extension for a distribution with a finite mean has been published:

μ 1 2 q E | X μ | x q μ + 1 ( 2 2 q ) E | X μ |

The bounds in this last pair of inequalities are attained when Pr ( X = a ) = q and Pr ( X = b ) = 1 q for fixed numbers a < b.

Finite samples

For a finite sample with sample size n ≥ 2 with xr is the rth order statistic, m the sample mean and s the sample standard deviation corrected for degrees of freedom,

| m x r | s max [ ( n 1 ) ( r 1 ) n ( n r + 1 ) , ( n 1 ) ( n r ) n r ]

Replacing r with n / 2 gives the result appropriate for the sample median:

| m a | s n 2 n n 2 = n 1 n

where a is the sample median.

Statistical tests

Hotelling and Solomons considered the distribution of the test statistic

D = n ( m a ) s

where n is the sample size, m is the sample mean, a is the sample median and s is the sample's standard deviation.

Statistical tests of D have assumed that the null hypothesis being tested is that the distribution is symmetric .

Gastwirth estimated the asymptotic variance of n−1/2D. If the distribution is unimodal and symmetric about 0, the asymptotic variance lies between 1/4 and 1. Assuming a conservative estimate (putting the variance equal to 1) can lead to a true level of significance well below the nominal level.

Assuming that the underlying distribution is symmetric Cabilio and Masaro have shown that the distribution of S is asymptotically normal. The asymptotic variance depends on the underlying distribution: for the normal distribution, the asymptotic variance of ( Sn ) is 0.5708.

Assuming that the underlying distribution is symmetric, by considering the distribution of values above and below the median Zheng and Gastwirth have argued that

2 n ( m a s )

where n is the sample size, is distributed as a t distribution.

Mira studied the distribution of the difference between the mean and the median.

γ 1 = 2 ( m a ) ,

where m is the sample mean and a is the median. If the underlying distribution is symmetrical γ1 itself is asymptotically normal. This statistic had been earlier suggested by Bonferroni.

Assuming a symmetric underlying distribution, a modification of S was studied by Miao, Gel and Gastwirth who modified the standard deviation to create their statistic.

J = 1 n π 2 | X i a |

where Xi are the sample values, || is the absolute value and the sum is taken over all n sample values.

The test statistic was

T = m a J .

The scaled statistic ( Tn ) is asymptotically normal with a mean of zero for a symmetric distribution. Its asymptotic variance depends on the underlying distribution: the limiting values are, for the normal distribution var( Tn ) = 0.5708 and, for the t distribution with three degrees of freedom, var( Tn ) = 0.9689.

Symmetric distributions

For symmetric probability distributions the value of the nonparametric skew is 0.

Asymmetric distributions

It is positive for right skewed distributions and negative for left skewed distributions. Absolute values ≥ 0.2 indicate marked skewness.

It may be difficult to determine S for some distributions. This is usually because a closed form for the median is not known: examples of such distributions include the gamma distribution, inverse-chi-squared distribution, the inverse-gamma distribution and the scaled inverse chi-squared distribution.

The following values for S are known:

  • Beta distribution: 1 < α < β where α and β are the parameters of the distribution, then to a good approximation
  • If 1 < β < α then the positions of α and β are reversed in the formula. S is always < 0.
  • Binomial distribution: varies. If the mean is an integer then S = 0. If the mean is not an integer S may have either sign or be zero. It is bounded by ±min{ max{ p, 1 − p }, loge2 } / σ where σ is the standard deviation of the binomial distribution.
  • Burr distribution:
  • Birnbaum–Saunders distribution:
  • where α is the shape parameter and β is the location parameter.
  • Cantor distribution:
  • Chi square distribution: Although S ≥ 0 its value depends on the numbers of degrees of freedom (k).
  • Dagum distribution:
  • Exponential distribution:
  • Exponential distribution with two parameters:
  • Exponential-logarithmic distribution
  • Here S is always > 0.
  • Exponentially modified Gaussian distribution:
  • F distribution with n and n degrees of freedom ( n > 4 ):
  • Fréchet distribution: The variance of this distribution is defined only for α > 2.
  • Gamma distribution: The median can only be determined approximately for this distribution. If the shape parameter α is ≥ 1 then
  • where β > 0 is the rate parameter. Here S is always > 0.
  • Generalized normal distribution version 2
  • S is always < 0.
  • Generalized Pareto distribution: S is defined only when the shape parameter ( k ) is < 1/2. S is < 0 for this distribution.
  • Gumbel distribution:
  • where γ is Euler's constant.
  • Half-normal distribution:
  • Kumaraswamy distribution
  • Log-logistic distribution (Fisk distribution): Let β be the shape parameter. The variance and mean of this distribution are only defined when β > 2. To simplify the notation let b = β / π.
  • The standard deviation does not exist for values of b > 4.932 (approximately). For values for which the standard deviation is defined, S is > 0.
  • Log-normal distribution: With mean ( μ ) and variance ( σ2 )
  • Log-Weibull distribution:
  • Lomax distribution: S is defined only for α > 2
  • Maxwell–Boltzmann distribution:
  • Nakagami distribution
  • Pareto distribution: for α > 2 where α is the shape parameter of the distribution,
  • and S is always > 0.
  • Poisson distribution:
  • where λ is the parameter of the distribution.
  • Rayleigh distribution:
  • Weibull distribution:
  • where k is the shape parameter of the distribution. Here S is always > 0.

    History

    In 1895 Pearson first suggested measuring skewness by standardizing the difference between the mean and the mode, giving

    μ θ σ ,

    where μ, θ and σ is the mean, mode and standard deviation of the distribution respectively. Estimates of the population mode from the sample data may be difficult but the difference between the mean and the mode for many distributions is approximately three times the difference between the mean and the median which suggested to Pearson a second skewness coefficient:

    3 ( μ ν ) σ ,

    where ν is the median of the distribution. Bowley dropped the factor 3 is from this formula in 1901 leading to the nonparametric skew statistic.

    The relationship between the median, the mean and the mode was first noted by Pearson when he was investigating his type III distributions.

    Relationships between the mean, median and mode

    For an arbitrary distribution the mode, median and mean may appear in any order.

    Analyses have been made of some of the relationships between the mean, median, mode and standard deviation. and these relationships place some restrictions of the sign and magnitude of the nonparametric skew.

    A simple example illustrating these relationships is the binomial distribution with n = 10 and p = 0.09. This distribution when plotted has a long right tail. The mean (0.9) is to the left of the median (1) but the skew (0.906) as defined by the third standardized moment is positive. In contrast the nonparametric skew is -0.110.

    Pearson's rule

    The rule that for some distributions the difference between the mean and the mode is three times that between the mean and the median is due to Pearson who discovered it while investigating his Type 3 distributions. It is often applied to slightly asymmetric distributions that resemble a normal distribution but it is not always true.

    In 1895 Pearson noted that for what is now known as the gamma distribution that the relation

    ν θ = 2 ( μ ν )

    where θ, ν and µ are the mode, median and mean of the distribution respectively was approximately true for distributions with a large shape parameter.

    Doodson in 1917 proved that the median lies between the mode and the mean for moderately skewed distributions with finite fourth moments. This relationship holds for all the Pearson distributions and all of these distributions have a positive nonparametric skew.

    Doodson also noted that for this family of distributions to a good approximation,

    θ = 3 ν 2 μ ,

    where θ, ν and µ are the mode, median and mean of the distribution respectively. Doodson's approximation was further investigated and confirmed by Haldane. Haldane noted that in samples with identical and independent variates with a third cumulant had sample means that obeyed Pearson's relationship for large sample sizes. Haldane required a number of conditions for this relationship to hold including the existence of an Edgeworth expansion and the uniqueness of both the median and the mode. Under these conditions he found that mode and the median converged to 1/2 and 1/6 of the third moment respectively. This result was confirmed by Hall under weaker conditions using characteristic functions.

    Doodson's relationship was studied by Kendall and Stuart in the log-normal distribution for which they found an exact relationship close to it.

    Hall also showed that for a distribution with regularly varying tails and exponent α that

    μ θ = α ( μ ν )

    Unimodal distributions

    Gauss showed in 1823 that for a unimodal distribution

    σ ω 2 σ

    and

    | ν μ | 3 4 ω ,

    where ω is the root mean square deviation from the mode.

    For a large class of unimodal distributions that are positively skewed the mode, median and mean fall in that order. Conversely for a large class of unimodal distributions that are negatively skewed the mean is less than the median which in turn is less than the mode. In symbols for these positively skewed unimodal distributions

    θ ν μ

    and for these negatively skewed unimodal distributions

    μ ν θ

    This class includes the important F, beta and gamma distributions.

    This rule does not hold for the unimodal Weibull distribution.

    For a unimodal distribution the following bounds are known and are sharp:

    | θ μ | σ 3 , | ν μ | σ 0.6 , | θ ν | σ 3 ,

    where μ,ν and θ are the mean, median and mode respectively.

    The middle bound limits the nonparametric skew of a unimodal distribution to approximately ±0.775.

    van Zwet condition

    The following inequality,

    θ ν μ ,

    where θ, ν and µ is the mode, median and mean of the distribution respectively, holds if

    F ( ν x ) + F ( ν + x ) 1  for all  x ,

    where F is the cumulative distribution function of the distribution. These conditions have since been generalised and extended to discrete distributions. Any distribution for which this holds has either a zero or a positive nonparametric skew.

    References

    Nonparametric skew Wikipedia