The formula of linear regression can be synthesized with the dot product between features and weights. The feature vector includes the bias term with an x value of one, such as
When all the records are included, the linear regression can be calculated with the dot product between feature matrix and vector of weights, obtaining the y
vector of predictions.
The entire code of this project is available in this jupyter notebook.
The notes are written by the community. If you see an error here, please create a PR with a fix. |