Feature Selection interview question

Preprocessing & Feature EngineeringFeature Selectionbasic

What is a main reason to perform feature selection before training a model?

  1. ARemoving features always raises training accuracy, because the model then has fewer parameters that need fitting.
  2. BIt removes the need for a train–test split, because a model with fewer features cannot overfit at all.
  3. CDropping irrelevant or redundant features can reduce overfitting, speed up training and aid interpretation.
  4. DIt builds new combined features that capture most of the variance of all the original input columns.
Show the answer and explanation

Correct answer: C, Dropping irrelevant or redundant features can reduce overfitting, speed up training and aid interpretation.

Explanation Feature Selection

Feature selection keeps a subset of the original features and drops the rest. Removing irrelevant or redundant columns lowers model variance (less chance to fit noise, fewer problems from the curse of dimensionality), makes training and inference cheaper, and leaves a smaller model that is easier to explain.

Why the other ideas are wrong:

  • Fewer features usually make the training fit worse or equal, not better; the benefit shows up on unseen data, if at all.
  • A smaller model can still overfit, so you still need a held-out test set (and the selection itself must be done on training data only).
  • Building new combined features is feature extraction (for example PCA), not selection.

Interview tip: list the three benefits (generalization, cost, interpretability) and add that selection must happen inside cross-validation to avoid leakage.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Preprocessing & Feature Engineering questions

  1. A temperature sensor produced 20 readings: 17 between 48 and 52, plus 99, 100 and 101. The table shows their summary statistics. A rule that flags z > 3 using…
  2. A colleague reports a cross-validated AUC of 0.91 with this code on 200 customers and 10,000 features. As a sanity check you rerun it with randomly permuted…
  3. For an offline consumption report (not a forecasting feature), an analyst fills gaps in a building's daily energy readings. The readings were logged on…
  4. A card-fraud dataset was extracted on 30 June. A transaction's label is 1 if a chargeback had arrived by the extraction date, and chargebacks can arrive up to…
  5. A retailer's click model has 200M impressions, 2M of them clicks. To cut training cost, you keep every click and 1 in 10 non-clicks, and give each kept…