Back to Topic 4.3 — Machine learning approaches
4.3.1Computer Science HL5 flashcards

Linear regression

Practice Flashcards

Flip to reveal answers
Card 1 of 54.3.1
4.3.1
Question

What does linear regression predict?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 5 Flashcards — Linear regression

Sign up free to track progress and get spaced-repetition review schedules.

Card 1definition

Question

What does linear regression predict?

Answer

A **continuous** value, by fitting $y = mx + c$ through the data.

Card 2process

Question

How is the best line chosen?

Answer

By minimising the **sum of squared residuals** — least squares. Squaring stops errors cancelling and punishes large ones heavily.

Card 3concept

Question

What does the gradient mean?

Answer

The change in the predicted value **per unit** of the input — for example price per square metre. It is the interpretable part of the model.

Card 4concept

Question

Why is extrapolation dangerous?

Answer

The line continues forever but reality may not. The model has no notion of the range it was trained on and reports **no uncertainty**.

Card 5comparison

Question

Regression or classification?

Answer

"**How much?**" is regression — a number on a scale. "**Which one?**" is classification — a category.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free