Presentation is loading. Please wait.

Presentation is loading. Please wait.

Regression. 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.

Similar presentations


Presentation on theme: "Regression. 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."— Presentation transcript:

1 Regression

2 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.

3 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)

4 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

5 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 ?

6 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

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

8 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  !

9 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

10 b) Explain the meaning of slope in the context of the problem. There is approxiamtely.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.

11 d) Estimate , , and .  = -27.376  = 0.25  = 7.049 e) Create a scatter plot and residual plot for the data. Weight Residuals Weight Body fat

12 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.

13 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!

14 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?


Download ppt "Regression. 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."

Similar presentations


Ads by Google