What is a linear regression and how do you use it?
Simply put, a linear regression is a common algorithm used to find the best-fitting linear relationship between two (or more) varibles. It does this by fitting many combinations of the slope and intercept of a line to the data, aiming to find the line that can be drawn through the data such that the distance between each point and the line is at a minimum.
Once the best fit relationship has been determined, the linear relationship can then be used to predict the values data points that have not yet been recorded. While one of the simplest forms of data modeling, linear regressions are amazingly powerful! This tutorial will walk you through inner workings of the linear regression algorithm so that you can use it to make predictions on your own data.
Let's get started!