Practice Flashcards
What is data cleaning?
Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.
All Flashcards in Topic 4.2
Below are all 15 flashcards for this topic. Sign up free to track your progress and get personalized review schedules.
4.2.15 cards
What is data cleaning?
Finding and fixing what is **missing, duplicated, inconsistent or wrong** before training — because a model learns the faults along with everything else.
Why is a recorded 0 often a missing value?
Many systems encode "not recorded" as 0. A blood pressure of 0 is impossible, so the model learns from a value that never occurred.
Why can deleting rows with missing values bias a dataset?
Absence is **rarely random**. If a value is missing more often for one group, deleting those rows removes that group disproportionately.
What does a duplicate record do to training?
It counts **twice**, so that record's characteristics carry double weight in what the model learns.
Should outliers always be removed?
No. An **error** should be; a **genuine extreme** should not — in fraud detection the outliers are exactly the target.
4.2.25 cards
What is a feature?
One **input column** the model is given. Feature selection decides which ones it sees.
What is data leakage?
A feature containing the answer, or one **not available at prediction time**. Test accuracy looks superb and then collapses in production.
Why is an identifier a bad feature?
It is unique per row, so the model **memorises** rather than learns — perfect on training data, useless on anything new.
Name four kinds of feature worth dropping.
**Irrelevant** (no relationship), **redundant** (duplicates another), **constant** (no information), **identifier** (memorises) — and above all **leaking**.
Does dropping a sensitive attribute stop discrimination?
No. Other features **proxy** for it — postcode, school, employment history — and the model finds those instead.
4.2.35 cards
What is dimensionality reduction?
Describing the same data with **fewer features** while keeping as much of the variation as possible.
What is the curse of dimensionality?
More features means an **exponentially larger space**, so data becomes sparse, distances lose meaning, and exponentially more records are needed.
Feature selection or extraction — what is the difference?
**Selection** keeps a subset of the original columns. **Extraction** builds new features from combinations of them, as PCA does.
What does PCA do?
Finds the directions along which the data varies **most** and uses them as the new axes, so the first few components carry most of the information.
What is always lost in dimensionality reduction?
Some **variation** — it is lossy by construction — and with extraction, **interpretability**: a component cannot be named in plain words.
Topic 4.2 study notes
Full notes & explanations for Data preprocessing
Computer Science exam skills
Paper structures, command terms & tips
Want smart review reminders?
Sign up free to track your progress. Our spaced repetition algorithm will tell you exactly which cards to review and when.
Start Free