{"id":1160,"date":"2015-11-12T18:35:31","date_gmt":"2015-11-12T18:35:31","guid":{"rendered":"https:\/\/courses.candelalearning.com\/collegealgebra1xmaster\/?post_type=chapter&#038;p=1160"},"modified":"2017-03-31T22:16:04","modified_gmt":"2017-03-31T22:16:04","slug":"find-the-line-of-best-fit","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/chapter\/find-the-line-of-best-fit\/","title":{"raw":"Find the line of best fit","rendered":"Find the line of best fit"},"content":{"raw":"<p id=\"fs-id1165135443922\">Once we recognize a need for a linear function to model the\u00a0data in \"<a href=\"https:\/\/courses.candelalearning.com\/osprecalc\/chapter\/draw-and-interpret-scatter-plots\/\" target=\"_blank\">Draw and interpret scatter plots<\/a>,\" the natural follow-up question is \"what is that linear function?\" One way to approximate our linear function is to sketch the line that seems to best fit the data. Then we can extend the line until we can verify the <em data-effect=\"italics\">y<\/em>-intercept. We can approximate the slope of the line by extending it until we can estimate the [latex]\\frac{\\text{rise}}{\\text{run}}[\/latex].<\/p>\r\n\r\n<div id=\"Example_02_04_02\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165135441718\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165137416925\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 2: Finding a Line of Best Fit<\/h3>\r\nFind a linear function that fits the data in the table below\u00a0by \"eyeballing\" a line that seems to fit.\r\n<table summary=\"Two rows and ten columns. The first row is labeled, 'chirps'. The second row is labeled is labeled, 'Temp'. Reading the remaining rows as ordered pairs (i.e., (chirps, Temp), we have the following values: (44, 80.5), (35, 70.5), (20.4, 57), (33, 66), (31, 68), (35, 72), (18.5, 52), (37, 73.5) and (26, 53).\"><colgroup><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><\/colgroup><tbody><tr><td><strong>Chirps<\/strong><\/td>\r\n<td>44<\/td>\r\n<td>35<\/td>\r\n<td>20.4<\/td>\r\n<td>33<\/td>\r\n<td>31<\/td>\r\n<td>35<\/td>\r\n<td>18.5<\/td>\r\n<td>37<\/td>\r\n<td>26<\/td>\r\n<\/tr><tr><td><strong>Temperature<\/strong><\/td>\r\n<td>80.5<\/td>\r\n<td>70.5<\/td>\r\n<td>57<\/td>\r\n<td>66<\/td>\r\n<td>68<\/td>\r\n<td>72<\/td>\r\n<td>52<\/td>\r\n<td>73.5<\/td>\r\n<td>53<\/td>\r\n<\/tr><\/tbody><\/table><\/div>\r\n<div id=\"fs-id1165134104062\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\n<p id=\"fs-id1165137507732\">On a graph, we could try sketching a line.<\/p>\r\n<p id=\"fs-id1165137581362\">Using the starting and ending points of our hand drawn line, points (0, 30) and (50, 90), this graph has a slope of<\/p>\r\n\r\n<div id=\"fs-id1165137736934\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]m=\\frac{60}{50}=1.2[\/latex]<\/div>\r\n<p>and a <em data-effect=\"italics\">y<\/em>-intercept at 30. This gives an equation of<\/p>\r\n\r\n<div id=\"fs-id1165137803698\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]T\\left(c\\right)=1.2c+30[\/latex]<\/div>\r\n<p id=\"fs-id1165137573540\">where <em>c<\/em>\u00a0is the number of chirps in 15 seconds, and <em>T<\/em>(<em>c<\/em>)\u00a0is the temperature in degrees Fahrenheit. The resulting equation is represented in the graph below.<\/p>\r\n\r\n<figure id=\"CNX_Precalc_Figure_02_04_003\"><span data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\"><span data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\">\r\n<\/span><\/span>\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201200\/CNX_Precalc_Figure_02_04_0032.jpg\" alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\" width=\"487\" height=\"432\" data-media-type=\"image\/jpg\"\/><b>Figure 3<\/b>[\/caption]\r\n\r\n<\/figure><\/div>\r\n<div id=\"fs-id1165137606193\" class=\"commentary\" data-type=\"commentary\">\r\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\r\n<p>This linear equation can then be used to approximate answers to various questions we might ask about the trend.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<section id=\"fs-id1165137456060\" data-depth=\"2\"><h2 data-type=\"title\">Recognizing Interpolation or Extrapolation<\/h2>\r\n<p id=\"fs-id1165135255246\">While the data for most examples does not fall perfectly on the line, the equation is our best guess as to how the relationship will behave outside of the values for which we have data. We use a process known as <strong>interpolation<\/strong> when we predict a value inside the domain and range of the data. The process of <strong>extrapolation<\/strong> is used when we predict a value outside the domain and range of the data.<\/p>\r\n<p id=\"fs-id1165137911398\">The graph below compares the two processes for the cricket-chirp data addressed in Example 2. We can see that interpolation would occur if we used our model to predict temperature when the values for chirps are between 18.5 and 44. Extrapolation would occur if we used our model to predict temperature when the values for chirps are less than 18.5 or greater than 44.<\/p>\r\n<p id=\"fs-id1165137399663\">There is a difference between making predictions inside the domain and range of values for which we have data and outside that domain and range. Predicting a value outside of the domain and range has its limitations. When our model no longer applies after a certain point, it is sometimes called <strong>model breakdown<\/strong>. For example, predicting a cost function for a period of two years may involve examining the data where the input is the time in years and the output is the cost. But if we try to extrapolate a cost when <em>x<\/em> = 50, that is in 50 years, the model would not apply because we could not account for factors fifty years in the future.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201201\/CNX_Precalc_Figure_02_04_0042.jpg\" alt=\"Scatter plot, showing the line of best fit and where interpolation and extrapolation occurs. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\" width=\"487\" height=\"430\" data-media-type=\"image\/jpg\"\/><b>Figure 4.<\/b> Interpolation occurs within the domain and range of the provided data whereas extrapolation occurs outside.[\/caption]\r\n\r\n<div id=\"fs-id1165137447983\" class=\"note textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"A General Note\">\r\n<h3 class=\"title\" data-type=\"title\">A General Note: Interpolation and Extrapolation<\/h3>\r\n<p id=\"fs-id1165135646198\">Different methods of making predictions are used to analyze data.<\/p>\r\n\r\n<ul id=\"fs-id1165137666284\" data-bullet-style=\"none\"><li>The method of <strong>interpolation<\/strong> involves predicting a value inside the domain and\/or range of the data.<\/li>\r\n\t<li>The method of <strong>extrapolation<\/strong> involves predicting a value outside the domain and\/or range of the data.<\/li>\r\n\t<li><strong>Model breakdown<\/strong> occurs at the point when the model no longer applies.<\/li>\r\n<\/ul><\/div>\r\n<div id=\"Example_02_04_03\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165137584562\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165137734950\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 3: Understanding Interpolation and Extrapolation<\/h3>\r\n<table summary=\"Two rows and ten columns. The first row is labeled, 'chirps'. The second row is labeled is labeled, 'Temp'. Reading the remaining rows as ordered pairs (i.e., (chirps, Temp), we have the following values: (44, 80.5), (35, 70.5), (20.4, 57), (33, 66), (31, 68), (35, 72), (18.5, 52), (37, 73.5) and (26, 53).\"><colgroup><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><\/colgroup><tbody><tr><td><strong>Chirps<\/strong><\/td>\r\n<td>44<\/td>\r\n<td>35<\/td>\r\n<td>20.4<\/td>\r\n<td>33<\/td>\r\n<td>31<\/td>\r\n<td>35<\/td>\r\n<td>18.5<\/td>\r\n<td>37<\/td>\r\n<td>26<\/td>\r\n<\/tr><tr><td><strong>Temperature<\/strong><\/td>\r\n<td>80.5<\/td>\r\n<td>70.5<\/td>\r\n<td>57<\/td>\r\n<td>66<\/td>\r\n<td>68<\/td>\r\n<td>72<\/td>\r\n<td>52<\/td>\r\n<td>73.5<\/td>\r\n<td>53<\/td>\r\n<\/tr><\/tbody><\/table><p id=\"fs-id1165137668321\">Use the cricket data above\u00a0to answer the following questions:<\/p>\r\n\r\n<ol id=\"fs-id1165137843776\" data-number-style=\"lower-alpha\"><li>Would predicting the temperature when crickets are chirping 30 times in 15 seconds be interpolation or extrapolation? Make the prediction, and discuss whether it is reasonable.<\/li>\r\n\t<li>Would predicting the number of chirps crickets will make at 40 degrees be interpolation or extrapolation? Make the prediction, and discuss whether it is reasonable.<\/li>\r\n<\/ol><\/div>\r\n<div id=\"fs-id1165137843814\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\n<ol id=\"fs-id1165137779181\" data-number-style=\"lower-alpha\"><li>The number of chirps in the data provided varied from 18.5 to 44. A prediction at 30 chirps per 15 seconds is inside the domain of our data, so would be interpolation. Using our model:\r\n<div id=\"eip-id1165131886691\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}T\\left(30\\right)=30+1.2\\left(30\\right)\\hfill \\\\ \\text{ }=66\\text{degrees}\\hfill \\end{cases}[\/latex]<\/div>\r\nBased on the data we have, this value seems reasonable.<\/li>\r\n\t<li>The temperature values varied from 52 to 80.5. Predicting the number of chirps at 40 degrees is extrapolation because 40 is outside the range of our data. Using our model:\r\n<div id=\"eip-id1165135551132\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}40=30+1.2c\\hfill \\\\ 10=1.2c\\hfill \\\\ c\\approx 8.33\\hfill \\end{cases}[\/latex]<\/div><\/li>\r\n<\/ol><p id=\"fs-id1165137434356\">We can compare the regions of interpolation and extrapolation using the graph below.<\/p>\r\n\r\n<figure id=\"CNX_Precalc_Figure_02_04_005\"><span data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit and where interpolation and extrapolation occurs. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\"><span data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit and where interpolation and extrapolation occurs. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\">\r\n<\/span><\/span>\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"485\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201203\/CNX_Precalc_Figure_02_04_0052.jpg\" alt=\"Scatter plot, showing the line of best fit and where interpolation and extrapolation occurs. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\" width=\"485\" height=\"429\" data-media-type=\"image\/jpg\"\/><b>Figure 5<\/b>[\/caption]\r\n\r\n<\/figure><\/div>\r\n<div id=\"fs-id1165137637804\" class=\"commentary\" data-type=\"commentary\">\r\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\r\n<p id=\"fs-id1165137580571\">Our model predicts the crickets would chirp 8.33 times in 15 seconds. While this might be possible, we have no reason to believe our model is valid outside the domain and range. In fact, generally crickets stop chirping altogether below around 50 degrees.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"bcc-box bcc-success\">\r\n<h3>Try It 1<\/h3>\r\n<p id=\"fs-id1165135695208\">According to the data from the table in Example 3, what temperature can we predict it is if we counted 20 chirps in 15 seconds?<\/p>\r\n<a href=\"https:\/\/courses.candelalearning.com\/osprecalc\/chapter\/solutions-28\/\" target=\"_blank\">Solution<\/a>\r\n\r\n<\/div>\r\n<\/section><section id=\"fs-id1165137414565\" data-depth=\"2\"><h2 data-type=\"title\">Finding the Line of Best Fit Using a Graphing Utility<\/h2>\r\n<p id=\"fs-id1165137598255\">While eyeballing a line works reasonably well, there are statistical techniques for fitting a line to data that minimize the differences between the line and data values.[footnote]Technically, the method minimizes the sum of the squared differences in the vertical direction between the line and the data values.[\/footnote] One such technique is called <strong>least squares regression<\/strong> and can be computed by many graphing calculators, spreadsheet software, statistical software, and many web-based calculators.[footnote]For example, <a href=\"http:\/\/www.shodor.org\/unchem\/math\/lls\/leastsq.html\" target=\"_blank\">http:\/\/www.shodor.org\/unchem\/math\/lls\/leastsq.html<\/a>[\/footnote] Least squares regression is one means to determine the line that best fits the data, and here we will refer to this method as linear regression.<\/p>\r\n\r\n<div id=\"fs-id1165137534286\" class=\"note precalculus howto textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"How To\">\r\n<h3 id=\"fs-id1165137472097\">How To: Given data of input and corresponding outputs from a linear function, find the best fit line using linear regression.<\/h3>\r\n<ol id=\"fs-id1165135192714\" data-number-style=\"arabic\"><li>Enter the input in List 1 (L1).<\/li>\r\n\t<li>Enter the output in List 2 (L2).<\/li>\r\n\t<li>On a graphing utility, select Linear Regression (LinReg).<\/li>\r\n<\/ol><\/div>\r\n<div id=\"Example_02_04_04\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165137557131\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165137862815\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 4: Finding a Least Squares Regression Line<\/h3>\r\nFind the least squares regression line using the cricket-chirp data in the table below.\r\n<table summary=\"Two rows and ten columns. The first row is labeled, 'chirps'. The second row is labeled is labeled, 'Temp'. Reading the remaining rows as ordered pairs (i.e., (chirps, Temp), we have the following values: (44, 80.5), (35, 70.5), (20.4, 57), (33, 66), (31, 68), (35, 72), (18.5, 52), (37, 73.5) and (26, 53).\"><colgroup><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><\/colgroup><tbody><tr><td><strong>Chirps<\/strong><\/td>\r\n<td>44<\/td>\r\n<td>35<\/td>\r\n<td>20.4<\/td>\r\n<td>33<\/td>\r\n<td>31<\/td>\r\n<td>35<\/td>\r\n<td>18.5<\/td>\r\n<td>37<\/td>\r\n<td>26<\/td>\r\n<\/tr><tr><td><strong>Temperature<\/strong><\/td>\r\n<td>80.5<\/td>\r\n<td>70.5<\/td>\r\n<td>57<\/td>\r\n<td>66<\/td>\r\n<td>68<\/td>\r\n<td>72<\/td>\r\n<td>52<\/td>\r\n<td>73.5<\/td>\r\n<td>53<\/td>\r\n<\/tr><\/tbody><\/table><\/div>\r\n<div id=\"fs-id1165137593741\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\n<ol id=\"fs-id1165137415920\" data-number-style=\"arabic\"><li>Enter the input (chirps) in List 1 (L1).<\/li>\r\n\t<li>Enter the output (temperature) in List 2 (L2). See the table below.\r\n<table id=\"Table_02_04_02\" summary=\"Two rows and ten columns. The first row is labeled, 'L1'. The second row is labeled is labeled, 'L2'. Reading the remaining rows as ordered pairs (i.e., (L2, L2), we have the following values: (44, 80.5), (35, 70.5), (20.4, 57), (33, 66), (31, 68), (35, 72), (18.5, 52), (37, 73.5) and (26, 53).\"><colgroup><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><col data-width=\"10%\"\/><\/colgroup><tbody><tr><td><strong>L1<\/strong><\/td>\r\n<td>44<\/td>\r\n<td>35<\/td>\r\n<td>20.4<\/td>\r\n<td>33<\/td>\r\n<td>31<\/td>\r\n<td>35<\/td>\r\n<td>18.5<\/td>\r\n<td>37<\/td>\r\n<td>26<\/td>\r\n<\/tr><tr><td><strong>L2<\/strong><\/td>\r\n<td>80.5<\/td>\r\n<td>70.5<\/td>\r\n<td>57<\/td>\r\n<td>66<\/td>\r\n<td>68<\/td>\r\n<td>72<\/td>\r\n<td>52<\/td>\r\n<td>73.5<\/td>\r\n<td>53<\/td>\r\n<\/tr><\/tbody><\/table><\/li>\r\n\t<li>On a graphing utility, select Linear Regression (LinReg). Using the cricket chirp data from earlier, with technology we obtain the equation:\r\n<div id=\"fs-id1140825\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]T\\left(c\\right)=30.281+1.143c[\/latex]<\/div><\/li>\r\n<\/ol><\/div>\r\n<div id=\"fs-id1165137637983\" class=\"commentary\" data-type=\"commentary\">\r\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\r\n<p id=\"fs-id1165137627652\">Notice that this line is quite similar to the equation we \"eyeballed\" but should fit the data better. Notice also that using this equation would change our prediction for the temperature when hearing 30 chirps in 15 seconds from 66 degrees to:<\/p>\r\n\r\n<div id=\"fs-id1165135194537\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}T\\left(30\\right)=30.281+1.143\\left(30\\right)\\hfill \\\\ \\text{ }=64.571\\hfill \\\\ \\text{ }\\approx 64.6\\text{ degrees}\\hfill \\end{cases}[\/latex]<\/div>\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201204\/CNX_Precalc_Figure_02_04_0062.jpg\" alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\" width=\"487\" height=\"408\" data-media-type=\"image\/jpg\"\/><b>Figure 6<\/b>[\/caption]\r\n<p id=\"fs-id1165137901348\">The graph of the scatter plot with the least squares regression line is shown in below.<span id=\"fs-id1165137692164\" data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\">\r\n<\/span><\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165135260732\" class=\"note precalculus qa textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"Q&amp;A\">\r\n<h3 id=\"fs-id1165137611629\">Q &amp; A<\/h3>\r\n<strong>Will there ever be a case where two different lines will serve as the best fit for the data?<\/strong>\r\n<p id=\"fs-id1165137507058\"><em data-effect=\"italics\">No. There is only one best fit line.<\/em><\/p>\r\n\r\n<\/div>\r\n<\/section>","rendered":"<p id=\"fs-id1165135443922\">Once we recognize a need for a linear function to model the\u00a0data in &#8220;<a href=\"https:\/\/courses.candelalearning.com\/osprecalc\/chapter\/draw-and-interpret-scatter-plots\/\" target=\"_blank\">Draw and interpret scatter plots<\/a>,&#8221; the natural follow-up question is &#8220;what is that linear function?&#8221; One way to approximate our linear function is to sketch the line that seems to best fit the data. Then we can extend the line until we can verify the <em data-effect=\"italics\">y<\/em>-intercept. We can approximate the slope of the line by extending it until we can estimate the [latex]\\frac{\\text{rise}}{\\text{run}}[\/latex].<\/p>\n<div id=\"Example_02_04_02\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165135441718\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165137416925\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 2: Finding a Line of Best Fit<\/h3>\n<p>Find a linear function that fits the data in the table below\u00a0by &#8220;eyeballing&#8221; a line that seems to fit.<\/p>\n<table summary=\"Two rows and ten columns. The first row is labeled, 'chirps'. The second row is labeled is labeled, 'Temp'. Reading the remaining rows as ordered pairs (i.e., (chirps, Temp), we have the following values: (44, 80.5), (35, 70.5), (20.4, 57), (33, 66), (31, 68), (35, 72), (18.5, 52), (37, 73.5) and (26, 53).\">\n<colgroup>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/><\/colgroup>\n<tbody>\n<tr>\n<td><strong>Chirps<\/strong><\/td>\n<td>44<\/td>\n<td>35<\/td>\n<td>20.4<\/td>\n<td>33<\/td>\n<td>31<\/td>\n<td>35<\/td>\n<td>18.5<\/td>\n<td>37<\/td>\n<td>26<\/td>\n<\/tr>\n<tr>\n<td><strong>Temperature<\/strong><\/td>\n<td>80.5<\/td>\n<td>70.5<\/td>\n<td>57<\/td>\n<td>66<\/td>\n<td>68<\/td>\n<td>72<\/td>\n<td>52<\/td>\n<td>73.5<\/td>\n<td>53<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"fs-id1165134104062\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165137507732\">On a graph, we could try sketching a line.<\/p>\n<p id=\"fs-id1165137581362\">Using the starting and ending points of our hand drawn line, points (0, 30) and (50, 90), this graph has a slope of<\/p>\n<div id=\"fs-id1165137736934\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]m=\\frac{60}{50}=1.2[\/latex]<\/div>\n<p>and a <em data-effect=\"italics\">y<\/em>-intercept at 30. This gives an equation of<\/p>\n<div id=\"fs-id1165137803698\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]T\\left(c\\right)=1.2c+30[\/latex]<\/div>\n<p id=\"fs-id1165137573540\">where <em>c<\/em>\u00a0is the number of chirps in 15 seconds, and <em>T<\/em>(<em>c<\/em>)\u00a0is the temperature in degrees Fahrenheit. The resulting equation is represented in the graph below.<\/p>\n<figure id=\"CNX_Precalc_Figure_02_04_003\"><span data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\"><span data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\"><br \/>\n<\/span><\/span><\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201200\/CNX_Precalc_Figure_02_04_0032.jpg\" alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\" width=\"487\" height=\"432\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 3<\/b><\/p>\n<\/div>\n<\/figure>\n<\/div>\n<div id=\"fs-id1165137606193\" class=\"commentary\" data-type=\"commentary\">\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\n<p>This linear equation can then be used to approximate answers to various questions we might ask about the trend.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<section id=\"fs-id1165137456060\" data-depth=\"2\">\n<h2 data-type=\"title\">Recognizing Interpolation or Extrapolation<\/h2>\n<p id=\"fs-id1165135255246\">While the data for most examples does not fall perfectly on the line, the equation is our best guess as to how the relationship will behave outside of the values for which we have data. We use a process known as <strong>interpolation<\/strong> when we predict a value inside the domain and range of the data. The process of <strong>extrapolation<\/strong> is used when we predict a value outside the domain and range of the data.<\/p>\n<p id=\"fs-id1165137911398\">The graph below compares the two processes for the cricket-chirp data addressed in Example 2. We can see that interpolation would occur if we used our model to predict temperature when the values for chirps are between 18.5 and 44. Extrapolation would occur if we used our model to predict temperature when the values for chirps are less than 18.5 or greater than 44.<\/p>\n<p id=\"fs-id1165137399663\">There is a difference between making predictions inside the domain and range of values for which we have data and outside that domain and range. Predicting a value outside of the domain and range has its limitations. When our model no longer applies after a certain point, it is sometimes called <strong>model breakdown<\/strong>. For example, predicting a cost function for a period of two years may involve examining the data where the input is the time in years and the output is the cost. But if we try to extrapolate a cost when <em>x<\/em> = 50, that is in 50 years, the model would not apply because we could not account for factors fifty years in the future.<\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201201\/CNX_Precalc_Figure_02_04_0042.jpg\" alt=\"Scatter plot, showing the line of best fit and where interpolation and extrapolation occurs. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\" width=\"487\" height=\"430\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 4.<\/b> Interpolation occurs within the domain and range of the provided data whereas extrapolation occurs outside.<\/p>\n<\/div>\n<div id=\"fs-id1165137447983\" class=\"note textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"A General Note\">\n<h3 class=\"title\" data-type=\"title\">A General Note: Interpolation and Extrapolation<\/h3>\n<p id=\"fs-id1165135646198\">Different methods of making predictions are used to analyze data.<\/p>\n<ul id=\"fs-id1165137666284\" data-bullet-style=\"none\">\n<li>The method of <strong>interpolation<\/strong> involves predicting a value inside the domain and\/or range of the data.<\/li>\n<li>The method of <strong>extrapolation<\/strong> involves predicting a value outside the domain and\/or range of the data.<\/li>\n<li><strong>Model breakdown<\/strong> occurs at the point when the model no longer applies.<\/li>\n<\/ul>\n<\/div>\n<div id=\"Example_02_04_03\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165137584562\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165137734950\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 3: Understanding Interpolation and Extrapolation<\/h3>\n<table summary=\"Two rows and ten columns. The first row is labeled, 'chirps'. The second row is labeled is labeled, 'Temp'. Reading the remaining rows as ordered pairs (i.e., (chirps, Temp), we have the following values: (44, 80.5), (35, 70.5), (20.4, 57), (33, 66), (31, 68), (35, 72), (18.5, 52), (37, 73.5) and (26, 53).\">\n<colgroup>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/><\/colgroup>\n<tbody>\n<tr>\n<td><strong>Chirps<\/strong><\/td>\n<td>44<\/td>\n<td>35<\/td>\n<td>20.4<\/td>\n<td>33<\/td>\n<td>31<\/td>\n<td>35<\/td>\n<td>18.5<\/td>\n<td>37<\/td>\n<td>26<\/td>\n<\/tr>\n<tr>\n<td><strong>Temperature<\/strong><\/td>\n<td>80.5<\/td>\n<td>70.5<\/td>\n<td>57<\/td>\n<td>66<\/td>\n<td>68<\/td>\n<td>72<\/td>\n<td>52<\/td>\n<td>73.5<\/td>\n<td>53<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p id=\"fs-id1165137668321\">Use the cricket data above\u00a0to answer the following questions:<\/p>\n<ol id=\"fs-id1165137843776\" data-number-style=\"lower-alpha\">\n<li>Would predicting the temperature when crickets are chirping 30 times in 15 seconds be interpolation or extrapolation? Make the prediction, and discuss whether it is reasonable.<\/li>\n<li>Would predicting the number of chirps crickets will make at 40 degrees be interpolation or extrapolation? Make the prediction, and discuss whether it is reasonable.<\/li>\n<\/ol>\n<\/div>\n<div id=\"fs-id1165137843814\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<ol id=\"fs-id1165137779181\" data-number-style=\"lower-alpha\">\n<li>The number of chirps in the data provided varied from 18.5 to 44. A prediction at 30 chirps per 15 seconds is inside the domain of our data, so would be interpolation. Using our model:\n<div id=\"eip-id1165131886691\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}T\\left(30\\right)=30+1.2\\left(30\\right)\\hfill \\\\ \\text{ }=66\\text{degrees}\\hfill \\end{cases}[\/latex]<\/div>\n<p>Based on the data we have, this value seems reasonable.<\/li>\n<li>The temperature values varied from 52 to 80.5. Predicting the number of chirps at 40 degrees is extrapolation because 40 is outside the range of our data. Using our model:\n<div id=\"eip-id1165135551132\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}40=30+1.2c\\hfill \\\\ 10=1.2c\\hfill \\\\ c\\approx 8.33\\hfill \\end{cases}[\/latex]<\/div>\n<\/li>\n<\/ol>\n<p id=\"fs-id1165137434356\">We can compare the regions of interpolation and extrapolation using the graph below.<\/p>\n<figure id=\"CNX_Precalc_Figure_02_04_005\"><span data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit and where interpolation and extrapolation occurs. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\"><span data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit and where interpolation and extrapolation occurs. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\"><br \/>\n<\/span><\/span><\/p>\n<div style=\"width: 495px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201203\/CNX_Precalc_Figure_02_04_0052.jpg\" alt=\"Scatter plot, showing the line of best fit and where interpolation and extrapolation occurs. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\" width=\"485\" height=\"429\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 5<\/b><\/p>\n<\/div>\n<\/figure>\n<\/div>\n<div id=\"fs-id1165137637804\" class=\"commentary\" data-type=\"commentary\">\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\n<p id=\"fs-id1165137580571\">Our model predicts the crickets would chirp 8.33 times in 15 seconds. While this might be possible, we have no reason to believe our model is valid outside the domain and range. In fact, generally crickets stop chirping altogether below around 50 degrees.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bcc-box bcc-success\">\n<h3>Try It 1<\/h3>\n<p id=\"fs-id1165135695208\">According to the data from the table in Example 3, what temperature can we predict it is if we counted 20 chirps in 15 seconds?<\/p>\n<p><a href=\"https:\/\/courses.candelalearning.com\/osprecalc\/chapter\/solutions-28\/\" target=\"_blank\">Solution<\/a><\/p>\n<\/div>\n<\/section>\n<section id=\"fs-id1165137414565\" data-depth=\"2\">\n<h2 data-type=\"title\">Finding the Line of Best Fit Using a Graphing Utility<\/h2>\n<p id=\"fs-id1165137598255\">While eyeballing a line works reasonably well, there are statistical techniques for fitting a line to data that minimize the differences between the line and data values.<a class=\"footnote\" title=\"Technically, the method minimizes the sum of the squared differences in the vertical direction between the line and the data values.\" id=\"return-footnote-1160-1\" href=\"#footnote-1160-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a> One such technique is called <strong>least squares regression<\/strong> and can be computed by many graphing calculators, spreadsheet software, statistical software, and many web-based calculators.<a class=\"footnote\" title=\"For example, http:\/\/www.shodor.org\/unchem\/math\/lls\/leastsq.html\" id=\"return-footnote-1160-2\" href=\"#footnote-1160-2\" aria-label=\"Footnote 2\"><sup class=\"footnote\">[2]<\/sup><\/a> Least squares regression is one means to determine the line that best fits the data, and here we will refer to this method as linear regression.<\/p>\n<div id=\"fs-id1165137534286\" class=\"note precalculus howto textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"How To\">\n<h3 id=\"fs-id1165137472097\">How To: Given data of input and corresponding outputs from a linear function, find the best fit line using linear regression.<\/h3>\n<ol id=\"fs-id1165135192714\" data-number-style=\"arabic\">\n<li>Enter the input in List 1 (L1).<\/li>\n<li>Enter the output in List 2 (L2).<\/li>\n<li>On a graphing utility, select Linear Regression (LinReg).<\/li>\n<\/ol>\n<\/div>\n<div id=\"Example_02_04_04\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165137557131\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165137862815\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 4: Finding a Least Squares Regression Line<\/h3>\n<p>Find the least squares regression line using the cricket-chirp data in the table below.<\/p>\n<table summary=\"Two rows and ten columns. The first row is labeled, 'chirps'. The second row is labeled is labeled, 'Temp'. Reading the remaining rows as ordered pairs (i.e., (chirps, Temp), we have the following values: (44, 80.5), (35, 70.5), (20.4, 57), (33, 66), (31, 68), (35, 72), (18.5, 52), (37, 73.5) and (26, 53).\">\n<colgroup>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/><\/colgroup>\n<tbody>\n<tr>\n<td><strong>Chirps<\/strong><\/td>\n<td>44<\/td>\n<td>35<\/td>\n<td>20.4<\/td>\n<td>33<\/td>\n<td>31<\/td>\n<td>35<\/td>\n<td>18.5<\/td>\n<td>37<\/td>\n<td>26<\/td>\n<\/tr>\n<tr>\n<td><strong>Temperature<\/strong><\/td>\n<td>80.5<\/td>\n<td>70.5<\/td>\n<td>57<\/td>\n<td>66<\/td>\n<td>68<\/td>\n<td>72<\/td>\n<td>52<\/td>\n<td>73.5<\/td>\n<td>53<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"fs-id1165137593741\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<ol id=\"fs-id1165137415920\" data-number-style=\"arabic\">\n<li>Enter the input (chirps) in List 1 (L1).<\/li>\n<li>Enter the output (temperature) in List 2 (L2). See the table below.<br \/>\n<table id=\"Table_02_04_02\" summary=\"Two rows and ten columns. The first row is labeled, 'L1'. The second row is labeled is labeled, 'L2'. Reading the remaining rows as ordered pairs (i.e., (L2, L2), we have the following values: (44, 80.5), (35, 70.5), (20.4, 57), (33, 66), (31, 68), (35, 72), (18.5, 52), (37, 73.5) and (26, 53).\">\n<colgroup>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/>\n<col data-width=\"10%\" \/><\/colgroup>\n<tbody>\n<tr>\n<td><strong>L1<\/strong><\/td>\n<td>44<\/td>\n<td>35<\/td>\n<td>20.4<\/td>\n<td>33<\/td>\n<td>31<\/td>\n<td>35<\/td>\n<td>18.5<\/td>\n<td>37<\/td>\n<td>26<\/td>\n<\/tr>\n<tr>\n<td><strong>L2<\/strong><\/td>\n<td>80.5<\/td>\n<td>70.5<\/td>\n<td>57<\/td>\n<td>66<\/td>\n<td>68<\/td>\n<td>72<\/td>\n<td>52<\/td>\n<td>73.5<\/td>\n<td>53<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>On a graphing utility, select Linear Regression (LinReg). Using the cricket chirp data from earlier, with technology we obtain the equation:\n<div id=\"fs-id1140825\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]T\\left(c\\right)=30.281+1.143c[\/latex]<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<div id=\"fs-id1165137637983\" class=\"commentary\" data-type=\"commentary\">\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\n<p id=\"fs-id1165137627652\">Notice that this line is quite similar to the equation we &#8220;eyeballed&#8221; but should fit the data better. Notice also that using this equation would change our prediction for the temperature when hearing 30 chirps in 15 seconds from 66 degrees to:<\/p>\n<div id=\"fs-id1165135194537\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}T\\left(30\\right)=30.281+1.143\\left(30\\right)\\hfill \\\\ \\text{ }=64.571\\hfill \\\\ \\text{ }\\approx 64.6\\text{ degrees}\\hfill \\end{cases}[\/latex]<\/div>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201204\/CNX_Precalc_Figure_02_04_0062.jpg\" alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\" width=\"487\" height=\"408\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 6<\/b><\/p>\n<\/div>\n<p id=\"fs-id1165137901348\">The graph of the scatter plot with the least squares regression line is shown in below.<span id=\"fs-id1165137692164\" data-type=\"media\" data-alt=\"Scatter plot, showing the line of best fit. It is titled 'Cricket Chirps Vs Air Temperature'. The x-axis is  'c, Number of Chirps', and the y-axis is 'T(c), Temperature (F)'.\"><br \/>\n<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fs-id1165135260732\" class=\"note precalculus qa textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"Q&amp;A\">\n<h3 id=\"fs-id1165137611629\">Q &amp; A<\/h3>\n<p><strong>Will there ever be a case where two different lines will serve as the best fit for the data?<\/strong><\/p>\n<p id=\"fs-id1165137507058\"><em data-effect=\"italics\">No. There is only one best fit line.<\/em><\/p>\n<\/div>\n<\/section>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-1160\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Precalculus. <strong>Authored by<\/strong>: Jay Abramson, et al.. <strong>Provided by<\/strong>: OpenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175\">http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em>. <strong>License Terms<\/strong>: Download For Free at : http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.<\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section><hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-1160-1\">Technically, the method minimizes the sum of the squared differences in the vertical direction between the line and the data values. <a href=\"#return-footnote-1160-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><li id=\"footnote-1160-2\">For example, <a href=\"http:\/\/www.shodor.org\/unchem\/math\/lls\/leastsq.html\" target=\"_blank\">http:\/\/www.shodor.org\/unchem\/math\/lls\/leastsq.html<\/a> <a href=\"#return-footnote-1160-2\" class=\"return-footnote\" aria-label=\"Return to footnote 2\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":276,"menu_order":3,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Precalculus\",\"author\":\"Jay Abramson, et al.\",\"organization\":\"OpenStax\",\"url\":\"http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"Download For Free at : http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1160","chapter","type-chapter","status-publish","hentry"],"part":1151,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/users\/276"}],"version-history":[{"count":3,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1160\/revisions"}],"predecessor-version":[{"id":2873,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1160\/revisions\/2873"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/parts\/1151"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1160\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/media?parent=1160"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=1160"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/contributor?post=1160"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/license?post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}