Making Inferences about Slopes

Slides:



Advertisements
Similar presentations
Inference for Linear Regression (C27 BVD). * If we believe two variables may have a linear relationship, we may find a linear regression line to model.
Advertisements

Copyright © 2010 Pearson Education, Inc. Slide
Inference for Regression
Objectives (BPS chapter 24)
The Simple Regression Model
Business Statistics - QBM117 Interval estimation for the slope and y-intercept Hypothesis tests for regression.
Chapter 12 Section 1 Inference for Linear Regression.
Formulas: Hypothesis test: We would like to know if there is . The data on six-year graduation rate (%), student-related expenditure per full-time.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Inferences for Regression
+ Chapter 12: Inference for Regression Inference for Linear Regression.
Regression with Inference Notes: Page 231. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for.
Inference for Regression Chapter 14. Linear Regression We can use least squares regression to estimate the linear relationship between two quantitative.
+ Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
Lecture 10 Chapter 23. Inference for regression. Objectives (PSLS Chapter 23) Inference for regression (NHST Regression Inference Award)[B level award]
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.1 Inference for.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.1 Inference for.
Regression Inference. Height Weight How much would an adult male weigh if he were 5 feet tall? He could weigh varying amounts (in other words, there is.
Chapter 15 Inference for Regression. How is this similar to what we have done in the past few chapters?  We have been using statistics to estimate parameters.
CHAPTER 12 More About Regression
Inference about the slope parameter and correlation
23. Inference for regression
Inference for Regression
Regression and Correlation
Section 11.2 Day 3.
Chapter 14 Inference on the Least-Squares Regression Model and Multiple Regression.
CHAPTER 12 More About Regression
Inference for Regression (Chapter 14) A.P. Stats Review Topic #3
Regression.
Chapter 24 Comparing Means.
Significance Test for the Difference of Two Proportions
Section 11.2 Day 4.
Section 9.5 Day 3.
AP Statistics Chapter 14 Section 1.
Correlation and Simple Linear Regression
Regression Inferential Methods
Inferences for Regression
Inference for Regression
CHAPTER 12 More About Regression
Regression.
Chapter 14: Correlation and Regression
Elementary Statistics
...Relax... 9/21/2018 ST3131, Lecture 3 ST5213 Semester II, 2000/2001
Correlation and Simple Linear Regression
The Practice of Statistics in the Life Sciences Fourth Edition
CHAPTER 29: Multiple Regression*
CHAPTER 26: Inference for Regression
Chapter 12 Inference on the Least-squares Regression Line; ANOVA
Chapter 12 Regression.
Regression.
Regression.
Section 11.2 Day 2.
Unit 3 – Linear regression
Correlation and Simple Linear Regression
Section 9.5 Day 2.
Regression.
Chapter 14 Inference for Regression
Inference in Linear Models
Regression.
Basic Practice of Statistics - 3rd Edition Inference for Regression
CHAPTER 12 More About Regression
Regression.
Chapter 7: The Normality Assumption and Inference with OLS
Product moment correlation
Inferential Statistics
CHAPTER 12 More About Regression
Inferences for Regression
Section 8.2 Day 2.
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

Making Inferences about Slopes Section 11.2 Making Inferences about Slopes

Making Inferences about Slopes Inference means . . . .

Making Inferences about Slopes Inference means using results from sample to make conclusion about the population

Linear Models μy = y = b0 + b1x “true” or theoretical regression line LSRL used to make predictions

Even when the true slope, , is 0, the estimate, b1, will usually _____________.

Even when the true slope, , is 0, the estimate, b1, will usually turn out to be different from 0.

Even when the true slope, , is 0, the estimate, b1, will usually turn out to be different from 0. A significance test for the slope of a regression line asks “Is that trend real, or could the numbers come out the way they did by chance?”

Test Statistic for Slope The test statistic for the slope, t, is the difference between the slope, b1, estimated from the sample, and the hypothesized slope, , measured in standard errors.

Test Statistic for Slope If a linear model is correct

Test Statistic for Slope If a linear model is correct and the null hypothesis is true, then

Test Statistic for Slope If a linear model is correct and the null hypothesis is true, then the test statistic has a t-distribution with n - 2 degrees of freedom.

Significance Test for a Slope Generally used when you have bivariate data from sample that appear to have a positive (or negative) linear association and you want to establish this association is “real”.

Significance Test for a Slope “Real” linear association is based on determining the nonzero slope you see did not happen just by chance. Why is this important?

Significance Test for a Slope Why is this important? A true linear relationship with a non-zero slope means knowing a value of x is helpful in predicting the value of y.

Components of Significance Test for a Slope How many components are in the test? What are they?

Components of Significance Test for a Slope How many components are in the test? 4 What are they?

Components of Significance Test for a Slope 4 components are in this test. 1) Name test and check conditions

Components of Significance Test for a Slope 4 components are in this test. 1) Name test and check conditions 2) State the hypotheses

Components of Significance Test for a Slope 4 components are in this test. 1) Name test and check conditions 2) State the hypotheses 3) Compute value of test statistic, find P-value, and draw sketch

Components of Significance Test for a Slope 4 components are in this test. 1) Name test and check conditions 2) State the hypotheses 3) Compute value of test statistic, find P-value, and draw sketch 4) Write conclusion in context linked to computations and in context

Name of test?

Name Test Two-sided significance test for a slope or One-sided significance test for a slope

Conditional distributions of y for fixed values of x

For test to work, the conditional distributions of y for fixed values of x must be approximately normal with means that lie near a line and standard deviations that are constant across all values of x Thus, we must check 4 conditions.

Conditions Randomness

Conditions Randomness Linearity

Conditions Randomness Linearity Uniform residuals

Conditions Randomness Linearity Uniform residuals Normality

First Condition Randomness: Verify you have one of these situations.

First Condition Randomness: Verify you have one of these situations. Single random sample from bivariate population -- situation we’ll see most often

First Condition Randomness: Verify you have one of these situations. i. Single random sample from bivariate population ii. A set of independent random samples, one for each fixed value of the explanatory variable, x

First Condition Randomness: Verify you have one of these situations. i. Single random sample from bivariate population ii. A set of independent random samples, one for each fixed value of the explanatory variable, x iii. Experiment with random assignment of treatments

Second Condition Linearity: Make a scatterplot and check to see if the relationship looks linear.

Second Condition Linearity: Make a scatterplot and check to see if the relationship looks linear. Note: On quiz or test, you must show the scatterplot with labels. Simply saying “based on scatterplot, relationship looks linear” gets no credit.

Third Condition Uniform residuals: Make a residual plot to check departures from linearity and that residuals are of uniform size across all values of x.

Third Condition Uniform residuals: Make a residual plot to check departures from linearity and that residuals are of uniform size across all values of x. Residual plot Scatterplot

Third Condition Uniform residuals: Make a residual plot to check departures from linearity and that residuals are of uniform size across all values of x. Note: On quiz or test, you must show the residual plot you analyzed or no credit.

Fourth Condition Normality: Make a univariate plot (dot plot, stemplot, boxplot or histogram) of the residuals to see if it’s reasonable to assume that the residuals came from a normal distribution.

Fourth Condition Normality: Make a univariate plot (dot plot, stemplot, boxplot or histogram) of the residuals to see if it’s reasonable to assume that the residuals came from a normal distribution.

Fourth Condition Normality: Make a univariate plot (dot plot, stemplot, boxplot or histogram) of the residuals to see if it’s reasonable to assume that the residuals came from a normal distribution. Note: On quiz or test, you must show the plot you analyzed with rationale - - no superficial statement

Step 2. State Hypotheses Null hypothesis will usually be: H0: = 0, where is slope of the true regression line. Note: It is possible the hypothesized value, , may be some constant other than 0.

Step 2. State Hypotheses Alternative hypothesis will usually be one of these three: Ha: 0, Ha: < 0, Ha: > 0

3. Compute Test Statistic, Find P-value, Draw Sketch

3. Compute Test Statistic, Find P-value, Draw Sketch

3. Compute Test Statistic, Find P-value, Draw Sketch

3. Compute Test Statistic, Find P-value, Draw Sketch

Slope of line = ?

Slope of line = 0

So, r = 0

: Greek letter “rho” r: English equivalent

: Greek letter “rho” r: English equivalent : b1 as : r

3. Compute Test Statistic, Find P-value, Draw Sketch

3. Compute Test Statistic, Find P-value, Draw Sketch

3. Compute Test Statistic, Find P-value, Draw Sketch Note that the calculator’s output does not include the standard error of the slope, .

3. Compute Test Statistic, Find P-value, Draw Sketch Note that the calculator’s output does not include the standard error of the slope, . However, because the null hypothesis is , the formula for the test statistic is

3. Compute Test Statistic, Find P-value, Draw Sketch Note that the calculator’s output does not include the standard error of the slope, . However, because the null hypothesis is , the formula for the test statistic is Therefore,

4. Write Conclusion The smaller the P-value, the stronger the evidence against the null hypothesis. Reject Ho if the P-value is less than the significance level of . Or compare the value of t to the critical value, t*. Reject Ho if ItI t*, for a two-sided test.

Page 766, P11

Page 766, P11 The scatterplot in Display 11.24 shows very weak correlation, so the slope will be close to 0. The t-value will be _______ (in absolute value) and the P-value will be ________.

Page 766, P11 The scatterplot in Display 11.24 shows very weak correlation, so the slope will be close to 0. The t-value will be small (in absolute value) and the P-value will be ________.

Page 766, P11 The scatterplot in Display 11.24 shows very weak correlation, so the slope will be close to 0. The t-value will be small (in absolute value) and the P-value will be large.

Page 766, P12 Mars rock data are on page 737 and soil data are on page 754.

Page 766, P12 Mars rock data are on page 737 and soil data are on page 754.

Page 766, P12

Page 766, P12 With 11 - 2 = 9 degrees of freedom, the P-value from the calculator is 0.00029.

Page 766, P12 With 11 - 2 = 9 degrees of freedom, the P-value from the calculator is 0.00029. 2[tcdf(5.6982, 1EE99, 9)]

Page 766, P12 With 11- 2 = 9 degrees of freedom, the P-value from the calculator is 0.00029. With a P-value this small, you reject the null hypothesis that the slope of the true linear relationship between percentage of sulfur and redness is zero.

Page 766, P13

Page 766, P13

Page 766, P13 temperature = 25.232 + 3.291 chirps/sec Linear model

Page 766, P13 a) temperature = 25.232 + 3.291 chirps/sec If the number of chirps per second increases by 1, we can expect the temperature to increase by about 3.291 oF.

Page 766, P13 b)

Page 766, P13 The residual plot shows no obvious pattern, so a linear model fits the data well. There is little evidence that the residuals tend to change in size as x increases.

Page 766, P13

Page 766, P13 The dot plot of the residuals shows no outliers or obvious skewness or any other indications of non-normality.

Page 766, P13 Have we checked all the conditions we should check?

Page 766, P13 Have we checked all the conditions we should check? No. Randomness: We can not tell if this was a random sample of cricket chirping.

Page 766, P13 c) Perform a two-sided LinRegTTest to determine t and a P-value. Start by stating the hypotheses.

Page 766, P13 c) Ho: = 0, there is no linear relationship between rate of chirping and temperature. Ha: 0

Page 766, P13 c) t = 5.47 P-value = 0.00011

Page 766, P13 c) t = 5.47; P-value = 0.00011

Page 766, P13 Conclusion?

Page 766, P13 I reject the null hypothesis because the P-value of 0.00011 is less than the significance level of α = 0.05.

Page 766, P13 I reject the null hypothesis because the P-value of 0.00011 is less than the significance level of α = 0.05. There is sufficient evidence to support the claim that there is a linear relationship between the rate of chirping and the air temperature. This conclusion depends on having a random sample of cricket chirping.

Questions?