This book provides a self-contained exposition of the theory of linear models, including practical aspects of residuals and data analysis.