aımnova
DashboardMy LearningCrash CoursesStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Crash Courses
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Teachers
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aımnova

IB study, practice and feedback built around the real exam.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.c1e448f

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 4.2Feature selection
Back to Computer Science HL Topics
4.2.25 min read

Feature selection (Computer Science HL)

IB Computer Science · Unit 4

IB exam ready

Study like the top scorers do

Access a smart study planner, AI tutor, and exam vault — everything you need to hit your target grade.

Start Free

Contents

  1. 1Choosing what the model gets to see
  2. 2Which features to drop
  3. 3How selection is done
  4. 4Exam-style question
The big idea: A feature is one input column. Feature selection is deciding which ones the model is given.

More is not better: an irrelevant feature is noise the model can still fit, and a leaking feature is a disaster.

Why fewer features often wins

  • Less overfitting — fewer chances to fit noise that will not recur
  • Faster to train and to run, on less data
  • Explainable — a model with six inputs can be reasoned about; one with six hundred cannot
  • Cheaper to collect — every feature is data someone has to gather and store
  • Fewer places for bias to enter through a proxy

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime
KindProblemExample
IrrelevantNo real relationship to the targetShoe size when predicting exam grades
RedundantDuplicates another featureHeight in cm and height in inches
ConstantSame value throughout — no informationA country column when all records are from one country
IdentifierUnique per row, so it memorisesCustomer ID
LeakingContains the answer"Refund issued" when predicting returns
Data leakage is the one that fools you: A leaking feature makes accuracy look superb in testing and then collapse in production, because the feature was not available at the moment the prediction has to be made.

Ask of every feature: would we actually know this at prediction time?
An ID memorises rather than learns: A customer ID is unique to one row, so a model can map each ID to its answer and score perfectly on training data while learning nothing generalisable.

It is overfitting in its purest form.

Practice with exam-style questions

Answer exam-style questions and get AI feedback that shows you exactly what examiners want to see in a full-marks response.

Try Practice FreeYour first topic is free to keep • No credit card required

Domain knowledge

  • A person who understands the problem removes what cannot matter
  • Catches leakage that statistics will not
  • The cheapest and most reliable filter

Statistical

  • Correlation with the target — weak ones are candidates to drop
  • Correlation between features finds redundancy
  • But correlation is not causation, and misses combinations

Model-based

  • Train, read the feature importances, drop the lowest, retrain
  • Measures what actually helps rather than what looks like it should
  • Costs many training runs

The three strategies the guide names

StrategyHow it picks featuresTrade-off
Filter methodScores each feature on its own with a statistic, such as its correlation with the target, before any model is trained; keeps the best-scoringFast and simple, but ignores how features work together
Wrapper methodTrains the model on different subsets of features and keeps the subset that gives the best resultsFinds the most informative set for that model, but training many times is slow
Embedded methodSelection happens during training itself, e.g. a decision tree splits only on the most useful features, or penalties shrink useless weights to zeroFaster than wrappers; tied to one kind of model
Removing a sensitive attribute is not selection for fairness: Dropping ethnicity does not remove ethnicity from the model — postcode, school and employment history correlate with it and act as proxies.

Say this explicitly: it is examined under ethics as well as here.

How this is tested — you must judge whether a feature belongs, and justify removal by its effect on the model. It comes up two ways:

Paper 1 Section A

  • Describe the role of feature selection, 3-4 marks
  • Identify a feature that should be removed
  • State one benefit of using fewer features

Paper 1 Section B — case study

  • Explain data leakage in a scenario
  • Justify keeping or dropping a specific feature
The classic trap: Assuming more data is always better. An identifier lets the model memorise, and a leaking feature gives near-perfect test accuracy that vanishes in production.

Columns struck out one reason at a time — irrelevant, identifier, duplicate.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic
IB-style questionDescribe[5 marks]

A bank predicts loan default from: customer ID, income, age, postcode, number of previous defaults, and whether debt collection was started. Describe which features should be removed and why.

Model answer plan

See the answer broken into clear points, with guidance on how each point earns marks.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Feature selection. Write your answer and get instant AI feedback — just like a real IB examiner.

how a filter method selects features before a model is trained. [2 marks]

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

4.1.1Types of machine learning4.1.2Hardware for machine learning4.2.1Data cleaning4.2.3Dimensionality reduction
View all Computer Science HL topics
Improve your exam techniqueCommand terms, paper structure, and mark-scheme tips for Computer Science HL
Previous4.2.1Data cleaningNextDimensionality reduction4.2.3

3 questions to test your understanding

Reading is just the start. Students who tested themselves scored 82% on average — try IB-style questions with AI feedback.

Start FreeView All Computer Science HL Topics