What is the variance threshold method for feature selection?

Quick Overview

Explain the variance threshold filter for feature selection and how it decides which columns to drop. Tests whether you understand that it ignores the target, how to set a cutoff for binary flags, and why feature scale changes what it removes.

What is the variance threshold method for feature selection?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the variance threshold method for feature selection? ```hint Two cases to check Work out what a given threshold means for a 0/1 flag, and what happens to a feature's variance when you change its units. ``` ### What a Strong Answer Covers - What the method computes and removes, including its default behavior. - That it ignores the target, and what that means for cost, leakage and predictive value. - How variance works for binary features and how to pick a threshold for them. - Its dependence on feature scale and where it belongs in a pipeline. ### Follow-up Questions - A fraud flag is set in 1% of rows and is highly predictive. What does a variance threshold do to it, and how would you protect it? - How would you apply a single cutoff when features are on very different scales? - Does fitting the selector on the full dataset before the train/test split cause leakage? - Which selection methods would you run after removing near-constant features?

Overview: Explain the variance threshold filter for feature selection and how it decides which columns to drop. Tests whether you understand that it ignores the target, how to set a cutoff for binary flags, and why feature scale changes what it removes.

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

What is the variance threshold method for feature selection?

What a Strong Answer Covers Guidance

  • What the method computes and removes, including its default behavior.
  • That it ignores the target, and what that means for cost, leakage and predictive value.
  • How variance works for binary features and how to pick a threshold for them.
  • Its dependence on feature scale and where it belongs in a pipeline.

Follow-up Questions Guidance

  • A fraud flag is set in 1% of rows and is highly predictive. What does a variance threshold do to it, and how would you protect it?
  • How would you apply a single cutoff when features are on very different scales?
  • Does fitting the selector on the full dataset before the train/test split cause leakage?
  • Which selection methods would you run after removing near-constant features?