1 / 19

Linear regression

Linear regression. Linear Regression. In this lesson you will learn: How to calculate a least squares regression line and use it to make predictions. How to use residuals How a regression equation is effected by a linear transformation of either of the variables.

iconner
Download Presentation

Linear 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. Linear regression

  2. Linear Regression • In this lesson you will learn: • How to calculate a least squares regression line and use it to make predictions. • How to use residuals • How a regression equation is effected by a linear transformation of either of the variables.

  3. Linear regressionscatter graph two variables

  4. The least squares regression line At GCSE you did a line of best fit to describe correlation which was a bit of a guessing game a bit hit and miss. • But now you will learn a slightly more accurate method ‘the method of least squares’ to calculate the line of regression.

  5. Calculating the Line of RegressionUsing – the equation of a straight line y=mx+c • Get the mean of all the x values • Get the mean of all the y values and use the following equation (from C1) • Plot the point this is the only point that we know on the line of regression. • The only thing to do now is work out the gradient (m)

  6. Find the gradient You need the different forms as problems will be presented in different ways.

  7. In a graphics calculator

  8. Task • Exercise A • page 127

  9. Explanatory variables • which makes more sense to you: • The sale of ice-cream affects the temperature • The temperature affects the sales of ice-cream • Temperature is the ‘Explanatory Variable’ and therefore the one we call x

  10. Task • Exercise B

  11. Scaling- you could do each value or just apply it to the whole equation If the temperature were given in Fahrenheit (t) the values would need converting or the equation would need rewriting in terms of Fahrenheit (t)

  12. Task • Exercise C • page 130

  13. Residualsthe difference between Practice and Theory • A residual is the difference between observed y-value and the predicted y-value using the line of regression. • Residuals are shown by a vertical line from the line of regression. http://www.math.csusb.edu/faculty/stanton/m262/regress/regress.html http://www.math.csusb.edu/faculty/stanton/probstat/regression.html both of these show how each item of data will have an affect on the line of regression. Can you work out what it is?

  14. Calculating the residuals

  15. Calculating the residuals This is because we have calculated regression line using the method of least squares.

  16. TASK • Exercise D • Page 132

  17. Calculating the residuals Can you think of any problems we might have with our line of regression?

  18. Calculating the residuals What can we do to improve our line of regression? Tip you may have already been told what to do with a line of best fit at GCSE maths

  19. Linear Regression • The main points of the lesson were: • How to calculate a least squares regression line and use it to make predictions. • How to use residuals • How a regression equation is effected by a linear transformation of either of the variables.

More Related