Home Knowledge Base Feature Selection

Feature Selection is the process of identifying and keeping only the most informative variables for a machine learning model while discarding noisy, redundant, or irrelevant features — improving model accuracy (less noise = better signal), reducing overfitting (fewer parameters = better generalization), speeding up training and inference (fewer features = less computation), and improving interpretability (fewer features = easier to explain), making it a critical preprocessing step that sits between feature engineering and model training.

What Is Feature Selection?

Three Categories of Methods

CategoryApproachSpeedQualityExample
Filter MethodsRank features by statistical score, independent of modelVery fastGoodCorrelation, Chi-Square, Mutual Information
Wrapper MethodsTrain model with different feature subsets, select the bestSlowBestRecursive Feature Elimination (RFE), Forward Selection
Embedded MethodsModel selects features during trainingModerateVery goodL1 (Lasso), Tree Feature Importance, ElasticNet

Filter Methods (Model-Independent)

MethodFeature TypeWhat It Measures
Pearson CorrelationContinuous vs ContinuousLinear relationship strength
Chi-Square (χ²)Categorical vs CategoricalStatistical independence
Mutual InformationAnyNon-linear dependency between feature and target
Variance ThresholdAnyRemove features with near-zero variance
ANOVA F-testContinuous vs CategoricalDifference in means across classes

Wrapper Methods (Model-Dependent)

MethodProcessTrade-off
Forward SelectionStart empty, add best feature one at a timeGreedy, may miss feature interactions
Backward EliminationStart with all, remove worst feature one at a timeExpensive for many features
RFE (Recursive Feature Elimination)Train model, remove least important, repeatGood balance, sklearn built-in

Embedded Methods (During Training)

MethodHow It SelectsBest For
L1 Regularization (Lasso)Drives weak feature coefficients to exactly zeroLinear/logistic regression
Tree Feature ImportanceFeatures used in early splits are most importantRandom Forest, XGBoost
ElasticNet (L1 + L2)Combines L1 sparsity with L2 groupingCorrelated features

Feature Selection is the essential preprocessing step that ensures models learn from signal rather than noise — using statistical tests, model-based importance, or iterative search to identify the features that actually matter, improving accuracy, reducing overfitting, speeding up training, and producing models that are easier to interpret and deploy.

feature selectionimportancereduce

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.