In this chapter, you learned about how the linear regression algorithm works internally, through key concepts such as residuals and ordinary least squares. You also learned how to visualize a simple linear regression model in two dimensions.
We also covered implementing the linear regression model to predict the amount of a mobile transaction, along with scaling your data in an effective pipeline, to bring potential improvements to your performance.
Finally, you learned how to optimize your model by using the concept of regularization, in the form of ridge and lasso regression.