Skip navigation
In three dimensions, linear regression looks like fitting a flat plane through scattered points.
0:00

In three dimensions, linear regression looks like fitting a flat plane through scattered points.

In three dimensions, linear regression looks like fitting a flat plane through scattered points. When we move into higher dimensions, that plane becomes a hyperplane, but the idea stays the same — we’re finding the simplest surface that best represents the relationship between inputs and outputs. To make that happen, we rely on calculus and linear algebra. We also need a way to judge how well the surface fits the data, which is done using a loss function, most commonly mean squared error. The model takes inputs, produces predictions, and we measure how far those predictions are from the real values. Then an optimization method such as gradient descent adjusts the parameters that define the plane. Using the chain rule, the model updates little by little, shifting position and slope each step. Training stops once the changes become extremely small and the model has effectively settled into its best fit.

Comments

Comments from the original post on Instagram

No comments yet