1 / 10

Section 4.2: Least-Squares Regression

Section 4.2: Least-Squares Regression. Goal: Fit a straight line to a set of points as a way to describe the relationship between the X and Y variables. Asking price in thousands of dollars Dec.2010 data, Naples, FL. (Problem 28 in text).

arvin
Download Presentation

Section 4.2: Least-Squares Regression

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Section 4.2: Least-Squares Regression Goal: Fit a straight line to a set of points as a way to describe the relationship between the X and Y variables.

  2. Asking price in thousands of dollars Dec.2010 data, Naples, FL. (Problem 28 in text)

  3. y = mx + b → AskPrice = 0.0686 × SqFt + 83.2366 y = → AskPrice = 83.2366 + 0.0686 × SqFt

  4. Residual = Observed - Predicted

  5. Residual = Observed – Predicted Least-squares line minimizes “sum of the squared residuals”

  6. y = mx + b → AskPrice = 0.0686 × SqFt + 83.2366 y = → AskPrice = 83.2366 + 0.0686 × SqFt SLOPE For each one square foot increase, we expect the average asking price to be 0.0686 higher. (0.0686 = $68.60) INTERCEPT A zero square foot home would have an asking price of 83 .2366 (83 .2366 =$83,236.60) This example of the intercept is extrapolation. It is a bad idea to extrapolate outside of your range of data. Interpretation

  7. y = mx + b → AskPrice = 0.0686 × SqFt + 83.2366 y = → AskPrice = 83.2366 + 0.0686 × SqFt Suppose X=1344 square feet, Y= 180.0 83.2366 + 0.0686 × 1344 = 175.435 Predicted Y= Predicted Cost= $175,435 Residual = observed – predicted = 180.0 – 175.435 = 4.565 How to calculate predicted value and residuals

  8. An example of leverage

  9. For a good applet to explore leverage and correlation see: http://www.calpoly.edu/~srein/StatDemo/All.html

More Related