← Back to explore

What is Linear Regression?

Linear regression is the first pit stop we will be taking on this Machine Learning journey. This supervised Machine Learning model allows us to predict an output (dependant variable). The equation that is used for this algorithm is: \( y = \beta_1 x_1 + \beta_0 + \epsilon\). Where \( y\) is the dependant variable. \( \beta_1\) is the slope of the model. \( x_1\) is the independant variable. \( \beta_0\) is the y-intercept of the model. And finally \( \epsilon\) is the loss of the model; this will be explained later on.

Fit the line!

Adjust the slope and y-intercept. Watch how the line moves in relation to the data points.

Linear model

Find the best fit!

y = 0.8x + 1
Observed data Your line

What is Σrror and Loss?

Without error or loss, our linear regression model would not be able to find its way to accurately representing our data! Why is this the case? How does it work? Lets take a look!