What is the difference between an interaction feature and a polynomial feature?

Quick Overview

Asks how interaction features differ from polynomial features in feature engineering for linear models. Tests whether you can explain what each lets a model express, give examples, describe what polynomial expansion generates, and weigh the cost in dimensionality and regularization.

What is the difference between an interaction feature and a polynomial feature?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Feature engineering for linear models often adds products and powers of the raw inputs. What is the difference between an interaction feature and a polynomial feature? ```hint Count the inputs Ask whether the new term is built from one input or from several, and what each kind lets a linear model's slope do. ``` ### What a Strong Answer Covers - A definition of each, and the kind of relationship each lets a linear model express. - A concrete example of each. - How polynomial expansion relates the two, including what common tooling generates. - When you need them at all given the model class, and their cost in dimensionality, scaling and regularization. ### Follow-up Questions - How many features does a degree-2 expansion of 100 inputs create, and how would you control that growth? - Why should you usually keep the main effects in the model when you add an interaction term? - Why does centering a feature before squaring it reduce collinearity? - How do factorization machines model feature crosses on sparse categorical data?

Overview: Asks how interaction features differ from polynomial features in feature engineering for linear models. Tests whether you can explain what each lets a model express, give examples, describe what polynomial expansion generates, and weigh the cost in dimensionality and regularization.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Feature engineering for linear models often adds products and powers of the raw inputs. What is the difference between an interaction feature and a polynomial feature?

What a Strong Answer Covers Guidance

  • A definition of each, and the kind of relationship each lets a linear model express.
  • A concrete example of each.
  • How polynomial expansion relates the two, including what common tooling generates.
  • When you need them at all given the model class, and their cost in dimensionality, scaling and regularization.

Follow-up Questions Guidance

  • How many features does a degree-2 expansion of 100 inputs create, and how would you control that growth?
  • Why should you usually keep the main effects in the model when you add an interaction term?
  • Why does centering a feature before squaring it reduce collinearity?
  • How do factorization machines model feature crosses on sparse categorical data?