Presentation is loading. Please wait.

Presentation is loading. Please wait.

Least Square Regression Line. Line of Best Fit Our objective is to fit a line in the scatterplot that fits the data the best As just seen, the best fit.

Similar presentations


Presentation on theme: "Least Square Regression Line. Line of Best Fit Our objective is to fit a line in the scatterplot that fits the data the best As just seen, the best fit."— Presentation transcript:

1 Least Square Regression Line

2 Line of Best Fit Our objective is to fit a line in the scatterplot that fits the data the best As just seen, the best fit would minimize the sum of squares. Line of best fit looks like: That’s a hat on the y, meaning that it is a prediction not the actual y values. VERY IMPORTANT!!! Need a slope and y-intercept

3 Need a point and slope An obvious point is the mean of the x and the mean of the y. This point is the middle of both variables.

4 Slope in the z’s If we look at the scatterplot of the z-scores we find that the line of best fit must go through (0,0) The slope of the line that minimizes the sum of squares in the z-scores will always be r. This tells you that for each increase of 1 standard deviation in x there is a change of r standard deviations in y.

5 Example: Square Foot vs. Selling Price for Houses in Boulder, CO (Table 2.3)

6 Here is the scatterplot of the z-scores with the line that minimizes the sum of squares.

7 Slope in the actual scatterplot Since the slope of the line in the z-scores compares the standard deviations we include these back to get the slope of the line in the scatterplot of the data. Thus the slope of the line in the regular scatterplot becomes Interpretation of the slope: For every increase of 1 unit in x, there is an increase/decrease of b 1 units in y

8 House sales Interpretation: For every increase of 1 square foot the selling price increases by $47.73.

9 Finding intercept, b 0 Now that we have the slope, we only need a point that the line runs through to get the intercept. We have one: So the equation for intercept becomes: Interpretation of the intercept is generally meaningless. So be careful!

10 House Sales

11


Download ppt "Least Square Regression Line. Line of Best Fit Our objective is to fit a line in the scatterplot that fits the data the best As just seen, the best fit."

Similar presentations


Ads by Google