1 / 19

Inference for Regression

Inference for Regression. Find your notes from last week, Put # of beers in L1 and BAC in L2, then find LinReg(ax+b). Formulas:. Confidence Interval:. df = n -2 Because there are two unknowns a & b. the standard error of the least squares slope, b. Interpretation:

Télécharger la présentation

Inference for 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. Inference for Regression Find your notes from last week, Put # of beers in L1 and BAC in L2, then find LinReg(ax+b)

  2. Formulas: • Confidence Interval: df = n -2 Because there are two unknowns a & b the standard error of the least squares slope, b

  3. Interpretation: We are 95% confident that the mean change in BAC per beer is between ___________ and _____________

  4. Back to our Example:For a study on student drinking and blood alcohol level, sixteen student volunteers at Ohio State University drank a randomly assigned number of cans of beer. Thirty minutes later, a police officer measured their blood alcohol content (BAC). The results are show below: • Find the LSRL, correlation coefficient, and coefficient of determination. BAC = -.0127 + 0.018 (Beers) r = 0.8943 r2 = 0.7998

  5. b) Explain the meaning of slope in the context of the problem. There is approximately 1.8% increase in BAC for every Beer c) Explain the meaning of the coefficient of determination in context. Approximately 80% of the variation in BAC can be explained by the regression of BAC on number of Beers drunk.

  6. BAC Residuals Beers Beers Residuals d) Estimate a, b, and s. a = -.0127 b = .0180 s = .0204 e) Create a scatter plot, residual plot and box plot of the residuals for the data.

  7. the standard error of the least squares slope, b

  8. f) Give a 95% confidence interval for the true slope of the LSRL. • Assumptions: • Have an SRS of students • Since the residual plot is randomly scattered, BAC and # of beers are linear • Since the points are evenly spaced across the LSRL on the scatterplot, sy is approximately equal for all values of BAC • Since the boxplot of residual is approximately symmetrical, the responses are approximately normally distributed. • We are 95% confident that the true slope of the LSRL of weight & body fat is between 0.12 and 0.38. Be sure to show all graphs!

  9. Frappy

  10. Frappy

  11. Frappy

  12. Frappy

  13. Formulas: • Hypothesis test:

  14. Hypotheses This implies that there is no relationship between x & y Or that x should not be used to predict y What would the slope equal if there were a perfect relationship between x & y? H0: b = 0 Ha: b > 0 Ha: b < 0 Ha: b≠ 0 1 Be sure to define b!

  15. The data on six-year graduation rate (%), student-related expenditure per full-time student, and median SAT score for a random sample of the primarily undergraduate public universities in the US with enrollments between 10,000 and 20,000 were taken from College Results Online, The Education Trust. We would like to know if there is . For a test of a linear relationship, the null hypothesis is usually expressed as: In this context, this means

  16. Conjecture: We suspect that increased expenditures can be used to predict graduation rates. H0: b = 0 Where b is the true slope between expenditures and graduation rates. Ha: b > 0

  17. Assumptions: • Have an SRS of colleges • Since the residual plot is randomly scattered, Expenditures and Grad rates are linear • Since the points are evenly spaced across the LSRL on the scatterplot, sy is approximately equal for all values of grad rate • Since the boxplot of residual is approximately symmetrical, the responses are approximately normally distributed.

  18. Test statistic: Linear Regression t-test

  19. Since the p-value < a, I reject H0. There is sufficient evidence to suggest that expenditures can be used to predict graduation rate.

More Related