Linear regression is a statistical model which is used to predict the value of a variable based on the value of another variable
Equation:
m
is the slopeb
is the intercept
Slope formula (m):
Intercept formula (b):
Using these formulas you are able to make a function in the format of y = mx + b that can be used for predictions