Draft:Relative change

From testwiki
Jump to navigation Jump to search

Template:Short description A relative or percent difference (or change) measures of the distance between two quantities, relative to their size.[1] The comparison is expressed as a ratio and is generally a dimensionless quantity.Template:Sfn

A special case of relative change, called the relative or percent error, occurs in measurement situations where there is an accepted reference value (perhaps theoretically determined) and the value being compared to it is experimentally determined (by measurement). Corresponding values of percent change can be obtained by multiplying these values by 100 (and using the % sign to indicate that the value is a percentage).

Basic (classical)

Given two numbers—vref and v—with vref being the reference value, their difference (sometimes absolute difference) is:

Template:Math

This difference is not always a good way to compare values, because it depends on the context and units of measurement. For instance, Template:Val is the same as Template:Val, but the absolute difference between Template:Val is 1 m, while the absolute difference between Template:Val is 100 cm, giving the impression of a larger difference.Template:Sfn Using relative change helps judge the importance of a change, even when comparing changes in quantities of different units.

One way to adjust the comparison so it accounts for the "size" of the quantities involved is to use the basic, classical, or approximate relative change, commonly taught in primary schooling. It is defined as:relative change (basic): changereference value=Δvvref=vvref1The relative change is independent of the units. For example, the relative change from Template:Val is Template:Val, the same as for Template:Val. The relative change is not defined if the reference value (vref) is zero.

Percent error

The percent error is a special case of the basic relative change. It is equal to the absolute change between the experimental (measured) and theoretical (accepted) values, and dividing by the theoretical (accepted) value.% Error=ExperimentalTheoreticalTheoreticalThe terms "Experimental" and "Theoretical" used in the equation above are commonly replaced with similar terms. Other terms used for experimental could be "measured," "calculated," or "actual" and another term used for theoretical could be "accepted." Experimental value is what has been derived by use of calculation and/or measurement and is having its accuracy tested against the theoretical value, a value that is accepted by the scientific community or a value that could be seen as a goal for a successful result.

Issues

Although intuitive and commonly taught, it has several issues that can create counterintuitive behaviors. For example, basic percent changes are not commutative. Therefore, it is vital to preserve the order as above: subtract the theoretical value from the experimental value and not vice versa.

Logarithmic (scientific)

Template:See also

The logarithmic or scientific relative change is another indicator of relative change. It is generally recommended over the basic relative change used in scientific and statistical analysis, as it has better (more intuitive) mathematical properties than the basic relative change.[2]

Of these indicators of relative change, the most natural arguably is the natural logarithm (ln) of the ratio of the two numbers (final and initial), called log change:Template:Sfn

relative change (scientific): actual changereference value=lnv1v0=lnv1lnv0

In the same way that relative change can be scaled by 100 to get percentages, lnV1V0 can be scaled by 100 to get what are commonly called centinepers (cNp),[3][4] log points,[5] log percentages, or (in some scientific or statistical contexts) simply percentages; these are sometimes denoted % or just % (when the meaning is clear from context).Template:Sfn

Log percentages are approximately equal to basic percentages for small relative changes. For example, an increase of 1% is an increase of 0.995%, and a 5% increase is a 4.88% increase.

Advantages and properties

Log points have several desirable mathematical properties, which are not shared with by have led scientists and statisticians to advocate using them to replace over the basic percent change for most scientific and .[3][6]

Additivity

Using the log change has the advantage of additivity compared to the basic relative change;Template:Sfn[3] in other words, an x% change and a y% change add up to an x+y% change. With basic percentages, summing is only an approximation that breaks down for large changes.[3] For example:

Log change 0 (cNp) Log change 1 (cNp) Total log change (cNp) Relative change 0 (%) Relative change 1 (%) Total relative change (%)
10% 5% 15% 10% 5% 15.5%
10% −5% 5% 10% −5% 4.5%
10% 10% 20% 10% 10% 21%
10% −10% 0% 10% −10% −1%
50% 50% 100% 50% 50% 125%
50% −50% 0% 50% −50% −25%

Note that in the above table, since relative change 0 (respectively relative change 1) has the same numerical value as log change 0 (respectively log change 1), it does not correspond to the same variation. The conversion between relative and log changes may be computed as log change=ln(1+relative change).

Symmetry

The basic (or classical) relative change is not generally useful as a metric of the "difference" or "distance" between two quantities, because it is not symmetric. In other words, whether

However, by additivity, lnV1V0=lnV0V1; thus the magnitude of a change expressed in log change is the same whether V0 or V1 is chosen as reference.[3] In contrast, for relative change, V1V0V0V0V1V1, with the difference (V1V0)2V0V1 becoming larger as V1 or V0 approaches 0 while the other remains fixed. For example:

V0 V1 Log change (cNp) Relative change (%)
10 9 −10.5 −10.0
9 10 +10.5 +11.1
10 1 −230 −90
1 10 +230 +900
10 0+ −∞ −100
0+ 10 +∞ +∞

Here 0+ means taking the limit from above towards 0.

Uniqueness and extensions

The log change is the unique two-variable function that is additive, and whose line


Generalized indicators of relative change

The relative one of the possible measures/indicators of relative change. An indicator of relative change from x (initial or reference value) to y (new value) R(x,y) is a binary real-valued function defined for the domain of interest which satisfies the following properties:Template:Sfn

  • Appropriate sign: {R(x,y)>0iff y>xR(x,y)=0iff y=xR(x,y)<0iff y<x.
  • Template:Mvar is an increasing function of Template:Mvar when Template:Mvar is fixed.
  • Template:Mvar is continuous.
  • Independent of the unit of measurement: for all a>0, R(ax,ay)=R(x,y).
  • Normalized: ddyR(1,y)|y=1=1

The normalization condition is motivated by the observation that Template:Mvar scaled by a constant c>0 still satisfies the other conditions besides normalization. Furthermore, due to the independence condition, every Template:Mvar can be written as a single argument function Template:Mvar of the ratio y/x.Template:Sfn The normalization condition is then that H(1)=1. This implies all indicators behave like the classical one when y/x is close to Template:Val.

Usually the indicator of relative change is presented as the actual change Δ scaled by some function of the values x and y, say Template:Math.Template:Sfn

Relative change(x,y)=Actual changeΔf(x,y)=yxf(x,y).

As with classical relative change, the general relative change is undefined if Template:Math is zero. Various choices for the function Template:Math have been proposed:Template:Sfn

Indicators of relative changeTemplate:Sfn
Name f(x,y)where the indicator's value is yxf(x,y) H(y/x)
Classical relative change Template:Mvar yx1
Arithmetic mean change 12(x+y) yx112(1+yx)
Geometric mean change xy yx1yx
Harmonic mean change 21x+1y (yx1)(1+xy)2
Moment mean change of order Template:Mvar [12(xk+yk)]1k yx1[12(1+(yx)k)]1k
Maximum mean change max(x,y) yx1max(1,yx)
Minimum mean change min(x,y) yx1min(1,yx)
Logarithmic (mean) change {yxlnyxxyxx=y lnyx

As can be seen in the table, all but the first two indicators have, as denominator a mean. One of the properties of a mean function m(x,y) is:Template:Sfn m(x,y)=m(y,x), which means that all such indicators have a "symmetry" property that the classical relative change lacks: R(x,y)=R(y,x). This agrees with intuition that a relative change from x to y should have the same magnitude as a relative change in the opposite direction, y to x, just like the relation yx=1xy suggests.

Maximum mean change has been recommended when comparing floating point values in programming languages for equality with a certain tolerance.[7] Another application is in the computation of approximation errors when the relative error of a measurement is required. Minimum mean change has been recommended for use in econometrics.[8]Template:Sfn Logarithmic change has been recommended as a general-purpose replacement.

Tenhunen defines a general relative difference function from L (reference value) to K:Template:SfnH(K,L)={1K/Ltc1dtwhen K>LK/L1tc1dtwhen K<Lwhich leads toH(K,L)={1c((K/L)c1)c0ln(K/L)c=0,K>0,L>0In particular for the special cases c=±1,H(K,L)={(KL)/Kc=1(KL)/Lc=1

See also

Notes

References