Quartile Coefficient of Dispersion Calculator

Inputs

Quartile coefficient of dispersion0.4000
Interquartile range (Q3 - Q1)16.00
Midhinge ((Q1 + Q3) / 2)20.00
Quartile ratio (Q3 / Q1)2.3333
How this was calculated
  1. Inputs: first quartile Q1 = 12.00, third quartile Q3 = 28.00.
  2. Interquartile range: 28.00 - 12.00 = 16.00.
  3. Quartile coefficient of dispersion: (28.00 - 12.00) / (28.00 + 12.00) = 0.4000.
  4. Quartile coefficient of dispersion result: 0.4000 - midhinge 20.00, quartile ratio 2.3333.

The interquartile range states spread in the data's own units - which makes it useless for the comparison people most often want: is this distribution more spread out than that one, when the two are measured in different units or at different scales? The quartile coefficient of dispersion is the IQR made relative: (Q3 - Q1) / (Q3 + Q1), the width of the middle half divided by the quartiles' own level. The units cancel, the scale cancels, and what remains is a pure fraction between 0 and 1 that can be set beside any other distribution's fraction, whatever either was measuring.

Enter the first and third quartiles and this calculator returns the coefficient with the interquartile range, the midhinge and the quartile ratio alongside. The worked examples cover a wide middle half, a tight pair of income-style quartiles, and two close quartiles at small values.

Worked examples

Wide middle half

(12 · 28)

Quartile coefficient of dispersion0.4000
Interquartile range (Q3 - Q1)16.00
Midhinge ((Q1 + Q3) / 2)20.00
Quartile ratio (Q3 / Q1)2.3333

Tight income quartiles

(45 · 60)

Quartile coefficient of dispersion0.1429
Interquartile range (Q3 - Q1)15.00
Midhinge ((Q1 + Q3) / 2)52.50
Quartile ratio (Q3 / Q1)1.3333

Close quartiles, small values

(3.2 · 4.1)

Quartile coefficient of dispersion0.1233
Interquartile range (Q3 - Q1)0.90
Midhinge ((Q1 + Q3) / 2)3.65
Quartile ratio (Q3 / Q1)1.2812

Why relative spread needs its own measure

Every relative dispersion measure is a truce between two facts: spread grows with scale, and comparisons ignore scale at their peril. The coefficient of variation makes the truce with the mean and standard deviation - and inherits their weaknesses, because both are dragged around by outliers and skew. The quartile coefficient makes the same truce with sturdier parties. Quartiles resist outliers by construction, so the coefficient stays meaningful on exactly the distributions - incomes, reaction times, city sizes, rainfall - where the mean-based version misbehaves.

The first worked example shows the arithmetic at its plainest. Quartiles of 12 and 28 give an IQR of 16.00 around a midhinge of 20.00, and the coefficient, written as the engine's own steps write it - (28 - 12) / (28 + 12) - is 0.4000. Read it as a sentence: the middle half of this distribution spans forty hundredths of the quartile level. The quartile ratio says the same thing multiplicatively: Q3 is 2.3333 times Q1.

The bounds give the coefficient its interpretive floor and ceiling. It is 0 only when the two quartiles coincide - the middle half collapsed to a point - and it approaches 1 only as the first quartile approaches zero, the middle half stretching from nothing to everything. Real distributions live between, and the examples below stake out the territory.

  • Coefficient = (Q3 - Q1) / (Q3 + Q1): the IQR divided by twice the midhinge.
  • Scale-free and unit-free - compare spread across different measures and magnitudes.
  • Bounded between 0 and 1; built from quartiles, so outliers cannot drag it.
  • The quartile-based answer to the coefficient of variation, for skewed data.

Reading the coefficient against the IQR

The second example is the income-shaped case: quartiles of 45 and 60. Its IQR of 15.00 is nearly the first example's 16.00 - in absolute terms the two middle halves are almost equally wide. But the coefficient is 0.1429, barely a third of the first example's 0.4000, because the spread sits at a higher level: a midhinge of 52.50 rather than 20.00. That contrast is the entire reason the relative measure exists. An analyst comparing inequality between two regions, or dispersion between two years of the same survey, needs the second statement, not the first.

The third example moves the same lesson to small values: quartiles of 3.20 and 4.10, an IQR of just 0.90, a midhinge of 3.65 - and a coefficient of 0.1233. Tiny absolute spread, modest relative spread. A laboratory reporting these quartiles for a measurement process would read the coefficient, not the IQR, against another laboratory's: the question is never how wide the middle half is in millimetres or seconds, but how wide it is for the size of thing being measured.

The midhinge deserves its sentence: it is the midpoint of the quartiles, a robust centre estimate in its own right, and the coefficient is exactly the IQR divided by twice it. When a report gives the coefficient and the midhinge, the IQR is recoverable - the three figures on this page are one fact stated three ways, which is what makes them a good audit set.

Quartiles Q1 / Q3IQRMidhingeCoefficientRead
12 / 2816.0020.000.4000Wide middle half
45 / 6015.0052.500.1429Same width, higher level
3.20 / 4.100.903.650.1233Small values, modest spread
The first two examples have nearly identical IQRs - 16.00 and 15.00 - and coefficients threefold apart, 0.4000 against 0.1429. Absolute spread barely moved; relative spread transformed.

Worked examples

Example 1: First quartile Q1 12; Third quartile Q3 28. Quartile coefficient of dispersion = 0.4000. Supporting values: Interquartile range (Q3 - Q1) 16.00; Midhinge ((Q1 + Q3) / 2) 20.00; Quartile ratio (Q3 / Q1) 2.3333. Inputs: first quartile Q1 = 12.00, third quartile Q3 = 28.00. Interquartile range: 28.00 - 12.00 = 16.00. Quartile coefficient of dispersion: (28.00 - 12.00) / (28.00 + 12.00) = 0.4000. Quartile coefficient of dispersion result: 0.4000 - midhinge 20.00, quartile ratio 2.3333.

Example 2: First quartile Q1 45; Third quartile Q3 60. Quartile coefficient of dispersion = 0.1429. Supporting values: Interquartile range (Q3 - Q1) 15.00; Midhinge ((Q1 + Q3) / 2) 52.50; Quartile ratio (Q3 / Q1) 1.3333. Inputs: first quartile Q1 = 45.00, third quartile Q3 = 60.00. Interquartile range: 60.00 - 45.00 = 15.00. Quartile coefficient of dispersion: (60.00 - 45.00) / (60.00 + 45.00) = 0.1429. Quartile coefficient of dispersion result: 0.1429 - midhinge 52.50, quartile ratio 1.3333.

Example 3: First quartile Q1 3.2; Third quartile Q3 4.1. Quartile coefficient of dispersion = 0.1233. Supporting values: Interquartile range (Q3 - Q1) 0.90; Midhinge ((Q1 + Q3) / 2) 3.65; Quartile ratio (Q3 / Q1) 1.2812. Inputs: first quartile Q1 = 3.20, third quartile Q3 = 4.10. Interquartile range: 4.10 - 3.20 = 0.90. Quartile coefficient of dispersion: (4.10 - 3.20) / (4.10 + 3.20) = 0.1233. Quartile coefficient of dispersion result: 0.1233 - midhinge 3.65, quartile ratio 1.2812.

Quartile measures: dispersion against skewness

The quartile family has another famous member built from the same ingredients, and confusing the two is the standard error. Bowley's skewness coefficient uses all three quartiles to measure asymmetry - whether the upper half of the middle stretches further than the lower. The dispersion coefficient deliberately ignores the median: it prices the middle half's width against its level and asks nothing about its shape. A distribution can be perfectly symmetric and wildly dispersed, or lopsided and tight; the two coefficients patrol different properties, and a complete quartile report carries both.

That division of labour is the quartiles' charm. From three numbers - Q1, the median, Q3 - the family extracts a centre (the midhinge or the median), a spread (this coefficient or the IQR) and a shape (Bowley's), each robust, each computable by hand, none requiring the raw data to be revisited. For published summaries, where the quartiles are often all that survives of a data set, these coefficients are not approximations of better statistics; they are the statistics the surviving evidence supports.

When quartiles beat the standard deviation

The standard deviation prices every point's distance from the mean, which makes it the right spread measure for roughly symmetric, outlier-free data - and a misleading one elsewhere. A single extreme value can double it. Quartiles are elected by position rather than averaged, so the extreme value's only vote is its rank: move the largest observation ten times further out and Q1, Q3 and this coefficient do not move at all. For skewed distributions that insensitivity is not a loss of information but a refusal of distortion.

The honest cost is the mirror image: the coefficient sees nothing outside the middle half. Two distributions with identical quartiles and wildly different tails share a coefficient, and where the tails are the story - risk, extremes, failure loads - quartile measures must stand aside for tail-aware ones. The tool's virtue is knowing its jurisdiction: the middle half, robustly priced.

Checking a published coefficient

Because the formula is one division, a published coefficient can be audited from the printed quartiles in seconds - and the audit has a second layer in the figures this page returns together. The IQR must equal Q3 minus Q1 exactly; the midhinge must sit halfway between the quartiles; and the coefficient must equal the IQR divided by twice the midhinge. A report whose three figures fail any of those identities has a transcription error in it, and the identities say which figure is the odd one out.

The same discipline serves your own reporting. Quote the coefficient with the quartiles it came from, as this page's worked examples do, and any reader can rebuild your number. A coefficient quoted alone asks to be trusted; a coefficient quoted with its quartiles asks only to be verified.

FAQs

What coefficient do quartiles of 12 and 28 give?

0.4000. The IQR is 16.00 and the quartile sum is twice the midhinge of 20.00, so the coefficient is the IQR over the quartile sum - the middle half spans forty hundredths of the quartile level. The quartile ratio is 2.3333.

Why is the second example's coefficient so much lower on a similar IQR?

Level. Quartiles of 45 and 60 give an IQR of 15.00 - nearly the first example's 16.00 - but around a midhinge of 52.50 rather than 20.00. Relative to where it sits, that spread is only 0.1429. Comparing absolute IQRs across levels is the error the coefficient exists to prevent.

What does a coefficient of 0.1233 describe?

The third example: quartiles of 3.20 and 4.10, an IQR of 0.90 around a midhinge of 3.65. Small absolute spread at a small scale - and the coefficient, being scale-free, is the figure that can travel to comparisons with other processes and other units.

How does this differ from Bowley's skewness?

Different question, overlapping ingredients. Bowley's coefficient uses the median as well and measures asymmetry of the middle half; the dispersion coefficient ignores the median and measures the middle half's width relative to its level. A full quartile report carries both.

Why not just use the coefficient of variation?

When the data are skewed or outlier-prone, the CV's ingredients - mean and standard deviation - are themselves distorted, and the ratio inherits it. The quartile coefficient is built from positional statistics that outliers cannot drag. For clean, symmetric data the CV is fine and uses more of the evidence.

Can the coefficient exceed 1?

No. The numerator is a difference of the same two quartiles whose sum is the denominator, so the ratio is bounded by 1, reached only as the first quartile approaches zero. A reported value above 1 is an arithmetic error - one of the identities in the checking section will find it.

Sources

Related calculators

Interquartile Range (IQR) Calculator
Quartiles, IQR and Tukey outlier fences for a small data set: Q1, median and Q3 by linear interpolation, with values outside the fences flagged.
Quartile Calculator
First quartile, median, third quartile and the interquartile range for up to eight numbers — Tukey hinge method, with the 1.5 × IQR outlier fences applied.
Bowley Skewness Calculator
Compute Bowley's quartile skewness coefficient (Q3 + Q1 - 2 Q2) / (Q3 - Q1) - a robust skewness measure built only from quartiles, bounded between -1 and +1.