BeginnerAbout 15 min
Linear Regression
Read the full article on Substack
7 min read.
The simplest ML model - learn to fit a line through data points and understand the foundation of all machine learning.
y = 0.50x + 2.00. MSE 0.630. Drag the sliders, or press Train.
Slope (m)0.50
Intercept (b)2.00
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Fit a line
Sequence
Order how ordinary least squares reaches a fit.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
5 pieces left to place
Quiz
22 questionsQuestion 1 of 22
Score: 0
What method is commonly used to find the best fit line?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.