- Introduced by
- Hubert & Vandervieren
- Year
- 2008
- Type
- Robust outlier detection / descriptive visualization
What does it do?
The Adjusted Boxplot, introduced by Hubert and Vandervieren (2008), modifies the classical IQR-based boxplot so that its outlier fences account for skewness.
It uses the medcouple, a robust skewness measure, to adjust the fences, which reduces false outlier flags on asymmetric data. The fences are a descriptive screening rule. They do not come with a stated false-positive rate, and they do not give the probability that a flagged point is a true outlier.
The intuition behind the method
A classical boxplot places its whiskers symmetrically at 1.5 times the interquartile range below the first quartile and above the third quartile. On a skewed distribution, this symmetry flags many ordinary points on the long tail as outliers. The adjusted boxplot first measures the skewness of the data with the medcouple, which is computed from pairs of observations on either side of the median. It then stretches the fence on the long-tail side and shortens it on the short-tail side, so the fences follow the shape of the distribution.
History
Mia Hubert and Ellen Vandervieren proposed the adjusted boxplot in their 2008 paper in Computational Statistics & Data Analysis. They combined the medcouple skewness measure with the classical boxplot so that the fences adapt to asymmetric distributions.
When to use it
Use the adjusted boxplot when you are exploring or describing a single continuous variable whose distribution may be skewed, and you want outlier screening that does not over-flag the long tail. The method assumes continuous data and does not require normality; it is designed for departures from symmetry. As a practical rule of thumb, apply it to samples of about 20 observations or more, so that the medcouple is reasonably stable. Between about 10 and 20 observations, interpret the fences with extra caution. Avoid it for very small samples, or when contamination is so heavy that the adjusted fences cannot separate genuine outliers from the bulk of the data.
Limitations and considerations
- With very small samples (roughly fewer than 10 observations, as a rule of thumb), the medcouple is unreliable and a standard boxplot is preferable.
- When contamination is heavy, the adjusted fences can be overwhelmed and may fail to isolate the contamination from the bulk of the data. No fixed contamination cut-off is given on this page.
- It is a univariate descriptive and detection tool. It does not provide an inferential model, effect sizes, or measures of uncertainty.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Corrects the classical boxplot for skewness, which reduces false outlier flags on the long tail of asymmetric distributions.
- Uses the medcouple, a robust skewness measure, so a few extreme values have limited influence on the skewness adjustment and therefore on the fences.
- Reduces to the familiar 1.5·IQR boxplot when MC is zero, so it extends the classical tool rather than replacing it.
Applications
- Exploratory screening of a skewed continuous variable for candidate outliers before further analysis.
- Robust descriptive summaries of asymmetric continuous measurements in any field where such data arise.
- Pre-processing step for deciding which extreme observations merit closer inspection, without trimming the long tail too aggressively.
How it works
How it works
Skewness is summarised by the medcouple (MC), a robust statistic computed from the kernel h(x_i, x_j) over pairs of observations on opposite sides of the median m. MC lies between -1 and 1. It is zero for a symmetric distribution, positive for right skew and negative for left skew. Beyond its sign, a larger absolute value indicates stronger asymmetry. The kernel has denominator x_j - x_i, so it is undefined for a pair with x_i = x_j. The treatment of tied values at the median is not reproduced on this page and should be taken from the original paper.
Formula
\mathrm{MC} = \operatorname{med}_{x_i \le m \le x_j}\, h(x_i, x_j), \quad h(x_i,x_j)=\frac{(x_j-m)-(m-x_i)}{x_j-x_i}MC is inserted into exponential adjustment factors that make the fences asymmetric. For right-skewed samples (MC ≥ 0), the lower fence is Q1 − 1.5·e^(−4·MC)·IQR and the upper fence is Q3 + 1.5·e^(3·MC)·IQR. Observations outside these fences are flagged as candidate outliers. When MC is zero, the fences reduce to the classical 1.5·IQR rule. The formulas on this page cover MC ≥ 0 only. Left-skewed samples (MC < 0) use a different fence adjustment, whose formula is not reproduced here. Take it from Hubert and Vandervieren (2008) before applying the method to such data.
Formula
[\,Q_1 - 1.5\,e^{-4\,\mathrm{MC}}\,\mathrm{IQR},\; Q_3 + 1.5\,e^{3\,\mathrm{MC}}\,\mathrm{IQR}\,], \;\; \mathrm{MC}\ge 0Common pitfalls
- Applying the adjusted boxplot to very small samples (roughly under 10 observations), where the medcouple is too noisy to trust. In that case, use a standard boxplot or the MAD-based screen described on the related mad-estimation page.
- Treating flagged points as confirmed outliers. The method identifies candidates, which still need substantive review.
- Using it on heavily contaminated data and assuming the adjusted fences have removed the contamination.
- Forgetting that the adjustment direction depends on the sign of the medcouple. A left-skewed sample (MC < 0) needs a different adjustment whose formula is not given on this page, so the right-skew formula must not be applied to it.
Frequently asked questions
How does the adjusted boxplot differ from a classical boxplot?
A classical boxplot places its fences symmetrically at 1.5·IQR from the quartiles, which over-flags points on the long tail of a skewed distribution. The adjusted boxplot multiplies those fences by exponential factors based on the medcouple. This stretches the fence on the long-tail side and shortens it on the short-tail side, so the fences match the shape of the data.
What is the medcouple?
The medcouple (MC) is a robust measure of skewness that ranges from -1 to 1. It is computed from a kernel over pairs of observations on either side of the median. It is zero for symmetric data, positive for right skew, and negative for left skew.
What sample size do I need?
A sample of about 20 observations or more is a practical rule of thumb, chosen so that the medcouple is reasonably stable. For samples below about 10 observations, the medcouple is unreliable, and a standard boxplot is usually the better choice.
What if my data are heavily contaminated?
When contamination is heavy, the adjusted fences may be overwhelmed, and the method may no longer separate genuine outliers from the bulk of the data. In that case, consider a robust scale-based screen such as the median absolute deviation, described on the related mad-estimation page, and compare the results before drawing conclusions.
Related methods
Sources
Hubert, M. & Vandervieren, E. (2008). An Adjusted Boxplot for Skewed Distributions. Computational Statistics & Data Analysis, 52(12), 5186-5201.
Open DOI reference