Processing math: 100%

Making the Design Matrix

Adding the constant term:

(XTX)1XTy

Solving the Linear System

The exact math from lecture.

(XTX)1XTy

More numerically stable and computationally efficient.

Aθ=bXTXθ=XTy

Using a software package:

Making Predictions

Examining the Residuals

Root Mean Squared Error

1nni=1(yiˆyi)2

Improving the Model

What can we say about the magnitudes of the weights?

Rescaling the features

Residual Analysis

Computing R2