Skip to main content
\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)
Mathematics LibreTexts

4.7: Fitting Exponential Models to Data

[ "article:topic", "license:ccbysa", "showtoc:no", "authorname:lippmanrasmussen" ]
  • Page ID
    13856
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Section 4.7 Fitting Exponential Models to Data

    In the previous section, we saw number lines using logarithmic scales. It is also common to see two dimensional graphs with one or both axes using a logarithmic scale.

    One common use of a logarithmic scale on the vertical axis is to graph quantities that are changing exponentially, since it helps reveal relative differences. This is commonly used in stock charts, since values historically have grown exponentially over time. Both stock charts below show the Dow Jones Industrial Average, from 1928 to 2010.

    image

    image

    Both charts have a linear horizontal scale, but the first graph has a linear vertical scale, while the second has a logarithmic vertical scale. The first scale is the one we are more familiar with, and shows what appears to be a strong exponential trend, at least up until the year 2000.

    Example \(\PageIndex{1}\):

    Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

    1

     

    There were stock market drops in 1929 and 2008. Which was larger?

    In the first graph, the stock market drop around 2008 looks very large, and in terms of dollar values, it was indeed a large drop. However, the second graph shows relative changes, and the drop in 2009 seems less major on this graph, and in fact the drop starting in 1929 was, percentage-wise, much more significant.

    Specifically, in 2008, the Dow value dropped from about 14,000 to 8,000, a drop of 6,000. This is obviously a large value drop, and amounts to about a 43% drop. In 1929, the Dow value dropped from a high of around 380 to a low of 42 by July of 1932. While value-wise this drop of 338 is much smaller than the 2008 drop, it corresponds to a 89% drop, a much larger relative drop than in 2008. The logarithmic scale shows these relative changes.

    The second graph above, in which one axis uses a linear scale and the other axis uses a logarithmic scale, is an example of a semi-log graph.

    Semi-log and Log-log Graphs

    A semi-logSemi-Log GraphLogarithmic Functions:Semi-Log Graph graph is a graph with one axis using a linear scale and one axis using a logarithmic scale.

    A log-logLog-Log GraphLogarithmic Functions:Log-Log Graph graph is a graph with both axes using logarithmic scales.

    Example \(\PageIndex{1}\):

    Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

    2

     

    Plot 5 points on the graph of\(f(x)=3\eqref{GrindEQ__2_}^{x}\) on a semi-log graph with a logarithmic scale on the vertical axis.

    To do this, we need to find 5 points on the graph, then calculate the logarithm of the output value. Arbitrarily choosing 5 input values,

    3[GrindEQ__2_]^-3 = 3[GrindEQ__2_]^-1 = 3[GrindEQ__2_]^0 =33[GrindEQ__2_]^2 =123[GrindEQ__2_]^5 =963[GrindEQ__2_]^-3 = 3[GrindEQ__2_]^-1 = 3[GrindEQ__2_]^0 =33[GrindEQ__2_]^2 =123[GrindEQ__2_]^5 =96331

    Section 4.7 Fitting Exponential Models to Data

    imagePlotting these values on a semi-log graph,

    Notice that on this semi-log scale, values from the exponential function appear linear. We can show this behavior is expected by utilizing logarithmic properties. For the function \(f(x)=ab^{x}\), finding log(f(x)) gives

    \(\log \left(f(x)\right)=\log \left(ab^{x} \right)\) Utilizing the sum property of logs,

    \(\log \left(f(x)\right)=\log \left(a\right)+\log \left(b^{x} \right)\) Now utilizing the exponent property, \[\log \left(f(x)\right)=\log \left(a\right)+x\log \left(b\right)\]

    This relationship is linear, with log(a) as the vertical intercept, and log(b) as the slope. This relationship can also be utilized in reverse.

    Example \(\PageIndex{1}\):

    Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

    3

     

    An exponential graph is plotted on semi-log axes. Find a formula for the exponential function g(x) that generated this graph.

    image

    The graph is linear, with vertical intercept at (0, 1). Looking at the change between the points (0, 1) and (4, 4), we can determine the slope of the line is \(\frac{3}{4}\). Since the output is log(g(x)), this leads to the equation \(\log \left(g(x)\right)=1+\frac{3}{4} x\).

    We can solve this formula for g(x) by rewriting in exponential form and simplifying:

    \(\log \left(g(x)\right)=1+\frac{3}{4} x\) Rewriting as an exponential,

    \(g(x)=10^{1+\frac{3}{4} x}\) Breaking this apart using exponent rules,

    \(g(x)=10^{1} \cdot 10^{\frac{3}{4} x}\) Using exponent rules to group the second factor,

    \(g(x)=10^{1} \cdot \left(10^{\frac{3}{4} } \right)^{x}\) Evaluating the powers of 10, \[g(x)=10\left(5.623\right)^{x}\]

    Exercise \(\PageIndex{1}\)

    Add exercises text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

    Answer

    Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.

    1. An exponential graph is plotted on a semi-log graph below. Find a formula for the exponential function g(x) that generated this graph.image

    Fitting Exponential Functions to DataExponential Functions:Fitting Exponential Functions to Data

    Some technology options provide dedicated functions for finding exponential functions that fit data, but many only provide functions for fitting linear functions to data. The semi-log scale provides us with a method to fit an exponential function to data by building upon the techniques we have for fitting linear functions to data.

    To fit an exponential function to a set of data using linearization

    1. Find the log of the data output values

    2. Find the linear equation that fits the (input, log(output)) pairs. This equation will be of the form log(f(x)) = b + mx.

    3. Solve this equation for the exponential function f(x)

    Example \(\PageIndex{1}\):

    Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

    4

     

    imageThe table below shows the cost in dollars per megabyte of storage space on computer hard drives from 1980 to 2004, and the data is shown on a standard graph to the right, with the input changed to years after 1980. \[331\]

    Section 4.7 Fitting Exponential Models to Data

    This data appears to be decreasing exponentially. To find a function that models this decay, we would start by finding the log of the costs.

    image331

    Section 4.7 Fitting Exponential Models to Data

    As hoped, the graph of the log of costs appears fairly linear, suggesting an exponential function will fit the original data will fit reasonably well. Using technology, we can find a linear equation to fit the log(Cost) values. Using t as years after 1980, linear regression gives the equation: \[\log (C(t))=2.794-0.231t\]

    Solving for C(t), \[C(t)=10^{2.794-0.231t}\] \[C(t)=10^{2.794} \cdot 10^{-0.231t}\] \[C(t)=10^{2.794} \cdot \left(10^{-0.231} \right)^{t}\] \[C(t)=622\cdot \left(0.5877\right)^{t}\]

    This equation suggests that the cost per megabyte for storage on computer hard drives is decreasing by about 41% each year.

    Using this function, we could predict the cost of storage in the future. Predicting the cost in the year 2020 (t = 40):

    \(C\eqref{GrindEQ__40_}=622\left(0.5877\right)^{40} \approx 0.000000364\)dollars per megabyte, a really small number. That is equivalent to $0.36 per terabyte of hard drive storage.

    Comparing the values predicted by this model to the actual data, we see the model matches the original data in order of magnitude, but the specific values appear quite different. This is, unfortunately, the best exponential model that can fit the data. It is possible that a non-exponential model would fit the data better, or there could just be wide enough variability in the data that no relatively simple model would fit the data any better. \[331\]

    Section 4.7 Fitting Exponential Models to Data

    Exercise \(\PageIndex{1}\)

    Add exercises text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

    Answer

    Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.

    2. The table below shows the value V, in billions of dollars, of US imports from China t years after 2000. \[331\]

    Section 4.7 Fitting Exponential Models to Data

    This data appears to be growing exponentially. Linearize this data and build a model to predict how many billions of dollars of imports were expected in 2011.

    Important Topics of this Section

    Semi-log graph

    Log-log graph

    Linearizing exponential functions

    Fitting an exponential equation to data

    Try it Now Answers \[1. g(x)=10^{2-0.5x} =10^{2} \left(10^{=0.5} \right)^{x} . f(x)=100(0.3162)^{x}\] 2. \(V(t)=90.545(1.2078)^{t}\). Predicting in 2011, \(V\eqref{GrindEQ__11_}=722.45\)billion dollarsSection 4.7 Fitting Exponential Models to Data 335