The (very) Basics of Machine Learning Linear Regression

Linear regression is about predicting data by determining a line that predicts future y values for a given x value. Generally, the formula is:

    \[y = mx + c\]


where x is the input, c is the offset (known as the “bias”), and m is the slope/coefficient (called “weight”) of x. However, in machine learning, the above is typically written as:

    \[y' = b + w_1x_1\]

Specifically:

y: the predicted label
b: the bias
w1: The weight, known in non-ML math as the slope
x1: A feature (known input)

The above model uses only one feature, but a more complex model may have multiple. For example:

    \[b + w_1x_1 + w_2x_2 + w_3x_3\]

Leave a Comment

Your email address will not be published. Required fields are marked *