Content deleted Content added
m Typed math quantities |
m Dating maintenance tags: {{More citations needed}} |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1:
{{Short description|2D graphic with logarithmic scales on both axes}}
{{More citations needed|log graph papers and their use|find=https://www.mathnstuff.com/math/spoken/here/2class/340/loggraf.htm|date=August 2025|name=Agnes (A<sup>2</sup>) Azzolino}}
[[Image:LogLog exponentials.svg|class=skin-invert-image|thumb|A log–log plot of ''y'' = ''x'' (blue), ''y'' = ''x''<sup>2</sup> (green), and ''y'' = ''x''<sup>3</sup> (red).<br>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.]]
[[File:Comparison of simple power law curves in original and log-log scale.png|thumb|Comparison of linear, concave, and convex functions when plotted using a linear scale (left) or a log scale (right).]]▼
▲[[File:Comparison of simple power law curves in original and log-log scale.png|class=skin-invert-image|thumb|Comparison of linear, concave, and convex functions when plotted using a linear scale (left) or a log scale (right).]]
[[File:Loglog graph paper.gif|thumb|blank log-log graph paper]]
In [[science]] and [[engineering]], a '''log–log graph''' or '''log–log plot''' is a two-dimensional graph of numerical data that uses [[logarithmic scale]]s on both the horizontal and vertical axes. [[Exponentiation#Power_functions|Power functions]] – relationships of the form <math>y=ax^k</math> – 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.
Line 23:
=== Slope of a log–log plot ===
[[Image:Slope of log-log plot.PNG|class=skin-invert-image|thumbnail|250px|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 ''x''<sub>1</sub> and ''x''<sub>2</sub>. Using the below equation:
<math display="block"> \log[F (x_1)] = m \log (x_1) + b, </math>
Line 94:
This is a [[linear equation]] in the logarithms of <math>x</math> and <math>y</math>, with <math>\log(a)</math> as the intercept and <math>b</math> as the slope. In which <math>\epsilon \sim \textrm{Normal}(\mu, \sigma^2)</math>, and <math>e^\epsilon \sim \textrm{Log-Normal}(\mu, \sigma^2)</math>.
[[File:Visualizing Loglog Normal Data.png|class=skin-invert-image|thumb|Figure 1: Visualizing Loglog Normal Data]]
Figure 1 illustrates how this looks. It presents two plots generated using 10,000 simulated points. The left plot, titled 'Concave Line with Log-Normal Noise', displays a [[scatter plot]] of the observed data (y) against the independent variable (x). The red line represents the 'Median line', while the blue line is the 'Mean line'. This plot illustrates a dataset with a power-law relationship between the variables, represented by a concave line.
Line 100:
When both variables are log-transformed, as shown in the right plot of Figure 1, titled 'Log-Log Linear Line with Normal Noise', the relationship becomes linear. This plot also displays a scatter plot of the observed data against the independent variable, but after both axes are on a logarithmic scale. Here, both the mean and median lines are the same (red) line. This transformation allows us to fit a [[Simple linear regression]] model (which can then be transformed back to the original scale - as the median line).
[[File:Sliding Window Error Metrics Loglog Normal Data.png|class=skin-invert-image|thumb|Figure 2: Sliding Window Error Metrics Loglog Normal Data]]
The transformation from the left plot to the right plot in Figure 1 also demonstrates the effect of the log transformation on the distribution of noise in the data. In the left plot, the noise appears to follow a [[log-normal distribution]], which is right-skewed and can be difficult to work with. In the right plot, after the log transformation, the noise appears to follow a [[normal distribution]], which is easier to reason about and model.
Line 109:
== Applications ==
[[File:2010- Decreasing renewable energy costs versus deployment.svg|class=skin-invert-image|thumb|upright=1.3|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]].
|