ArticleslgStudy

mathematics

Mean absolute difference

Mean absolute difference is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Mean absolute difference rather than just read about it. In short: The mean absolute difference (univariate) is a measure of statistical dispersion equal to the average absolute difference of two independent values drawn from a probability distribution. A related statistic is the relative mean absolute difference, which is the mean absolute difference divided by the arithmetic mean, and equal to twice the Gini coefficient.

Key takeaways

  • Mean absolute difference belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Mean absolute difference to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Mean absolute difference from memory before moving on to harder problems.

Reference excerpt

The mean absolute difference (univariate) is a measure of statistical dispersion equal to the average absolute difference of two independent values drawn from a probability distribution. A related statistic is the relative mean absolute difference, which is the mean absolute difference divided by the arithmetic mean, and equal to twice the Gini coefficient. The mean absolute difference is also known as the absolute mean difference (not to be confused with the absolute value of the mean signed difference) and the Gini mean difference (GMD). The mean absolute difference is sometimes denoted by Δ or as MD.

Definition The mean absolute difference is defined as the "average" or "mean", formally the expected value, of the absolute difference of two random variables X and Y independently and identically distributed with the same (unknown) distribution henceforth called Q.

MD:=E[|X−Y|].

Calculation Specifically, in the discrete case,

For a random sample of size n of a population distributed uniformly according to Q, by the law of total expectation the (empirical) mean absolute difference of the sequence of sample values yi, i = 1 to n can be calculated as the arithmetic mean of the absolute value of all possible differences: MD=E[|X−Y|]=EX[EY|X[|X−Y|]]=1n2∑i=1n∑j=1n|xi−yj|. if Q has a discrete probability function f(y), where yi, i = 1 to n, are the values with nonzero probabilities: MD=∑i=1n∑j=1nf(yi)f(yj)|yi−yj|. In the continuous case,

if Q has a probability density function f(x): MD=∫−∞∞∫−∞∞f(x)f(y)|x−y|dxdy. An alternative form of the equation is given by:

MD=∫0∞∫−∞∞2f(x)f(x+δ)δdxdδ. if Q has a cumulative distribution function F(x) with quantile function Q(F), then, since f(x)=dF(x)/dx and Q(F(x))=x, it follows that: MD=∫01∫01|Q(F1)−Q(F2)|dF1dF2.

Relative mean absolute difference When the probability distribution has a finite and nonzero arithmetic mean AM, the relative mean absolute difference, sometimes denoted by Δ or RMD, is defined by

RMD=MDAM. The relative mean absolute difference quantifies the mean absolute difference in comparison to the size of the mean and is a dimensionless quantity. The relative mean absolute difference is equal to twice the Gini coefficient which is defined in terms of the Lorenz curve. This relationship gives complementary perspectives to both the relative mean absolute difference and the Gini coefficient, including alternative ways of calculating their values.

Properties The mean absolute difference is invariant to translations and negation, and varies proportionally to positive scaling. That is to say, if X is a random variable and c is a constant:

MD(X+c)=MD(X), MD(−X)=MD(X), and MD(cX)=|c|MD(X). The relative mean absolute difference is invariant to positive scaling, commutes with negation, and varies under translation in proportion to the ratio of the original and translated arithmetic means. That is to say, if X is a random variable and c is a constant:

RMD(X+c)=RMD(X)⋅mean(X)mean(X)+c=RMD(X)1+cmean(X)for c≠−mean(X), RMD(−X)=−RMD(X), and RMD(cX)=RMD(X)for c>0. If a random variable has a positive mean, then its relative mean absolute difference will always be greater than or equal to zero. If, additionally, the random variable can only take on values that are greater than or equal to zero, then its relative mean absolute difference will be less than 2.

Compared to standard deviation The mean absolute difference is twice the L-scale (the second L-moment), while the standard deviation is the square root of the variance about the mean (the second conventional central moment). The differences between L-moments and conventional moments are first seen in comparing the mean absolute difference and the standard deviation (the first L-moment and first conventional moment are both the mean). Both the standard deviation and the mean absolute difference measure dispersion—how spread out are the values of a population or the probabilities of a distribution. The mean absolute difference is not defined in terms of a specific measure of central tendency, whereas the standard deviation is defined in terms of the deviation from the arithmetic mean. Because the standard deviation squares its differences, it tends to give more weight to larger differences and less weight to smaller differences compared to the mean absolute difference. When the arithmetic mean is finite, the mean absolute difference will also be finite, even when the standard deviation is infinite. See the examples for some specific comparisons. The recently introduced distance standard deviation plays similar role to the mean absolute difference but the distance standard deviation works with centered distances. See also E-statistics.

Sample estimators For a random sample S from a random variable X, consisting of n values yi, the statistic

MD(S)=∑i=1n∑j=1n|yi−yj|n(n−1) is a consistent and unbiased estimator of MD(X). The statistic:

RMD(S)=∑i=1n∑j=1n|yi−yj|(n−1)∑i=1nyi is a consistent estimator of RMD(X), but is not, in general, unbiased. Confidence intervals for RMD(X) can be calculated using bootstrap sampling techniques. There does not exist, in general, an unbiased estimator for RMD(X), in part because of the difficulty of finding an unbiased estimation for multiplying by the inverse of the mean. For example, even where the sample is known to be taken from a random variable X(p) for an unknown p, and X(p) − 1 has the Bernoulli distribution, so that Pr(X(p) = 1) = 1 − p and Pr(X(p) = 2) = p, then

RMD(X(p)) = 2p(1 − p)/(1 + p). But the expected value of any estimator R(S) of RMD(X(p)) will be of the form:

E⁡(R(S))=∑i=0npi(1−p)n−iri, where the r i are constants. So E(R(S)) can never equal RMD(X(p)) for all p between 0 and 1.

Examples

† B(x,y) is the Beta function

See also Mean absolute error Mean deviation Estimator Coefficient of variation L-moment

References

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Mean absolute difference

Start with the simplest possible case. Write down what Mean absolute difference claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Mean absolute difference before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Mean absolute difference ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Mean absolute difference

In research
Mean absolute difference appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Mean absolute difference in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Mean absolute difference is common in secondary-school and first-year university syllabi. It links to neighbouring topics Distance, Scale statistics, Statistical deviation and dispersion, so understanding it makes those chapters shorter.
In everyday life
Look for Mean absolute difference outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Mean absolute difference” →

How to study Mean absolute difference in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Mean absolute difference means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Mean absolute difference out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Mean absolute difference in simple terms?

The mean absolute difference (univariate) is a measure of statistical dispersion equal to the average absolute difference of two independent values drawn from a probability distribution. A related statistic is the relative mean absolute difference, which is the mean absolute difference divided by t…

Why does Mean absolute difference matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Mean absolute difference?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Mean absolute difference.

Tags

  • Distance
  • Scale statistics
  • Statistical deviation and dispersion
  • Summary statistics
  • Theory of probability distributions

Keep exploring