World Library  
Flag as Inappropriate
Email this Article

Absolute difference

Article Id: WHEBN0028021681
Reproduction Date:

Title: Absolute difference  
Author: World Heritage Encyclopedia
Language: English
Subject: Relative change and difference, Symmetric mean absolute percentage error, Sum of absolute differences, Graceful labeling, Deviation (statistics)
Collection: Real Numbers
Publisher: World Heritage Encyclopedia

Absolute difference

Showing the absolute difference of real numbers x and y as the distance between them on the real line.

The absolute difference of two real numbers x, 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. It is a special case of the Lp distance for all 1 ≤ p ≤ ∞ and is the standard metric used for both the set of rational numbers Q and their completion, the set of real numbers R.

As with any metric, the metric properties hold:

  • |xy| ≥ 0, since absolute value is always non-negative.
  • |xy| = 0   if and only if   x = y.
  • |xy| = |yx|     (symmetry or commutativity).
  • |xz| ≤ |xy| + |yz|     (triangle inequality); in the case of the absolute difference, equality holds if and only if xyz.

By contrast, simple subtraction is not non-negative or commutative, but it does obey the second and fourth properties above, since xy = 0 if and only if x = y, and xz = (xy) + (yz).

The absolute difference is used to define other quantities including the relative difference, the L1 norm used in taxicab geometry, and graceful labelings in graph theory.

When it is desirable to avoid the absolute value function – for example because it is expensive to compute, or because its derivative is not continuous – it can sometimes be eliminated by the identity

|xy| < |zw| if and only if (xy)2 < (zw)2.

This follows since |xy|2 = (xy)2 and squaring is monotonic on the nonnegative reals.


This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from World eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.