2  Linear Regression in Neural Networks

Linear models provide the simplest setting in which to study the complete learning procedure: represent a model, define a loss, organize data, optimize parameters, and evaluate predictions on unseen examples. They are also useful statistical methods in their own right and provide standard baselines for more complex models.

This chapter develops linear regression as a one-layer neural network. We derive the model and its loss, implement its components from first principles, and then replace those components with framework abstractions. The final sections introduce generalization and weight decay. The next chapter applies the same framework to classification.

Resources and Further Reading

The references below cover the statistical foundations shared with classification, followed by material specific to regression, least squares, generalization, and weight decay as \(L_2\) regularization. The next chapter builds on the shared references rather than listing them again. All are freely accessible online except where noted.

Books

Courses and video lectures

Foundational papers