ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
TS
applied-measurement · 24 min read

Two Stable Medians Can Hide Different Process Spread

Two people review hinge-position measurements and report the same finding: the median is ten. One of them is looking at a group whose measurements sit tightly…

Two people review hinge-position measurements and report the same finding: the median is ten. One of them is looking at a group whose measurements sit tightly around ten. The other is looking at a group with several readings much farther from the middle. If the job is to locate the middle of the observed positions, both reviewers have done it. If the job is to understand how much the positions differ from one unit to the next, neither answer is enough. A location summary and a spread summary describe different properties. It is possible for the first to look unchanged while the second moves enough to matter.

Two groups of hinge mockups with different lateral spacing. (generated editorial illustration; not documentary evidence)
Two groups of hinge mockups with different lateral spacing. (generated editorial illustration; not documentary evidence)

This distinction belongs in the language of the report before it belongs in a statistical test. Same median can mean two groups yielded the same observed middle. It does not say either process was stable through time, that the population medians are equal, or that the products fit a design requirement. In this title, stable means unchanged across the two simple summaries. It is not a certification of stable process behavior. A series can move from one regime to another, reverse halfway through, or include occasional large deviations while still yielding the same median as a steadier process.

The toy example here isolates that issue with five invented positions per group. Both medians are ten, and each group is symmetric in this particular set of values. Their spread, however, looks different on the raw number line and remains different when expressed as distances from their own median. This lets us distinguish three questions that are frequently combined in a dashboard. What difference was seen in the data? How much evidence does a test supply for an underlying scale difference? Does either series meet a specific requirement for individual measurements? They need different inputs and lead to different answers.

Read the raw positions before reading the bars

The compact hinge series consists of nine, ten, ten, ten and eleven. The dispersed series consists of five, eight, ten, twelve and fifteen. These positions are made up to teach a measurement distinction. They are not results from a factory, and no actual production process should be judged by them. Within each group, the central sorted value is ten. Both group means are also ten, although the example does not depend on that coincidence. In the compact group, all five observations lie no more than one position unit from the middle; in the dispersed group, only the central observation lies within one unit of ten.

Now set aside the signs and retain the distance of each position from its own group's median. A reading below the median and an equally distant reading above it then contribute the same magnitude. The compact distances in the listed order are one, zero, zero, zero and one. The dispersed distances are five, two, zero, two and five. The totals are two and fourteen, respectively. Divide each total by five because there are five recorded positions in that group. The results are 0.4 and 2.8 position units.

Why not just average the signed offsets? The compact offsets are negative one, zero, zero, zero and positive one. The dispersed offsets cancel as well. Both signed averages are zero. Cancellation is perfectly appropriate if the topic is net directional offset, but it is exactly what hides variation when the topic is magnitude of departure. Taking an absolute value converts a signed position summary into a measure of distance from a chosen point. That is an interpretive choice, not an improvement for every question. It discards the direction on purpose.

Mean absolute distance from each group's median

Illustrative only. These are fictional descriptive values, not source observations or official targets. The bars show the arithmetic mean of the five absolute distances from each group's own sample median. They do not show the Levene test statistic, a variance estimate, a p-value, or a tolerance determination.

Fictional hinge seriesposition units
Compact hinge series0.4
Dispersed hinge series2.8

The difference between the two mean distances is 2.4 position units. The second is seven times the first. Both statements are true of these invented group summaries; neither is a statement that one population variance is seven times the other. The chart's units remain the units of position. A sample variance based on squared distances would be expressed in squared position units, while the classical test statistic comparing group contrasts is a ratio with its own inferential interpretation. The chart is a first look at transformed observations, not a replacement for that inference.

The gap also does not directly say how many manufactured hinges would fail a design requirement. Nothing in the table says where the permissible boundaries lie. The same mean distance can result from many moderate departures or a few very large ones. Even if a threshold happened to be numerically equal to a bar height, the height is a group summary rather than a count of observations beyond that threshold. To inspect crossings, you need the original values or a summary constructed to count them.

Showing the observations beside the bar chart would make the story clearer. In the compact group, the masses at zero and one are immediately visible in the transformed series. In the dispersed group, the readings stretch out to five, and the order of positive and negative positions is visible only if the original values are shown. A bar offers a concise comparison, but a dot plot can reveal which records produced it. The two views are complementary. Neither adds more observations than the five per group actually used.

A mean absolute deviation is not a median absolute deviation

The words median and absolute deviation often appear together, so it is useful to spell out which operation takes place first and which takes place last. Here median supplies the center. Mean summarizes the resulting distances. A median absolute deviation instead uses the median of those distances as the final summary, possibly with an additional scaling convention in particular applications. Those two summaries can differ materially on the same set of observations. In the compact hinge example, the median distance is zero because three of the five distances are zero. Yet the mean distance is 0.4 because the two nonzero distances contribute to the sum.

This comparison explains why a robust center does not make a mean of distances immune to unusually large readings. A single extreme observation may leave the sample median unchanged while adding substantially to the mean absolute distance. That is often a useful property. It means a measure of spread still recognizes a potentially important departure even when the center is relatively resistant. But it complicates claims that using medians makes an analysis automatically insensitive to outliers. The center and the aggregation each have their own sensitivity.

Squared deviations offer a different emphasis. A reading twice as far away contributes twice as much to an absolute distance sum but four times as much to a squared distance sum. For two groups with different tails, the rankings can diverge. Imagine one group with an occasional large deviation and another with numerous middle-sized departures. Depending on the exact values, the first can have a bigger sum of squares even if the second has a larger sum of magnitudes. Before selecting the summary, ask whether larger excursions should dominate the comparison and why.

Range and interquartile range provide still other views. The range uses the two endpoints, making it easy to explain and highly dependent on what happened at the extremes. The interquartile range emphasizes the middle half of a distribution as described by its quartiles, which may not reflect rare excursions. Quartile conventions can give different calculated values in very small samples. If one of these is reported, include the convention where it matters. There is no obligation to pick a single number to stand for every feature of spread.

For these particular symmetrical examples, the sample variance about the mean in the compact group is one half of a squared position unit, whereas the sample variance in the dispersed group is fourteen and a half squared position units. The ratio is twenty-nine, not seven. This arithmetic provides a direct check against the common misreading of the bar chart. It does not diminish the usefulness of either statistic. It makes clear that the two operations measure different things and can answer different questions.

Where a Levene calculation goes after centering

The SciPy documentation for Levene's test describes a test whose stated null hypothesis is that the input samples come from populations with equal variances. It offers mean, median and trimmed centering options; its default is median. After translating the positions into deviations from a group center, the classical approach applies a one-way analysis of variance to absolute deviations. The statsmodels one-way scale test documentation usefully exposes the steps as choices: how to center, how to transform the deviations, and what comparison to use for the transformed data.

The comparison uses more information than the two bars. It assesses differences among the transformed group means relative to variability within the groups of transformed values. Equal bar heights produce no difference in transformed group means, but different bar heights are not sufficient to show strong inferential evidence. The strength of the contrast depends on how noisy the distances are and how many independent observations contributed. In the extreme case of large uncertainty, a visually memorable gap in a small chart may correspond to a result that warrants great caution.

For the illustrative positions, the average of the ten transformed values is 1.6. The two group averages are each 1.2 units from that pooled average. With equal group sizes of five, the between-group sum of squares is 14.4. The within-group sum of squares in the transformed data is 20: 1.2 from the compact group and 18.8 from the dispersed group. Dividing the latter by eight gives a within-group mean square of 2.5, while the between-group mean square remains 14.4 because there is one between-group degree of freedom. Their ratio is 5.76 under the standard pooled calculation. This is a separate, dimensionless number, not either chart bar or the difference between them.

The calculation is shown to put the chart in context. The values were not sampled and are not a basis for any factual conclusion about production. If a statistical package displays a p-value for the toy arrays, that result illustrates a reference procedure applied to invented numbers. It does not turn an imaginary manufacturing line into observed evidence. Model-based uncertainty statements belong to real observation designs and clearly delimited assumptions.

A careful write-up should identify which version of the test was used. The SciPy manual discusses the median-centered version in connection with Brown and Forsythe. Statsmodels also documents choices for the analysis of the transformed outcomes, including a default method called bf and a standard equal-variance analysis. Having median and absolute value in common does not guarantee identical inferential results if the comparison methods differ. Document function, relevant parameters and software version when they affect reproducibility. A name on a chart rarely tells the whole story.

Changing the center changes the scientific contrast

Consider a second toy set that is not part of the chart: nine, ten, ten, ten and twenty-one. Its middle observation is still ten, but the mean is twelve. Centering this set on ten gives absolute distances of one, zero, zero, zero and eleven, with mean 2.4. Centering on twelve gives distances of three, two, two, two and nine, with mean 3.6. That is not a rounding difference. The second calculation calls the very common value ten a departure of two because its chosen center moved. Both are internally coherent, but they do not produce the same transformed data.

A median-centered check can make sense when the primary aim is to compare departures from a representative middle despite skew. A mean-centered check uses a center with a different relation to large measurements. The SciPy manual gives guidance about skew and tails for its variants. A trimmed option has yet another rule and needs a reported trimming fraction. There is no all-purpose justification for cycling through centers and reporting only the one that yielded the most striking difference. If several plausible choices are compared, explain why and present the resulting sensitivity rather than hiding the other results.

Think too about what it means to use a separate center for each group. It removes the effect of a constant shift of all positions in a group from its centered distances. If every compact position were raised by three, its median would also rise by three, and the sequence of distances would stay the same. This invariance is a feature when asking about variability apart from location. It is a disadvantage if someone interprets the same result as showing acceptable positions around a fixed design target. In that setting, the constant shift might be the main practical concern.

A different question might deliberately compute departures from a common reference. If all groups are evaluated relative to a specified nominal position, a group that is uniformly offset from the target receives nonzero distances even if it has little internal spread. Those departures combine center mismatch with variability. They may be entirely appropriate for an error budget, but should not be described as the same within-group measure shown here. When two analysts disagree about the result, check whether they centered at group medians or at a common target before treating the disagreement as an arithmetic error.

Sample size and grouping determine what the test compares

Five readings per group make the arithmetic legible, not the inference strong. Before applying a test to real series, define an observation. Are these five distinct hinges sampled from a line, five measurements of one hinge, or measurements from five locations on one assembly? Each interpretation poses a different statistical problem. A method designed for independent groups does not turn repeated measurements of a common unit into independently manufactured hinges. More rows can improve resolution of a unit's measurement without increasing the number of independently observed units.

Consider a fictional practice where each of ten assemblies contains several hinges. Position readings within the same assembly may share alignment conditions. If all observations are pooled as though independent, an inferential comparison may treat that duplicated context as extra evidence. An analyst should identify the unit represented, the level at which groups differ, and where observations share process history. The point is not to throw out the readings. It is to match the comparison to how the readings arose.

The order of grouping is equally important. A group can be a tool setting, a shift, a particular batch, a product design, a paired before-and-after measurement, or the output of an arbitrary split used in a report. If the two series differ on several of these at once, the contrast cannot isolate which difference caused any change in spread. A test of contrasting groups is not a test of a causal mechanism merely because one group has a label that sounds like a treatment.

An attempted comparison can shift meaning if sample sizes are uneven. A big lot measured widely and a small lot measured in one brief period do not just have different statistical precision. They may also represent different amounts of temporal variation or different portions of the process. A size adjustment in a formula cannot fix inconsistent population definitions. For practical use, tell the reader both how many independent units each group contains and what parts of the process those units are intended to represent.

When comparing several groups, an overall test also sets a boundary on interpretation. A result that gives evidence against equal variances across all groups does not automatically list the pairs responsible. The graph of absolute deviations may highlight likely contrasts, but those highlights are exploratory unless the comparisons have their own analysis. Report whether the intent was to detect at least one scale difference or to identify particular differences under a stated comparison plan. The distinction is important even in small reviews where the labels look familiar.

Shape can complicate a claim about variance

In a family of distributions with similar shapes, changes in scale generally produce related changes in mean absolute distance and variance. Outside such a comparison, two groups can have different distribution shapes as well as different spread properties. Two empirical means of absolute deviations are not algebraically interchangeable with two variances. The practical strength of a variance interpretation depends on the setting and what the chosen transformation emphasizes. A one-line test output should not make the analyst stop looking at the original distributions.

Toy examples can make the differences apparent. A group whose observations crowd the center but occasionally fall far away can have a large variance relative to its mean absolute distance. Another group may have few central values and several consistently moderate departures, producing a different balance. Two groups can share a median and still differ in asymmetry, tail behavior or the presence of subgroups. Those features have consequences that a variance estimate or absolute-deviation comparison alone may not communicate.

There is a useful test for overly broad language: ask whether the report could still be right if one group were distinctly skewed and the other had two modes. Phrases such as tighter about its own median in the observed data are defensible if the actual statistic supports them. Statements such as the two distributions differ only in spread need evidence about shape and location in addition to scale. The transform intentionally removes signs. That is exactly why it cannot alone diagnose asymmetric patterns or whether both sides contributed comparably.

Separate the direction of an observation from the cause of a departure. A histogram of absolute distances can reveal several separated bands, but only a review of the raw readings and meaningful grouping can show whether a band reflects low values, high values or both. Extra context might indicate a mixture of tools, a batch-specific shift, or a transcription practice. A test detects a summary pattern under its assumptions; it does not recover these explanations from the transformed numbers.

Variation can be introduced by the measurements

Before describing a wider sample as a more variable process, inspect whether the way values were recorded changed. A position rounded to the nearest unit can produce ties around the median. A reading retained with greater precision may show variation inside that rounded band. The toy compact series has three identical center values by design, but an observed pattern of identical entries could reflect genuinely similar positions, coarse resolution, or a reporting convention. The observed median alone does not distinguish them.

Think about differences between instruments, operators and recorded contexts. If all measurements of one group used one gauge and all measurements of another used a different gauge, the group distinction is mixed with the measurement distinction. A larger spread could reflect more process variation, more measurement variation, a scale mismatch, or multiple influences at once. The contrast is still a feature of the records. Assigning it to the physical process requires further evidence. Keeping the observation and causal summaries separate gives a team a clearer next question.

A constant measurement offset can also be largely invisible to a centered comparison. Add the same amount to every recorded value from a gauge and its group's median shifts by that amount. The absolute distances from the group's own median do not change. A centered test is therefore not a check of calibration against a fixed reference. On the other hand, a change that expands the measured range or introduces intermittent reading errors can change those distances appreciably. Which issue is visible depends on what the calculation subtracts away.

A good observation table carries enough accompanying information to inspect possible confounds. It does not need pages of private production details to give readers sample counts, common units, rounding rules, group definitions and whether readings are paired or repeated. Recording exclusions matters too. A series with inconvenient extreme values removed according to one informal standard may look tighter than another retained under a different rule. A justified exclusion should be stated in terms of the quality or scope of the observation, not its effect on the chart.

Pooling across time can hide or inflate variation

A median across a shift can be unchanged even when the route to that midpoint changed. Imagine two sequences using the same positions. One alternates among values near and far from the center. The other stays below ten early, then changes to above ten. The sorted values, median and absolute-deviation summary are identical. Yet a chronological view tells a different process story, because sorting is insensitive to when an individual observation occurred. The comparison of overall spreads does not answer whether the process shifted at a specific point.

When repeated observations are taken close in time, consecutive rows may share state. That dependence matters for inference and for interpretation. A burst of late outlying readings can mean something different from the same number of outlying readings distributed over a long period. Reporting only a pooled spread summary hides whether excursions cluster. A timeline or subgroup display can expose changes that an overall scale contrast includes without diagnosing.

The effect also works the other way. Pooling two narrow periods with different centers can give the impression of a wide distribution inside each period. Consider a fictional sequence centered near nine for the first block and eleven for the next, with each block tightly grouped. A single median for the complete sequence can make the points look variable around ten. The actual pattern may be a shift between blocks rather than consistently wide within-block variation. A hierarchical or chronological description conveys that result more faithfully than renaming the pooled variance as instantaneous noise.

An analysis can show both levels when both matter. Overall spread describes what a randomly selected observed unit encountered across the covered period. Within-subgroup spread describes variability after accounting for the chosen subgroup definitions. A business or engineering decision about what operators experience over a month might prefer the first view, while a diagnosis of a shift transition might require the second. The point is to specify which variation was included, not to imply that one correct mean absolute distance exists independently of how the process was grouped.

A p-value is not a decision about a hinge

The output of a spread test is often presented beside a preexisting choice: change settings, keep a batch, or request investigation. That can encourage a dashboard to use the p-value as if it directly settled the operational question. Instead, separate the data pattern, the statistical evidence, and the decision rule. The test addresses compatibility with a model and a null hypothesis. A decision can depend on practical consequences, measurement uncertainty, costs of false conclusions, and evidence about limits that the test does not include.

Not rejecting an equal-variance null is also different from showing two populations are acceptably close. A study can return limited evidence against the null because the sample is small, because distances vary widely, or because the design does not resolve the difference of practical interest. If the desired claim is that variability differs by no more than an acceptable margin, that margin must be defined and supported by a procedure suited to a closeness or equivalence question. Two bars and a large p-value cannot make that choice retrospectively.

Very large studies can lead to the opposite communication problem. With enough reliable independent measurements, a small difference can be detected even if it has little importance for the work. The result may still be statistically informative: it identifies a difference under the stated comparison. But calling it serious or unacceptable requires knowledge of the scale at which people or equipment experience the outcomes. Report the size of the effect in interpretable units and relate it to whatever practical criteria have actually been established.

One useful alternative to the reflex of reporting only a p-value is to show the measured contrast along with an uncertainty statement that matches the sampling scheme and the quantity of interest. An interval for a difference in mean absolute distances is not an interval for a ratio of variances merely because both concern spread. An interval constructed from a design with repeated measurements must account for that design when appropriate. The inferential target should be named in ordinary language before the number appears, so readers do not confuse precision about one quantity with precision about a different one.

Limits live on the original measurement scale

Suppose, purely for an illustration outside the chart, a requirement were an inclusive interval from eight through twelve position units. Every compact value in the toy example lies inside that interval. The dispersed values of five and fifteen lie outside; eight and twelve lie on accepted boundaries. That is a direct comparison of each recorded position with those invented boundaries. It tells us what happened in these ten fictional observations under a declared rule. It does not estimate the fraction a real production process would deliver outside limits.

Change the invented interval to five through fifteen, inclusive, and every observation falls inside it. The chart remains exactly 0.4 and 2.8. Change the rule instead to an exclusive interval from eight to twelve, and the boundary readings in the dispersed group now fall outside as well. None of these changes alters the underlying measurement variation. They illustrate why tolerances are external specifications and why membership requires exact boundary language.

Comparisons with specifications often involve an additional issue: the relevant reference may be fixed by function while the observed group median can move. A very narrow series shifted far from a target might produce tiny absolute deviations and still be unacceptable under a specific limit. A wider series whose whole observed range lies well inside broad limits can show the opposite pattern. A scale check, a center check, and a count or model of limit failures may all be useful, but each calculation must remain linked to the question it answers.

There is a temptation to use an overall variance test to avoid looking at tails because tails are difficult to estimate. A spread contrast does not solve that difficulty. A small series can miss rare extremes entirely, and a plausible fitted model may give different estimates for extremes depending on assumptions about shape. For a consequential decision, the evidence and scope need to be established separately. The invented example is intentionally modest: it teaches how to distinguish outcomes without asserting which operational method is appropriate for a specific production line.

A report a second analyst can reconstruct

Begin with the question and the population or observation window. Specify the two groups and why they are comparable. Name the units, the group center, the transformation and the aggregation. Keeping those four measurement choices visible prevents the audience from mistaking mean distance from a median for a signed offset or a variance. Support the picture with the raw or otherwise appropriately summarized observations so that tails, ties and asymmetry can be seen. Give independent sample counts, not merely the number of stored rows.

Next, identify whether the display is descriptive or inferential. For a descriptive chart, report what values went into each bar and put the limitation in the chart's own caption. For an inferential result, describe the exact procedure and the structure of the design. If different software uses a different comparison method by default, state the settings rather than presenting conflicting output as a mystery. Avoid claims of identical group behavior simply because observed medians match or a statistical comparison was inconclusive.

Finally, state which conclusion would need additional evidence. For process timing, provide chronological data rather than a reordered view alone. For a practical requirement, compare with a specific, justified limit under the relevant measurement rule. For a causal account, explain whether the study design isolates the proposed influences. These are distinct tasks. The same record can prompt all three without providing the necessary evidence to finish them.

The illustration of two groups of hinge mockups tells the same visual story in ordinary terms: one group looks compact, the other spaced out. A generated editorial image is not a photograph of the data, and its spacing should not be used to reconstruct the positions. The table is the record of the invented values used in the lesson. Keeping those jobs distinct reinforces the larger point. A number or image can make one property easy to see while saying nothing about the next property a viewer is tempted to infer.

What would make these two bars misleading?

The first danger is an unmarked change of unit. A plotting program can place transformed distances in a common column even when one group was originally recorded in a different unit. Converting after the chart is made may leave labels correct but quantities wrong. To verify a real comparison, check representation before subtracting the center and observe whether the derived values agree with several hand-checked points. Converting both groups into a common linear position unit changes the distances by the same factor and leaves a properly computed dimensionless ratio unchanged. Converting only one group's values changes the comparison.

The next danger is a selection whose scope is not what readers expect. Suppose a report includes only the positions measured by one instrument because the others were considered too imprecise. That can be a reasonable decision if the comparison is deliberately defined around observations from the more precise instrument. It does not let the report describe all production as if the excluded readings had never existed. Relevant limitations might be expressed through separate coverage counts and a statement that the spread shown pertains to the retained subset. A separate quality-control record can explain exclusions without turning a descriptive article into a database dump.

Another danger is automatic chart scaling that visually enlarges or reduces the gap. A bar plot encodes magnitude through length; clipping its baseline makes the comparison easy to misread. Showing the zero baseline keeps the plotted lengths consistent with the arithmetic even if a sorted list or a dot plot would communicate the same result more efficiently. The numerical table lets readers inspect the difference without relying on the physical size of the bars. Good labeling does not oblige the reader to accept an impression based on color or spacing.

Taken together, these checks help keep the conclusion as clear as the original example. The fictional compact and dispersed series share a median of ten. Relative to their own medians, their mean absolute distances differ. The test statistic comes from a further comparison that uses the transformed groups' internal variation, not from the quotient of two chart bars. And the chart does not establish stability, calibration, or tolerance compliance. Answering those questions may be important, but it starts by identifying the additional evidence rather than asking the chosen measure to stand in for it.

A final reporting detail concerns precision. Reporting 0.400000 and 2.800000 would not create more information about the observations, while rounding both values to whole units would obscure the fact that the compact bar is nonzero. Keep enough digits for readers to reconstruct the comparison and avoid implying an instrument precision the original records did not have. In this invented example the decimals are arithmetic consequences of averaging five exact illustrative inputs, not a specification for measurement resolution.

Primary references

Frequently asked
What is Two Stable Medians Can Hide Different Process Spread about?
Two people review hinge-position measurements and report the same finding: the median is ten. One of them is looking at a group whose measurements sit tightly…
What should you know about read the raw positions before reading the bars?
The compact hinge series consists of nine, ten, ten, ten and eleven. The dispersed series consists of five, eight, ten, twelve and fifteen. These positions are made up to teach a measurement distinction. They are not results from a factory, and no actual production process should be judged by them. Within each group,…
What should you know about mean absolute distance from each group's median?
Illustrative only. These are fictional descriptive values, not source observations or official targets. The bars show the arithmetic mean of the five absolute distances from each group's own sample median. They do not show the Levene test statistic, a variance estimate, a p-value, or a tolerance determination.
What should you know about a mean absolute deviation is not a median absolute deviation?
The words median and absolute deviation often appear together, so it is useful to spell out which operation takes place first and which takes place last. Here median supplies the center. Mean summarizes the resulting distances. A median absolute deviation instead uses the median of those distances as the final…
What should you know about where a Levene calculation goes after centering?
The SciPy documentation for Levene's test describes a test whose stated null hypothesis is that the input samples come from populations with equal variances. It offers mean, median and trimmed centering options; its default is median. After translating the positions into deviations from a group center, the classical…
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room