World Library  
Flag as Inappropriate
Email this Article

Median (statistics)

Article Id: WHEBN0001523545
Reproduction Date:

Title: Median (statistics)  
Author: World Heritage Encyclopedia
Language: English
Subject: Categorical variable, Median (disambiguation)
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Median (statistics)

This article is about the statistical concept. For other uses, see Median (disambiguation).

In statistics and probability theory, the median is the numerical value separating the higher half of a data sample, a population, or a probability distribution, from the lower half. The median of a finite list of numbers can be found by arranging all the observations from lowest value to highest value and picking the middle one (e.g., the median of {3, 5, 9} is 5). If there is an even number of observations, then there is no single middle value; the median is then usually defined to be the mean of the two middle values[1][2] (the median of {3, 5, 7, 9} is (5 + 7) / 2 = 6), which corresponds to interpreting the median as the fully trimmed mid-range. The median is of central importance in robust statistics, as it is the most resistant statistic, having a breakdown point of 50%: so long as no more than half the data is contaminated, the median will not give an arbitrarily large result.

A median is only defined on ordered one-dimensional data, and is independent of any distance metric. A geometric median, on the other hand, is defined in any number of dimensions.

In a sample of data, or a finite population, there may be no member of the sample whose value is identical to the median (in the case of an even sample size); if there is such a member, there may be more than one so that the median may not uniquely identify a sample member. Nonetheless, the value of the median is uniquely determined with the usual definition. A related concept, in which the outcome is forced to correspond to a member of the sample, is the medoid. At most, half the population have values strictly less than the median, and, at most, half have values strictly greater than the median. If each group contains less than half the population, then some of the population is exactly equal to the median. For example, if a < b < c, then the median of the list {abc} is b, and, if a < b < c < d, then the median of the list {abcd} is the mean of b and c; i.e., it is (b + c)/2.

The median can be used as a measure of location when a distribution is skewed, when end-values are not known, or when one requires reduced importance to be attached to outliers, e.g., because they may be measurement errors.

In terms of notation, some authors represent the median of a variable x either as \tilde{x} or as \mu_{1/2},[1] sometimes also M.[3] There is no widely accepted standard notation for the median,[4] so the use of these or other symbols for the median needs to be explicitly defined when they are introduced.

The median is the 2nd quartile, 5th decile, and 50th percentile.

Measures of location and dispersion

The median is one of a number of ways of summarising the typical values associated with members of a statistical population; thus, it is a possible location parameter.

When the median is used as a location parameter in descriptive statistics, there are several choices for a measure of variability: the range, the interquartile range, the mean absolute deviation, and the median absolute deviation. Since the median is the same as the second quartile, its calculation is illustrated in the article on quartiles.

For practical purposes, different measures of location and dispersion are often compared on the basis of how well the corresponding population values can be estimated from a sample of data. The median, estimated using the sample median, has good properties in this regard. While it is not usually optimal if a given population distribution is assumed, its properties are always reasonably good. For example, a comparison of the efficiency of candidate estimators shows that the sample mean is more statistically efficient than the sample median when data are uncontaminated by data from heavy-tailed distributions or from mixtures of distributions, but less efficient otherwise, and that the efficiency of the sample median is higher than that for a wide range of distributions. More specifically, the median has a 64% efficiency compared to the minimum-variance mean (for large normal samples), which is to say the variance of the median will be ~50% greater than the variance of the mean—see Efficiency (statistics)#Asymptotic efficiency and references therein.

Medians of probability distributions

For any probability distribution on the real line R with cumulative distribution function F, regardless of whether it is any kind of continuous probability distribution, in particular an absolutely continuous distribution (which has a probability density function), or a discrete probability distribution, a median is by definition any real number m that satisfies the inequalities

\operatorname{P}(X\leq m) \geq \frac{1}{2}\text{ and }\operatorname{P}(X\geq m) \geq \frac{1}{2}\,\!

or, equivalently, the inequalities

\int_{(-\infty,m]} dF(x) \geq \frac{1}{2}\text{ and }\int_ (\nu - m) where \nu is the population median—has been studied by several authors. The standard 'delete one' jackknife method produces inconsistent results.[15] An alternative—the 'delete k' method—where k grows with the sample size has been shown to be asymptotically consistent.[16] This method may be computationally expensive for large data sets. A bootstrap estimate is known to be consistent,[17] but converges very slowly (order of n^{-\frac{1}{4}}).[18] Other methods have been proposed but their behavior may differ between large and small samples.[19]

Efficiency

The efficiency of the sample median, measured as the ratio of the variance of the mean to the variance of the median, depends on the sample size and on the underlying population distribution. For a sample of size N = 2n + 1 from the normal distribution, the ratio is[20]

\frac{ 4n }{ \pi ( 2n + 1 ) }

For large samples (as n tends to infinity) this ratio tends to \frac{2}{\pi} .

Other estimators

For univariate distributions that are symmetric about one median, the Hodges–Lehmann estimator is a robust and highly efficient estimator of the population median.[21]

If data are represented by a statistical model specifying a particular family of probability distributions, then estimates of the median can be obtained by fitting that family of probability distributions to the data and calculating the theoretical median of the fitted distribution. Pareto interpolation is an application of this when the population is assumed to have a Pareto distribution.

Coefficient of dispersion

The coefficient of dispersion (CD) is defined as the ratio of the average absolute deviation from the median to the median of the data.[22] It is a statistical measure used by the states of Iowa, New York and South Dakota in estimating dues taxes.[23][24][25] In symbols

CD = \frac{ 1 }{ n } \frac{ \sum| m - x | }{ m }

where n is the sample size, m is the sample median and x is a variate. The sum is taken over the whole sample.

Confidence intervals for a two sample test where the sample sizes are large have been derived by Bonett and Seier[22] This test assumes that both samples have the same median but differ in the dispersion around it. The confidence interval (CI) is bounded inferiorly by

\exp \left[ \log \left( \frac{ t_a } { t_b } \right) - z_\alpha \left( var \left[ \log \left( \frac{ t_a } { t_b } \right) \right] \right)^{ 0.5 } \right]

where tj is the mean absolute deviation of the jth sample, var() is the variance and zα is the value from the normal distribution for the chosen value of α: for α = 0.05, zα = 1.96. The following formulae are used in the derivation of these confidence intervals

var [ \log ( t_a ) ] = \frac{ \left( \frac{ s_a^2 } { t_a^2 } + \left( \frac{ x_a - \bar{ x } } { t_a } \right) ^2 - 1 \right) } { n }
var[ \log( t_a / t_b ) ] = var[ \log( t_a ) ] + var[ \log( t_b )] - 2r ( var[ \log( t_a ) ] var[ \log( t_b ) ] )^{0.5}

where r is the Pearson correlation coefficient between the squared deviation scores

d_{ia} = | x_{ia} - \bar{x}_{a} | and d_{ib} = |x_{ib} - \bar{x}_{b} |

a and b here are constants equal to 1 and 2, x is a variate and s is the standard deviation of the sample.

Multivariate median

Previously, this article discussed the concept of a univariate median for a one-dimensional object (population, sample). When the dimension is two or higher, there are multiple concepts that extend the definition of the univariate median; each such multivariate median agrees with the univariate median when the dimension is exactly one. In higher dimensions, however, there are several multivariate medians.[21]

Marginal median

The marginal median is defined for vectors defined with respect to a fixed set of coordinates. A marginal median is defined to be the vector whose components are univariate medians. The marginal median is easy to compute, and its properties were studied by Puri and Sen.[21][26]

Spatial median (L1 median)

In a normed vector space of dimension two or greater, the "spatial median" minimizes the expected distance

a \mapsto \mathrm{E}(\left\|X-a\right\|), \,

where X and a are vectors, if this expectation has a finite minimum; another definition is better suited for general probability-distributions.[9][21] The spatial median is unique when the data-set's dimension is two or more.[9][10][21] It is a robust and highly efficient estimator of the population spatial-median (also called the "L1 median").[27][21]

Other multivariate medians

An alternative to the spatial median is defined in a similar way, but based on a different loss function, and is called the Geometric median. The centerpoint is another generalization to higher dimensions that does not relate to a particular metric.

Other median-related concepts

Pseudo-median

For univariate distributions that are symmetric about one median, the Hodges–Lehmann estimator is a robust and highly efficient estimator of the population median; for non-symmetric distributions, the Hodges–Lehmann estimator is a robust and highly efficient estimator of the population pseudo-median, which is the median of a symmetrized distribution and which is close to the population median. The Hodges–Lehmann estimator has been generalized to multivariate distributions.[28]

Variants of regression

The Theil–Sen estimator is a method for robust linear regression based on finding medians of slopes.

Median filter

Main article: Median filter

In the context of image processing of monochrome raster images there is a type of noise, known as the salt and pepper noise, when each pixel independently becomes black (with some small probability) or white (with some small probability), and is unchanged otherwise (with the probability close to 1). An image constructed of median values of neighborhoods (like 3×3 square) can effectively reduce noise in this case.

Cluster analysis

Main article: k-medians clustering

In cluster analysis, the k-medians clustering algorithm provides a way of defining clusters, in which the criterion of maximising the distance between cluster-means that is used in k-means clustering, is replaced by maximising the distance between cluster-medians.

Median-Median Line

This is a method of robust regression. The idea dates back to Wald in 1940 who suggested dividing a set of bivariate data into two halves depending on the value of the independent parameter x: a left half with values less than the median and a right half with values greater than the median.[29] He suggested taking the means of the dependent y and independent x variables of the left and the right halves and estimating the slope of the line joining these two points. The line could then be adjusted to fit the majority of the points in the data set.

Nair and Shrivastava in 1942 suggested a similar idea but instead advocated dividing the sample into three equal parts before calculating the means of the subsamples.[30] Brown and Mood in 1951 proposed the idea of using the medians of two subsamples rather the means.[31] Tukey combined these ideas and recommended dividing the sample into three equal size subsamples and estimating the line based on the medians of the subsamples.[32]

Median-unbiased estimators

Any mean-unbiased estimator minimizes the risk (expected loss) with respect to the squared-error loss function, as observed by Gauss. A median-unbiased estimator minimizes the risk with respect to the absolute-deviation loss function, as observed by Laplace. Other loss functions are used in statistical theory, particularly in robust statistics.

The theory of median-unbiased estimators was revived by

An estimate of a one-dimensional parameter θ will be said to be median-unbiased if, for fixed θ, the median of the distribution of the estimate is at the value θ; i.e., the estimate underestimates just as often as it overestimates. This requirement seems for most purposes to accomplish as much as the mean-unbiased requirement and has the additional property that it is invariant under one-to-one transformation. [page 584]

Further properties of median-unbiased estimators have been reported.[34][35][36][37] In particular, median-unbiased estimators exist in cases where mean-unbiased and maximum-likelihood estimators do not exist. Median-unbiased estimators are invariant under one-to-one transformations.

History

The idea of the median originated in Edward Wright's book on navigation (Certaine Errors in Navigation) in 1599 in a section concerning the determination of location with a compass. Wright felt that this value was the most likely to be the correct value in a series of observations.

In 1757, Roger Joseph Boscovich developed a regression method based on the L1 norm and therefore implicitly on the median.[38]

The distribution of both the sample mean and the sample median were determined by Laplace in the early 1800s.[12][39]

Antoine Augustin Cournot in 1843 was the first to use the term median (valeur médiane) for the value that divides a probability distribution into two equal halves. Gustav Theodor Fechner used the median (Centralwerth) in sociological and psychological phenomena.[40] It had earlier been used only in astronomy and related fields. Gustav Fechner popularized the median into the formal analysis of data, although it had been used previously by Laplace.[40]

Francis Galton used the English term median in 1881,[41] having earlier used the terms middle-most value in 1869 and the medium in 1880.

See also

Statistics portal

References

External links

  • Template:Springer
  • A Guide to Understanding & Calculating the Median
  • Median as a weighted arithmetic mean of all Sample Observations
  • On-line calculator
  • Calculating the median
  • A problem involving the mean, the median, and the mode.
  • MathWorld.
  • income inequality metrics

This article incorporates material from Median of a distribution on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.