Inferences for Regression

Slides:



Advertisements
Similar presentations
Continuation of inference testing 9E
Advertisements

Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 27 Inferences for Regression.
Copyright © 2010 Pearson Education, Inc. Chapter 27 Inferences for Regression.
Chapter 27 Inferences for Regression This is just for one sample We want to talk about the relation between waist size and %body fat for the complete population.
Inferences for Regression
Copyright © 2009 Pearson Education, Inc. Chapter 29 Multiple Regression.
Copyright © 2010 Pearson Education, Inc. Slide
Inference for Regression
Inference for Regression
Objectives (BPS chapter 24)
Inference for Regression 1Section 13.3, Page 284.
Inferences for Regression
Copyright © 2010, 2007, 2004 Pearson Education, Inc. *Chapter 29 Multiple Regression.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Regression Chapter 14.
Chapter 12 Section 1 Inference for Linear Regression.
Inference for regression - Simple linear regression
STA291 Statistical Methods Lecture 27. Inference for Regression.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Inference for Regression
Inferences for Regression
Inference for Linear Regression Conditions for Regression Inference: Suppose we have n observations on an explanatory variable x and a response variable.
+ Chapter 12: Inference for Regression Inference for Linear Regression.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
AP Statistics Chapter 27 Notes “Inference for Regression”
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
Chapter 14 Inference for Regression © 2011 Pearson Education, Inc. 1 Business Statistics: A First Course.
+ Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
Copyright ©2011 Brooks/Cole, Cengage Learning Inference about Simple Regression Chapter 14 1.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.1 Inference for.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 26, Slide 1 Chapter 27 Inferences for Regression.
Inference for Regression
Chapter 26 Inferences for Regression. An Example: Body Fat and Waist Size Our chapter example revolves around the relationship between % body fat and.
Statistics 27 Inferences for Regression. An Example: Body Fat and Waist Size Our chapter example revolves around the relationship between % body fat and.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.1 Inference for.
Statistics 27 Inferences for Regression. An Example: Body Fat and Waist Size Our chapter example revolves around the relationship between % body fat and.
Chapter 13 Lesson 13.2a Simple Linear Regression and Correlation: Inferential Methods 13.2: Inferences About the Slope of the Population Regression Line.
Chapter 13 Lesson 13.2a Simple Linear Regression and Correlation: Inferential Methods 13.2: Inferences About the Slope of the Population Regression Line.
Chapter 14: More About Regression
CHAPTER 12 More About Regression
23. Inference for regression
Section 11.2 Day 3.
Paired Samples and Blocks
Inference for Regression (Chapter 14) A.P. Stats Review Topic #3
Regression.
Regression Inferential Methods
Inferences for Regression
Inference for Regression
Chapter 11: Simple Linear Regression
CHAPTER 12 More About Regression
Regression.
Monday, April 10 Warm-up Using the given data Create a scatterplot
The Practice of Statistics in the Life Sciences Fourth Edition
Inferences for Regression
CHAPTER 29: Multiple Regression*
CHAPTER 26: Inference for Regression
Chapter 12 Regression.
Regression.
Regression.
Inference for Regression
Regression.
Inference in Linear Models
Regression Chapter 8.
Regression.
When You See (This), You Think (That)
Paired Samples and Blocks
CHAPTER 12 More About Regression
Regression.
Inference for Regression Slope
CHAPTER 12 More About Regression
Inference for Regression
Presentation transcript:

Inferences for Regression CHAPTER 27 Inferences for Regression

An Example: Body Fat and Waist Size Our chapter example revolves around the relationship between % body fat and waist size (in inches). Here is a scatterplot of our data set:

Remembering Regression In regression, we want to model the relationship between two quantitative variables. Now we’d like to know what the regression model can tell us beyond the individuals in the study. We want to make confidence intervals and test hypotheses about the slope and intercept of the regression line.

The Population and the Sample When we found a confidence interval for a mean, we could imagine a single, true underlying value for the mean. When we tested whether two means or two proportions were equal, we imagined a true underlying difference. What does it mean to do inference for regression?

The Population and the Sample (cont.) Even if we know every population value, the data would not line up perfectly on a straight line. In our sample, there’s a whole distribution of %body fat for men with 38-inch waists:

The Population and the Sample (cont.) This is true at each waist size. We could depict the distribution of %body fat at different waist sizes like this:

The Population and the Sample (cont.) The model assumes that the means of the distributions of %body fat for each waist size fall along the line even though the individuals are scattered around it. If we had all the values in the population, we could find the slope and intercept of the idealized regression line explicitly by using least squares.

Assumptions and Conditions When we want to make inferences about the coefficients of the line, we’ll have more assumptions (and thus check more conditions). We need to be careful about the order in which we check conditions. If an initial assumption is not true, it makes no sense to check the later ones.

Assumptions and Conditions (cont.) Linearity Assumption: Straight Enough Condition: Check the scatterplot—the shape must be linear or we can’t use regression at all.

Assumptions and Conditions (cont.) Linearity Assumption: If the scatterplot is straight enough, we can go on to some assumptions about the errors. If not, stop here, or consider re-expressing the data to make the scatterplot more nearly linear.

Assumptions and Conditions (cont.) Independence Assumption: Randomization Condition: the individuals are a representative sample from the population. Check the residual plot (part 1)—the residuals should appear to be randomly scattered.

Assumptions and Conditions (cont.) Equal Variance Assumption: Does The Plot Thicken? Condition: Check the residual plot (part 2)—the spread of the residuals should be uniform.

Assumptions and Conditions (cont.) Normal Population Assumption: Nearly Normal Condition: Check a histogram of the residuals. The distribution of the residuals should be unimodal and symmetric.

Which Come First: the Conditions or the Residuals? The best way to check many of the conditions is with the residuals, but we get the residuals only after we compute the regression model. To compute the regression model, however, we should check the conditions. So we work in this order: Make a scatterplot of the data to check the Straight Enough Condition. (If the relationship isn’t straight, try re-expressing the data. Or stop.)

Which Come First: the Conditions or the Residuals? (cont.) If the data are straight enough, fit a regression model and find the residuals, e, and predicted values, . Make a scatterplot of the residuals against x or the predicted values. This plot should have no pattern. Check in particular for any bend, any thickening, or any outliers. If the data are measured over time, plot the residuals against time to check for evidence of patterns that might suggest they are not independent.

Which Come First: the Conditions or the Residuals? (cont.) If the scatterplots look OK, then make a histogram and Normal probability plot of the residuals to check the Nearly Normal Condition. If all the conditions seem to be satisfied, go ahead with inference.

Intuition About Regression Inference We expect any sample to produce a b1 whose expected value is the true slope, 1. What about its standard deviation? What aspects of the data affect how much the slope and intercept vary from sample to sample?

Intuition About Regression Inference (cont.) Spread around the line: Less scatter around the line means the slope will be more consistent from sample to sample. The spread around the line is measured with the residual standard deviation se. You can always find se in the regression output, often just labeled s.

Intuition About Regression Inference (cont.) Spread of the x’s: A large standard deviation of x provides a more stable regression.

Intuition About Regression Inference (cont.) Sample size: Having a larger sample size, n, gives more consistent estimates.

Standard Error for the Slope Three aspects of the scatterplot affect the standard error of the regression slope: spread around the line, se spread of x values, sx sample size, n. The formula for the standard error (which you will probably never have to calculate by hand) is:

Sampling Distribution for Regression Slopes When the conditions are met, the standardized estimated regression slope follows a Student’s t-model with n – 2 degrees of freedom.

Sampling Distribution for Regression Slopes (cont.) We estimate the standard error with where: n is the number of data values sx is the ordinary standard deviation of the x-values.

Regression Inference A null hypothesis of a zero slope questions the entire claim of a linear relationship between the two variables—often just what we want to know. To test H0: 1 = 0, we find and continue as we would with any other t-test. The formula for a confidence interval for 1 is

EXAMPLE We are looking at price versus horsepower for a random sample of 15 car models. Is there enough evidence to conclude that there is a strong relationship between price and horsepower? Calculate a significance test to decide.

Price is in thousands of dollars Power Price 110 13.4 170 16.3 165 16.6 93 11.3 142 19.0 214 19.3 168 26.7 81 9.1 115 14.0 124 10.0 225 35.2 255 32.5 155 13.5 200 18.5 70 8.6

1. State the hypotheses 2. Model

Normal Probability Plot 1. State the hypotheses 2. Model Regression test Straight Enough – linear plot Independent – Random data Independent – scattered residuals Equal variance – semi-uniform spread Nearly Normal – fairly linear plot Original Data Residual Plot Normal Probability Plot

3. Mechanics

3. Mechanics

4. Conclusion Since our p-value of 0 is less than 0.05, we reject the null hypothesis that states the slope of the regression line is zero.