Recall that when one quantity varies directly with another, the resulting graph is linear. However, data isn't always linear. When this is the case, a transformation can be used to attempt to linearise it, or make it more "linear", so that a linear model can be used. Three common approaches are the square (or parabolic) x^2 transformation, the reciprocal \dfrac{1}{x} transformation, and the logarithmic (base 10) transformation.
When a relationship between two variables is quadratic, say y and x, then we can instead look at the relationship between y and x^2. This effectively transforms the horizontal axis such that the relationship between y and x^2 is linear.
Consider the following data set:
x | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
---|---|---|---|---|---|---|---|
y | 1 | 2 | 5 | 10 | 17 | 26 | 37 |
x | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
---|---|---|---|---|---|---|---|
x^2 | 0 | 1 | 4 | 9 | 16 | 25 | 36 |
y | 1 | 2 | 5 | 10 | 17 | 26 | 37 |
Consider the following points shown below.
Complete the data transformation by filling in the table of values for the points shown on the graph:
x^{2} | ||||
---|---|---|---|---|
y | -5 | -3 | 3 | 13 |
Plot the y-values against the x^2-values.
Hence, draw the line that passes through the points.
When a relationship between the variables y and x, is quadratic, then we may look at the relationship between y and x^2. This effectively transforms the horizontal axis such that the relationship between y and x^2 is linear.
If the relationship between two variables vary inversely, say y and x, then we can instead look at the relationship between y and \dfrac{1}{x}. This effectively transforms the horizontal axis such that the relationship between y and \dfrac{1}{x} is linear.
Consider in this case the following data set:
x | \dfrac{1}{8} | \dfrac{1}{4} | \dfrac{1}{2} | 1 | 2 |
---|---|---|---|---|---|
y | 2 | 1 | \dfrac{1}{2} | \dfrac{1}{4} | \dfrac{1}{8} |
x | \dfrac{1}{8} | \dfrac{1}{4} | \dfrac{1}{2} | 1 | 2 |
---|---|---|---|---|---|
\dfrac{1}{x} | 8 | 4 | 2 | 1 | \dfrac{1}{2} |
y | 2 | 1 | \dfrac{1}{2} | \dfrac{1}{4} | \dfrac{1}{8} |
Just as in the square transformation, the horizontal axis has been transformed so that the resulting relationship is now linear.
Consider the following table of values.
x | \dfrac{1}{6} | \dfrac{1}{4} | \dfrac{1}{2} | 1 |
---|---|---|---|---|
y | -5 | -4 | -3 | - 2\dfrac{1}{2} |
Complete the data transformation by filling in the table of values.
\dfrac{1}{x} | ||||
---|---|---|---|---|
\log_{10} x | ||||
y | -5.75 | -5.875 | -5.9375 | -5.95 |
Plot the y-values againgst the \dfrac{1}{x}-values.
Hence, draw the line that passes through the points.
When a relationship between the variables y and x, varies inversely, we may look at the relationship between y and \dfrac{1}{x} as transforming the horizontal axis such that the relationship between y and \dfrac{1}{x} is linear.
If the relationship between two variables, say y and x, have a logarithmic relationship, then we can instead look at the relationship between y and \log_{10} x. As we have before in the previous transformations, we will explore another example.
Consider in this case the following data set:
x | 1 | 10 | 100 | 1000 |
---|---|---|---|---|
y | 1 | 3 | 5 | 7 |
x | 1 | 10 | 100 | 1000 |
---|---|---|---|---|
\log_{10} x | 0 | 1 | 2 | 3 |
y | 1 | 3 | 5 | 7 |
Just as in the square transformation and reciprocal transformation, the horizontal axis has been transformed so that the resulting relationship is now linear.
Note that in general, creating a second table of values isn't a necessary step, it's just helpful to see how each of the x-values change as we apply a transformation to them. In saying that, it can be difficult to identify whether a reciprocal or logarithmic transformation is required, so it's worth creating a second table of values. It's hard to see, but a reciprocal relationship will always plateau eventually, while a logarithmic relationship will continue to increase or decrease, just very slowly.
Consider the following table of values.
x | 1 | 2 | 4 | 5 |
---|---|---|---|---|
y | -5.75 | -5.875 | -5.9375 | -5.95 |
Complete the data transformation by filling in the table of values.
\dfrac{1}{x} | ||||
---|---|---|---|---|
\log_{10} x | ||||
y | -5.75 | -5.875 | -5.9375 | -5.95 |
Using technology or otherwise, draw the graphs of the transformed data and state which transformation linearises the data.
When a relationship between the variables y and x, have a logarithmic relationship, the horizontal axis is transformed so that the resulting relationship between y and \log_{10} x is linear.