📈Linear Regression
Also known as Ordinary Least Squares, OLS
Guessing a number with a straight line. The line is the one that best fits the data.
Think of it like
Think of it like a page of dots. You lay a ruler down the middle of them.
Example
Jack plots flat size against rent for 300 flats. The best line says each extra square metre adds about 15 euros a month.
Why it matters
It is often the first model to try and the one to beat. Its weights tell you plainly what moves the answer.
Definition
Common mistake
Key takeaways
- 1A straight line. The simplest shape to fit.
- 2One weight each. How much each feature counts.
- 3Easy to explain. You can read the weights.