180 likes | 191 Views
Chapter 12. Inference for Linear Regression. Reminder of Linear Regression. First thing you should do is examine your data… Look at your scatterplot. Does it appear linear? Are there outliers? What direction is it going in? Is there a strong relationship? LSR: y-hat = a + bx
E N D
Chapter 12 Inference for Linear Regression
Reminder of Linear Regression • First thing you should do is examine your data… • Look at your scatterplot. Does it appear linear? Are there outliers? What direction is it going in? Is there a strong relationship? • LSR: y-hat = a + bx • a = y-intercept; b= slope • Slope is the rate of change in y for every one x.
Statistics versus parameters • a and b are statistics (estimates of y-intercept and slope). • α and β are unknown parameters • a is an unbiased estimator of α and b is an unbiased estimator of β
We are interested in β • We are going to look at inference for β (slope). • Confidence Intervals and Hypothesis tests.
Confidence Intervals • These will be t-tests • What is the basic formula for confidence intervals? • Estimate +/- margin of error • Estimate +/- t-statistic*Standard Error • For inference for the true mean slope (β) • b +/- t*(SE)
Standard Error and DF • You will either be given this information or you can get your calculator to give it to you! • Degrees of freedom = n – 2 • Why?
Computer Output • Look with me pg 770 • Remember, under coefficient… • Constant = y-intercept • Variable definition = slope • Standard error is the second row under STDev
Hypothesis Tests • Generally, • H0 = 0 • This says that the true slope is zero, which means there is no change in y. This can be different if the context of the problem would mean that no change is not zero…
Calculator! • Put your data in List 1 and List 2 • In your calculator, you go to LinRegTTest under Stat, Test
Example • How well does the number of beers a student drinks predict his or her 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).
Conditions • Observations are independent • You don’t observe the same person multiple times • The true relationship is linear • Check residual plot for scatter. Look at scatter plot.
Conditions Continued • The spread is uniform • The residual plot does not have a cone like appearance. • The residuals have a normal distribution. • Graph residuals
Residuals • Since almost all the conditions deal with residuals, we should probably review • Residual = observed – predicted • y – (y-hat) • In you calculator: Define L3 as L2 – Y1(L1) • You can look at a scatter plot of L1 vs. L3 to see residual plot. • To determine normality, look at a histogram of L3
Example of Ohio State University • Check your conditions for the previous problem. • Let’s finish the problem now.
Homework: • Read Chapter 12. Do questions #9, 10, 14, 18, MC 21-26(explain)
CONGRATULATIONS!!!! You have now finished all of your AP Statistics Course work!!!!!!!