| | {{ 'ml-lesson-number-slides' | message : article.intro.bblockCount }} |
| | {{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount }} |
| | {{ 'ml-lesson-time-estimation' | message }} |
Here are a few recommended readings before getting started with this lesson.
A line of best fit, also known as a regression line, is a line of fit that estimates the relationship between the values of a data set. The equation of the line of best fit has been determined using a strict mathematical method.
One commonly used method to determine a line of best fit is the method of least squares. The methods used to find the line of best fit are usually hard to do by hand. Therefore, a line of best fit can be found by performing a linear regression on a graphing calculator. As an example, consider the data set graphed above.
For a school project, Ramsha wants to investigate if there is a correlation between the width of a tree and its height. To do so, she measured the diameter at chest height and the height of some trees in a local park. Her findings are shown in the following table.
| Diameter at chest (cm) | Height (m) |
|---|---|
PGFTikZ parser error:Error with file uploading, missing permissions.
Edit.
PGFTikZ parser error:Error with file uploading, missing permissions.
Then the data values are written in the columns.
PGFTikZ parser error:Error with file uploading, missing permissions.
By pressing the button and then selecting the CALC menu, the option LinReg()
can be found. This option gives the line of best fit, expressed as a linear function in slope-intercept form.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
Then, to graph the scatter plot push the buttons and Choose one of the plots in the list. Select the option ON,
choose the type to be a scatter plot, and assign and as XList
and Ylist,
respectively.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
The plot can be made by pressing the button It is possible that after drawing the plot the window-size is not adequate for seeing all the information.
PGFTikZ parser error:Error with file uploading, missing permissions.
To fix this press and select the option ZoomStat.
After doing so the window will resize to show the important information.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
Use the linear regression feature of a graphing calculator to find the equation of the line of best fit for the given data set. Compare the obtained equation with the equations shown in the applet, and choose the closest one.
The following table displays some values of atmospheric pressures at different altitudes.
| Altitude (thousand feet) | ||||||
|---|---|---|---|---|---|---|
| Pressure (PSI) |
PGFTikZ parser error:Error with file uploading, missing permissions.
Edit.
PGFTikZ parser error:Error with file uploading, missing permissions.
Then the data values can be written in the columns.
PGFTikZ parser error:Error with file uploading, missing permissions.
Finally, by pressing the button and then selecting the menu item CALC, the option LinReg()
can be found. This option gives a line of best fit, expressed as a linear function in slope-intercept form.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
To graph the scatter plot, first push the buttons and Then, choose one of the plots in the list. Select the option ON,
choose the type to be a scatter plot, and assign and as XList
and Ylist,
respectively.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
The plot can be made by pressing the button It is possible that after drawing the plot the window-size is not large enough to see all of the information.
PGFTikZ parser error:Error with file uploading, missing permissions.
To fix this, press and select the option ZoomStat.
After doing that, the window will resize to show the important information.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
To find the value of when press ( and Then press to insert the value of for Finally, press again.
PGFTikZ parser error:Error with file uploading, missing permissions.
The value of the pressure at feet is about PSI. Since all the data values are close to the line of best fit and the data is strongly correlated, it can be said that this is a good approximation of the actual value.
Davontay has a math assignment that consists of eight different exercises. He registered the time (in minutes) in which he completed the first seven exercises.
| Exercise | |||||||
|---|---|---|---|---|---|---|---|
| Time (minutes) |
PGFTikZ parser error:Error with file uploading, missing permissions.
Edit.
PGFTikZ parser error:Error with file uploading, missing permissions.
The data values can be written in the columns.
PGFTikZ parser error:Error with file uploading, missing permissions.
Finally, by pressing the button and then selecting the menu item CALC, the option LinReg()
can be found. This option gives a line of best fit, expressed as a linear function in slope-intercept form.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
To graph the scatter plot, first push the buttons and Then, choose one of the plots in the list. Select the option ON,
choose the type to be a scatter plot, and assign and as XList
and Ylist,
respectively.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
The plot can be made by pressing the button It is possible that after drawing the plot the window-size is not large enough to see all of the information.
PGFTikZ parser error:Error with file uploading, missing permissions.
To fix this, press and select the option ZoomStat.
After doing that, the window will resize to show the important information.
PGFTikZ parser error:Error with file uploading, missing permissions.
PGFTikZ parser error:Error with file uploading, missing permissions.
Looking at the graph, it can be seen that the line of best fit is not close to any of the provided data points.
From Part C it can be noted that the line is not representative of the given data points. This means that these measures do not reflect the reality of the exercises.
PGFTikZ parser error:Error with file uploading, missing permissions.
Then, to find the value of when press ( and Then press to insert the value of for Finally, press again.
PGFTikZ parser error:Error with file uploading, missing permissions.
The value of when is about This means that Davontay will finish the eighth exercise in less than minutes. Since none of the given data values are really close to the line of best fit and the data is not correlated, it can be said that this is a not good approximation for the actual value.
In this lesson it was shown how to find the line of best fit for data sets and how to make predictions using these lines. Considering the examples discussed throughout the lesson, it is possible to make two conclusions.