Linear algebra + matrices + calculus, in harmony

The same three tools show up in house prices, medical flags, fraud, credit decisions, and lane keeping. Drag the sliders. Watch the prediction change.

Predict a house price

Linear algebra: price = w ยท x + b. The features are a vector. The weights are a vector. The dot product is the prediction.

Predicted price: $277,000

Calculus comes in when we train: we take the derivative of error vs each weight and walk downhill (gradient descent), same idea as Lesson 3 weights.