Back to all Computer Science topics
Topic 4.2Computer Science HL15 flashcards

Data preprocessing

Practice Flashcards

Flip cards to reveal answers
Card 1 of 154.2.1
4.2.1
Question

What is data cleaning?

Click to reveal answer

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

Card 1definition
Question

What is data cleaning?

Answer

Finding and fixing what is **missing, duplicated, inconsistent or wrong** before training — because a model learns the faults along with everything else.

Card 2example
Question

Why is a recorded 0 often a missing value?

Answer

Many systems encode "not recorded" as 0. A blood pressure of 0 is impossible, so the model learns from a value that never occurred.

Card 3concept
Question

Why can deleting rows with missing values bias a dataset?

Answer

Absence is **rarely random**. If a value is missing more often for one group, deleting those rows removes that group disproportionately.

Card 4concept
Question

What does a duplicate record do to training?

Answer

It counts **twice**, so that record's characteristics carry double weight in what the model learns.

Card 5concept
Question

Should outliers always be removed?

Answer

No. An **error** should be; a **genuine extreme** should not — in fraud detection the outliers are exactly the target.

4.2.25 cards

Card 6definition
Question

What is a feature?

Answer

One **input column** the model is given. Feature selection decides which ones it sees.

Card 7definition
Question

What is data leakage?

Answer

A feature containing the answer, or one **not available at prediction time**. Test accuracy looks superb and then collapses in production.

Card 8concept
Question

Why is an identifier a bad feature?

Answer

It is unique per row, so the model **memorises** rather than learns — perfect on training data, useless on anything new.

Card 9definition
Question

Name four kinds of feature worth dropping.

Answer

**Irrelevant** (no relationship), **redundant** (duplicates another), **constant** (no information), **identifier** (memorises) — and above all **leaking**.

Card 10concept
Question

Does dropping a sensitive attribute stop discrimination?

Answer

No. Other features **proxy** for it — postcode, school, employment history — and the model finds those instead.

4.2.35 cards

Card 11definition
Question

What is dimensionality reduction?

Answer

Describing the same data with **fewer features** while keeping as much of the variation as possible.

Card 12definition
Question

What is the curse of dimensionality?

Answer

More features means an **exponentially larger space**, so data becomes sparse, distances lose meaning, and exponentially more records are needed.

Card 13comparison
Question

Feature selection or extraction — what is the difference?

Answer

**Selection** keeps a subset of the original columns. **Extraction** builds new features from combinations of them, as PCA does.

Card 14process
Question

What does PCA do?

Answer

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.

Card 15concept
Question

What is always lost in dimensionality reduction?

Answer

Some **variation** — it is lossy by construction — and with extraction, **interpretability**: a component cannot be named in plain words.

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