{"id":2145,"date":"2023-04-26T14:40:48","date_gmt":"2023-04-26T14:40:48","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/?post_type=chapter&#038;p=2145"},"modified":"2025-08-28T20:43:59","modified_gmt":"2025-08-28T20:43:59","slug":"modeling-linear-growth-learn-it-4","status":"web-only","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/chapter\/modeling-linear-growth-learn-it-4\/","title":{"raw":"Modeling Linear Growth: Learn It 4","rendered":"Modeling Linear Growth: Learn It 4"},"content":{"raw":"<h2>Spreadsheet Hands-On: Use Excel to find the regression line<\/h2>\r\n<p>Let's look at an example of using a spreadsheet to perform linear regression on a data set.<\/p>\r\n<p>The following set of data represents the annual sales of a company in millions of dollars since the year 2003. Let [latex]y[\/latex] represent the quantity of sales and let [latex]x[\/latex] represent the number of years since 2003.<\/p>\r\n<table style=\"border-collapse: collapse; width: 100%; height: 44px;\" border=\"1\">\r\n<tbody>\r\n<tr style=\"height: 22px;\">\r\n<td style=\"width: 14.2857%; height: 22px;\">[latex]x[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]0[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]1[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]2[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]3[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]4[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]5[\/latex]<\/td>\r\n<\/tr>\r\n<tr style=\"height: 22px;\">\r\n<td style=\"width: 14.2857%; height: 22px;\">[latex]y[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]733[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]841[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]964[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]1162[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]1346[\/latex]<\/td>\r\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]1529[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>&nbsp;<\/p>\r\n<p>Using the techniques you learned in the previous section, store the data in a spreadsheet and use the computer to find the regression line (also called a trendline).<\/p>\r\n<h3>Step 1: Store the data<\/h3>\r\n<ol>\r\n\t<li>As you did before, label two columns with the the input and the output of the data table. Then highlight both columns at once and choose Scatter with Smooth Lines.<br \/>\r\n<p>&nbsp;<\/p>\r\n<center>\r\n[caption id=\"attachment_2149\" align=\"aligncenter\" width=\"727\"]<img class=\"wp-image-2149 size-full\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144314\/Screenshot-2023-04-26-104233.png\" alt=\"screenshot of an excel spreadsheet showing data selected to build a scatterplot with smooth lines\" width=\"727\" height=\"747\" \/> Figure 1. Create a scatter plot[\/caption]\r\n<\/center>\r\n<p>&nbsp;<\/p>\r\n<\/li>\r\n\t<li>Click on the chart, then on the style icon with the plus-sign on it, hover over Trendline, click the right arrow, and choose More Options... to open the Format Trendline pane.\r\n\r\n<p>&nbsp;<\/p>\r\n<center>\r\n[caption id=\"attachment_2150\" align=\"aligncenter\" width=\"751\"]<img class=\"wp-image-2150 size-full\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144343\/Screenshot-2023-04-26-104238.png\" alt=\"screenshot of an Excel spreadsheet with a scatterplot\" width=\"751\" height=\"474\" \/> Figure 2. Create a trendline[\/caption]\r\n<\/center>\r\n<p>&nbsp;<\/p>\r\n<\/li>\r\n\t<li>Choose Linear under Trendline Options, then click Display Equation on chart and Display R-squared value on chart.<br \/>\r\n<p>&nbsp;<\/p>\r\n<center>\r\n[caption id=\"attachment_2151\" align=\"aligncenter\" width=\"775\"]<img class=\"wp-image-2151 size-full\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144510\/Screenshot-2023-04-26-104243.png\" alt=\"screenshot of an Excel spreadsheet scatterplot\" width=\"775\" height=\"465\" \/> Figure 3. Add the function equation[\/caption]\r\n<\/center>\r\n<p>&nbsp;<\/p>\r\n<\/li>\r\n\t<li>Note that the equation of the regression line is [latex]y = 162.66x+689.19[\/latex] and the [latex]r^2[\/latex] value is [latex]0.9881[\/latex] (Excel uses a capital R for the coefficient of determination, but we will use a lower-case [latex]r[\/latex]). What does the coefficient of determination [latex]r^2[\/latex] tell us about the appropriateness of the regression line to model the data? Since [latex]0.9881[\/latex] is very close to [latex]1[\/latex], this model is a good fit for the data. A coefficient of determination greater than [latex]0.7[\/latex] is usually considered good, but there are cases in which a large\u00a0\u00a0[latex]r^2[\/latex] doesn't explain well and when a small\u00a0[latex]r^2[\/latex] is considered sufficient. Each situation is different.<\/li>\r\n<\/ol>\r\n<p>In this case, we can use the model to make predictions about the situation. It should be used with caution though, as the only factual information we possess is the data collected. When we make predictions outside a data set, we are said to be\u00a0<strong style=\"font-size: 1rem; text-align: initial;\">extrapolating<\/strong><span style=\"font-size: 1rem; text-align: initial;\">\u00a0from the data, which is irresponsible to rely upon as though the prediction is factual. Making predictions within the known data, called\u00a0<\/span><strong style=\"font-size: 1rem; text-align: initial;\">interpolating<\/strong><span style=\"font-size: 1rem; text-align: initial;\">, is much safer since models tend to experience\u00a0<\/span><strong style=\"font-size: 1rem; text-align: initial;\">model breakdown<\/strong><span style=\"font-size: 1rem; text-align: initial;\">, an input beyond which the predicted output does not make sense.<\/span><\/p>\r\n<p>We can also use graphing calculators to perform linear regression. The following video provides an example.<\/p>\r\n<section class=\"textbox watchIt\"><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/l1QuwXgnSzs\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe>\r\n<p>You can view the <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Quantitative+Reasoning+-+2023+Build\/Transcriptions\/Ex+2_+Creating+a+Scatter+Plot+and+Performing+Linear+Regression+on+the+Calculator.txt\" target=\"_blank\" rel=\"noopener\">transcript for \u201cEx 2: Creating a Scatter Plot and Performing Linear Regression on the Calculator\u201d here (opens in new window).<\/a><\/p>\r\n<\/section>","rendered":"<h2>Spreadsheet Hands-On: Use Excel to find the regression line<\/h2>\n<p>Let&#8217;s look at an example of using a spreadsheet to perform linear regression on a data set.<\/p>\n<p>The following set of data represents the annual sales of a company in millions of dollars since the year 2003. Let [latex]y[\/latex] represent the quantity of sales and let [latex]x[\/latex] represent the number of years since 2003.<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 44px;\">\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"width: 14.2857%; height: 22px;\">[latex]x[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]0[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]1[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]2[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]3[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]4[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]5[\/latex]<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 14.2857%; height: 22px;\">[latex]y[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]733[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]841[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]964[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]1162[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]1346[\/latex]<\/td>\n<td style=\"width: 14.2857%; text-align: center; height: 22px;\">[latex]1529[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>Using the techniques you learned in the previous section, store the data in a spreadsheet and use the computer to find the regression line (also called a trendline).<\/p>\n<h3>Step 1: Store the data<\/h3>\n<ol>\n<li>As you did before, label two columns with the the input and the output of the data table. Then highlight both columns at once and choose Scatter with Smooth Lines.\n<p>&nbsp;<\/p>\n<div style=\"text-align: center;\">\n<figure id=\"attachment_2149\" aria-describedby=\"caption-attachment-2149\" style=\"width: 727px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2149 size-full\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144314\/Screenshot-2023-04-26-104233.png\" alt=\"screenshot of an excel spreadsheet showing data selected to build a scatterplot with smooth lines\" width=\"727\" height=\"747\" srcset=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144314\/Screenshot-2023-04-26-104233.png 727w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144314\/Screenshot-2023-04-26-104233-292x300.png 292w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144314\/Screenshot-2023-04-26-104233-65x67.png 65w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144314\/Screenshot-2023-04-26-104233-225x231.png 225w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144314\/Screenshot-2023-04-26-104233-350x360.png 350w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><figcaption id=\"caption-attachment-2149\" class=\"wp-caption-text\">Figure 1. Create a scatter plot<\/figcaption><\/figure>\n<\/div>\n<p>&nbsp;<\/p>\n<\/li>\n<li>Click on the chart, then on the style icon with the plus-sign on it, hover over Trendline, click the right arrow, and choose More Options&#8230; to open the Format Trendline pane.\n<p>&nbsp;<\/p>\n<div style=\"text-align: center;\">\n<figure id=\"attachment_2150\" aria-describedby=\"caption-attachment-2150\" style=\"width: 751px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2150 size-full\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144343\/Screenshot-2023-04-26-104238.png\" alt=\"screenshot of an Excel spreadsheet with a scatterplot\" width=\"751\" height=\"474\" srcset=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144343\/Screenshot-2023-04-26-104238.png 751w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144343\/Screenshot-2023-04-26-104238-300x189.png 300w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144343\/Screenshot-2023-04-26-104238-65x41.png 65w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144343\/Screenshot-2023-04-26-104238-225x142.png 225w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144343\/Screenshot-2023-04-26-104238-350x221.png 350w\" sizes=\"(max-width: 751px) 100vw, 751px\" \/><figcaption id=\"caption-attachment-2150\" class=\"wp-caption-text\">Figure 2. Create a trendline<\/figcaption><\/figure>\n<\/div>\n<p>&nbsp;<\/p>\n<\/li>\n<li>Choose Linear under Trendline Options, then click Display Equation on chart and Display R-squared value on chart.\n<p>&nbsp;<\/p>\n<div style=\"text-align: center;\">\n<figure id=\"attachment_2151\" aria-describedby=\"caption-attachment-2151\" style=\"width: 775px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2151 size-full\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144510\/Screenshot-2023-04-26-104243.png\" alt=\"screenshot of an Excel spreadsheet scatterplot\" width=\"775\" height=\"465\" srcset=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144510\/Screenshot-2023-04-26-104243.png 775w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144510\/Screenshot-2023-04-26-104243-300x180.png 300w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144510\/Screenshot-2023-04-26-104243-768x461.png 768w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144510\/Screenshot-2023-04-26-104243-65x39.png 65w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144510\/Screenshot-2023-04-26-104243-225x135.png 225w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/18\/2023\/04\/26144510\/Screenshot-2023-04-26-104243-350x210.png 350w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><figcaption id=\"caption-attachment-2151\" class=\"wp-caption-text\">Figure 3. Add the function equation<\/figcaption><\/figure>\n<\/div>\n<p>&nbsp;<\/p>\n<\/li>\n<li>Note that the equation of the regression line is [latex]y = 162.66x+689.19[\/latex] and the [latex]r^2[\/latex] value is [latex]0.9881[\/latex] (Excel uses a capital R for the coefficient of determination, but we will use a lower-case [latex]r[\/latex]). What does the coefficient of determination [latex]r^2[\/latex] tell us about the appropriateness of the regression line to model the data? Since [latex]0.9881[\/latex] is very close to [latex]1[\/latex], this model is a good fit for the data. A coefficient of determination greater than [latex]0.7[\/latex] is usually considered good, but there are cases in which a large\u00a0\u00a0[latex]r^2[\/latex] doesn&#8217;t explain well and when a small\u00a0[latex]r^2[\/latex] is considered sufficient. Each situation is different.<\/li>\n<\/ol>\n<p>In this case, we can use the model to make predictions about the situation. It should be used with caution though, as the only factual information we possess is the data collected. When we make predictions outside a data set, we are said to be\u00a0<strong style=\"font-size: 1rem; text-align: initial;\">extrapolating<\/strong><span style=\"font-size: 1rem; text-align: initial;\">\u00a0from the data, which is irresponsible to rely upon as though the prediction is factual. Making predictions within the known data, called\u00a0<\/span><strong style=\"font-size: 1rem; text-align: initial;\">interpolating<\/strong><span style=\"font-size: 1rem; text-align: initial;\">, is much safer since models tend to experience\u00a0<\/span><strong style=\"font-size: 1rem; text-align: initial;\">model breakdown<\/strong><span style=\"font-size: 1rem; text-align: initial;\">, an input beyond which the predicted output does not make sense.<\/span><\/p>\n<p>We can also use graphing calculators to perform linear regression. The following video provides an example.<\/p>\n<section class=\"textbox watchIt\"><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/l1QuwXgnSzs\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>You can view the <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Quantitative+Reasoning+-+2023+Build\/Transcriptions\/Ex+2_+Creating+a+Scatter+Plot+and+Performing+Linear+Regression+on+the+Calculator.txt\" target=\"_blank\" rel=\"noopener\">transcript for \u201cEx 2: Creating a Scatter Plot and Performing Linear Regression on the Calculator\u201d here (opens in new window).<\/a><\/p>\n<\/section>\n","protected":false},"author":15,"menu_order":21,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":87,"module-header":"learn_it","content_attributions":[],"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\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/2145"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/users\/15"}],"version-history":[{"count":16,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/2145\/revisions"}],"predecessor-version":[{"id":15882,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/2145\/revisions\/15882"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/parts\/87"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/2145\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/media?parent=2145"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapter-type?post=2145"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/contributor?post=2145"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/license?post=2145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}