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\hat{\beta}_j, the standardized difference between the estimator and its expected value approaches a standard normal distribution as the sample size grows large.

This diagram illustrates the formula for a test statistic used in hypothesis testing for a single coefficient in multiple regression, showing its approximation to a standard normal distribution.

  • Standard normal approximation: β^j−E(β^j)SE(β^j)∼N(0,1)\frac{\hat{\beta}_j - E(\hat{\beta}_j)}{SE(\hat{\beta}_j)} \sim N(0,1) for j=1,…,kj = 1, \dots, k 3.
  • OLS estimator: β^j\hat{\beta}_j is the estimated coefficient for variable jj.
  • Standard error: SE(β^j)SE(\hat{\beta}_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\beta_j, you compare the estimated coefficient to a hypothesized value, βj,0\beta_{j,0}. The process involves calculating a test statistic and determining its significance.

  • Null hypothesis: H0:βj=βj,0H_0: \beta_j = \beta_{j,0}
  • Alternative hypothesis: H1:βj≠βj,0H_1: \beta_j \neq \beta_{j,0}
  • Steps:
  1. Compute the standard error of β^j\hat{\beta}_j, denoted SE(β^j)SE(\hat{\beta}_j).
  2. Calculate the t-statistic: t=β^j−βj,0SE(β^j)t = \frac{\hat{\beta}_j - \beta_{j,0}}{SE(\hat{\beta}_j)}.
  3. Determine the p-value: p-value=2Φ(−∣tact∣)p\text{-value} = 2\Phi(-|\text{tact}|), where tact\text{tact} is the computed t-statistic value and Φ\Phi is the standard normal cumulative distribution function.
  • Decision rule: Reject H0H_0 at the 5% significance level if the p-value is less than 0.05 or if ∣tact∣>1.96|\text{tact}| > 1.96.
  • Regression software typically reports the standard error, t-statistic, and p-value for testing H0:βj=0H_0: \beta_j = 0 4.

This is a regression output table showing the results of a linear regression analysis.

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)][\hat{\beta}_j - 1.96 SE(\hat{\beta}_j), \hat{\beta}_j + 1.96 SE(\hat{\beta}_j)].
  • This interval contains the true value of βj\beta_j in 95% of repeated samples.
  • It represents the set of βj\beta_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=0H_0: \beta_{STR} = 0 against H1:βSTR≠0H_1: \beta_{STR} \neq 0 using regression output.

  • Key questions:
  • Can we reject H0:βSTR=0H_0: \beta_{STR} = 0?
  • What is a 95% confidence interval for βSTR\beta_{STR}?
  • What is a 95% confidence interval for reducing STR by 2 (i.e., for 2×βSTR2 \times \beta_{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=0H_0: \beta_1 = 0 and β2=0\beta_2 = 0
  • H1:β1≠0H_1: \beta_1 \neq 0 or β2≠0\beta_2 \neq 0.
  • A joint hypothesis places multiple restrictions on regression coefficients.
  • General form: H0:βj=βj,0,βm=βm,0,…H_0: \beta_j = \beta_{j,0}, \beta_m = \beta_{m,0}, \dots for qq 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=0H_0: \beta_1 = 0, \beta_2 = 0 if ∣t1∣>1.96|t_1| > 1.96 OR ∣t2∣>1.96|t_2| > 1.96.
  • If t1t_1 and t2t_2 were independent, the probability of rejecting a true null would be 1−0.952=9.75%1 - 0.95^2 = 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\beta_1 = 0, \beta_2 = 0), the F-statistic formula is: F=12(t12+t22−2ρ^t1,t2t1t21−ρ^t1,t22)F = \frac{1}{2} \left( \frac{t_1^2 + t_2^2 - 2\hat{\rho}_{t_1,t_2} t_1 t_2}{1 - \hat{\rho}_{t_1,t_2}^2} \right). where ρ^t1,t2\hat{\rho}_{t_1,t_2} is an estimate of the correlation between the t-statistics.
  • In large samples, the F-statistic is distributed as Fq,∞F_{q,\infty} under the null hypothesis, where qq is the number of restrictions 14.

Formula for the F-statistic combining two t-statistics, accounting for their correlation.

  • If t1t_1 and t2t_2 are independent, the formula simplifies to F=12(t12+t22)F = \frac{1}{2}(t_1^2 + t_2^2).
  • This simplifies further under the null to the average of two squared standard normal variables, which relates to a χq2\chi^2_q distribution 15.

Formula for the F-statistic with q=2 restrictions, showing its relation to t-statistics.

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]p\text{-value} = P[F_{q,\infty} > F_{\text{actual}}] 16.
  • The null hypothesis is rejected when the F-statistic is large.

A diagram illustrating the F-distribution curve with critical values and significance levels indicated.

Number of restrictions (qq)5% critical value
13.84
23.00
32.60
42.37
52.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=0H_0: \beta_1 = 0, \beta_2 = 0, \dots, \beta_k = 0.
  • When q=1q=1, the F-statistic is the square of the t-statistic (F=t2F = t^2) 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 H0H_0) to an unrestricted model (under H1H_1).

  • 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=(SSRrestricted−SSRunrestricted)/qSSRunrestricted/(n−kunrestricted−1)F = \frac{(SSR_{\text{restricted}} - SSR_{\text{unrestricted}})/q}{SSR_{\text{unrestricted}} / (n - k_{\text{unrestricted}} - 1)}.
  • An equivalent formula using R-squared (R2R^2): F=(Runrestricted2−Rrestricted2)/q(1−Runrestricted2)/(n−kunrestricted−1)F = \frac{(R^2_{\text{unrestricted}} - R^2_{\text{restricted}})/q}{(1 - R^2_{\text{unrestricted}}) / (n - k_{\text{unrestricted}} - 1)}.
  • nn is the number of observations, kunrestrictedk_{\text{unrestricted}} is the number of regressors in the unrestricted model, and qq is the number of restrictions.

The F-statistic formula is presented in two equivalent forms, one using Sum of Squared Residuals (SSR) and the other using R-squared values.

  • In large samples with homoskedasticity, this F-statistic follows an Fq,∞F_{q,\infty} distribution under H0H_0.
  • In small samples with homoskedasticity and normally distributed errors, it follows an Fq,n−kunrestricted−1F_{q,n-k_{\text{unrestricted}}-1} distribution 22.

📝 Example: Testing H0:βSTR=0,βExpn=0H_0: \beta_{STR} = 0, \beta_{Expn} = 0 using the test score data. The unrestricted R-squared is 0.4366, and the restricted R-squared is 0.4149. With q=2q=2 restrictions and n=420n=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+uiY_i = \beta_0 + \beta_1X_{1i} + \beta_2X_{2i} + u_i. We might want to test H0:β1=β2H_0: \beta_1 = \beta_2 against H1:β1≠β2H_1: \beta_1 \neq \beta_2.

This can be done directly or by rewriting the model. Subtracting and adding β2X1i\beta_2X_{1i} to the right side yields Yi=β0+(β1−β2)X1i+β2(X1i+X2i)+uiY_i = \beta_0 + (\beta_1 - \beta_2)X_{1i} + \beta_2(X_{1i} + X_{2i}) + u_i.

If we let γ1=β1−β2\gamma_1 = \beta_1 - \beta_2 and Wi=X1i+X2iW_i = X_{1i} + X_{2i}, the model becomes Yi=β0+γ1X1i+β2Wi+uiY_i = \beta_0 + \gamma_1X_{1i} + \beta_2W_i + u_i. The original hypothesis H0:β1=β2H_0: \beta_1 = \beta_2 is equivalent to testing H0:γ1=0H_0: \gamma_1 = 0 in the transformed model 25 27.

This image displays a regression output from a statistical software, showing the results of a linear regression analysis.

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

This scatter plot shows observed and fitted data for weekly food expenditures against weekly income.

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.

  1. Estimate the original model: Run the OLS regression and obtain the squared residuals, u^i2\hat{u}_i^2.
  2. Run an auxiliary regression: Regress the squared residuals on the independent variables: u^i2=δ0+δ1X1i+...+δkXki+errori\hat{u}_i^2 = \delta_0 + \delta_1X_{1i} +... + \delta_kX_{ki} + \text{error}_i.
  3. Test the null hypothesis: The null hypothesis of homoskedasticity is H0:δ1=δ2=...=δk=0H_0: \delta_1 = \delta_2 =... = \delta_k = 0. This tests if the independent variables explain any variation in the squared residuals.
  4. 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^22n \times R^2_{\hat{u}^2} and follows a chi-squared distribution with kk degrees of freedom 35.

The Breusch-Pagan test involves estimating a model, obtaining squared residuals, and then running an auxiliary regression to test for heteroskedasticity.

The F-statistic formula is presented, showing the relationship between R-squared values and degrees of freedom.

  • F-statistic: F=Ru^22/(k−1)(1−Ru^22)/(n−k)F = \frac{R^2_{\hat{u}^2} / (k-1)}{(1 - R^2_{\hat{u}^2}) / (n-k)}, which follows an F(k−1,n−k)F(k-1, n-k) distribution.
  • LM statistic: LM=n×Ru^22LM = n \times R^2_{\hat{u}^2}, which follows a χ2(k−1)\chi^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\hat{u}_i^2 = \delta_0 + \sum_{j=1}^k \delta_jX_{ji} + \sum_{j=1}^k \delta_{j+k}X_{ji}^2 + \sum_{1 \le j < l \le k} \delta_{j+2k}X_{ji}X_{li} + \text{error}_i.
  • Null hypothesis: H0:δ1=δ2=...=δm=0H_0: \delta_1 = \delta_2 =... = \delta_m = 0, where mm is the total number of δ\delta coefficients excluding the intercept. This tests mm restrictions.

The White test is based on an estimation of the squared error term in a regression model.

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\hat{Y}_i) and their squares in the auxiliary regression: u^i2=δ0+δ1Y^i+δ2Y^i2+errori\hat{u}_i^2 = \delta_0 + \delta_1\hat{Y}_i + \delta_2\hat{Y}_i^2 + \text{error}_i. The null hypothesis is H0:δ1=δ2=0H_0: \delta_1 = \delta_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 TypeAuxiliary Regression VariablesNull HypothesisTest Statistic (LM)
Breusch-PaganOriginal independent variables (XjX_j)δ1=...=δk=0\delta_1 =... = \delta_k = 0n×Ru^22∼χ2(k)n \times R^2_{\hat{u}^2} \sim \chi^2(k)
WhiteOriginal XjX_j, squares Xj2X_j^2, cross-products XjXlX_jX_lAll δ\delta coefficients = 0n×Ru^22∼χ2(m)n \times R^2_{\hat{u}^2} \sim \chi^2(m)
White (Special Case)Fitted values (Y^i\hat{Y}_i) and squared fitted values (Y^i2\hat{Y}_i^2)δ1=δ2=0\delta_1 = \delta_2 = 0n \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\text{TestScore}_i = \beta_0 + \beta_1 \text{STR}_i + \beta_2 \text{PctEL}_i + \beta_3 \text{LchPct}_i + u_i 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\beta_3, is 0.547×50=27.40.547 \times 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.

TermInterpretation
ConventionalCoefficient on X1X_1 is the effect on YY, controlling for X2X_2.
ActualCoefficient on X1X_1 is the effect on YY of X1X_1, using X2X_2 to hold constant X2X_2's direct effect and control for omitted factors.

53

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.

Scatterplots of Test Scores vs. Three Student Characteristics, showing the relationship between test scores and percentage of English language learners, percentage qualifying for reduced price lunch, and percentage qualifying for income assistance.

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

This is a regression output table showing coefficients, standard errors, t-statistics, p-values, and confidence intervals for a linear regression model.

This table displays the results of regressions of test scores on student-teacher ratio and student characteristic control variables.

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.

See also