encyclopegia.org

Absolute difference

. The absolute difference of two real numbers x and y is given by |x-y| , the absolute value of their difference. It describes the distance on the real line between the points corresponding to x and y , and is a special case of the L p distance for all 1\le p\le\infty . Its applications in statistics include the absolute deviation from a central tendency.

.]] The absolute difference of two real numbers x and y is given by |x-y| , the absolute value of their difference. It describes the distance on the real line between the points corresponding to x and y , and is a special case of the L p distance for all 1\le p\le\infty . Its applications in statistics include the absolute deviation from a central tendency. ==Properties== Absolute difference has the following properties: For x\ge 0 , |x-0|=x (zero is the identity element on non-negative numbers) For all x , |x-x|=0 (every element is its own inverse element) |x-y|\ge 0 (non-negativity) |x-y|= 0 if and only if x=y (nonzero for distinct arguments). |x-y|=|y-x| (symmetry or commutativity). |x-z|\le|x-y|+|y-z| (the triangle inequality); equality holds if and only if x\le y\le z or x\ge y\ge z . Because it is non-negative, nonzero for distinct arguments, symmetric, and obeys the triangle inequality, the real numbers form a metric space with the absolute difference as its distance, the familiar measure of distance along a line. It has been called "the most natural metric space", and "the most important concrete metric space". This distance generalizes in many different ways to higher dimensions, as a special case of the L p distances for all 1\le p\le\infty , including the p=1 and p=2 cases (taxicab geometry and Euclidean distance, respectively). It is also the one-dimensional special case of hyperbolic distance. Instead of |x-y| , the absolute difference may also be expressed as \max(x,y)-\min(x,y). Generalizing this to more than two values, in any subset S of the real numbers which has an infimum and a supremum, the absolute difference between any two numbers in S is less or equal than the absolute difference of the infimum and supremum The absolute difference takes non-negative integers to non-negative integers. As a binary operation that is commutative but not associative, with an identity element on the non-negative numbers, the absolute difference gives the non-negative numbers (whether real or integer) the algebraic structure of a commutative magma with identity. ==Applications== The absolute difference is used to define the relative difference, the absolute difference between a given value and a reference value divided by the reference value itself. In the theory of graceful labelings in graph theory, vertices are labeled by natural numbers and edges are labeled by the absolute difference of the numbers at their two vertices. A labeling of this type is graceful when the edge labels are distinct and consecutive from 1 to the number of edges. As well as being a special case of the L p distances, absolute difference can be used to define Chebyshev distance (L ∞ ), in which the distance between points is the maximum or supremum of the absolute differences of their coordinates. In statistics, the absolute deviation of a sampled number from a central tendency is its absolute difference from the center, the average absolute deviation is the average of the absolute deviations of a collection of samples, and least absolute deviations is a method for robust statistics based on minimizing the average absolute deviation. ==External links==

References

No reference rows published for this article.

Cite this article

MLA

"Absolute difference." encyclopegia.org, 2026, https://encyclopegia.org/wiki/absolute-difference. Accessed 24 November 2026.

Chicago

"Absolute difference." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/absolute-difference.

APA

encyclopegia.org. (2026). Absolute difference. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/absolute-difference

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

New York Trust Company

enwiki · references available

Lancashire County Rugby Football Union

enwiki · references available

Kubatbek Baibolov

enwiki · references available

Convoy PQ 12

enwiki · references available

National Broadband Initiative (Malaysia)

enwiki · references available

Ginta Lapiņa

enwiki · references available

Arrhoges occidentalis

enwiki · references available

Aporrhais serresiana

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1339537479 · 0.5 · snapshot enwiki-001339537479

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.