What is the events-per-variable rule of thumb, and why does sample size matter for logistic regression?

Quick Overview

Asks what the events-per-variable rule of thumb for logistic regression is and why sample size matters when fitting it. Tests how well you understand maximum-likelihood behavior with few events, separation, and what to do when the data cannot support the model you want.

What is the events-per-variable rule of thumb, and why does sample size matter for logistic regression?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the events-per-variable (EPV) rule of thumb, and why does sample size matter for logistic regression? ```hint What to count Ask which number limits how much information the data carry about the coefficients. Is it the total row count, or something smaller? ``` ```hint What the estimator does Think about how maximum-likelihood estimates behave when one outcome class has only a handful of rows, and what happens if a predictor splits the classes perfectly. ``` ### What a Strong Answer Covers - The rule itself, with what goes in the numerator and the denominator, including how dummy levels and interactions are counted. - What goes wrong with the maximum-likelihood estimates when events are scarce: the direction of the bias, the variance, and separation. - Why the threshold is a guideline, and when it is too loose or too strict. - What to do when the data have too few events for the model you want to fit. ### Follow-up Questions - You have 30 events and 12 candidate predictors. What would you do? - What are complete and quasi-complete separation, and how would you spot them in fitted output? - How does Firth's penalized likelihood reduce small-sample bias, and how does it compare with ridge or lasso in this setting? - Does the EPV concern change if the model is used only for prediction and nobody reads the odds ratios?

Overview: Asks what the events-per-variable rule of thumb for logistic regression is and why sample size matters when fitting it. Tests how well you understand maximum-likelihood behavior with few events, separation, and what to do when the data cannot support the model you want.

Nov 25, 2026
mediumData ScientistOtherMachine Learning
0
0

What is the events-per-variable (EPV) rule of thumb, and why does sample size matter for logistic regression?

What a Strong Answer Covers Guidance

  • The rule itself, with what goes in the numerator and the denominator, including how dummy levels and interactions are counted.
  • What goes wrong with the maximum-likelihood estimates when events are scarce: the direction of the bias, the variance, and separation.
  • Why the threshold is a guideline, and when it is too loose or too strict.
  • What to do when the data have too few events for the model you want to fit.

Follow-up Questions Guidance

  • You have 30 events and 12 candidate predictors. What would you do?
  • What are complete and quasi-complete separation, and how would you spot them in fitted output?
  • How does Firth's penalized likelihood reduce small-sample bias, and how does it compare with ridge or lasso in this setting?
  • Does the EPV concern change if the model is used only for prediction and nobody reads the odds ratios?