07.ECTRIE MLRM Inference
📚 07.ECTRIE_MLRM_Inference (1).pdf
Brief overview
This document details the process of statistical inference in multiple linear regression models. Understanding these concepts is crucial for validating model assumptions and drawing reliable conclusions from data analysis.
Key points
- Overview of hypothesis tests and confidence intervals for single regression coefficients.
- How to test single restrictions involving multiple coefficients simultaneously.
- Methods for detecting and addressing heteroskedasticity in regression models.
- Key considerations in model specification, including omitted variable bias and control variables.
- Practical interpretation of R-squared and regression analysis results.
1. Hypothesis tests and confidence intervals for single coefficients
1.1 Hypothesis tests and confidence intervals for a single coefficient
Hypothesis tests and confidence intervals for a single coefficient in a multiple regression model use the same logic as in a simple regression model. Both rely on the large-sample normal approximation of the Ordinary Least Squares (OLS) estimator's distribution.
This approximation states that for an OLS estimator β^j, the standardized difference between the estimator and its expected value approaches a standard normal distribution as the sample size grows large.

- Standard normal approximation: SE(β^j)β^j−E(β^j)∼N(0,1) for j=1,…,k 3.
- OLS estimator: β^j is the estimated coefficient for variable j.
- Standard error: SE(β^j) measures the variability of the estimator.
1.2 Conducting hypothesis tests for a single coefficient
To test a hypothesis about a single coefficient, βj, you compare the estimated coefficient to a hypothesized value, βj,0. The process involves calculating a test statistic and determining its significance.
- Null hypothesis: H0:βj=βj,0
- Alternative hypothesis: H1:βj=βj,0
- Steps:
- Compute the standard error of β^j, denoted SE(β^j).
- Calculate the t-statistic: t=SE(β^j)β^j−βj,0.
- Determine the p-value: p-value=2Φ(−∣tact∣), where tact is the computed t-statistic value and Φ is the standard normal cumulative distribution function.
- Decision rule: Reject H0 at the 5% significance level if the p-value is less than 0.05 or if ∣tact∣>1.96.
- Regression software typically reports the standard error, t-statistic, and p-value for testing H0:βj=0 4.

1.3 Constructing confidence intervals for a single coefficient
A confidence interval provides a range of plausible values for the true population coefficient. For large sample sizes, a confidence interval is constructed using the OLS estimator and its standard error.
- 95% confidence interval: [β^j−1.96SE(β^j),β^j+1.96SE(β^j)].
- This interval contains the true value of βj in 95% of repeated samples.
- It represents the set of βj values that would not be rejected by a 5% two-sided hypothesis test.
- A 90% confidence interval uses a critical value of 1.64 instead of 1.96 5.
1.4 Application to test scores and student-teacher ratio
Consider a regression where test scores are predicted by student-teacher ratio (STR), expenditures per pupil (Expn), and percentage of English learners (PctEL).
📝 Example: Testing if a change in the student-teacher ratio affects test scores, controlling for English learners. We want to test H0:βSTR=0 against H1:βSTR=0 using regression output.
- Key questions:
- Can we reject H0:βSTR=0?
- What is a 95% confidence interval for βSTR?
- What is a 95% confidence interval for reducing STR by 2 (i.e., for 2×βSTR) 6?
1.5 Tests of joint hypotheses
Joint hypotheses involve restrictions on two or more coefficients simultaneously. Testing these jointly is crucial because individual tests might not accurately reflect the overall significance of a group of variables.
- Example joint hypothesis: Testing if "school resources don't matter" by examining if both the student-teacher ratio and expenditures per pupil have no effect on test scores.
- H0:β1=0 and β2=0
- H1:β1=0 or β2=0.
- A joint hypothesis places multiple restrictions on regression coefficients.
- General form: H0:βj=βj,0,βm=βm,0,… for q restrictions 10.
1.5.1 Why not test individual coefficients one at a time?
Testing individual coefficients separately is problematic for joint hypotheses because it inflates the Type I error rate (rejecting a true null hypothesis).
- "Common sense" test problem: Rejecting H0:β1=0,β2=0 if ∣t1∣>1.96 OR ∣t2∣>1.96.
- If t1 and t2 were independent, the probability of rejecting a true null would be 1−0.952=9.75%, not the desired 5%.
- This probability depends on the correlation between the t-statistics, which is linked to the multicollinearity of the regressors 12.
1.5.2 The F-statistic for joint hypotheses
The F-statistic is designed to test joint hypotheses by considering all restrictions simultaneously.
- It combines individual t-statistics, accounting for their correlation.
- For two restrictions (β1=0,β2=0), the F-statistic formula is: F=21(1−ρ^t1,t22t12+t22−2ρ^t1,t2t1t2). where ρ^t1,t2 is an estimate of the correlation between the t-statistics.
- In large samples, the F-statistic is distributed as Fq,∞ under the null hypothesis, where q is the number of restrictions 14.

- If t1 and t2 are independent, the formula simplifies to F=21(t12+t22).
- This simplifies further under the null to the average of two squared standard normal variables, which relates to a χq2 distribution 15.

1.5.3 Computing p-values and critical values using the F-statistic
The p-value for an F-test is the probability of observing an F-statistic as extreme as, or more extreme than, the computed value, assuming the null hypothesis is true.
- P-value calculation: p-value=P[Fq,∞>Factual] 16.
- The null hypothesis is rejected when the F-statistic is large.

| Number of restrictions (q) | 5% critical value |
|---|---|
| 1 | 3.84 |
| 2 | 3.00 |
| 3 | 2.60 |
| 4 | 2.37 |
| 5 | 2.21 |
1.5.4 The overall regression F-statistic
The "overall" regression F-statistic tests the joint hypothesis that all slope coefficients are zero.
- Hypothesis: H0:β1=0,β2=0,…,βk=0.
- When q=1, the F-statistic is the square of the t-statistic (F=t2) 18.
1.5.5 Homoscedasticity-only F-test
This version of the F-test assumes homoskedastic errors. It compares the fit of a restricted model (under H0) to an unrestricted model (under H1).
- Restricted model: Includes fewer variables, enforcing the null hypothesis.
- Unrestricted model: Includes all variables from the alternative hypothesis.
- The F-statistic increases as the unrestricted model fits significantly better than the restricted model.
- The F-statistic formula using Sum of Squared Residuals (SSR): F=SSRunrestricted/(n−kunrestricted−1)(SSRrestricted−SSRunrestricted)/q.
- An equivalent formula using R-squared (R2): F=(1−Runrestricted2)/(n−kunrestricted−1)(Runrestricted2−Rrestricted2)/q.
- n is the number of observations, kunrestricted is the number of regressors in the unrestricted model, and q is the number of restrictions.

- In large samples with homoskedasticity, this F-statistic follows an Fq,∞ distribution under H0.
- In small samples with homoskedasticity and normally distributed errors, it follows an Fq,n−kunrestricted−1 distribution 22.
📝 Example: Testing H0:βSTR=0,βExpn=0 using the test score data. The unrestricted R-squared is 0.4366, and the restricted R-squared is 0.4149. With q=2 restrictions and n=420, the F-statistic is 8.01. This value exceeds the 1% critical value of 4.61, leading to rejection of the null hypothesis. The heteroscedasticity-robust F-statistic was 5.43 23.
🔑 Important: The F-statistic is essential for testing joint hypotheses on multiple coefficients, providing a single measure to assess their collective significance. Understanding its calculation via SSR or R-squared differences is key.
2. Testing single restrictions involving multiple coefficients
2.1 Methods for testing restrictions on multiple coefficients
When testing a restriction that involves multiple coefficients, two main approaches exist. The first is to test the restriction directly using statistical software.
The second approach is to transform the regression model. This transformation allows the original restriction on multiple coefficients to become a restriction on a single coefficient in an equivalent regression.
Both methods yield the same conclusions.
- Direct testing: This involves specifying the null and alternative hypotheses directly in terms of the coefficients of the original model.
- Model transformation: This approach involves creating new variables and estimating a transformed regression. The restriction is then tested on a single coefficient in this new model.
For instance, consider a model Yi=β0+β1X1i+β2X2i+ui. We might want to test H0:β1=β2 against H1:β1=β2.
This can be done directly or by rewriting the model. Subtracting and adding β2X1i to the right side yields Yi=β0+(β1−β2)X1i+β2(X1i+X2i)+ui.
If we let γ1=β1−β2 and Wi=X1i+X2i, the model becomes Yi=β0+γ1X1i+β2Wi+ui. The original hypothesis H0:β1=β2 is equivalent to testing H0:γ1=0 in the transformed model 25 27.

🔑 Important: The F-statistic from the direct test equals the square of the t-statistic from the transformed model test 28.
2.2 Detecting heteroskedasticity
Heteroskedasticity occurs when the variance of the error terms is not constant across observations. This violates a key assumption of Ordinary Least Squares (OLS) regression.
Two main methods can detect heteroskedasticity: informal graphical methods and formal statistical tests 30.
2.2.1 Informal methods: Residual plots
A simple way to check for heteroskedasticity is by plotting the residuals. If the errors are homoskedastic, residuals should show no systematic pattern when plotted against fitted values or independent variables 31.
- No pattern: A random scatter of points suggests homoskedasticity.
- Systematic pattern: A fan shape or other discernible pattern in the residuals indicates heteroskedasticity. This means the error variance increases or decreases systematically.

2.2.2 Formal tests for heteroskedasticity
Formal tests provide a more objective way to detect heteroskedasticity. The Breusch-Pagan test and the White test are common methods 33.
2.2.2.1 The Breusch-Pagan test
The Breusch-Pagan test checks if the error variance is related to the independent variables in the model 34.
- Estimate the original model: Run the OLS regression and obtain the squared residuals, u^i2.
- Run an auxiliary regression: Regress the squared residuals on the independent variables: u^i2=δ0+δ1X1i+...+δkXki+errori.
- Test the null hypothesis: The null hypothesis of homoskedasticity is H0:δ1=δ2=...=δk=0. This tests if the independent variables explain any variation in the squared residuals.
- Calculate test statistics: Use either an F-statistic or an LM (Lagrangian Multiplier) statistic based on the R-squared from the auxiliary regression. The LM statistic is calculated as n×Ru^22 and follows a chi-squared distribution with k degrees of freedom 35.


- F-statistic: F=(1−Ru^22)/(n−k)Ru^22/(k−1), which follows an F(k−1,n−k) distribution.
- LM statistic: LM=n×Ru^22, which follows a χ2(k−1) distribution.
If the p-value is below the chosen significance level, we reject homoskedasticity. The Breusch-Pagan test can be modified to test only specific variables suspected of causing heteroskedasticity 36.
2.2.2.2 The White test
The White test is more general than Breusch-Pagan. It tests if the squared error term is uncorrelated with the original independent variables, their squares, and their cross-products 37.
- Model for the White test: u^i2=δ0+∑j=1kδjXji+∑j=1kδj+kXji2+∑1≤j<l≤kδj+2kXjiXli+errori.
- Null hypothesis: H0:δ1=δ2=...=δm=0, where m is the total number of δ coefficients excluding the intercept. This tests m restrictions.

The White test uses an LM statistic, similar to Breusch-Pagan, but it can involve many more restrictions, especially with numerous independent variables. A drawback is that it can consume many degrees of freedom.
A special case of the White test uses fitted values (Y^i) and their squares in the auxiliary regression: u^i2=δ0+δ1Y^i+δ2Y^i2+errori. The null hypothesis is H0:δ1=δ2=0 38 39.
🔑 Important: It's generally better to test for functional form misspecification before testing for heteroskedasticity. Functional form issues are often more critical.
| Test Type | Auxiliary Regression Variables | Null Hypothesis | Test Statistic (LM) |
|---|---|---|---|
| Breusch-Pagan | Original independent variables (Xj) | δ1=...=δk=0 | n×Ru^22∼χ2(k) |
| White | Original Xj, squares Xj2, cross-products XjXl | All δ coefficients = 0 | n×Ru^22∼χ2(m) |
| White (Special Case) | Fitted values (Y^i) and squared fitted values (Y^i2) | δ1=δ2=0 | n \times R^2_{\hat{u}^2} \sim \chi^2[2](#page=2) |
🔑 Important: Functional form misspecification is generally a more important issue than heteroskedasticity.
🔑 Important: Always check for heteroskedasticity after ensuring the model's functional form is appropriate 40.
3. Model specification and data analysis
3.1 Understanding omitted variable bias
Omitted variable bias (OVB) occurs when a regressor in your model is correlated with a variable that is left out of the model. This omitted variable must also affect the dependent variable.
OVB leads to biased and inconsistent OLS estimators. Relying solely on R-squared is insufficient for model selection 45.
🔑 Important: Bigger data does not automatically solve endogeneity or omitted variable bias. Correlation does not always imply causation, especially with large datasets 46.
OVB requires two conditions:
- Included regressors correlate with the omitted variable.
- The omitted variable influences the dependent variable 47.
3.2 The role of control variables
Control variables are included in a regression to hold constant factors that could cause omitted variable bias in the variable of interest. They are not the primary focus of the study.
If these factors can be observed, they should be included 48.
A control variable helps achieve conditional mean independence. This means that once you account for the control variable(s), the variable of interest is uncorrelated with the error term.
The coefficient on the control variable itself may still be biased and lacks a causal interpretation 52.
In a regression of test scores on student-teacher ratio (STR) and percentage of English learners (PctEL), including the percentage of students receiving a free lunch (LchPct) acts as a control. LchPct serves as a proxy for economic background, which is related to outside learning opportunities.
The regression equation with control variables is: TestScorei=β0+β1STRi+β2PctELi+β3LchPcti+ui 49.
📝 Example: If a district has 0% English learners and 0% free lunch students, and another has 50% free lunch students, the difference in test scores solely due to this 50% difference in free lunch proportion, based on the coefficient β3, is 0.547×50=27.4 points. However, this coefficient does not have a causal interpretation 51.
Interpretation of control variables: When control variables are included, the coefficient on the variable of interest (e.g., STR) can be interpreted causally. This is because the control variables help ensure that the variable of interest is uncorrelated with the error term, even if the control variables themselves are correlated with the error term.
| Term | Interpretation |
|---|---|
| Conventional | Coefficient on X1 is the effect on Y, controlling for X2. |
| Actual | Coefficient on X1 is the effect on Y of X1, using X2 to hold constant X2's direct effect and control for omitted factors. |
3.3 Model specification and R-squared
A base specification uses core regressors chosen from economic theory, knowledge of data collection, and potential omitted variable bias. Alternative specifications are used for robustness checks 54.
What R-squared tells you:
- How well regressors predict the dependent variable in your sample.
- Indicates the variance of OLS residuals relative to the dependent variable's variance.
What R-squared does NOT tell you:
- If an included variable is statistically significant.
- If regressors are true causes of dependent variable movements.
- If omitted variable bias exists.
- If the set of regressors is the most appropriate 55.
3.4 Analyzing test score data
The analysis of test score data aims to:
- Mitigate omitted variable bias using multiple regression.
- Compare base and alternative model specifications.
- Determine appropriate scales for regressors for easy interpretation 57.
The scatterplots illustrate the relationships between test scores and student characteristics: percentage of English language learners, percentage qualifying for reduced price lunch, and percentage qualifying for income assistance. All show a negative relationship with test scores 58.

The regression output tables summarize the results. Column represents the base specification, while columns and show alternative specifications 3 4 5 59.


Interpreting the results:
- Reducing the student-teacher ratio (STR) by one student per teacher increases average test scores by approximately 1 point, holding student characteristics constant.
- Districts with more English learners and more poor children tend to have lower test scores.
- Some control variables may not be statistically significant on their own.
🔑 Important: The student-teacher ratio's coefficient shows a causal interpretation after controlling for student characteristics. Conversely, the coefficients on control variables like free lunch percentage do not have a causal interpretation, as they may still suffer from omitted variable bias 60.
© 2026 Maeve. All rights reserved. This content is protected by copyright.