Linear algebra and linear regression