Log–log plot: Difference between revisions

Content deleted Content added
Log-log linear regression models: adding the error term
Line 96:
[[File:Visualizing Loglog Normal Data.png|thumb|Figure 1: Visualizing Loglog Normal Data]]
 
Figure 1 illustrates how this looks. It presents two plots generated from a dataset ofusing 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.
 
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).