march 5
Chapter 7: OLS with Multiple Regressors (Hypothesis Tests)
Lecture Outline
Hypothesis test for single coefficient in multiple regression analysis
Confidence interval for single coefficient in multiple regression
Testing hypotheses on 2 or more coefficients
The F-statistic
The overall regression F-statistic
Testing single restrictions involving multiple coefficients
Measures of fit in multiple regression model
SER, and adjusted
Relation between (homoskedasticity-only) F-statistic and the
Interpreting measures of fit
Interpreting “stars” in a table with regression output
Hypothesis Test for Single Coefficient in Multiple Regression Analysis
Example conducted on February 2, 2017, at 14:18:25.
Example command in R:
regress test_score class_size el_pct, robustOutput Summary:
Number of Observations: 420
F-statistic:
Probability > F: 0.0000
R-squared Value: 0.4264
Root Mean Square Error (RMSE): 14.464
Regression Coefficients:
Class Size: , , , , [95% Conf. Interval: ]
Percentage of English Learners: , , , , [95% Conf. Interval: ]
Constant: , , , , [95% Conf. Interval: ]
Significant Test Question:
Does changing class size, while holding the percentage of English learners constant, have a statistically significant effect on test scores?
Significance Level: 0.05
Hypothesis Tests Steps for Single Coefficient
Under the four Least Squares assumptions of the multiple regression model:
for are independent and identically distributed (i.i.d.)
Large outliers are unlikely.
No perfect multicollinearity.
The Ordinary Least Squares (OLS) estimators for are approximately normally distributed in large samples.
In addition, .
Steps to Perform Hypothesis Tests:
Null Hypothesis (): ; Alternative Hypothesis ():
Estimate the model:
using OLS to obtain
Compute the standard error of (requires matrix algebra).
Compute the t-statistic:
Reject the null hypothesis if:
critical value
or if -value < significance level.
Example on Class Size Hypothesis Testing
: ClassSize = 0; : ClassSize \neq 0
Step 1:
Step 2:
Step 3: Compute t-statistic:
Step 4: Reject the null hypothesis at 5% significance level if:
and .
Question: Do we reject at a 1% significance level?
Confidence Intervals for Single Coefficient in Multiple Regression
Robust regression output provides:
95% confidence interval for ClassSize is also given in the output: [()]
To calculate a 99% confidence interval for ClassSize:
Formula:
Resulting Interval:
Hypothesis Tests on 2 or More Coefficients
Adding Variables Measuring Low-Income Family Background:
New variables:
meal_pct_i: measures % of students eligible for free lunchcalw_pct_i: measures % of students eligible for CALWORKS social assistance
Example regression command:
regress test_score class_size el_pct meal_pct calw_pct, robustOutput Summary:
F-statistic:
Probability > F: 0.0000
R-squared: 0.7749
Root MSE: 9.0843
Regression Coefficients:
Class Size: , , ,
Percentage of English Learners: , , ,
Free Lunch: , , ,
CALWORKS: , , ,
Testing Hypotheses on Multiple Coefficients:
Hypothesis for Meal Percent:
: mealpct = 0; : mealpct \neq 0
Step 1:
Step 2:
Step 3: (reject null)
Hypothesis for CALWORKS:
: calwpct = 0; : calwpct \neq 0
Step 1:
Step 2:
Step 3: (do not reject null)
Testing One Hypothesis on Two or More Coefficients
If testing hypothesis that both the coefficient on the % eligible for free lunch and the % eligible for CALWORKS equals zero:
: mealpct = 0 and calw_pct = 0
: mealpct \neq 0 and/or calw_pct \neq 0
Approach: Reject if either or exceeds 1.96 (5% significance level)
Statistical Probability Relation:
If and are uncorrelated:
Testing with correlated statistics is more complicated.
F-statistic for Joint Hypothesis Testing
Joint hypotheses involving multiple coefficients require using the F-statistic:
The form of the F-statistic (with restrictions):
The F-statistic considers correlation between individual t-statistics.
F-statistic is computed using software.
Example of F-test
Result summary using command for regression:
test meal_pct calw_pct
Output gives:
Probability > F: 0.0000 (reject )
Testing Joint Hypothesis with Restrictions
Test Scenario: : elpct = 0 & mealpct = 0 & calwpct = 0
Compute the F-statistic:
-statistic output was previously .
Reject at 5% significance level:
Compare computed value against critical value from distribution ().
The Overall Regression F-statistic
The overall regression F-statistic tests if all slope coefficients are zero:
: (total of restrictions)
: at least one slope coefficient is non-zero.
F-statistic computation results in:
Overall -statistic = 361.68 for the regression.
Testing Single Restrictions Involving Multiple Coefficients
Identify coefficients of interest, for instance, comparing mealpct with calwpct:
: mealpct = calwpct vs : mealpct \neq calwpct.
Transform the regression model for null hypothesis simplicity.
Conduct the test directly in statistical software.
Example of Testing Single Restrictions Directly
Command to test in R:
test meal_pct = calw_pct
Output shows F-statistic:
F=27.32, significant with p-value 0.0000.
The and Adjusted
indicates the variance explained by predictors:
Formula:
$1 - \frac{SSR}{TSS}
Importance of :
Increases with additional regressors even when explaining little.
Adjusted compensates for the number of predictors:
Formula:
Example output shows both and adjusted values improving model interpretations.
Interpreting Measures of Fit
indicates model prediction effectiveness.
Values near 1 suggest good prediction; near 0 indicates poor.
High alone is insufficient for drawing meaningful conclusions regarding variable significance, estimation validity, or complete model appropriateness.
Important Cautions
High does not imply:
Individual variable significance without further tests.
Causality implications of estimations without validity of OLS assumptions.
Exclusion of vital regressors leading to omitted variable bias.
Interpreting Statistical Significance in Outputs (Stars)
Regression output typically includes significance indicators:
Significance Levels: * (10%), ** (5%), *** (1%).
Example interpretation based on test scores and coefficients in regression output.
Conclusion
The chapter comprehensively covers hypothesis testing for multiple regressors in OLS regression, emphasizing statistical significance evaluation and various measures of fit to support data-driven conclusions.