Svoboda | Graniru | BBC Russia | Golosameriki | Facebook

To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Absolute difference

From Wikipedia, the free encyclopedia

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

The absolute difference of two real numbers and is given by , the absolute value of their difference. It describes the distance on the real line between the points corresponding to and . It is a special case of the Lp distance for all and is the standard metric used for both the set of rational numbers and their completion, the set of real numbers .

As with any metric, the metric properties hold:

  • , since absolute value is always non-negative.
  •   if and only if   .
  •     (symmetry or commutativity).
  •     (triangle inequality); in the case of the absolute difference, equality holds if and only if or .

By contrast, simple subtraction is not non-negative or commutative, but it does obey the second and fourth properties above, since if and only if , and .

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

if and only if .

This follows since and squaring is monotonic on the nonnegative reals.

YouTube Encyclopedic

  • 1/3
    Views:
    33 021
    673
    2 756
  • Absolute and Relative Differences
  • 花花酱 LeetCode 530. Minimum Absolute Difference in BST - 刷题找工作 EP127
  • Program to Count Pairs whose Absolute Difference is 'D' Given Value in an Array of Integers

Transcription

So suppose in the news you hear tuition is expected to increase 7% next year. If tuition this year was $1,200 per quarter, what will be next year? So there is couple of ways we can think about this. One way would be to say that if we're going to add an additional 7% on top of the tuition the next year. Next year will be our original 100% plus an extra 0.07%, or in other words, 107% of this year. So in other words our tuition this year was $1200, let's find 107% of that $1200. And, of course, usually we don't actually multiply it by the percent, we go ahead and rewrite it as a decimal. We go ahead and multiply, we come up with next year's tuition will be $1,284 per oops, per quarter. Now, another way we could have done this would be to say that 7% of 1,200. In other words, we could have started by just figuring out what the increase was going to be, so we could have said $1,200 times 7% is $84. In other words, the tuition is going to increase by $84 and then the tuition this year plus the increase gives us the expected tuition for next year, and that been another way to approach the same problem. And here is another problem the value of a car dropped from 7400 to a hundred dollars to $6800 over the last year. What percent decrease is this? So let's figure out, first off, how much the actual value decreased. If we take the new price minus the old price, we see that the price dropped by $600, so a $600 decrease. Now, usually when we talk about changes, it's easiest to talk about the absolute value of the change, which in this case would be $600. And we call this an absolute change, this is the actual change in absolute value, the actual change from one year to the next so it is $600 decrease. But we're really interested in the percent change and so we need to take this out of the starting amount. Now, this is really important when we talk about changes, relative changes, we need the, the absolute change. The absolute change divided by the starting quantity. So our change was 600 but that needs to be relative to our starting quantity. In this case we dropped from 6, 7,400, so it makes sense to count 7,400. As what we call the base of our percent? Now, base ends up being really important, and we'll see later. But for now we'll just say 600 out of 7400, if we divided that we would get 0.081, which is an 8.1% decrease. And again, this is what we call a relative change. And absolute changes and relative changes are two different ways to describe how somethings changed, and both have their value. often times though, the relative change is more useful to see sort of help big of a change it is because it describes that change relative to the starting at point.

See also

References

  • Weisstein, Eric W. "Absolute Difference". MathWorld.


This page was last edited on 13 May 2024, at 01:24
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.