Introml sp24 Lec2
Introml sp24 Lec2
edu/
Shen Shen
Feb 9, 2024
~ ⊤ ~ −1 ~ ⊤ ~ ~ ~
θ = (X X ) X Y is not well-defined if (X ⊤ X ) is not invertible
∗
~ ~
Indeed, it's possible that(X ⊤ X ) is not
invertible.
~⊤ ~
In particular,(X X ) is not invertible if
~
and only if X is not full column rank
~ ⊤ ~ −1 ~ ⊤ ~
θ = (X X ) X Y
is not well-
Now, the catch: ∗
defined
~
if X is not full column rank
Recall
~
indeed X is not full column rank
1. if n<d
~
2. if columns (features) in X have linear
dependency
1. if n<d (i.e. not enough data)
Recap: ~
2. if columns (features) in X have linear
dependency (i.e., so-called co-linearity)
~ ⊤ ~ −1 ~ ⊤ ~
θ = (X X ) X Y
∗
is not defined
🥺 🥰
Ridge Regression Regularization
Ridge Regression Regularization
Ridge Regression Regularization
λ is a hyper-parameter
Outline
Recap of last (content) week.
Ordinary least-square regression
Analytical solution (when exists)
Cases when analytical solutions don't exist
Practically, visually, mathemtically
Regularization
Hyper-parameter, cross-validation
Cross-validation
Cross-validation
Cross-validation
…
Cross-validation
Cross-validation
Cross-validation
Cross-validation
Cross-validation
Comments about cross-validation
Thanks!