Math 141 · Lesson 22
Least Squares Line
Fit a line by hand to a dataset and track the length of the residual vector as the line moves. Then compare the drawn line with the least squares line.
About this tool
The residual of each data point is drawn on the scatter plot, with a magnified residual plot below it. Show numbers works out the residual vector:
The panel also tracks the length and the root mean square error (RMSE). The RMSE is for data points. Least squares moves the drawn line to the least squares line. Show least squares line draws the least squares line dashed for comparison and lists its and RMSE.
Under More:
- Line comparison. Save this line adds the current line to a table of and RMSE. A row loads its line again.
- Squared residuals. Show squares draws the square of each residual. The total area of the squares is .
The datasets are Twitter users, three points, US e-commerce sales and world population growth.