What are we minimizing with Ridge Regression?
What are we minimizing with Ridge Regression?
RSS+λp∑j=1β2j
What are we minimizing with Ridge Regression?
RSS+λp∑j=1β2j
What is the resulting estimate for ^βridge?
What are we minimizing with Ridge Regression?
RSS+λp∑j=1β2j
What is the resulting estimate for ^βridge?
^βridge=(XTX+λI)−1XTy
What are we minimizing with Ridge Regression?
RSS+λp∑j=1β2j
What is the resulting estimate for ^βridge?
^βridge=(XTX+λI)−1XTy
Why is this useful?
05:00
Derive the
βridge values
Practice deriving the β coefficients by minimizing RSS+λ∑pj=1β2j. Be sure you understand what each step is doing.
(Don't remember how do to that? Check out Slide #8 from the Ridge Regression lecture)
(Don't remember how do to that? Check out Slide #8 from the Ridge Regression lecture)
(Don't remember how do to that? Check out Slide #10 from the Ridge Regression lecture)
(Don't remember how do to that? Check out Slide #8 from the Ridge Regression lecture)
(Don't remember how do to that? Check out Slide #10 from the Ridge Regression lecture)
(Don't remember how do to that? Check out Slide #17 from the Ridge Regression lecture)
How is λ determined?
RSS+λp∑j=1β2j
How is λ determined?
RSS+λp∑j=1β2j
What is the bias-variance trade-off?
RSS+λp∑j=1|βj|
RSS+λ1p∑j=1β2j+λ2p∑j=1|βj|
RSS+λ1p∑j=1β2j+λ2p∑j=1|βj|
When will this be equivalent to Ridge Regression?
RSS+λ1p∑j=1β2j+λ2p∑j=1|βj|
When will this be equivalent to Lasso?
03:00
Polynomial Regression
pop=β0+β1age+β2age2+β3age3+ϵ
Using the information below, write out the equation to predict change in population from a change in age from the 25th percentile (24.5) to a 75th percentile (73.5).
term | estimate | std.error | statistic | p.value |
---|---|---|---|---|
(Intercept) | 1807.8528 | 56.1241 | 32.2117 | 0.0000 |
age | -39.6783 | 4.9849 | -7.9596 | 0.0000 |
I(age^2) | 0.2064 | 0.1185 | 1.7414 | 0.0849 |
I(age^3) | 0.0001 | 0.0008 | 0.1869 | 0.8522 |
03:00
Nonlinear models
What is the difference between:
A model predicting mpg
from horsepower
and weight
.
mpg=β0+β1horsepower+β2weight+ϵ
A model predicting mpg
from horsepower
and weight
.
mpg=β0+β1horsepower+β2weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
A model predicting mpg
from horsepower
and weight
.
mpg=β0+β1horsepower+β2weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
A model predicting mpg
from horsepower
and weight
.
mpg=β0+β1horsepower+β2horsepower2+β3weight+ϵ
A model predicting mpg
from horsepower
and weight
.
mpg=β0+β1horsepower+β2horsepower2+β3weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
A model predicting mpg
from horsepower
and weight
.
mpg=β0+β1horsepower+β2horsepower2+β3weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
A model predicting mpg
from horsepower
and weight
.
cubic spline with 3 knots
mpg=β0+β1horsepower+β2horsepower2+β3horsepower3+β4b4(horsepower)+β5b5(horsepower)+β6b6(horsepower)+β7weight+ϵ
A model predicting mpg
from horsepower
and weight
.
cubic spline with 3 knots
mpg=β0+β1horsepower+β2horsepower2+β3horsepower3+β4b4(horsepower)+β5b5(horsepower)+β6b6(horsepower)+β7weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
A model predicting mpg
from horsepower
and weight
.
cubic spline with 3 knots
mpg=β0+β1horsepower+β2horsepower2+β3horsepower3+β4b4(horsepower)+β5b5(horsepower)+β6b6(horsepower)+β7weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
A model predicting mpg
from horsepower
and weight
.
cubic spline with 3 knots
mpg=β0+β1horsepower+β2horsepower2+β3horsepower3+β4b4(horsepower)+β5b5(horsepower)+β6b6(horsepower)+β7weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
Don't remember what those bi() are? Review Non-linear Slide #17
A model predicting mpg
from horsepower
and weight
.
natural cubic spline with 3 knots
mpg=β0+β1horsepower+β2r2(horsepower)+β3r3(horsepower)+β4weight+ϵ
A model predicting mpg
from horsepower
and weight
.
natural cubic spline with 3 knots
mpg=β0+β1horsepower+β2r2(horsepower)+β3r3(horsepower)+β4weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
A model predicting mpg
from horsepower
and weight
.
natural cubic spline with 3 knots
mpg=β0+β1horsepower+β2r2(horsepower)+β3r3(horsepower)+β4weight+ϵ
How many degrees of freedom are used for the horsepower
variable?
What are we minimizing with Ridge Regression?
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |