{"id":114,"date":"2025-02-13T22:43:56","date_gmt":"2025-02-13T22:43:56","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/precalculus\/chapter\/fitting-exponential-models-to-data\/"},"modified":"2026-04-01T08:45:34","modified_gmt":"2026-04-01T08:45:34","slug":"fitting-exponential-models-to-data","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/precalculus\/chapter\/fitting-exponential-models-to-data\/","title":{"raw":"Fitting Exponential Models to Data: Learn It 2","rendered":"Fitting Exponential Models to Data: Learn It 2"},"content":{"raw":"<h2>Build a logarithmic model from data<\/h2>\r\n<p id=\"fs-id1638611\">Just as with exponential functions, there are many real-world applications for logarithmic functions: intensity of sound, pH levels of solutions, yields of chemical reactions, production of goods, and growth of infants. As with exponential models, data modeled by logarithmic functions are either always increasing or always decreasing as time moves forward. Again, it is the <em>way<\/em> they increase or decrease that helps us determine whether a <strong>logarithmic model<\/strong> is best.<\/p>\r\n<p id=\"fs-id1294851\">Recall that logarithmic functions increase or decrease rapidly at first, but then steadily slow as time moves on. By reflecting on the characteristics we\u2019ve already learned about this function, we can better analyze real world situations that reflect this type of growth or decay. When performing logarithmic <strong>regression analysis<\/strong>, we use the form of the logarithmic function most commonly used on graphing utilities, [latex]y=a+b\\mathrm{ln}\\left(x\\right)[\/latex]. For this function<\/p>\r\n\r\n<ul id=\"fs-id1505796\">\r\n \t<li>All input values, <em>x<\/em>, must be greater than zero.<\/li>\r\n \t<li>The point (1, <em>a<\/em>) is on the graph of the model.<\/li>\r\n \t<li>If <em>b<\/em> &gt; 0, the model is increasing. Growth increases rapidly at first and then steadily slows over time.<\/li>\r\n \t<li>If <em>b\u00a0<\/em>&lt; 0, the model is decreasing. Decay occurs rapidly at first and then steadily slows over time.<\/li>\r\n<\/ul>\r\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\r\n<h3 class=\"title\">Logarithmic Regression<\/h3>\r\n<p id=\"fs-id882689\"><strong>Logarithmic regression<\/strong>is used to model situations where growth or decay accelerates rapidly at first and then slows over time. We use the command \"LnReg\" on a graphing utility to fit a logarithmic function to a set of data points. This returns an equation of the form,<\/p>\r\n\r\n<div id=\"eip-id1165132974342\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]y=a+b\\mathrm{ln}\\left(x\\right)[\/latex]<\/div>\r\n<p id=\"fs-id1638058\">Note that<\/p>\r\n\r\n<ul id=\"fs-id934921\">\r\n \t<li>all input values, <em>x<\/em>, must be non-negative.<\/li>\r\n \t<li>when <em>b\u00a0<\/em>&gt; 0, the model is increasing.<\/li>\r\n \t<li>when <em>b\u00a0<\/em>&lt; 0, the model is decreasing.<\/li>\r\n<\/ul>\r\n<\/section><section class=\"textbox interact\" aria-label=\"Interact\">Given a set of data, perform logarithmic regression using a graphing utility.\r\n<ol id=\"fs-id1616209\">\r\n \t<li>Use the STAT then EDIT menu to enter given data.\r\n<ol id=\"fs-id1616209\" style=\"list-style-type: lower-alpha;\">\r\n \t<li>Clear any existing data from the lists.<\/li>\r\n \t<li>List the input values in the L1 column.<\/li>\r\n \t<li>List the output values in the L2 column.<\/li>\r\n<\/ol>\r\n<\/li>\r\n \t<li>Graph and observe a scatter plot of the data using the STATPLOT feature.\r\n<ol id=\"fs-id882304\" style=\"list-style-type: lower-alpha;\">\r\n \t<li>Use ZOOM [9] to adjust axes to fit the data.<\/li>\r\n \t<li>Verify the data follow a logarithmic pattern.<\/li>\r\n<\/ol>\r\n<\/li>\r\n \t<li>Find the equation that models the data.\r\n<ol id=\"fs-id1107843\" style=\"list-style-type: lower-alpha;\">\r\n \t<li>Select \"LnReg\" from the STAT then CALC menu.<\/li>\r\n \t<li>Use the values returned for <em>a<\/em> and <em>b<\/em> to record the model, [latex]y=a+b\\mathrm{ln}\\left(x\\right)[\/latex].<\/li>\r\n<\/ol>\r\n<\/li>\r\n \t<li>Graph the model in the same window as the scatterplot to verify it is a good fit for the data.<\/li>\r\n<\/ol>\r\n<\/section>\r\n<div id=\"Example_04_08_02\" class=\"example\">\r\n<div id=\"fs-id1616172\" class=\"exercise\"><section class=\"textbox example\" aria-label=\"Example\">\r\n<p id=\"fs-id1675089\">Due to advances in medicine and higher standards of living, life expectancy has been increasing in most developed countries since the beginning of the 20th century.<\/p>\r\n<p id=\"eip-id1165134068998\">The table below shows the average life expectancies, in years, of Americans from 1900\u20132010.[footnote]Source: <em>Center for Disease Control and Prevention, 2013<\/em>.[\/footnote]<\/p>\r\n\r\n<table id=\"Table_04_08_03\" summary=\"Two rows and twelve columns. The first row is labeled, \">\r\n<tbody>\r\n<tr>\r\n<td><strong>Year<\/strong><\/td>\r\n<td>1900<\/td>\r\n<td>1910<\/td>\r\n<td>1920<\/td>\r\n<td>1930<\/td>\r\n<td>1940<\/td>\r\n<td>1950<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>Life Expectancy(Years)<\/strong><\/td>\r\n<td>47.3<\/td>\r\n<td>50.0<\/td>\r\n<td>54.1<\/td>\r\n<td>59.7<\/td>\r\n<td>62.9<\/td>\r\n<td>68.2<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>Year<\/strong><\/td>\r\n<td>1960<\/td>\r\n<td>1970<\/td>\r\n<td>1980<\/td>\r\n<td>1990<\/td>\r\n<td>2000<\/td>\r\n<td>2010<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>Life Expectancy(Years)<\/strong><\/td>\r\n<td>69.7<\/td>\r\n<td>70.8<\/td>\r\n<td>73.7<\/td>\r\n<td>75.4<\/td>\r\n<td>76.8<\/td>\r\n<td>78.7<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<ol id=\"fs-id899809\">\r\n \t<li>Let <em>x<\/em>\u00a0represent time in decades starting with <em>x\u00a0<\/em>= 1 for the year 1900, <em>x\u00a0<\/em>= 2 for the year 1910, and so on. Let <em>y<\/em>\u00a0represent the corresponding life expectancy. Use logarithmic regression to fit a model to these data.<\/li>\r\n \t<li>Use the model to predict the average American life expectancy for the year 2030.<\/li>\r\n<\/ol>\r\n[reveal-answer q=\"181179\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"181179\"]\r\n<ol id=\"fs-id1601326\">\r\n \t<li>Using the STAT then EDIT menu on a graphing utility, list the years using values 1\u201312 in L1 and the corresponding life expectancy in L2. Then use the STATPLOT feature to verify that the scatterplot follows a logarithmic pattern.\r\n<figure id=\"CNX_Precalc_Figure_04_08_003\" class=\"medium\"><img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010836\/CNX_Precalc_Figure_04_08_0032.jpg\" alt=\"Graph of a scattered plot.\" width=\"731\" height=\"437\" \/><\/figure>\r\n<p id=\"fs-id1381567\">Use the \"LnReg\" command from the STAT then CALC menu to obtain the logarithmic model,<\/p>\r\n<p id=\"fs-id1381567\" style=\"text-align: center;\">[latex]y=42.52722583+13.85752327\\mathrm{ln}\\left(x\\right)[\/latex]<\/p>\r\n<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010837\/CNX_Precalc_Figure_04_08_0042.jpg\" alt=\"Graph of a scattered plot with an estimation line.\" width=\"731\" height=\"440\" \/>\r\n<p id=\"fs-id1677824\">Next, graph the model in the same window as the scatterplot to verify it is a good fit.<span id=\"fs-id1157626\">\r\n<\/span><\/p>\r\n<\/li>\r\n \t<li>To predict the life expectancy of an American in the year 2030, substitute <em>x\u00a0<\/em>= 14 for the in the model and solve for <em>y<\/em>:<\/li>\r\n<\/ol>\r\n<p style=\"text-align: center;\">[latex]\\begin{align}y&amp; =42.52722583+13.85752327\\mathrm{ln}\\left(x\\right)&amp;&amp; \\text{Use the regression model found in part (a).} \\\\ &amp; =42.52722583+13.85752327\\mathrm{ln}\\left(14\\right)&amp;&amp; \\text{Substitute 14 for }x\\text{.} \\\\ &amp; \\approx \\text{79}\\text{.1}&amp;&amp; \\text{Round to the nearest tenth.} \\end{align}[\/latex]<\/p>\r\n<p id=\"fs-id1628396\">If life expectancy continues to increase at this pace, the average life expectancy of an American will be 79.1 by the year 2030.<\/p>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]321574[\/ohm_question]<\/section><\/div>\r\n<\/div>","rendered":"<h2>Build a logarithmic model from data<\/h2>\n<p id=\"fs-id1638611\">Just as with exponential functions, there are many real-world applications for logarithmic functions: intensity of sound, pH levels of solutions, yields of chemical reactions, production of goods, and growth of infants. As with exponential models, data modeled by logarithmic functions are either always increasing or always decreasing as time moves forward. Again, it is the <em>way<\/em> they increase or decrease that helps us determine whether a <strong>logarithmic model<\/strong> is best.<\/p>\n<p id=\"fs-id1294851\">Recall that logarithmic functions increase or decrease rapidly at first, but then steadily slow as time moves on. By reflecting on the characteristics we\u2019ve already learned about this function, we can better analyze real world situations that reflect this type of growth or decay. When performing logarithmic <strong>regression analysis<\/strong>, we use the form of the logarithmic function most commonly used on graphing utilities, [latex]y=a+b\\mathrm{ln}\\left(x\\right)[\/latex]. For this function<\/p>\n<ul id=\"fs-id1505796\">\n<li>All input values, <em>x<\/em>, must be greater than zero.<\/li>\n<li>The point (1, <em>a<\/em>) is on the graph of the model.<\/li>\n<li>If <em>b<\/em> &gt; 0, the model is increasing. Growth increases rapidly at first and then steadily slows over time.<\/li>\n<li>If <em>b\u00a0<\/em>&lt; 0, the model is decreasing. Decay occurs rapidly at first and then steadily slows over time.<\/li>\n<\/ul>\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\n<h3 class=\"title\">Logarithmic Regression<\/h3>\n<p id=\"fs-id882689\"><strong>Logarithmic regression<\/strong>is used to model situations where growth or decay accelerates rapidly at first and then slows over time. We use the command &#8220;LnReg&#8221; on a graphing utility to fit a logarithmic function to a set of data points. This returns an equation of the form,<\/p>\n<div id=\"eip-id1165132974342\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]y=a+b\\mathrm{ln}\\left(x\\right)[\/latex]<\/div>\n<p id=\"fs-id1638058\">Note that<\/p>\n<ul id=\"fs-id934921\">\n<li>all input values, <em>x<\/em>, must be non-negative.<\/li>\n<li>when <em>b\u00a0<\/em>&gt; 0, the model is increasing.<\/li>\n<li>when <em>b\u00a0<\/em>&lt; 0, the model is decreasing.<\/li>\n<\/ul>\n<\/section>\n<section class=\"textbox interact\" aria-label=\"Interact\">Given a set of data, perform logarithmic regression using a graphing utility.<\/p>\n<ol id=\"fs-id1616209\">\n<li>Use the STAT then EDIT menu to enter given data.\n<ol style=\"list-style-type: lower-alpha;\">\n<li>Clear any existing data from the lists.<\/li>\n<li>List the input values in the L1 column.<\/li>\n<li>List the output values in the L2 column.<\/li>\n<\/ol>\n<\/li>\n<li>Graph and observe a scatter plot of the data using the STATPLOT feature.\n<ol id=\"fs-id882304\" style=\"list-style-type: lower-alpha;\">\n<li>Use ZOOM [9] to adjust axes to fit the data.<\/li>\n<li>Verify the data follow a logarithmic pattern.<\/li>\n<\/ol>\n<\/li>\n<li>Find the equation that models the data.\n<ol id=\"fs-id1107843\" style=\"list-style-type: lower-alpha;\">\n<li>Select &#8220;LnReg&#8221; from the STAT then CALC menu.<\/li>\n<li>Use the values returned for <em>a<\/em> and <em>b<\/em> to record the model, [latex]y=a+b\\mathrm{ln}\\left(x\\right)[\/latex].<\/li>\n<\/ol>\n<\/li>\n<li>Graph the model in the same window as the scatterplot to verify it is a good fit for the data.<\/li>\n<\/ol>\n<\/section>\n<div id=\"Example_04_08_02\" class=\"example\">\n<div id=\"fs-id1616172\" class=\"exercise\">\n<section class=\"textbox example\" aria-label=\"Example\">\n<p id=\"fs-id1675089\">Due to advances in medicine and higher standards of living, life expectancy has been increasing in most developed countries since the beginning of the 20th century.<\/p>\n<p id=\"eip-id1165134068998\">The table below shows the average life expectancies, in years, of Americans from 1900\u20132010.<a class=\"footnote\" title=\"Source: Center for Disease Control and Prevention, 2013.\" id=\"return-footnote-114-1\" href=\"#footnote-114-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a><\/p>\n<table id=\"Table_04_08_03\" summary=\"Two rows and twelve columns. The first row is labeled,\">\n<tbody>\n<tr>\n<td><strong>Year<\/strong><\/td>\n<td>1900<\/td>\n<td>1910<\/td>\n<td>1920<\/td>\n<td>1930<\/td>\n<td>1940<\/td>\n<td>1950<\/td>\n<\/tr>\n<tr>\n<td><strong>Life Expectancy(Years)<\/strong><\/td>\n<td>47.3<\/td>\n<td>50.0<\/td>\n<td>54.1<\/td>\n<td>59.7<\/td>\n<td>62.9<\/td>\n<td>68.2<\/td>\n<\/tr>\n<tr>\n<td><strong>Year<\/strong><\/td>\n<td>1960<\/td>\n<td>1970<\/td>\n<td>1980<\/td>\n<td>1990<\/td>\n<td>2000<\/td>\n<td>2010<\/td>\n<\/tr>\n<tr>\n<td><strong>Life Expectancy(Years)<\/strong><\/td>\n<td>69.7<\/td>\n<td>70.8<\/td>\n<td>73.7<\/td>\n<td>75.4<\/td>\n<td>76.8<\/td>\n<td>78.7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol id=\"fs-id899809\">\n<li>Let <em>x<\/em>\u00a0represent time in decades starting with <em>x\u00a0<\/em>= 1 for the year 1900, <em>x\u00a0<\/em>= 2 for the year 1910, and so on. Let <em>y<\/em>\u00a0represent the corresponding life expectancy. Use logarithmic regression to fit a model to these data.<\/li>\n<li>Use the model to predict the average American life expectancy for the year 2030.<\/li>\n<\/ol>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q181179\">Show Solution<\/button><\/p>\n<div id=\"q181179\" class=\"hidden-answer\" style=\"display: none\">\n<ol id=\"fs-id1601326\">\n<li>Using the STAT then EDIT menu on a graphing utility, list the years using values 1\u201312 in L1 and the corresponding life expectancy in L2. Then use the STATPLOT feature to verify that the scatterplot follows a logarithmic pattern.<br \/>\n<figure id=\"CNX_Precalc_Figure_04_08_003\" class=\"medium\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010836\/CNX_Precalc_Figure_04_08_0032.jpg\" alt=\"Graph of a scattered plot.\" width=\"731\" height=\"437\" \/><\/figure>\n<p id=\"fs-id1381567\">Use the &#8220;LnReg&#8221; command from the STAT then CALC menu to obtain the logarithmic model,<\/p>\n<p style=\"text-align: center;\">[latex]y=42.52722583+13.85752327\\mathrm{ln}\\left(x\\right)[\/latex]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010837\/CNX_Precalc_Figure_04_08_0042.jpg\" alt=\"Graph of a scattered plot with an estimation line.\" width=\"731\" height=\"440\" \/><\/p>\n<p id=\"fs-id1677824\">Next, graph the model in the same window as the scatterplot to verify it is a good fit.<span id=\"fs-id1157626\"><br \/>\n<\/span><\/p>\n<\/li>\n<li>To predict the life expectancy of an American in the year 2030, substitute <em>x\u00a0<\/em>= 14 for the in the model and solve for <em>y<\/em>:<\/li>\n<\/ol>\n<p style=\"text-align: center;\">[latex]\\begin{align}y& =42.52722583+13.85752327\\mathrm{ln}\\left(x\\right)&& \\text{Use the regression model found in part (a).} \\\\ & =42.52722583+13.85752327\\mathrm{ln}\\left(14\\right)&& \\text{Substitute 14 for }x\\text{.} \\\\ & \\approx \\text{79}\\text{.1}&& \\text{Round to the nearest tenth.} \\end{align}[\/latex]<\/p>\n<p id=\"fs-id1628396\">If life expectancy continues to increase at this pace, the average life expectancy of an American will be 79.1 by the year 2030.<\/p>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm321574\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=321574&theme=lumen&iframe_resize_id=ohm321574&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<\/div>\n<\/div>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-114-1\">Source: <em>Center for Disease Control and Prevention, 2013<\/em>. <a href=\"#return-footnote-114-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":6,"menu_order":26,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc-attribution\",\"description\":\"Precalculus\",\"author\":\"OpenStax College\",\"organization\":\"OpenStax\",\"url\":\"http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175:1\/Preface\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"}]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":510,"module-header":"learn_it","content_attributions":[{"type":"cc-attribution","description":"Precalculus","author":"OpenStax College","organization":"OpenStax","url":"http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175:1\/Preface","project":"","license":"cc-by","license_terms":""}],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/114"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/users\/6"}],"version-history":[{"count":9,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/114\/revisions"}],"predecessor-version":[{"id":6092,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/114\/revisions\/6092"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/parts\/510"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/114\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapter-type?post=114"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/contributor?post=114"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/license?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}