πŸ“˜ MORISTAT: Advanced Econometrics

Chapter 6: Advanced Diagnostics and Robustness

Version 1.0  Β·  July 2026  Β·  naglal@linux-mauritius.com
6.1 Sensitivity Analysis

What Is Sensitivity Analysis?

Sensitivity analysis examines how your results change when you vary assumptions, model specifications, or data samples. It answers the question: "Are my results robust, or do they depend on arbitrary choices?"

Types of Sensitivity Analysis:

TypeDescription
Specification SensitivityVary model specification (variables, functional form)
Sample SensitivityExclude observations (jackknife, leave-one-out)
Parameter SensitivityVary tuning parameters (Ξ» in Lasso)
Assumption SensitivityTest violations of assumptions
Implementation in MORISTAT:

Interpretation Guidelines:

StabilityCoefficient Range
HighCV < 10% β€” Results are robust
Moderate10% ≀ CV < 25% β€” Some sensitivity
LowCV β‰₯ 25% β€” Results are fragile
6.2 Specification Testing

What Is Specification Testing?

Specification tests check whether your model is correctly specified. A model is correctly specified if all relevant variables are included, the functional form is appropriate, and the assumptions hold.

Common Specification Tests:

TestPurposeDetects
RESET TestFunctional formNonlinearity, omitted variables
Hausman TestFixed vs Random EffectsEndogeneity of entity effects
Hausman-Wu TestEndogeneityCorrelation between X and error
Sargan-Hansen JOveridentificationInvalid instruments
Link TestModel specificationOmitted variables, functional form
RESET Test (Regression Specification Error Test)

Purpose: Test whether the model has the correct functional form.

Procedure:

  1. Estimate the model and obtain fitted values: ΕΆ
  2. Compute powers of Ţ: Ţ², Ţ³, Ţ⁴
  3. Regress Y on X, Ţ², Ţ³, Ţ⁴
  4. Test whether the coefficients on the powers are jointly zero

Null Hypothesis: Hβ‚€: Model is correctly specified

Interpretation:

Link Test (Pregibon's Link Test)

Purpose: Test for omitted variables or incorrect functional form.

Procedure:

  1. Estimate the model and obtain predicted values: ΕΆ
  2. Compute ΕΆΒ²
  3. Regress Y on ΕΆ and ΕΆΒ²
  4. Test whether the coefficient on ΕΆΒ² is zero

Interpretation:

6.3 Outlier Detection

What Are Outliers?

Outliers are observations that are unusual relative to the rest of the data. They can have a disproportionate influence on your results.

Types of Outliers:

TypeDescriptionImpact
Regression OutlierUnusual response given XAffects coefficient estimates
Leverage PointUnusual X valuesAffects precision
Influential PointBoth unusual X and YLarge effect on results

Diagnostic Measures:

MeasureFormulaThreshold
Leverage (h_i)hᡒ = Xᡒ(X'X)⁻¹Xᡒ'> 2k/n
Studentized Residualrα΅’* = eα΅’ / (ΟƒΜ‚βˆš(1-hα΅’))> 2
Cook's DistanceDᡒ = (Ţ - Ţ_(i))'(Ţ - Ţ_(i)) / (kσ̂²)> 4/n
DFBETAChange in β when i is removed> 2/√n
Leverage (hα΅’)

Purpose: Identify observations with unusual X values.

hᡒ = Xᡒ(X'X)⁻¹Xᡒ'

Interpretation:

Cook's Distance (Dα΅’)

Purpose: Measure the overall influence of observation i.

Dᡒ = (Ţ - Ţ_(i))'(Ţ - Ţ_(i)) / (kσ̂²)

Interpretation:

Studentized Residuals

Purpose: Identify observations with unusual Y values given X.

rα΅’* = eα΅’ / (ΟƒΜ‚βˆš(1-hα΅’))

Interpretation:

6.4 Bootstrap Inference

What Is Bootstrap?

Bootstrap is a resampling method that estimates the sampling distribution of a statistic by repeatedly drawing samples with replacement from the original data.

When to Use Bootstrap:

SituationWhy Bootstrap
Non-normal errorsStandard errors may be invalid
Small samplesAsymptotic approximations fail
Complex modelsAnalytical standard errors are difficult
Non-standard statisticsNo known distribution

Types of Bootstrap:

TypeDescription
Non-parametricResample observations
ParametricResample from fitted distribution
Residual BootstrapResample residuals
Wild BootstrapResample with heteroskedasticity
Bootstrap Procedure:
  1. Estimate the model on the original sample β†’ Ξ²Μ‚
  2. For b = 1 to B:
    1. Draw a bootstrap sample (with replacement) of size n
    2. Estimate the model on the bootstrap sample β†’ β̂ᡇ
  3. Compute bootstrap statistics:
    • Standard error: SE = SD(β̂ᡇ)
    • Confidence interval: [2Ξ²Μ‚ - Ξ²Μ‚_(0.975), 2Ξ²Μ‚ - Ξ²Μ‚_(0.025)]
    • Bias-corrected interval

Bootstrap Confidence Intervals:

TypeFormulaWhen to Use
NormalΞ²Μ‚ Β± zΒ·SE*Symmetric distribution
Percentile[Ξ²Μ‚*(Ξ±/2), Ξ²Μ‚*(1-Ξ±/2)]General use
BCaBias-corrected and acceleratedSkewed distributions
6.5 Model Averaging

What Is Model Averaging?

Model averaging combines predictions from multiple models to improve forecast accuracy and account for model uncertainty.

Why Model Averaging?

ProblemSolution
Model uncertaintyWeighted average of models
OverfittingShrinkage toward simpler models
Prediction accuracyImproved out-of-sample performance
RobustnessLess sensitive to model choice

Methods of Model Averaging:

MethodWeights
BMAPosterior probabilities
AIC Weightsexp(-0.5Ξ”AIC)
BIC Weightsexp(-0.5Ξ”BIC)
StackingCross-validated weights
Equal Weights1/M
AIC Weights:
wα΅’ = exp(-0.5Β·Ξ”AICα΅’) / Ξ£β±Ό exp(-0.5Β·Ξ”AICβ±Ό)

Where Ξ”AICα΅’ = AICα΅’ - min(AIC)

BMA (Bayesian Model Averaging):

Posterior Model Probability:

P(Mα΅’ | data) = P(data | Mα΅’)P(Mα΅’) / Ξ£β±Ό P(data | Mβ±Ό)P(Mβ±Ό)

Model-Averaged Coefficients:

E(Ξ² | data) = Ξ£α΅’ P(Mα΅’ | data) Β· Ξ²Μ‚α΅’
6.6 Publication-Ready Output

Reporting Standards:

StyleReference
APAAmerican Psychological Association (7th Edition)
AEAAmerican Economic Association Style Guide
EconometricaEconometric Society Style

Essential Reporting Elements:

  1. Model Specification β€” Variables, functional form
  2. Sample Description β€” N, time period, data source
  3. Estimation Method β€” OLS, IV, FE, etc.
  4. Coefficient Estimates β€” With standard errors and significance
  5. Goodness of Fit β€” RΒ², AIC, BIC, Log-Likelihood
  6. Diagnostic Tests β€” VIF, BP, DW, JB, Hausman
  7. Robustness Checks β€” Sensitivity, alternative specifications
Coefficient Table Format (AEA Style)
Table 1: Determinants of Earnings ───────────────────────────────────────────────────────────────────────── (1) (2) (3) OLS 2SLS FE ───────────────────────────────────────────────────────────────────────── Education 0.089*** 0.132** 0.095*** (0.012) (0.018) (0.014) Experience 0.026*** 0.024*** 0.025*** (0.008) (0.009) (0.008) Ability (unobserved) β€” β€” β€” ───────────────────────────────────────────────────────────────────────── N 1,000 1,000 1,000 RΒ² 0.456 0.423 0.389 F-statistic 45.23 38.12 52.67 ───────────────────────────────────────────────────────────────────────── Notes: *** p<0.01, ** p<0.05, * p<0.10. Standard errors in parentheses. Column (1) uses OLS. Column (2) uses IV with QOB instruments. Column (3) uses Fixed Effects. ─────────────────────────────────────────────────────────────────────────
Diagnostic Summary Table
Table 2: Diagnostic Tests ───────────────────────────────────────────────────────────────────────── Test Statistic p-value Conclusion ───────────────────────────────────────────────────────────────────────── VIF (Education) 2.34 β€” No multicollinearity VIF (Experience) 1.87 β€” No multicollinearity Breusch-Pagan 18.45 0.009 Heteroskedasticity Durbin-Watson 1.89 β€” No autocorrelation Jarque-Bera 2.34 0.567 Normality Hausman-Wu 6.78 0.009 Endogeneity Sargan-Hansen J 2.34 0.311 Instruments valid ─────────────────────────────────────────────────────────────────────────
6.7 Implementation Checklist

Before Reporting Results:

6.8 Chapter Summary

Key Takeaways

  1. Sensitivity Analysis β€” Test robustness to model specification, sample, and assumptions
  2. Specification Testing β€” Use RESET, Link, and Hausman tests to check model validity
  3. Outlier Detection β€” Identify influential observations using leverage, Cook's D, and DFBETA
  4. Bootstrap Inference β€” Use resampling for valid standard errors when assumptions are violated
  5. Model Averaging β€” Combine models to account for model uncertainty
  6. Publication-Ready Output β€” Present results professionally with all necessary diagnostics

Checklist Before Publishing:

6.9 What's Next?
πŸ“˜ Chapter 7: Reporting and Visualization

We will cover:

  1. Result Presentation β€” Professional tables and figures
  2. Publication-Ready Output β€” APA, AEA formatting
  3. Interactive Dashboards β€” Dynamic data exploration
  4. Automated Reporting β€” Reproducible research