Robust Regression — OLS + HC3 SE (heteroscedasticity-consistent)
Coming soonAdvanced & specialized
This test is implemented and is currently going through StatMinds’ production verification: every statistic is independently checked against a trusted reference (scipy / R), locked with regression tests, and the screen is exercised across assumption-met/violated and significant/non-significant scenarios before it opens up.
See what’s live nowOLS point estimates with HETEROSCEDASTICITY-CONSISTENT (HC3) standard errors as the primary inferential basis — protects the inferential conclusions when residual variance depends on the predictors or
on the fitted value. Reports coefficients (β, HC3 SE, t, p, 95% CI, standardised β), model fit (R², adjusted R², F, AIC, BIC), Type-III ANOVA, and a full residual / influence diagnostic panel. Classical OLS standard errors are reported alongside as a sensitivity comparison so the analyst can see how much heteroscedasticity is changing the inference.
Worked example
What is the study-time effect once a few extreme outliers are down-weighted?
The same exam-score model, but two influential outliers distort ordinary least squares. Robust (MM-estimator) regression down-weights them instead of deleting anything.
The robust (MM) fit gave b = 2.48 (p < .001), down-weighting two outliers that had shifted the OLS slope to 2.75 — a more trustworthy estimate.
A robust (MM-estimator) regression, resistant to two influential outliers, showed study time predicted exam score, b = 2.48, p < .001 (OLS b = 2.75).
Try it yourself: Load this ready-made sample and follow the run above.
When to use it
- Continuous outcome + k predictors with heteroscedastic residualsWage (y) ~ education + experience + region (n = 5000).
- Earnings / income / inequality researchMincer earnings equation: log(wage) ~ education + experience + experience² (n = 10,000).
When NOT to — use instead
- Binary / categorical outcomeOLS + HC3 is for continuous outcomes. → Binomial Logistic Regression \u2014 odds ratios + ROC AUC + classification
- Heavy outliers (not just heteroscedasticity)HC3 corrects SEs but β still influenced by outliers. → Quantile Regression \u2014 \u03b2(\u03c4) at requested quantiles (median + tails)
- Clustered / nested observationsHC3 doesn't address clustering. → Linear Mixed Effects (LMM) \u2014 clustered / repeated data (ICC, BLUPs)
- Homoscedastic dataWhen variance is constant, classical OLS SEs are more efficient. → Linear Regression \u2014 OLS (continuous y + predictors)
Hypotheses
Parameter tested: vector of population coefficients β
Assumptions (and what to do if they fail)
Check: Shapiro-Wilk p-value on residuals.
If violated: Non-normal residuals affect small-n CI for HC3.
Check: Breusch-Pagan p-value (informational only).
If violated: Heteroscedasticity is the very condition HC3 is designed to handle — a Breusch-Pagan flag is INFORMATIONAL here, not a fault.
Check: Durbin-Watson statistic in [1.5, 2.5] is OK.
If violated: Autocorrelated residuals bias HC3 SEs because HC3 assumes independent (but possibly heteroscedastic) errors.
Check: Max Cook's D reported.
If violated: An influential case can dominate slope estimates regardless of SE choice.
Check: Max VIF across predictors.
If violated: High VIF inflates coefficient SEs (HC3 or otherwise) — some βs look non-significant when the underlying relationship is real, just shared with another predictor.
Ready to run a Robust Regression — OLS + HC3 SE (heteroscedasticity-consistent) on your own data?
Guided setup, automatic assumption checks, effect sizes, figures and an APA write-up.
Run this test →