Power Functions

Numeric Representation

x g(x)
0 0
10 3.16
20 4.47
30 5.48
 
x h(x)
0 0
2 32
7 1372
10 4000

Recognizing a power trend in a data set might seem like difficult business, since power functions can look so much like exponentials or logarithms for long stretches of inputs. (See the section on modeling representations of power functions.)

However, a simple transformation of a data set will reveal a pattern that is unique to power functions, when it is present. Here is how it works.

Suppose a data set is actually following the trend of some hidden power function

y = a x b

If we take the logarithm of both sides of this equation (any logarithm will do) and use the laws of logarithms (see the section on algebraic representations of logarithms), we get

 log(y) = log(a) + b log(x)

Now consider a new data set showing  Y = log(y)  vs.  X = log(x) . If we let  A = log(a) , then

 Y = A + b X 

This is linear. Linear data sets are easy to recognize.

The transformation of the data set from  y  vs.  x  to  Y = log(y)  vs.  X = log(x)  is called a log-log transformation. We take the logarithm of the data values in both columns of the data set to discover the power trend. (Compare this with the semi-log data transformations discussed in the section on numeric representations of exponential functions.)

For example, if we look at the data set for  g  above, together with its log-log transformation (we use  log = log 10), we have:

x y
0 0
10 3.16
20 4.47
30 5.48
 
X Y
--- ---
1.00 0.50
1.30 0.65
1.48 0.74

Notice that we could not have made this transformation if any of the data were negative, since we cannot take logarithms of negative numbers.

It isn't difficult to recognize the linear trend in the transformed data set, with a slope of approximately  0.5  and a y-intercept of  0 . (See the section on numerical representations of linear functions.) We have  A = log(a) = 0  and  b = 0.5. Exponentiating gives  a = 10 0 = 1 . Thus we may represent the original data set with the equation

g(x) = x 0.5

This is just a square root function.

This method works equally well for data sets in which the inputs are not separated by equal intervals. In fact, nothing in this method depends on the relative spacing of the data.

For example, the data set for  h  above, together with its log-log transformation, is:

x y
0 0
2 32
7 1372
10 4000
 
X Y
--- ---
0.30 1.51
0.85 3.14
1.00 3.60

The transformed data set exhibits a linear trend with a slope of approximately  3.0  and a y-intercept of  0.6. We have  A = log(a) = 0.6  and  b = 3.0. Exponentiating gives  a = 10 0.6 = 4.0 . Thus we may represent the original data set with the equation

h(x) = 4 x 3

There are also graphical versions of the log-log data transformation.

The simplest is to plot  Y = log(y)  vs.  X = log(x)  (rather than  y  vs.  x) and look for a straight line. A plot of the transformation of the data for  g  above looks like this:

The straight line tells us that the original data set has a power trend.

Alernatively, we can produce a log-log plot of the original, untransformed data set  y  vs.  x  and look for a straight line:

In this plot, the distances of the markings on the vertical scale above the x-axis, and the distances of the markings on the horizontal scale to the right of the y-axis, are the logarithms of the distances used on a standard plot. The effect of the plot is to show the trends in the transformed data set without actually having to compute all of the logarithms.

 
Back to Contents