How do you interpret the coefficient of a dummy-coded categorical variable?

Quick Overview

Asks how to read the coefficient on a 0/1 dummy variable when a categorical predictor enters a linear regression. Tests understanding of reference categories, the intercept, comparisons between non-reference groups and adjustment for other predictors.

How do you interpret the coefficient of a dummy-coded categorical variable?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How do you interpret the coefficient of a dummy-coded categorical variable in a linear regression? ```hint Compare two rows Write the fitted equation for a row in one category and for a row in the omitted category, with every other predictor at the same value, and subtract. ``` ### What a Strong Answer Covers - What the coefficient measures and which category it is measured against - What the intercept means under dummy coding - How to compare two categories when neither is the omitted one - How the other predictors in the model condition the interpretation - At least one pitfall, such as including a dummy for every level ### Follow-up Questions - How does the interpretation change if the outcome is log-transformed? - What does the same coefficient mean in a logistic regression? - You add an interaction between the category and a continuous predictor. What does the dummy's main-effect coefficient mean now? - How would you test whether the categorical variable matters as a whole?

Overview: Asks how to read the coefficient on a 0/1 dummy variable when a categorical predictor enters a linear regression. Tests understanding of reference categories, the intercept, comparisons between non-reference groups and adjustment for other predictors.

General logo
General
Nov 24, 2026
easyData ScientistOtherMachine Learning
0
0

How do you interpret the coefficient of a dummy-coded categorical variable in a linear regression?

What a Strong Answer Covers Guidance

  • What the coefficient measures and which category it is measured against
  • What the intercept means under dummy coding
  • How to compare two categories when neither is the omitted one
  • How the other predictors in the model condition the interpretation
  • At least one pitfall, such as including a dummy for every level

Follow-up Questions Guidance

  • How does the interpretation change if the outcome is log-transformed?
  • What does the same coefficient mean in a logistic regression?
  • You add an interaction between the category and a continuous predictor. What does the dummy's main-effect coefficient mean now?
  • How would you test whether the categorical variable matters as a whole?