KatInterview

p-Values, Regression Coefficients, and L1 vs L2 Penalties

Statistics & ExperimentsModel answer
EasyModel answerStatistics & Experimentsp-valueshypothesis-testinglinear-regression

Last updated

Rapid-fire statistics: define p-values correctly, interpret regression coefficients with confounders, and choose between Lasso and Ridge penalties.

You are in a statistics rapid-fire round. For each part, give a plain-language answer a product stakeholder could follow, then a precise technical answer.

Part A — p-values

  1. In plain language, what is a p-value?
  2. State the formal definition.
  3. How should it be interpreted, and what misreadings should be avoided?
  4. An A/B test on the primary metric returns p = 0.03. What do you decide, and what else would you want to know before shipping the change?

Part B — Linear regression with confounding 5. With several features in a regression and suspected confounding, how do you read each coefficient? 6. What does "holding the other variables constant" really mean, and when does that reading break down? 7. How does an associational reading of a coefficient differ from a causal one? 8. What checks or designs would you use to shrink confounding bias?

Part C — L1 vs L2 regularization 9. Define L1 (Lasso) and L2 (Ridge) penalties and describe how their effects differ. 10. When would you favor one over the other — thinking about feature selection, correlated features, prediction accuracy, and interpretability? 11. How would you pick the penalty strength, and what trade-offs come with that choice?

Hints

Hint 1

A p-value is computed assuming the null is true — it is a statement about the data, not about the hypothesis.

Hint 2

An omitted confounder bends a coefficient only if it affects the outcome and is correlated with the focal feature; that is the omitted-variable bias formula.

Hint 3

The L1 penalty's geometry puts solutions exactly at zero; the L2 penalty shrinks smoothly but keeps every coefficient nonzero — think about what that means for correlated features.

Hint 4

Pick λ by cross-validation, but remember that the λ minimizing error need not be the λ giving the most stable or honest coefficients.