DP Computer Science · HL · A4 Machine learning

A4.2 Data preprocessing (HL only)

Get started
Notes Quiz
Free preview 2/15
  1. Question 1

    A healthcare data scientist is building a model to predict patient readmission rates. The dataset includes age, blood pressure, cholesterol level, number of previous admissions, ward number, and the colour of the patient's hospital wristband. Which statement best describes the impact of including the wristband colour feature in the model?
    No clue? Show me the answer
    Correct answerCorrect!Incorrect
    CIt is an irrelevant feature that introduces noise and may reduce model generalisation.

    Step-by-step walkthrough

    Choose a solution method

    Method #1Direct approach

    Step 1: Identify the concept being tested

    The question asks about the effect of including a feature that has no plausible relationship with the target variable (readmission rate). This is the concept of an irrelevant feature.

    Step 2: Define irrelevant feature

    An irrelevant feature is one with no meaningful statistical or causal relationship with the target variable. Wristband colour has no plausible connection to whether a patient is readmitted.

    Step 3: Explain the consequence

    Including irrelevant features introduces noise into the model. The model may learn spurious correlations from the training data that do not generalise to new patients, increasing the risk of overfitting.

    Step 4: Select the correct answer

    The correct answer is: It is an irrelevant feature that introduces noise and may reduce model generalisation. This directly reflects the definition and consequence of an irrelevant feature.

    Method #2Process of Elimination

    Step 1: Identify what is being asked

    We need to identify what impact including wristband colour — a clearly unrelated attribute — would have on a readmission prediction model.

    Step 2: Eliminate option A

    'More features always provide richer information' is incorrect. A well-established principle in machine learning is that adding irrelevant features degrades model performance by introducing noise, not improving it.

    Step 3: Eliminate option B

    'Redundant because it is correlated with blood pressure' is incorrect. Wristband colour is arbitrarily assigned and has no statistical correlation with blood pressure. It is irrelevant, not redundant.

    Step 4: Eliminate option D

    'Embedded methods will assign it zero' may be partially true in practice (e.g., Lasso could zero it out), but this does not describe the impact of including it — and relying on the model to fix poor data is not best practice.

    Step 5: Select the correct answer

    The remaining option correctly identifies wristband colour as an irrelevant feature that introduces noise and risks reducing the model's ability to generalise to new data.

  2. Question 2

    Which of the following best describes the difference between feature selection and dimensionality reduction?
    No clue? Show me the answer
    Correct answerCorrect!Incorrect
    BFeature selection retains a subset of the original features in their original form, while dimensionality reduction transforms features into new components.

    Step-by-step walkthrough

    Choose a solution method

    Method #1Direct approach

    Step 1: Identify the key distinction

    This question tests whether students can distinguish between two related but fundamentally different preprocessing techniques: feature selection and dimensionality reduction.

    Step 2: Define feature selection

    Feature selection chooses a subset of the original features to keep. The retained features remain in their original, interpretable form — for example, keeping 'Floor Area' and 'Bedrooms' from a housing dataset.

    Step 3: Define dimensionality reduction

    Dimensionality reduction (e.g., PCA) transforms the original features into a new set of components. These new components are mathematical combinations of the originals and are typically no longer directly interpretable.

    Step 4: Select the correct answer

    The correct answer is: Feature selection retains a subset of the original features in their original form, while dimensionality reduction transforms features into new components. This is the precise distinction described in the study notes.

    Method #2Process of Elimination

    Step 1: Identify what is being asked

    We must identify the correct distinction between feature selection and dimensionality reduction.

    Step 2: Eliminate option A

    Option A reverses the definitions — it incorrectly states that feature selection transforms features and dimensionality reduction retains them. This is the opposite of the truth.

    Step 3: Eliminate option C

    Option C is false — feature selection can be applied to both categorical and numerical features (e.g., chi-square for categorical, correlation coefficient for numerical). There is no data-type restriction on either technique.

    Step 4: Eliminate option D

    Option D is incorrect — the two processes are fundamentally different in what they produce. Feature selection outputs a subset of original features; dimensionality reduction outputs new transformed components. They are not identical.

    Step 5: Select the correct answer

    Option B is the only accurate description: feature selection retains original features in their interpretable form, while dimensionality reduction creates new transformed components.

Free preview

13 more questions in this topic

Next topic →A4.3 Machine learning approaches (HL only)
Koncepts

Learn it properly. Then practise like it's the real paper.

Start free

Features

  • Lessons
  • Past papers
  • Library
  • Homework Help
  • Duels

More

  • For parents
  • Compare
  • Plans & pricing
  • DP for students

Legal

  • Privacy
  • Terms
  • Account deletion

© 2026 Koncepts (product of PrepAiro, Inc). All rights reserved.
DP, IB, EE and TOK are terms of the International Baccalaureate Organization.

Made for IB DP students.