HOME

TheInfoList



OR:

The absolute difference of two
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s x and y is given by , x-y, , the
absolute value In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if x is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), ...
of their difference. It describes the distance on the
real line A number line is a graphical representation of a straight line that serves as spatial representation of numbers, usually graduated like a ruler with a particular origin (geometry), origin point representing the number zero and evenly spaced mark ...
between the points corresponding to x and y, and is a special case of the Lp distance for all 1\le p\le\infty. Its applications in statistics include the absolute deviation from a
central tendency In statistics, a central tendency (or measure of central tendency) is a central or typical value for a probability distribution.Weisberg H.F (1992) ''Central Tendency and Variability'', Sage University Paper Series on Quantitative Applications in ...
.


Properties

Absolute difference has the following properties: * For x\ge 0, , x-0, =x (zero is the
identity element In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied. For example, 0 is an identity element of the addition of real numbers. This concept is use ...
on non-negative numbers) * For all x, , x-x, =0 (every element is its own
inverse element In mathematics, the concept of an inverse element generalises the concepts of opposite () and reciprocal () of numbers. Given an operation denoted here , and an identity element denoted , if , one says that is a left inverse of , and that ...
) * , x-y, \ge 0 (non-negativity) * , x-y, = 0 if and only if x=y (nonzero for distinct arguments). * , x-y, =, y-x, (''
symmetry Symmetry () in everyday life refers to a sense of harmonious and beautiful proportion and balance. In mathematics, the term has a more precise definition and is usually used to refer to an object that is Invariant (mathematics), invariant und ...
'' or ''
commutativity In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a p ...
''). * , x-z, \le, x-y, +, y-z, (the ''
triangle inequality In mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side. This statement permits the inclusion of Degeneracy (mathematics)#T ...
''); 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 In mathematics, a metric space is a Set (mathematics), set together with a notion of ''distance'' between its Element (mathematics), elements, usually called point (geometry), points. The distance is measured by a function (mathematics), functi ...
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 Lp distances for all 1\le p\le\infty, including the p=1 and p=2 cases ( taxicab geometry and
Euclidean distance In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
, 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 In mathematics, the infimum (abbreviated inf; : infima) of a subset S of a partially ordered set P is the greatest element in P that is less than or equal to each element of S, if such an element exists. If the infimum of S exists, it is unique ...
and a
supremum In mathematics, the infimum (abbreviated inf; : infima) of a subset S of a partially ordered set P is the greatest element in P that is less than or equal to each element of S, if such an element exists. If the infimum of S exists, it is unique, ...
, the absolute difference between any two numbers in S is less or equal then 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 In any quantitative science, the terms relative change and relative difference are used to compare two quantities while taking into account the "sizes" of the things being compared, i.e. dividing by a ''standard'' or ''reference'' or ''starting'' ...
, 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 In mathematics and computer science, graph theory is the study of ''graph (discrete mathematics), graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of ''Vertex (graph ...
, vertices are labeled by
natural number In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
s 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 Lp 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 In statistics, a central tendency (or measure of central tendency) is a central or typical value for a probability distribution.Weisberg H.F (1992) ''Central Tendency and Variability'', Sage University Paper Series on Quantitative Applications in ...
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 Robust statistics are statistics that maintain their properties even if the underlying distributional assumptions are incorrect. Robust Statistics, statistical methods have been developed for many common problems, such as estimating location parame ...
based on minimizing the average absolute deviation.


References


External links

* {{Real numbers Real numbers Distance