Processing math: 100%

ISLR Home

Linear Regression

Machine Learning: Start with linear regression

“a very simple approach for supervised learning”

“widely used statistical learning method”

House Prices

Square feet | Price

y=Mx+b

Written as y=β0+β1x

y is called response or target x predictor

Once we know betas we can predict value of response

Minimize the total error from each point to our line.

Bend the line to fit better

Square feet | # bedrooms | Price

cs229 Example

Simple Linear one variable

“We typically assume that the error term is independent of X.”

Multiple Linear Regression

p71

We usually have more than one predictor.

Y=β0+β1X1++βpXp+ϵ

Estimating the Coefficients

p72

ˆy=ˆβ0+β1X1++βpXp+ϵ

RSS =

Choose β to βp that minimizes RSS p73