Feature selection
What is feature selection?
Feature selection is the process of choosing a subset of relevant input features from a larger set of available data, so a machine learning model trains on fewer, more useful signals rather than every feature available to it.
Reducing the input set this way helps in three ways: less noise for the model to fit, faster training and inference, and fewer variables to account for when explaining what drove a specific prediction.Feature selection is the process by which we select a subset of input features from the data for a model to reduce noise. We eliminate some of the available features in this process to get the best results from the model using minimum data and to ensure model explainability and simplicity.
Why feature selection matters
More features are not automatically better. Irrelevant or redundant inputs add noise that can slow training and even hurt accuracy instead of improving it. Feature selection also has a knock-on effect for explainability: a model trained on fewer, more relevant features generally gives you fewer variables to trace when accounting for a specific prediction.
Types of feature selection
Wrapper methods
Evaluate the model itself against different feature subsets to score their performance. Recursive feature elimination (RFE) is the most common example, iteratively removing the weakest features and retraining until only the strongest subset remains.
Filter methods
Score each feature against the target variable independent of any specific model, using statistical tests like the chi-squared test for categorical features or Pearson correlation to catch multicollinearity between input variables.
Embedded methods
Build feature selection directly into model training, most often through decision tree algorithms, where a feature's importance is measured by how much it reduces impurity at each split.
Dimensionality reduction
Reduces the number of features by combining them into a smaller set of derived variables that retain most of the original information, using methods like principal component analysis (PCA), rather than dropping features outright.
As a starting point, filter methods are the fastest option since they score features independent of any specific model and don't require repeated training runs. Wrapper and embedded methods take longer but often produce a more accurate subset, since they evaluate features against the actual model that will use them.
Industry use cases
Financial services
In lending models, feature selection is also a fair-lending control: a feature correlated with a protected characteristic, even indirectly through a proxy like zip code, can create disparate impact even when the model never uses race or gender directly. Selection criteria here need to screen for proxy risk, not just predictive value, a different bar than accuracy-driven selection elsewhere on the page.
Life sciences
Genomic and biomarker datasets often have far more measured features than samples, sometimes thousands of genes against a few hundred patients. Feature selection is what makes these datasets usable at all, narrowing the input set enough that a model can find a stable signal instead of fitting noise from a comparatively tiny sample.
Public sector
Agencies making automated eligibility or benefits decisions often need to defend a specific decision to an appeals reviewer or the person it affected. A model trained on a smaller, carefully selected feature set gives that reviewer fewer variables to trace when reconstructing why a case was flagged or denied, compared to a model that absorbed every available field regardless of whether it actually improved accuracy.
FAQ
Does feature selection improve model accuracy?
It can, but that's not guaranteed. Removing genuinely irrelevant or redundant features usually helps by cutting noise, but removing a feature that was carrying real signal can hurt accuracy. The right approach checks model performance on held-out data before and after selection, rather than assuming fewer features is automatically better.
Does PCA count as feature selection?
Not quite, though it's often grouped with it. PCA combines existing features into new derived variables, so it falls under dimensionality reduction rather than feature selection, which keeps a subset of the original features unchanged. Both shrink the number of inputs a model sees, but selection preserves what each original variable meant, while PCA doesn't.
What's the difference between feature selection and feature engineering?
Feature engineering creates or transforms features to make them more useful to a model. Feature selection narrows an existing set of features down to the ones that actually improve performance. The two are often used together: engineer more features, then select the strongest subset.