1. Hypothesis Testing & Inference (Week 7) Key Assumptions (MLR.1–MLR.6) • • MLR.1–MLR.4: OLS is unbiased. MLR.5: Homoskedasticity: Var(π’ β£ π₯! , … , π₯" ) = π # • MLR.6: Normality of errors: π’ ∼ π(0, π # )(i.i.d.) • Under MLR.1–MLR.6, OLS estimators are normally distributed: π½/$ ∼ π0π½$ ,Var(π½/$ )1 Variance of OLS Estimator Var(π½/$ ) = π# πππ$ (1 − π $# ) where πππ$ = ∑(π₯$ − π₯¯$ )# , π $# = R² from regressing π₯$ on other π₯'s. Estimating π ! & 1 π9 = < π’9%# π−π−1 # %'! Standard error: se(π½/$ ) = π9 =πππ$ (1 − π $# ) t-statistic π‘= π½/$ − π½$ ∼ π‘&("(! se(π½/$ ) Testing Single Parameter 1. Null hypothesis: π») : π½$ = π (usually π = 0). 2. Alternative: Two-sided: π»! : π½$ ≠ π o One-sided: π»! : π½$ > π or π»! : π½$ < π 3. Compute t-statistic: o π‘= π½/$ − π se(π½/$ ) 4. Compare to critical value π from π‘&("(! : Two-sided: Reject if β£ π‘ β£> π o One-sided: Reject if π‘ > π (right) or π‘ < −π (left) 5. p-value: Probability of observing π‘ or more extreme under π») . o Confidence Interval for π½" π½/$ ± π ⋅ se(π½/$ ) where π = π‘*/#,&("(! . Testing Linear Combination of Parameters • • Example: π») : π½! = π½# → test π») : π½! − π½# = 0. t-statistic: π‘= π½/! − π½/# se(π½/! − π½/# ) where se(π½/! − π½/# ) = =Var(π½/! ) + Var(π½/# ) − 2Cov(π½/! , π½/# ). Alternative: Reparameterize: define π = π½! − π½# , rewrite model, test π») : π = 0. F-test for Multiple Restrictions • • • • Null: π») : π½"(-.! = β― = π½" = 0 (q restrictions). Unrestricted model: includes all variables. Restricted model: excludes the q variables. F-statistic: πΉ= (π ππ/ − π ππ0/ )/π ∼ πΉ-,&("(! π ππ0/ /(π − π − 1) Equivalently: πΉ= • # (π 0/ − π /# )/π # )/(π − π − 1) (1 − π 0/ Reject if πΉ > πΉ*,-,&("(! . Chow Test for Structural Break • • • • Test if regression function differs across groups. Unrestricted: Separate regressions for each group. Restricted: Pooled regression. F-statistic: πΉ= [π ππ1 − (π ππ! + π ππ# )]/(π + 1) (π ππ! + π ππ# )/[π − 2(π + 1)] 2. Functional Forms (Week 8) Data Scaling & Standardization • • • Rescaling y by c: coefficients multiplied by c. Rescaling x by c: coefficient divided by c. Standardized coefficients (beta coefficients): πR$ = π9$ π½/ π92 $ Interpretation: change in y (in std dev) for 1 std dev change in π₯$ . Quadratic Terms Model: π¦ = π½) + π½! π₯ + π½# π₯ # + π’ • Marginal effect: Δπ¦ ≈ π½! + 2π½# π₯ Δπ₯ • Turning point: π₯∗ = − π½! 2π½# Interaction Terms Model: π¦ = π½) + π½! π₯! + π½# π₯# + π½4 (π₯! × π₯# ) + π’ • Effect of π₯! on y: Δπ¦ = π½! + π½4 π₯# Δπ₯! • Effect of π₯# on y: Δπ¦ = π½# + π½4 π₯! Δπ₯# Partial Effect at the Mean Center variables at mean: π¦ = πΌ) + πΏ! π₯! + πΏ# π₯# + π½4 (π₯! − π₯¯! )(π₯# − π₯¯# ) + π’ Then πΏ# = effect of π₯# when π₯! = π₯¯! . 3. Categorical Variables (Week 9) Binary (Dummy) Variables • • • Base group: omitted category. Intercept shift: coefficient on dummy = difference in intercept relative to base. Avoid dummy variable trap: For g categories, include g−1 dummies. Interaction with Dummies • Different intercepts: π¦ = π½) + πΏ) π· + π½! π₯ + π’ • Different slopes: π¦ = π½) + πΏ) π· + π½! π₯ + πΏ! (π· × π₯) + π’ Slope for π· = 1: π½! + πΏ! . Ordinal Variables • • Option 1: Include as continuous (assumes linear effect). Option 2: Create dummies for each category (more flexible). Log-Dummy Models Model: ln (π¦) = π½) + πΏπ· + π½! π₯ + π’ • • Approximate % change: 100 ⋅ πΏ% Exact % change: 100 ⋅ [exp (πΏ) − 1]% 4. Binary Dependent Variable (Week 9) Linear Probability Model (LPM) π(π¦ = 1 β£ π₯) = π½) + π½! π₯! + β― + π½" π₯" • • Interpretation: π½$ = change in probability that y=1 for 1-unit increase in π₯$ . Issues: 1. Predicted probabilities may be outside [0,1]. 2. Heteroskedasticity: Var(π’ β£ π₯) = π(π₯)[1 − π(π₯)] → Use robust standard errors. 5. Heteroskedasticity (Week 10) Consequences of Heteroskedasticity • • • OLS still unbiased, consistent. Usual SEs biased → invalid t/F tests. OLS not BLUE. Robust Standard Errors (White/Huber) For simple regression: b (π½/! ) = Var ∑(π₯% − π₯¯)# π’9%# πππ5# In general: b (π½/$ ) = Var where πΜ%$ = residual from regressing π₯$ on other x's. ∑πΜ%$# π’9%# π ππ$# Testing for Heteroskedasticity Breusch-Pagan Test 1. Regress π¦ on π₯'s, get residuals π’9. 2. Regress π’9# on π₯'s, get π 0#6! . 3. LM statistic: πΏπ = π ⋅ π 0#6! ∼ π"# 4. F-statistic: πΉ= π 0#6! /π 01 − π 06#! )/(π − π − 11 ∼ πΉ",&("(! White Test • • Auxiliary regression: π’9# on π₯'s, squares, and cross-products. Or modified: π’9# on π¦9 and π¦9 # (2 restrictions). Weighted Least Squares (WLS) If Var(π’ β£ π₯) = π # β(π₯), transform: π¦ iβ(π₯) • • = π½) 1 iβ(π₯) + π½! π₯! iβ(π₯) + β―+ π’ iβ(π₯) GLS estimator = OLS on transformed equation. More efficient than OLS if variance form correctly specified. Prediction with Log Models If model is: ln (π¦) = π½) + π½! π₯! + β― + π½" π₯" + π’ • • bπ¦) is biased. Naïve prediction: π¦9 = exp (ln Bias-corrected (assuming normality): π9 # bπ¦) π¦9 = exp j k ⋅ exp (ln 2 • Duan’s smearing estimator (robust): π9) = 1 bπ¦) ∑exp (π’9% ), π¦9 = π9) ⋅ exp (ln π 6. Program Evaluation (Week 9) Potential Outcomes Framework • • • • π¦% (1): outcome if treated. π¦% (0): outcome if not treated. Treatment effect: ππΈ% = π¦% (1) − π¦% (0). Observed outcome: π¦% = π₯% π¦% (1) + (1 − π₯% )π¦% (0). Average Treatment Effect (ATE) π789 = πΈ[π¦(1) − π¦(0)] If constant treatment effect: where π = π789 . π¦ = πΌ) + ππ₯ + π’ Assumptions for Causal Inference • • Random assignment: π₯ ⊥ (π¦(0), π¦(1)). Unconfoundedness: π₯ ⊥ (π¦(0), π¦(1)) β£ π§ (conditional on covariates). Quick Reference Formulas OLS variance Var(π½/$ ) = π # /[πππ$ (1 − π $# )] t-statistic π‘ = (π½/$ − π)/se(π½/$ ) Confidence interval π½/$ ± π‘*/# ⋅ se(π½/$ ) F-statistic πΉ= (π ππ/ − π ππ0/ )/π π ππ0/ /(π − π − 1) BP test LM πΏπ = π ⋅ π 0#6! ∼ π"# WLS transformation divide by iβ(π₯) Log-dummy % change exact: 100[exp (πΏ) − 1]% LPM interpretation π½$ = Δπ(π¦ = 1 β£ π₯) Step-by-Step Procedures 1. Conduct a t-test 1. 2. 3. 4. 5. State π») : π½$ = π and π»! . Compute π‘ = (π½/$ − π)/se(π½/$ ). Find critical value π from π‘&("(! at significance level πΌ. Compare: reject if β£ π‘ β£> π (two-sided) or π‘ > π (right) or π‘ < −π (left). Report p-value. 2. Conduct an F-test 1. Estimate unrestricted and restricted models. 2. Compute π ππ0/ and π ππ/ . (;<< (;<<#" )/3. Compute πΉ = ;<< " /(&("(!) . #" 4. Compare to πΉ*,-,&("(! . 5. Reject if πΉ > πΉcritical . 3. Test for Heteroskedasticity (BP) 1. 2. 3. 4. Run OLS, get residuals π’9. Regress π’9# on all x's. Compute πΏπ = π ⋅ π 0#6! . Compare to π"# critical value. 4. Implement WLS 1. 2. 3. 4. Assume/formulate variance function β(π₯). Transform all variables: divide by iβ(π₯). Run OLS on transformed equation. Interpret coefficients in original units. 5. Predict with Log Model bπ¦ and π9 # . 1. Estimate ln (π¦) model, get ln ! 2. Compute π9) = ∑exp (π’9% ). & bπ¦). 3. Predicted π¦ = π9) ⋅ exp (ln Common Pitfalls & Reminders • • • • • • • Dummy variable trap: Omit one category. Interaction terms: Always include main effects. Log models: % interpretation; use exact formula for large coefficients. LPM: Use robust SEs; predictions outside [0,1] possible. Heteroskedasticity: Always check; use robust SEs as default. Chow test: Requires same error variance across groups. ATE estimation: Random assignment is key for causality.
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )