fbpx
Wikipedia

Log–log plot

In science and engineering, a log–log graph or log–log plot is a two-dimensional graph of numerical data that uses logarithmic scales on both the horizontal and vertical axes. Power functions – relationships of the form – appear as straight lines in a log–log graph, with the exponent corresponding to the slope, and the coefficient corresponding to the intercept. Thus these graphs are very useful for recognizing these relationships and estimating parameters. Any base can be used for the logarithm, though most commonly base 10 (common logs) are used.

A log–log plot of y = x (blue), y = x2 (green), and y = x3 (red).
Note the logarithmic scale markings on each of the axes, and that the log x and log y axes (where the logarithms are 0) are where x and y themselves are 1.

Relation with monomials edit

Given a monomial equation   taking the logarithm of the equation (with any base) yields:

 
Setting   and   which corresponds to using a log–log graph, yields the equation:
 
where m = k is the slope of the line (gradient) and b = log a is the intercept on the (log y)-axis, meaning where log x = 0, so, reversing the logs, a is the y value corresponding to x = 1.[1]

Equations edit

The equation for a line on a log–log scale would be:

 
 
where m is the slope and b is the intercept point on the log plot.

Slope of a log–log plot edit

 
Finding the slope of a log–log plot using ratios

To find the slope of the plot, two points are selected on the x-axis, say x1 and x2. Using the above equation:

 
and
 
The slope m is found taking the difference:
 
where F1 is shorthand for F(x1) and F2 is shorthand for F(x2). The figure at right illustrates the formula. Notice that the slope in the example of the figure is negative. The formula also provides a negative slope, as can be seen from the following property of the logarithm:
 

Finding the function from the log–log plot edit

The above procedure now is reversed to find the form of the function F(x) using its (assumed) known log–log plot. To find the function F, pick some fixed point (x0, F0), where F0 is shorthand for F(x0), somewhere on the straight line in the above graph, and further some other arbitrary point (x1, F1) on the same graph. Then from the slope formula above:

 
which leads to
 
Notice that 10log10(F1) = F1. Therefore, the logs can be inverted to find:
 
or
 
which means that
 
In other words, F is proportional to x to the power of the slope of the straight line of its log–log graph. Specifically, a straight line on a log–log plot containing points (x0F0) and (x1F1) will have the function:
 
Of course, the inverse is true too: any function of the form
 
will have a straight line as its log–log graph representation, where the slope of the line is m.

Finding the area under a straight-line segment of log–log plot edit

To calculate the area under a continuous, straight-line segment of a log–log plot (or estimating an area of an almost-straight line), take the function defined previously

 
and integrate it. Since it is only operating on a definite integral (two defined endpoints), the area A under the plot takes the form
 

Rearranging the original equation and plugging in the fixed point values, it is found that

 

Substituting back into the integral, you find that for A over x0 to x1

 

Therefore,  

For m = −1, the integral becomes

 

Applications edit

 
A log-log plot condensing information that spans more than one order of magnitude along both axes

These graphs are useful when the parameters a and b need to be estimated from numerical data. Specifications such as this are used frequently in economics.

One example is the estimation of money demand functions based on inventory theory, in which it can be assumed that money demand at time t is given by

 
where M is the real quantity of money held by the public, R is the rate of return on an alternative, higher yielding asset in excess of that on money, Y is the public's real income, U is an error term assumed to be lognormally distributed, A is a scale parameter to be estimated, and b and c are elasticity parameters to be estimated. Taking logs yields
 
where m = log M, a = log A, r = log R, y = log Y, and u = log U with u being normally distributed. This equation can be estimated using ordinary least squares.

Another economic example is the estimation of a firm's Cobb–Douglas production function, which is the right side of the equation

 
in which Q is the quantity of output that can be produced per month, N is the number of hours of labor employed in production per month, K is the number of hours of physical capital utilized per month, U is an error term assumed to be lognormally distributed, and A,  , and   are parameters to be estimated. Taking logs gives the linear regression equation
 
where q = log Q, a = log A, n = log N, k = log K, and u = log U.

Log–log regression can also be used to estimate the fractal dimension of a naturally occurring fractal.

However, going in the other direction – observing that data appears as an approximate line on a log–log scale and concluding that the data follows a power law – is not always valid.[2]

In fact, many other functional forms appear approximately linear on the log–log scale, and simply evaluating the goodness of fit of a linear regression on logged data using the coefficient of determination (R2) may be invalid, as the assumptions of the linear regression model, such as Gaussian error, may not be satisfied; in addition, tests of fit of the log–log form may exhibit low statistical power, as these tests may have low likelihood of rejecting power laws in the presence of other true functional forms. While simple log–log plots may be instructive in detecting possible power laws, and have been used dating back to Pareto in the 1890s, validation as a power laws requires more sophisticated statistics.[2]

These graphs are also extremely useful when data are gathered by varying the control variable along an exponential function, in which case the control variable x is more naturally represented on a log scale, so that the data points are evenly spaced, rather than compressed at the low end. The output variable y can either be represented linearly, yielding a lin–log graph (log x, y), or its logarithm can also be taken, yielding the log–log graph (log x, log y).

Bode plot (a graph of the frequency response of a system) is also log–log plot.

In chemical kinetics, the general form of the dependence of the reaction rate on concentration takes the form of a power law (law of mass action), so a log-log plot is useful for estimating the reaction parameters from experiment.

See also edit

References edit

  1. ^ M. Bourne Graphs on Logarithmic and Semi-Logarithmic Paper (www.intmath.com)
  2. ^ a b Clauset, A.; Shalizi, C. R.; Newman, M. E. J. (2009). "Power-Law Distributions in Empirical Data". SIAM Review. 51 (4): 661–703. arXiv:0706.1062. Bibcode:2009SIAMR..51..661C. doi:10.1137/070710111. S2CID 9155618.

External links edit

  • Non-Newtonian calculus website

plot, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, december, 2009, learn. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Log log plot news newspapers books scholar JSTOR December 2009 Learn how and when to remove this template message In science and engineering a log log graph or log log plot is a two dimensional graph of numerical data that uses logarithmic scales on both the horizontal and vertical axes Power functions relationships of the form y a x k displaystyle y ax k appear as straight lines in a log log graph with the exponent corresponding to the slope and the coefficient corresponding to the intercept Thus these graphs are very useful for recognizing these relationships and estimating parameters Any base can be used for the logarithm though most commonly base 10 common logs are used A log log plot of y x blue y x2 green and y x3 red Note the logarithmic scale markings on each of the axes and that the log x and log y axes where the logarithms are 0 are where x and y themselves are 1 Contents 1 Relation with monomials 2 Equations 2 1 Slope of a log log plot 2 2 Finding the function from the log log plot 2 3 Finding the area under a straight line segment of log log plot 3 Applications 4 See also 5 References 6 External linksRelation with monomials editGiven a monomial equation y a x k displaystyle y ax k nbsp taking the logarithm of the equation with any base yields log y k log x log a displaystyle log y k log x log a nbsp Setting X log x displaystyle X log x nbsp and Y log y displaystyle Y log y nbsp which corresponds to using a log log graph yields the equation Y m X b displaystyle Y mX b nbsp where m k is the slope of the line gradient and b log a is the intercept on the log y axis meaning where log x 0 so reversing the logs a is the y value corresponding to x 1 1 Equations editThe equation for a line on a log log scale would be log 10 F x m log 10 x b displaystyle log 10 F x m log 10 x b nbsp F x x m 10 b displaystyle F x x m cdot 10 b nbsp where m is the slope and b is the intercept point on the log plot Slope of a log log plot edit nbsp Finding the slope of a log log plot using ratiosTo find the slope of the plot two points are selected on the x axis say x1 and x2 Using the above equation log F x 1 m log x 1 b displaystyle log F x 1 m log x 1 b nbsp and log F x 2 m log x 2 b displaystyle log F x 2 m log x 2 b nbsp The slope m is found taking the difference m log F 2 log F 1 log x 2 log x 1 log F 2 F 1 log x 2 x 1 displaystyle m frac log F 2 log F 1 log x 2 log x 1 frac log F 2 F 1 log x 2 x 1 nbsp where F1 is shorthand for F x1 and F2 is shorthand for F x2 The figure at right illustrates the formula Notice that the slope in the example of the figure is negative The formula also provides a negative slope as can be seen from the following property of the logarithm log x 1 x 2 log x 2 x 1 displaystyle log x 1 x 2 log x 2 x 1 nbsp Finding the function from the log log plot edit The above procedure now is reversed to find the form of the function F x using its assumed known log log plot To find the function F pick some fixed point x0 F0 where F0 is shorthand for F x0 somewhere on the straight line in the above graph and further some other arbitrary point x1 F1 on the same graph Then from the slope formula above m log F 1 F 0 log x 1 x 0 displaystyle m frac log F 1 F 0 log x 1 x 0 nbsp which leads to log F 1 F 0 m log x 1 x 0 log x 1 x 0 m displaystyle log F 1 F 0 m log x 1 x 0 log x 1 x 0 m nbsp Notice that 10log10 F1 F1 Therefore the logs can be inverted to find F 1 F 0 x 1 x 0 m displaystyle frac F 1 F 0 left frac x 1 x 0 right m nbsp or F 1 F 0 x 0 m x m displaystyle F 1 frac F 0 x 0 m x m nbsp which means that F x c o n s t a n t x m displaystyle F x mathrm constant cdot x m nbsp In other words F is proportional to x to the power of the slope of the straight line of its log log graph Specifically a straight line on a log log plot containing points x0 F0 and x1 F1 will have the function F x F 0 x x 0 log F 1 F 0 log x 1 x 0 displaystyle F x F 0 left frac x x 0 right frac log F 1 F 0 log x 1 x 0 nbsp Of course the inverse is true too any function of the form F x c o n s t a n t x m displaystyle F x mathrm constant cdot x m nbsp will have a straight line as its log log graph representation where the slope of the line is m Finding the area under a straight line segment of log log plot edit To calculate the area under a continuous straight line segment of a log log plot or estimating an area of an almost straight line take the function defined previouslyF x c o n s t a n t x m displaystyle F x mathrm constant cdot x m nbsp and integrate it Since it is only operating on a definite integral two defined endpoints the area A under the plot takes the form A x x 0 x 1 F x d x c o n s t a n t m 1 x m 1 x 0 x 1 displaystyle A x int x 0 x 1 F x dx left frac mathrm constant m 1 cdot x m 1 right x 0 x 1 nbsp Rearranging the original equation and plugging in the fixed point values it is found thatc o n s t a n t F 0 x 0 m displaystyle mathrm constant frac F 0 x 0 m nbsp Substituting back into the integral you find that for A over x0 to x1A F 0 x 0 m m 1 x 1 m 1 x 0 m 1 log A log F 0 x 0 m m 1 x 1 m 1 x 0 m 1 log F 0 m 1 log 1 x 0 m log x 1 m 1 x 0 m 1 log F 0 m 1 log x 1 m 1 x 0 m 1 x 0 m log F 0 m 1 log x 1 m x 0 m x 1 x 0 m 1 x 0 m displaystyle begin aligned A amp frac F 0 x 0 m m 1 cdot x 1 m 1 x 0 m 1 1 2ex log A amp log left frac F 0 x 0 m m 1 cdot x 1 m 1 x 0 m 1 right amp log frac F 0 m 1 log frac 1 x 0 m log x 1 m 1 x 0 m 1 amp log frac F 0 m 1 log left frac x 1 m 1 x 0 m 1 x 0 m right amp log frac F 0 m 1 log left frac x 1 m x 0 m cdot x 1 frac x 0 m 1 x 0 m right end aligned nbsp Therefore A F 0 m 1 x 1 x 1 x 0 m x 0 displaystyle A frac F 0 m 1 cdot left x 1 cdot left frac x 1 x 0 right m x 0 right nbsp For m 1 the integral becomesA m 1 x 0 x 1 F x d x x 0 x 1 c o n s t a n t x d x F 0 x 0 1 x 0 x 1 d x x F 0 x 0 ln x x 0 x 1 A m 1 F 0 x 0 ln x 1 x 0 displaystyle begin aligned A m 1 amp int x 0 x 1 F x dx int x 0 x 1 frac mathrm constant x dx frac F 0 x 0 1 int x 0 x 1 frac dx x F 0 cdot x 0 cdot ln x Big x 0 x 1 A m 1 amp F 0 cdot x 0 cdot ln frac x 1 x 0 end aligned nbsp Applications edit nbsp A log log plot condensing information that spans more than one order of magnitude along both axesThese graphs are useful when the parameters a and b need to be estimated from numerical data Specifications such as this are used frequently in economics One example is the estimation of money demand functions based on inventory theory in which it can be assumed that money demand at time t is given byM t A R t b Y t c U t displaystyle M t AR t b Y t c U t nbsp where M is the real quantity of money held by the public R is the rate of return on an alternative higher yielding asset in excess of that on money Y is the public s real income U is an error term assumed to be lognormally distributed A is a scale parameter to be estimated and b and c are elasticity parameters to be estimated Taking logs yields m t a b r t c y t u t displaystyle m t a br t cy t u t nbsp where m log M a log A r log R y log Y and u log U with u being normally distributed This equation can be estimated using ordinary least squares Another economic example is the estimation of a firm s Cobb Douglas production function which is the right side of the equationQ t A N t a K t b U t displaystyle Q t AN t alpha K t beta U t nbsp in which Q is the quantity of output that can be produced per month N is the number of hours of labor employed in production per month K is the number of hours of physical capital utilized per month U is an error term assumed to be lognormally distributed and A a displaystyle alpha nbsp and b displaystyle beta nbsp are parameters to be estimated Taking logs gives the linear regression equation q t a a n t b k t u t displaystyle q t a alpha n t beta k t u t nbsp where q log Q a log A n log N k log K and u log U Log log regression can also be used to estimate the fractal dimension of a naturally occurring fractal However going in the other direction observing that data appears as an approximate line on a log log scale and concluding that the data follows a power law is not always valid 2 In fact many other functional forms appear approximately linear on the log log scale and simply evaluating the goodness of fit of a linear regression on logged data using the coefficient of determination R2 may be invalid as the assumptions of the linear regression model such as Gaussian error may not be satisfied in addition tests of fit of the log log form may exhibit low statistical power as these tests may have low likelihood of rejecting power laws in the presence of other true functional forms While simple log log plots may be instructive in detecting possible power laws and have been used dating back to Pareto in the 1890s validation as a power laws requires more sophisticated statistics 2 These graphs are also extremely useful when data are gathered by varying the control variable along an exponential function in which case the control variable x is more naturally represented on a log scale so that the data points are evenly spaced rather than compressed at the low end The output variable y can either be represented linearly yielding a lin log graph log x y or its logarithm can also be taken yielding the log log graph log x log y Bode plot a graph of the frequency response of a system is also log log plot In chemical kinetics the general form of the dependence of the reaction rate on concentration takes the form of a power law law of mass action so a log log plot is useful for estimating the reaction parameters from experiment See also editSemi log plot lin log or log lin Power law Zipf lawReferences edit M Bourne Graphs on Logarithmic and Semi Logarithmic Paper www intmath com a b Clauset A Shalizi C R Newman M E J 2009 Power Law Distributions in Empirical Data SIAM Review 51 4 661 703 arXiv 0706 1062 Bibcode 2009SIAMR 51 661C doi 10 1137 070710111 S2CID 9155618 External links editNon Newtonian calculus website Retrieved from https en wikipedia org w index php title Log log plot amp oldid 1185665982, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.