First exams 2027 · HL only

A4.2.2 · Data preprocessing (HL only)

The Role of Feature Selection

Every extra column of data handed to a model is a bet that it's actually worth including. Feature selection is how that bet gets made deliberately, rather than by just throwing every available column at the model and hoping for the best.

HL only Typically 4–6 marks · AO1/AO2 Command term: describe

Explainer

Df

Feature selection is the process used to identify and retain the most informative attributes of a data set, while removing the ones that are redundant or irrelevant. It's a genuine balancing act: removing a feature that actually mattered hurts the model just as much as keeping one that only adds noise.

A feature here just means one column, one measurable attribute, of the data being fed into the model. A model predicting exam results might be handed a student's attendance rate, hours of sleep, number of practice papers completed, and even their favourite subject, but not all of those are actually useful for the prediction.

Worked example

Three strategies, one prediction task

A fitness app wants to predict how many calories a workout burned, using logged features: workout duration, average heart rate, body weight, outdoor temperature, day of the week, and shirt colour. Click each strategy to see how it would actually be applied to this exact problem.

Check your understanding

A team repeatedly trains a full machine learning model on different subsets of the available input features, comparing the resulting accuracy each time to decide which subset to keep. Which feature selection strategy is this?

Common mistake

A recurring pattern flagged directly for this exact statement

RecurringA genuinely documented pattern: candidates treat feature selection as a minor, optional step, assuming a more sophisticated model or algorithm matters more to a project's success than the quality of the features it's actually given. In practice, the quality of the chosen features is frequently the bigger factor: a simple model with well-chosen features regularly outperforms a sophisticated model buried in irrelevant ones.

✕

Treats model choice as the priority: "If the calorie-prediction model isn't accurate enough, switch to a more powerful algorithm." Skips past the possibility that irrelevant features, like shirt colour, are actively confusing whichever algorithm gets used.

✓

Treats feature quality as the priority: "Before trying a more powerful algorithm, check whether irrelevant features like shirt colour are still in the data set, since no algorithm, however sophisticated, can be expected to ignore noise on its own." Correctly identifies feature quality as often the bigger lever, not just the choice of model.

Revision questions

Past-paper style. Write an answer, then reveal the marking points and mark yourself.

Question 1 · 2 marks

[2]Define the term feature selection.

Question 2 · 4 marks

[4]Distinguish between filter methods and wrapper methods, referring to computational cost in your answer.

Question 3 · 6 marks

[6]A hospital is building a model to predict patient readmission risk, using features including age, blood pressure, number of past admissions, and the patient's assigned hospital bed number. Describe how each of the three feature selection strategies could be applied to this data set.

Flashcards

Active recall for this statement’s key terms.