1 / 18

Linear regression: scaling and residuals

Linear regression: scaling and residuals. Starter: Complete question 4 on page 129. Use this as a scale for your axis. Linear regression: scaling and residuals. Starter: Answers. (a). Linear regression: scaling and residuals. Starter: Answers. ,

marvin
Télécharger la présentation

Linear regression: scaling and residuals

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: scaling and residuals Starter: Complete question 4 on page 129. Use this as a scale for your axis

  2. Linear regression: scaling and residuals Starter:Answers. (a)

  3. Linear regression: scaling and residuals Starter:Answers. • , • tells us that for every millibar increase in pressure, the predicted wind speed will drop by . • millibars is the only reliable estimate.

  4. Linear regression: scaling and residuals Learning objectives: • Understand how a regression equation is affected by a linear transformation of either variable • Calculate and draw conclusions from residuals

  5. Linear transformations This skill is useful if you want to take a model that you know works and use it with different units.

  6. Example This is the data on midday temperature and ice cream sales. Assuming a linear model is suitable, calculate the least squares regression equation.

  7. Example This is the data on midday temperature and ice cream sales. Now suppose you want to work in Fahrenheit (because you’re American or over 70). The temperature in Fahrenheit can be found from the temperature in Celsius using the linear scaling

  8. Example This is the data on midday temperature and ice cream sales. Rearranging gives: Substituting gives:

  9. Task Exercise C, Question 1 – Page 130 Time: 10 minutes!

  10. Using Residuals Analysis of individual points can be achieved through considering the residual of that point. This can have two purposes: • To compare performance of individuals within a data set. • To assess whether a data point is erroneous or not. Be careful with your interpretations; use common sense and always refer to the context of the data.

  11. Drivers:A = Ahmed B = Brian C = Carol Ahmed’s fuel consumption is well below those predicted by the line, whilst Brian’s is above. This means Brian’s driving appears to be highly economical whilst Ahmed’s is not. What can we deduce about each driver? Should Ahmed be sacked? No, we should be careful not to make rash judgements as there may be factors involved other than driving style; e.g. age/make of lorry may not be the same for all drivers, route of journey may change etc. Also, we should remember the sample size is very small.

  12. Calculating residuals numerically A residual is the difference the observed values of and those predicted by the regression equation.

  13. Example This is the data on midday temperature and ice cream sales.

  14. Example This is the data on midday temperature and ice cream sales.

  15. Example This is the data on midday temperature and ice cream sales.

  16. Example This is the data on midday temperature and ice cream sales. On one of the days the ice cream vendor was ill and went home early. Which data pair do you think represents this day?

  17. Task Exercise D, Question 2 – Page 132 Time: 10 minutes!

  18. Homework Test yourself – Page 134 Questions 1 & 3 Due Monday Two lucky people will be presenting their answers at the start of next lesson!

More Related