
| Category | Value (units) |
|---|---|
| Scale 1 | 1 |
| Scale 2 | 2 |
| Scale 3 | 3 |
| Scale 4 | 4 |
| Scale 5 | 5 |
Illustrative calculation, not observations from the linked source. At scale s, offsets are −2s, −s, zero, s, 2s.
Suppose five comparable flower watches produced counts of eight, nine, ten, eleven, and twelve. The middle count is ten. Saying that ten is the middle is useful, but it does not tell us whether most watches were close to it. A second set of five watches could also have a middle count of ten, with much larger distances on either side. Median absolute deviation gives a compact way to describe those distances. Its inputs are the original values. Its result is a distance in the same units, not another estimate of the center.
Summary. Take the median of the observations, compute each observation's absolute distance from that median, then take the median of those distances. This article uses the raw, unscaled median absolute deviation, abbreviated MAD. For the first set above, the raw MAD is one count. A raw MAD of zero can be a real result when many values tie; it is not a code for missing data, and it does not imply all values match. A report is more useful when it shows the center, sample size, original units, and important tails alongside MAD, particularly for small or discrete data.
Find a middle value, then find the middle distance
The first median concerns the measured values. Arrange them in nondecreasing order. With five observations, the third is the median. With an even number, this article takes the arithmetic midpoint of the two central values. Record that rule when comparing software or when results hinge on half-counts. This rule can produce a median that is not itself an observed count. That is acceptable; the statistic describes a set, not a claim that someone saw half a bee.
Next subtract the median from each value and discard the sign of the difference. For eight, nine, ten, eleven, and twelve, centered differences in the original order are minus two, minus one, zero, one, and two. Their magnitudes are two, one, zero, one, and two. If you simply took the median of the signed differences you would get zero, which would express the choice of center rather than spread. The absolute value is what lets observations on opposite sides of the median contribute as distances without canceling.
Sort the magnitudes independently. The resulting list is zero, one, one, two, and two. The third number is one, so the raw MAD is one count. A convenient mental model is to draw a mark at the center and open an interval equally in both directions. At radius zero, this example interval contains only one point. At radius one, it contains three, including the boundaries. For odd-sized samples, the middle ordered distance is the smallest radius holding a majority of observations. The midpoint convention for even sizes needs a separate explanation; do not assume the same majority rule always gives the numerical statistic.
In particular, MAD is not the median of the original counts or the absolute value of that median. Nor is it the average of the absolute deviations from the mean. The NIST/SEMATECH Measures of Scale section, part of the Engineering Statistics Handbook, sets out these distinctions and compares several summaries of spread. The arithmetic examples in this article are invented. They use the definition from the handbook without inheriting any of the handbook's simulated or measured values.
Write both medians where someone can audit them. For a small team that keeps a spreadsheet, a column for the observed value and another for the absolute distance is usually enough. All rows in the distance column must reference the same calculated center for a group; a spreadsheet reference that moves as the formula is copied will silently compute several different distances. Check the number of valid observations and valid distances. Their counts should agree when each eligible record has exactly one observed value. A zero distance is still a value and must remain in that second column.
Read the chart as arithmetic, not observations
The chart titled “MAD of symmetric five-point examples” uses five hypothetical groups. All groups have center ten, and each group consists of the five offsets minus twice the scale, minus the scale, zero, plus the scale, and plus twice the scale. For a scale of three, the offsets are minus six, minus three, zero, three, and six, giving four, seven, ten, thirteen, and sixteen as the example values. The ordered magnitudes from ten are zero, three, three, six, and six. The third distance is three. Run the same arithmetic for each scale and the raw MAD equals the scale.
The exact chart values are in the table below. “Units” in the chart means units of the underlying illustrative observations. If these represented counts per standardized watch, the scale and recorded distances would use that count-per-watch unit. There are no survey results behind any of these bars.
| Chart label | Five invented values | Raw MAD in original units |
|---|---|---|
| Scale 1 | 8, 9, 10, 11, 12 | 1 |
| Scale 2 | 6, 8, 10, 12, 14 | 2 |
| Scale 3 | 4, 7, 10, 13, 16 | 3 |
| Scale 4 | 2, 6, 10, 14, 18 | 4 |
| Scale 5 | 0, 5, 10, 15, 20 | 5 |
These examples deliberately put a count of zero into the fifth set. Its distance from ten is ten, and it is treated just like any other observed value. Dropping it would leave four values with midpoint twelve and a half instead of ten. Under the usual two-middle-value rule applied to the new distances, the raw MAD would still be five in that particular example. An unchanged MAD would not vindicate the deletion. The center, record count, and interpretation changed. A statistic that happens to survive an error in one dataset cannot be used as a test that the error was harmless.
The even spacing and perfect symmetry are properties of the invented data. They are not claims that real observation distributions are symmetric or that scaling effort creates a linear relationship in observed field counts. If all measurements in an existing dataset are multiplied by a positive constant, the median and distance scale transform algebraically; changing how measurements are collected is a different operation. A watch made twice as long might produce a different pattern of sightings rather than every individual count doubling. The chart demonstrates the arithmetic for fixed values and stops there.
A figure reader should be able to reconstruct each bar from the table without judging color or height. If you publish your own chart, put the sample sizes and units near it and specify whether the bars are raw or scaled MAD. A bar of zero should be labeled zero rather than made artificially visible by a minimum height that suggests a positive distance. If the statistic was not calculable for a group, show that state distinctly from zero. A secondary table can show the center and extremes for each group, useful context that the deliberately minimal example chart does not encode.
Use the raw units before thinking about normalization
If the input is minutes, raw MAD is in minutes. If it is visitors per completed watch, raw MAD uses that same measure. If you change every measurement from minutes to seconds by multiplying by sixty, the new median is sixty times the old median and the new distances are sixty times the old distances. Raw MAD changes by the same factor. If instead you add the same constant to every value, the median shifts by that constant but deviations from it do not change. These two properties are a quick way to check a workbook for mistakes in units or in the formula.
Consider watching calibration markers drift from a reference. Five signed differences in millimetres might be minus two, minus one, zero, two, and ten. The median signed difference is zero. The ordered absolute distances are zero, one, two, two, and ten, giving a raw MAD of two millimetres. The minus signs nevertheless matter for understanding which direction the device drifted. MAD cannot show a directional bias. One report should preserve both the signed center and the spread, and separately describe the large positive deviation. Dropping the signs is a calculation step, not a decision to erase those signs from the measurement file.
Some statistical tools can return a normal-consistency-scaled MAD rather than the raw median distance. For a normal population, the median absolute distance from its center is about 0.67449 times the standard deviation. Multiplying by the reciprocal, approximately 1.4826, creates an estimator aimed at that standard-deviation scale under the normal model in large samples; it is not a universal equality in observed data. To see the constant, a symmetric normal distribution puts half its probability between the 25th and 75th percentiles, and the standard normal's 75th percentile is roughly 0.67449. A raw MAD of three would become roughly 4.45 under that scaling. The underlying count distances do not change.
A label such as “MAD = 4.45” therefore needs a stated convention. For describing the distances in small, integer-valued observation tables, the unscaled value is usually easier to explain. If someone else reports a normal-scaled value, do not compare it directly to yours unless the convention is resolved. With some software it is possible to request either option, and defaults can differ. Check by entering the five simplest example values rather than assuming that a function name specifies its scale. A raw expected answer of one lets you catch a scaled value near 1.48, or a completely different mean-based deviation option.
Compare measures by the question they answer
A range describes the difference between the largest and smallest observed values. It is valuable if you need to know what weekend staffing or a measurement device actually had to handle. It says nothing about the typical distances between the extremes. For eight, nine, ten, eleven, twelve the range is four and raw MAD is one. Replace only twelve with forty, giving eight, nine, ten, eleven, forty. The range grows to thirty-two, while the median remains ten and the raw MAD remains one. Ordered distances are zero, one, one, two, and thirty. The larger value is real in this hypothetical, and the fact that MAD does not change is not a reason to hide it.
Sample standard deviation measures spread around the arithmetic mean using squared distances, with the usual divisor one less than the sample size and a square root at the end. The square root restores the original units; the variance itself has squared units. In the clean example the mean is ten, the squared distances add to ten, the sample variance is 2.5, and the sample standard deviation is about 1.58. In the version ending at forty the mean is 15.6, the squared distances add to 749.2, the sample variance is 187.3, and the sample standard deviation is about 13.69. That is a different answer because it responds both to the changed mean and to the contribution of the long distance. There is no contradiction between the two measures.
Compare that calculation with mean-based average absolute deviation, also described in the handbook. It uses the arithmetic mean as its center and averages the magnitudes rather than squaring them. The clean example's magnitudes around the mean are two, one, zero, one, and two, so this average is 1.2 counts. With the changed example, the mean-based magnitudes are 7.6, 6.6, 5.6, 4.6, and 24.4, averaging 9.76 counts. Using absolute rather than squared distances does not make the result resistant in the same way as using two medians. “Mean absolute deviation” and “median absolute deviation” can both be abbreviated in informal discussion; spell the name out and identify the center and aggregation method.
Interquartile range is the third quartile minus the first. It describes the width spanning the middle part of a distribution instead of an absolute distance from one center. For small samples, quartile conventions can differ. For eight, nine, ten, eleven, forty, a convention using the second and fourth ordered values as the quartiles yields nine and eleven, hence an interquartile range of two. A convention taking the separate medians of the lower and upper halves while excluding the central observation yields 8.5 and 25.5, hence seventeen. Both calculations are traceable to stated rules, but it would be careless to use their disagreement as biological evidence. When five values suffice to show directly, let the reader see them.
Use more than one measure when multiple decisions depend on the data. A route organizer may care about typical observed variation for training consistency and unusually high values for staffing. MAD serves the first use, while the maximum, range, or a count above a stated threshold can serve the second. The results have different denominators or meanings and can be presented together. Do not claim that a robust summary “fixes” the high count; it simply limits how much the high value can move the central spread statistic. Keeping that row may be essential for a separate safety, ecology, or workload decision.
Put zero, missing, and unresolved in different places
A count of zero can mean that a completed watch using the defined protocol recorded no qualifying encounters. Retain that value. A cancelled watch did not observe zero encounters; it has no value for that outcome. A finished watch whose records were lost is another form of missingness. Some projects also encounter a record in which several contacts were visible but their classification could not be resolved. That may be a known count of contacts and an unknown count of a particular category, depending on the analysis. Use the observed value that corresponds to the stated question and label missing or unresolved states separately.
Consider a hypothetical log with six scheduled sessions. The delivered, comparable counts are zero, two, three, three, and four. The sixth session was cancelled because the site closed. The five-value median is three. The sorted distances are zero, zero, one, one, and three, so the raw MAD is one. If a worksheet silently substitutes a zero for the cancelled row, it now analyzes the sorted values zero, zero, two, three, three, and four. Their midpoint is 2.5 and the sorted distances are 0.5, 0.5, 0.5, 1.5, 2.5, and 2.5. The raw MAD is still one; the median and sample size have changed. The exact same MAD conceals a mistake that would affect other summaries.
If zeros are accidentally dropped instead, the fake analysis takes two, three, three, and four. Its median is three and its raw MAD is one half, calculated from distances zero, zero, one, and one. The completed zero count contains relevant information even if it occurred on an unremarkable morning. A consistent workbook filters by completion and measurement status, not by whether the value is nonzero. In any automated aggregation, inspect how blank cells, textual missing markers, and numerical zeros are read before calculating the center.
There are also zeros in the deviation column that do not correspond to zero counts. An observed ten in a group with median ten produces a zero distance. Deleting those zeros would deliberately exclude all observations at the center and redefine the statistic. Deviation rows should inherit the eligibility rule from the corresponding measurement and not get a separate rule for being numerically interesting. The routine needs blank and invalid checks, but valid zero distances are essential to the ordered set that defines MAD.
A completed dataset can produce a raw MAD of zero without having zero range or identical observations. Consider two, two, two, eight, and thirteen. The center is two. The sorted distances are zero, zero, zero, six, and eleven, and the middle distance is zero. Report the result as a tied center with central deviation zero, and also report the tail or show the values. This is not a reason to insert a tiny positive number so a chart will draw a visible bar. If a downstream comparison divides by MAD, its calculation is undefined at zero; decide on a different comparison or mark that analysis as not applicable.
Even a true zero MAD is not proof of an inherent absence of variation. Coarse rounding or limited measurement resolution can put many recorded values in one category. The data really do tie at the reported precision, but an instrument or a more precise counting rule could distinguish values within that category if justified. Avoid inventing decimals not recorded. Instead report the measurement resolution and acknowledge whether ties might plausibly reflect it. For valid count data, ties can also be a feature of the phenomenon rather than an instrument limitation; the plot of the original observations lets readers tell what is actually known.
Expect small samples to change in steps
Small samples are particularly easy to audit and particularly easy to overinterpret. With one valid observation, the raw computation gives one zero distance and a result of zero. No useful claim about variability across repeated sessions follows from it. With two observations, eight and twelve, the conventional midpoint is ten, their distances are both two, and the raw MAD is two. That is half their range, leaving both summaries dependent on the same two values. Missing all observations is different again: there is no center and therefore no defined MAD.
The even-sized rule can produce fractions that are genuine arithmetic. For two, four, five, and twelve, the center is 4.5. The sorted distances are 0.5, 0.5, 2.5, and 7.5, so raw MAD is the average of 0.5 and 2.5, or 1.5. This result describes distances in recorded count units; it does not assert a fractional observed item. A small report should not round intermediate values to the nearest integer: rounding the median first would change some distances, possibly changing the summary. Round only the presented result if necessary and document how.
Check how unstable the ordered center can be when you only have five rows. Start with eight, nine, ten, eleven, forty. Leave out forty and the median becomes 9.5; ordered distances become 0.5, 0.5, 1.5, and 1.5, and MAD stays one. Leave out nine instead and the median is 10.5; distances are 0.5, 0.5, 2.5, and 29.5, so raw MAD becomes 1.5. A leave-one-out check makes a useful sensitivity display, provided it is interpreted as recalculations on different sets, not a formal uncertainty interval. Results depend on the placement of rows, not just on whether one headline unusual point remains.
An additional valid row can change the parity of the sample and shift the statistic even when most existing values do not move. The five observations in the clean example have MAD one. Add an observed ten and there are now six values with median ten and ordered distances zero, zero, one, one, two, and two; raw MAD stays one. Add another ten and there are seven values, with three zeros among the distances and the fourth still one. Add one more ten and eight values yield ordered distances zero, zero, zero, zero, one, one, two, and two, with a raw MAD of one half. That decrease reflects the greater share of observations near the center, not a disappearance of the original extremes.
Design a comparison before collecting the numbers
Take a crew that wants to compare the consistency of two observation stations. If one crew counts insects per fixed watch and the other logs totals from open-ended walks, the MADs are not even in the same operational units. Converting them to a common clock unit is not always enough. The target patch, flower condition, time of day, and whether repeat contacts are counted can all shape the counts. Explicitly define what contributes a row before the spread statistic can help. A spreadsheet formula cannot convert deliberately different sampling rules into comparable observations.
Choose which form of variation matters. If the stations are watched at the same times and the question is whether their differences are stable, pair the observations and compute the difference on each date. Summarizing MAD on those aligned differences describes the spread of the station-to-station contrast. It does not equal subtracting one station's MAD from the other. For example, five dates might give station A counts of eight, nine, ten, eleven, twelve and station B counts of ten, eleven, twelve, thirteen, fourteen. Both raw MADs are one; all paired differences are two, so the differences have median two and raw MAD zero. The shared change across dates is relevant to one question and cancels from the other.
Change the correspondence and the story changes, even when both univariate summaries remain fixed. Suppose station B has the same numbers but in reverse date order: fourteen, thirteen, twelve, eleven, ten. The paired differences, B minus A, are six, four, two, zero, and minus two. Their median is still two, but the distances are four, two, zero, two, and four, so the difference MAD is two. The univariate centers and spreads cannot recover the pairing. Keep the date or block identifier with each count and never sort each series separately before making pairs.
Repeated visits are not automatically independent replicates of a habitat. Ten watches on one patch describe repeated conditions there, while ten patches watched once have different geographic coverage. A descriptive MAD of the ten rows can be computed either way, but the interpretation should name the unit and dependence. If some patches are sampled many more times than others, the visit-level median and MAD can be dominated by heavily sampled places. If your question instead gives each patch equal attention, first define what trustworthy per-patch quantity to summarize, and explain whether incomplete or sparse patches enter that summary. Changing this step can change results without any measurement error.
Consider whether a location comparison should keep the count scale or turn into a different variable. A rate calculated from a count and an exposure is a new observation and may carry a different kind of volatility when divided by a short exposure. Compute the rate for each eligible record using its actual denominator rather than dividing a raw count MAD by a single typical duration and calling the result the rate MAD. When all durations are identical, a common unit conversion is algebraically valid; when durations vary, this shortcut generally fails. Never give a rate to an observation with no usable exposure by substituting zero as its denominator.
Keep typical variation and unusual events visible together
A robust summary is useful when a few extreme values should not control the description of most observations. It is also possible to misuse it precisely because it can stay unchanged. Consider two five-value sets with the same center and MAD: eight, nine, ten, eleven, twelve and eight, nine, ten, eleven, forty. If one report states only median ten and MAD one, the reader cannot tell the sets apart. A simple table of ordered values, or a small dot plot with repeated values stacked, reveals the difference. Robustness is a property of a summary, not a warrant to remove details from an audit.
A second pair illustrates asymmetry. Compare two, nine, ten, eleven, twelve with eight, nine, ten, eleven, eighteen. The median is ten and the distance ordering is zero, one, one, two, eight in both. The unusual value sits below the typical cluster in one set and above it in the other. This may imply a very different event to a field observer, such as a quiet day rather than a busy day. MAD compresses the two sides by construction. A sign-aware plot, a list of extremes, or a relevant count above and below thresholds can preserve the direction when direction matters.
Do not assume two different groups that share raw MAD have matching consistency in every relevant sense. They may have different centers, different tail shapes, different measurement precision, or different eligibility rules. A count with median five and MAD two differs operationally from one with median fifty and MAD two. If a relative measure of variability matters, define the comparison and explain what dividing by a meaningful center does. A ratio involving a zero or near-zero center may be undefined or unstable; a center that can change sign presents another interpretation problem. For small counts an absolute distance with clearly stated units is often more legible.
Resist treating a multiple of MAD as an automatic deletion policy. Some robust screening scores use scaled distances to identify points for review under a stated method. That is different from declaring a row false. A count high enough to be unusual can be a valid observation, a duplicated entry, a protocol change, or a badly transcribed number. Confirm coding, provenance, and units in the original record before making any changes. If a record truly needs correction, keep the original value and the correction rationale. In an example where raw MAD is zero, dividing by it cannot even produce the intended screening score.
The central band can also bridge a gap where few measurements occurred. In a fictional staging test, six comparable job counts are two, two, three, seven, eight, and eight. The center is five, which nobody observed. The distances are three, three, two, two, three, and three, so the raw MAD is three. That center and spread describe the ordered distances correctly, but the visible gap matters. If separate shifts produced the low and high clusters, the process owner may want to compare shifts rather than summarize them as a single stable condition. Check whether the groups were defined independently of the observations before calling the separation a confirmed mechanism. The plot invites a check; the statistic does not identify the mechanism.
Prepare a report someone else can recalculate
Begin with the eligible dataset version and a reason for each exclusion. Identify the count or measurement unit, the sample unit, and the time span. Keep the number of planned records separate from the number of completed records and the number eligible for the numerical summary. After the median and raw MAD, show minimum and maximum or the original values when there are few enough. Add outcome details such as recognized ties, rounding precision, or a source event that needs review. This combination works even when a graphic represents only one of the quantities.
For a transparent table, retain both the center used and the per-row magnitudes. A two-column audit can show raw value followed by its distance from the center. Sorting visual copies of the data is fine; the underlying log should preserve its original ordering and record identifiers. An automated calculation can build a separate ordered array so that any paired or dated context stays intact. If a second source says the result is different, compare the eligible rows and the unit before assuming one formula is wrong. Differences in missing-data handling, grouping rules, parity, normal scaling, or rounding account for many seemingly contradictory values.
Test the working calculator against small results with known behavior. Use the clean five-point case to test normal scaling defaults. Use a group of all identical values to check legitimate zero; use the five mixed values centered at a frequently tied count to check that a varied dataset can also legitimately yield zero. Use an empty set to verify that missing remains undefined. Use a group of even size whose midpoint is not a recorded value to check that rounding has not crept in. Where possible, run these checks without importing real survey or personal records. Test fixtures should stay explicitly fictional.
A good audit reports both what was calculated and what cannot be inferred. For example: “Across five completed ten-minute watches of the same target, the median was ten qualifying encounters and the raw MAD was one encounter per watch. The maximum was forty, which remains in the dataset. One additional scheduled watch was cancelled and excluded as missing.” That wording bounds the measure by its actual observation rule; it does not imply that true insect activity outside those windows followed the same distribution, or that any future watch is guaranteed to lie within one of the median.
Where the table is tiny, avoid invoking an uncertain population claim just because a statistic has a name. The reported MAD is a calculation on the recorded values. A confidence interval for a broader population or a claim that one site's spread is decisively lower requires more information about how those observations were generated. Small, clustered, or heavily tied samples complicate formal inference. There is no single sample-size cutoff that makes every comparison credible. Describe the available comparison and the design needed for the next one. This is more honest than supplying unwarranted precision to two decimals.
Questions readers commonly ask
Why take the absolute value instead of keeping positive and negative deviations?
A signed deviation records direction. It can be essential for diagnosing a measurement bias, but it does not express distance in a way that combines both sides of the center. The median of signed deviations around the sample median is zero under the median rule used here. Absolute values turn both negative and positive differences into nonnegative distances. Keep the signed values in the underlying data and use them separately if you care about direction.
Is the median of an even number always one of the observed values?
Not under the midpoint convention used here. The values two and three have a midpoint of 2.5. A second midpoint may be taken after ordering the two central absolute distances. Neither midpoint changes the measured counts. They are numerical summaries of the recorded dataset. If a program uses a different median convention, a small fixture can show where your results start to differ.
When should I report MAD rather than standard deviation?
MAD is useful for showing central spread when extremes should not drive the summary. Sample standard deviation is useful when the mean and squared-distance spread are appropriate to the question, and it visibly responds to tail values that can matter. Neither replaces all distribution information. When there are five measurements, include the measurements too, and use a tail-aware summary if a rare high count is operationally important. State any scaling convention explicitly.
Does MAD automatically exclude an outlier?
No. The computation uses all eligible values. A distant point may leave the ordered central distance unchanged, but it was still used to determine the center and distances. A row can be removed only for an independent, documented reason such as an incompatible protocol or a verified recording error. Audit the influence of the disputed value with an explicitly labeled sensitivity comparison rather than silently improving the reported result.
What does a raw MAD of zero actually prove?
It proves that the calculated median absolute distance is zero for those eligible rows under the stated median convention. For an odd sample this occurs when a majority share the center; under the midpoint convention for an even sample both central distances must be zero. It does not prove that every value ties, that instruments perfectly agree, that measurements are exact, or that observations were missing. Show the valid count and tail values to distinguish the possibilities.
Can I add my two reported MADs to get the combined MAD?
Not in general. Combine the underlying comparable values, recalculate the pooled median, and then form the deviations around that pooled center. Consider whether pooling is useful if the groups have different sampling weights or their centers differ meaningfully. For a matched comparison, compute the paired differences instead of pooling, then state that the resulting spread is about the differences. The decision about which dataset belongs together precedes the arithmetic.
Are the five chart bars an estimate of real field variability?
No. Every underlying value is invented to show how taking the median of distances behaves when all offsets scale together. The plotted values and their table can be computed with pencil and paper. The NIST source supports the definition of MAD and its comparison to other scale summaries, not the numbers in this chart.
Bibliography
- NIST/SEMATECH Engineering Statistics Handbook, PDF edition. Exploratory data analysis reference for scale, units, and interpretation.
- NIST/SEMATECH Engineering Statistics Handbook, section 1.3.5.6, Measures of Scale. Direct HTML reference for definitions and comparisons of variance, standard deviation, range, average absolute deviation, median absolute deviation, and interquartile range.
All tables and datasets written for this article are illustrative calculations, not field observations or extracted NIST results.