Quant Memo
Advanced

Complete Separation and Firth's Correction

When a predictor perfectly separates two classes in a logistic regression, standard maximum likelihood estimation breaks down — Firth's correction is a fix that keeps the model well-behaved.

Logistic regression normally estimates coefficients by finding the values that make the observed outcomes most likely under the model. But if one predictor happens to perfectly separate the two outcome classes — every default in a small credit dataset has a debt ratio above some threshold, and every non-default falls below it — the maximum likelihood estimate for that predictor's coefficient doesn't converge to a finite value. The optimizer keeps pushing the coefficient toward infinity, since an ever-more-extreme coefficient always fits the perfect split slightly "better," and standard software either fails to converge or reports absurdly large coefficients and standard errors.

This is called complete separation, and it's especially common in small samples or with rare-event data, where there simply isn't enough variation to prevent one predictor from lining up too neatly with the outcome. Firth's correction fixes this by adding a small penalty term to the likelihood function that discourages extreme coefficient estimates, guaranteeing a finite, well-behaved solution even in a perfectly or near-perfectly separated dataset, at the cost of a small amount of bias.

Complete separation makes ordinary logistic regression coefficients blow up toward infinity when a predictor perfectly divides the outcome classes. Firth's correction adds a small penalty to the likelihood that keeps estimates finite and stable, which is why it's the standard fix for small or rare-event datasets.

Worked example. A model predicting bond default from 40 historical issuers finds that every issuer with a debt-to-EBITDA ratio above 8x defaulted, and every issuer below it didn't. A standard logistic regression fit to this data would report a coefficient on debt-to-EBITDA in the hundreds with a similarly enormous standard error — a red flag that separation has occurred. Refitting with Firth's correction instead produces a moderate, finite coefficient with a sensible standard error, giving a usable model rather than a diverging one.

Practice in interviews

Further reading

  • Firth, Bias Reduction of Maximum Likelihood Estimates (1993)
ShareTwitterLinkedIn