Cookmath

Creating and experimenting with linear models

A small linear model maps feature vectors to predictions with matrix multiplication. A controlled experiment compares predictions with observations while keeping the data split and evaluation measure explicit.

What you will learn

Work through one complete example

Objective 1: Compute a model prediction

Objective 2: Calculate residuals and an error metric

Objective 3: Design a comparable held-out experiment

A common mistake

State the assumptions before using the formula.

Review first

Continue learning

Creating and experimenting with linear models

Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.