Robust measures of scale Contents IQR and MAD Estimation Efficiency Absolute pairwise differences The...
Robust statisticsStatistical deviation and dispersionScale statistics
statisticsrobust statisticstatistical dispersionnumericaldatainterquartile rangemedian absolute deviationvariancestandard deviationoutliersestimatorsscale parameterbreakdown pointpercentilepercentiletrimmedrangeL-estimatorinterdecile rangemedianhereestimatorsparameter estimationexpected valuepopulation variancestandard deviationscale factorunbiasedconsistent estimatorscale parameter: estimationnormal distributionexpected valueCauchy distributionstatistical efficiencymixture distributionheavy-tailed distributionlocationindicator functionMizera & Müller (2004)
In statistics, a robust measure of scale is a robust statistic that quantifies the statistical dispersion in a set of numerical data. The most common such statistics are the interquartile range (IQR) and the median absolute deviation (MAD). These are contrasted with conventional measures of scale, such as sample variance or sample standard deviation, which are non-robust, meaning greatly influenced by outliers.
These robust statistics are particularly used as estimators of a scale parameter, and have the advantages of both robustness and superior efficiency on contaminated data, at the cost of inferior efficiency on clean data from distributions such as the normal distribution. To illustrate robustness, the standard deviation can be made arbitrarily large by increasing exactly one observation (it has a breakdown point of 0, as it can be contaminated by a single point), a defect that is not shared by robust statistics.
Contents
1 IQR and MAD
2 Estimation
3 Efficiency
4 Absolute pairwise differences
5 The biweight midvariance
6 Simultaneous estimation of location and scale
7 References
IQR and MAD
One of the most common robust measures of scale is the interquartile range (IQR), the difference between the 75th percentile and the 25th percentile of a sample; this is the 25% trimmed range, an example of an L-estimator. Other trimmed ranges, such as the interdecile range (10% trimmed range) can also be used.
Another familiar robust measure of scale is the median absolute deviation (MAD), the median of the absolute values of the differences between the data values and the overall median of the data set; for a Gaussian distribution, MAD is related to σ{displaystyle sigma } as σ≈1.4826 MAD{displaystyle sigma approx 1.4826 operatorname {MAD} } (the derivation can be found here).
Estimation
Robust measures of scale can be used as estimators of properties of the population, either for parameter estimation or as estimators of their own expected value.
For example, robust estimators of scale are used to estimate the population variance or population standard deviation, generally by multiplying by a scale factor to make it an unbiased consistent estimator; see scale parameter: estimation. For example, dividing the IQR by 2√2 erf−1(1/2) (approximately 1.349), makes it an unbiased, consistent estimator for the population standard deviation if the data follow a normal distribution.
In other situations, it makes more sense to think of a robust measure of scale as an estimator of its own expected value, interpreted as an alternative to the population variance or standard deviation as a measure of scale. For example, the MAD of a sample from a standard Cauchy distribution is an estimator of the population MAD, which in this case is 1, whereas the population variance does not exist.
Efficiency
These robust estimators typically have inferior statistical efficiency compared to conventional estimators for data drawn from a distribution without outliers (such as a normal distribution), but have superior efficiency for data drawn from a mixture distribution or from a heavy-tailed distribution, for which non-robust measures such as the standard deviation should not be used.
For example, for data drawn from the normal distribution, the MAD is 37% as efficient as the sample standard deviation, while the Rousseeuw–Croux estimator Qn is 88% as efficient as the sample standard deviation.
Absolute pairwise differences
Rousseeuw and Croux[1] propose alternatives to the MAD, motivated by two weaknesses of it:
- It is inefficient (37% efficiency) at Gaussian distributions.
- it computes a symmetric statistic about a location estimate, thus not dealing with skewness.
They propose two alternative statistics based on pairwise differences: Sn and Qn, defined as:
- Sn:=1.1926medi(medj(|xi−xj|)),Qn:=cnfirst quartile of(|xi−xj|:i<j),{displaystyle {begin{aligned}S_{n}&:=1.1926,operatorname {med} _{i}left(operatorname {med} _{j}(,left|x_{i}-x_{j}right|,)right),\Q_{n}&:=c_{n}{text{first quartile of}}left(left|x_{i}-x_{j}right|:i<jright),end{aligned}}}
where cn{displaystyle c_{n}} is a constant depending on n{displaystyle n}.
These can be computed in O(n log n) time and O(n) space.
Neither of these requires location estimation, as they are based only on differences between values. They are both more efficient than the MAD under a Gaussian distribution: Sn is 58% efficient, while Qn is 82% efficient.
For a sample from a normal distribution, Sn is approximately unbiased for the population standard deviation even down to very modest sample sizes (<1% bias for n = 10). For a large sample from a normal distribution, 2.219144465985075864722Qn is approximately unbiased for the population standard deviation. For small or moderate samples, the expected value of Qn under a normal distribution depends markedly on the sample size, so finite-sample correction factors (obtained from a table or from simulations) are used to calibrate the scale of Qn.
The biweight midvariance
Like Sn and Qn, the biweight midvariance aims to be robust without sacrificing too much efficiency. It is defined as
- n∗∑i=1n(xi−Q)2(1−ui2)4I(|ui|<1)(∑i(1−ui2)(1−5ui2)I(|ui|<1))2,{displaystyle {frac {n*sum _{i=1}^{n}(x_{i}-Q)^{2}(1-u_{i}^{2})^{4}I(|u_{i}|<1)}{(sum _{i}(1-u_{i}^{2})(1-5u_{i}^{2})I(|u_{i}|<1))^{2}}},}
where I is the indicator function, Q is the sample median of the Xi, and
- ui=xi−Q9⋅MAD.{displaystyle u_{i}={frac {x_{i}-Q}{9cdot {rm {MAD}}}}.}
Its square root is a robust estimator of scale, since data points are downweighted as their distance from the median increases, with points more than 9 MAD units from the median having no influence at all.
Simultaneous estimation of location and scale
Mizera & Müller (2004) propose a robust depth-based estimator for location and scale simultaneously.[2]
References
^ Rousseeuw, Peter J.; Croux, Christophe (December 1993), "Alternatives to the Median Absolute Deviation", Journal of the American Statistical Association, American Statistical Association, 88 (424): 1273–1283, doi:10.2307/2291267, JSTOR 2291267.mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}
^ Mizera, I.; Müller, C. H. (2004), "Location-scale depth", Journal of the American Statistical Association, 99 (468): 949–966, doi:10.1198/016214504000001312.