Simple Linear Regression - sorokinDev/MyWayToML GitHub Wiki

y = B0 + B1 * x

Ordinary list squares

Find the straight line, where: SUM((y-y')^2) -> min y-y' - difference between observation and predicted value on the line