Docsity

Hypothesis Testing for Regression Slope: A Case Study on Income and Home Size - Prof. Nick, Study notes of Humanities

Toggle sidebar
bg1
DSCI 3710 LECTURE NOTES Dr. Nick Evangelopoulos
Hypothesis Testing Problem Case 12 (t test for one regression slope)
Situation: We are trying to predict a response variable Y using X1, X2, etc. as predictors.
The regression model will be Y =
0 +
1*X1 +
2*X2 + ... +
. The values of
0,
1, etc.
are unknown. Using a sample of size n, we fit the regression model Yhat = b0 + b1*X1 +
b2*X2 + ... We want to know whether or not the true value of the slope for X1, i.e.,
1, is
equal to zero.
Example: Refer to the Real Estate example, text, pp. 623, 641. Can we conclude that
there is a positive relationship between income (X) and home size (Y)? Use alpha = 0.05.
Solution:
Step1 H0:
1 <= 0 OR, equivalently: H0: the slope of income is <= 0
HA:
1 > 0 HA: the slope of income is > 0
Step 2 The test statistic is
1
1
b
s
b
t
. This follows a t distribution with n – k – 1
degrees of freedom (same as the error d.f.), where k = number of predictors. Here, df = n
– 2 = 10 – 2 = 8.
Step 3 Since the HA here is of the “greater-than” type, the test is right-tailed.
The Decision Rule is “Reject H0 if the observed t value is more extreme than the critical t
value”.
Step 4 The calculated value is 4.43 (see Excel output below).
ANOVA
df SS MS F
Regression 1
Error 8
Total 9
Coefficient Stand. Error t stat p-value
Intercept
X1 variable 0.3539 0.0797 4.43 0.002
Step 5
Conclusion: Reject the null hypothesis H0 since the calculated t (4.43) is more extreme
than the critical t (1.860). The slope is positive, so there is a positive linear relationship
between income and home size, i.e., if income increases, home size will increase also.
tcr
Calculated
t
a = 0.05
1.860 t critical, from table
b1sb1
t* = 4.43
NOTE: the p-
value provided
by Excel
corresponds to
the two-tailed
test H0:
1 = 0
vs. HA:
1 ≠ 0

Partial preview of the text

Download Hypothesis Testing for Regression Slope: A Case Study on Income and Home Size - Prof. Nick and more Study notes Humanities in PDF only on Docsity!

DSCI 3710 LECTURE NOTES Dr. Nick Evangelopoulos

Hypothesis Testing Problem Case 12 (t test for one regression slope)

Situation: We are trying to predict a response variable Y using X 1 , X 2 , etc. as predictors. The regression model will be Y =  0 +  1 * X 1 +  2 * X 2 + ... + . The values of  0 ,  1 , etc. are unknown. Using a sample of size n , we fit the regression model Y hat = b 0 + b 1 * X 1 + b 2 * X 2 + ... We want to know whether or not the true value of the slope for X 1 , i.e.,  1 , is equal to zero. Example: Refer to the Real Estate example, text, pp. 623, 641. Can we conclude that there is a positive relationship between income ( X ) and home size ( Y )? Use alpha = 0.05. Solution: Step1 H 0 :  1 <= 0 OR, equivalently: H 0 : the slope of income is <= 0 H A:  1 > 0 H A: the slope of income is > 0 Step 2 The test statistic is 1 1 s b b t  (^). This follows a t distribution with n – k – 1 degrees of freedom (same as the error d.f.), where k = number of predictors. Here, df = n

  • 2 = 10 – 2 = 8. Step 3 Since the H A here is of the “greater-than” type, the test is right-tailed. The Decision Rule is “Reject H 0 if the observed t value is more extreme than the critical t value”. Step 4 The calculated value is 4.43 (see Excel output below). ANOVA df SS MS F Regression 1 Error 8 Total 9 Coefficient Stand. Error t stat p-value Intercept X1 variable 0.3539 0.0797 4.43 0. Step 5 Conclusion: Reject the null hypothesis H 0 since the calculated t (4.43) is more extreme than the critical t (1.860). The slope is positive, so there is a positive linear relationship between income and home size, i.e., if income increases, home size will increase also. t cr Calculated t a = 0. 1.860 (^) t critical, from table

b 1 sb 1

t * = 4. NOTE: the p- value provided by Excel corresponds to the two-tailed test H 0 :  1 = 0 vs. H A:  1 ≠ 0