Presentation is loading. Please wait.

Presentation is loading. Please wait.

Regression with Inference Notes: Page 231. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for.

Similar presentations


Presentation on theme: "Regression with Inference Notes: Page 231. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for."— Presentation transcript:

1 Regression with Inference Notes: Page 231

2 Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for each. Using the slope from each of these LSRLs – we can create a sampling distribution for the slope of the true LSRL. bbbb b b b What shape will this distribution have? What is the mean of the sampling distribution equal?  b =  What is the standard deviation of the sampling distribution ?

3 Regression Model

4 Height Weight How much would an adult female weigh if she were 5 feet tall? She could weigh varying amounts – in other words, there is a distribution of weights for adult females who are 5 feet tall. This distribution is normally distributed. (we hope) What would you expect for other heights? Where would you expect the TRUE LSRL to be? What about the standard deviations of all these normal distributions? We want the standard deviations of all these normal distributions to be the same.

5 Regression Model The mean response  y has a straight-line relationship with x: –Where: slope  and intercept  are unknown parameters For any fixed value of x, the response y varies according to a normal distribution. Repeated responses of y are independent of each other. The standard deviation of y (  y ) is the same for all values of x. (  y is also an unknown parameter)

6 Person #HtWt 164130 1064175 1564150 1964125 2164145 4064186 4764121 6064137 6364143 6864120 7064112 7864108 8364160 Suppose we look at part of a population of adult women. These women are all 64 inches tall. What distribution does their weight have?

7 The slope b of the LSRL is an unbiased estimator of the true slope . The intercept a of the LSRL is an unbiased estimator of the true intercept . The standard error s is an unbiased estimator of the true standard deviation of y (  y ). Note: df = n-2 We use to estimate

8 Let ’ s review the regression model! For a given x-value, the responses (y) are normally distributed x & y have a linear relationship with the true LSRL going through the  y  y is the same for each x-value.

9 Height Weight Suppose the LSRL has a horizontal line –would height be useful in predicting weight? What is the slope of a horizontal line? A slope of zero – means that there is NO relationship between x & y!

10 Assumptions for inference on slope The observations are independent –Check that you have an SRS The true relationship is linear –Check the scatter plot & residual plot The standard deviation of the response is constant. –Check the scatter plot & residual plot The responses vary normally about the true regression line. –Check a histogram or boxplot of residuals

11 Hypotheses H 0 :  = 0 H a :  > 0 H a :  < 0 H a :  ≠ 0 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? 1 Be sure to define  in context!

12 Formulas: Confidence Interval: Hypothesis test: df = n -2 Because there are two unknowns  & 

13 Example: It is difficult to accurately determine a person’s body fat percentage without immersing him or her in water. Researchers hoping to find ways to make a good estimate immersed 20 male subjects, and then measured their weights. a)Find the LSRL, correlation coefficient, and coefficient of determination. Body fat = -27.376 + 0.250 weight r = 0.697 r 2 = 0.485

14 b) Explain the meaning of slope in the context of the problem. There is approximately.25% increase in body fat for every pound increase in weight. c) Explain the meaning of the coefficient of determination in context. Approximately 48.5% of the variation in body fat can be explained by the regression of body fat on weight.

15 f) Is there sufficient evidence that weight can be used to predict body fat? Assumptions: Have an SRS of male subjects Since the residual plot is randomly scattered, weight & body fat are linear Since the points are evenly spaced across the LSRL on the scatterplot,  y is approximately equal for all values of weight Since the boxplot of residual is approximately symmetrical, the responses are approximately normally distributed. H 0 :  = 0Where  is the true slope of the LSRL of weight H a :  ≠ 0& body fat Since the p-value < , I reject H 0. There is sufficient evidence to suggest that weight can be used to predict body fat.

16 g) Give a 95% confidence interval for the true slope of the LSRL. Assumptions: Have an SRS of male subjects Since the residual plot is randomly scattered, weight & body fat are linear Since the points are evenly spaced across the LSRL on the scatterplot,  y is approximately equal for all values of weight 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!

17 h) Here is the computer-generated result from the data: Sample size: 20 R-square = 43.83% s = 7.0491323 ParameterEstimateStd. Err. Intercept-27.37626311.547428 Weight0.249874140.060653996 df? Correlation coeficient? Be sure to write as decimal first! What does “s” represent (in context)? What do these numbers represent? What does this number represent?

18 Homework: Page: 233 and 234


Download ppt "Regression with Inference Notes: Page 231. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for."

Similar presentations


Ads by Google