~/talk

Lasso and Ridge regression models in R: Introduction

Talkat DSC Europe 23 · 2023-11-20..11-24· [data-science, machine-learning]
links:none on file
slides:none on file

Hands-on R demo using the WEF dataset, glmnet and cv.glmnet to show that regularization reduces overfitting: ordinary lm has adjusted R² = 0.182, Ridge shrinks coefficients (goods market efficiency 0.600 → 0.568, market size 0.134 → 0.131) and Lasso can drive some coefficients to zero. Cross-validation picks lambda (cv.glmnet gives lambda.min ≈ 0.066 for Ridge, ≈ 0.0022 for Lasso) and Elastic Net mixes them via Alpha between 0 (Ridge) and 1 (Lasso). Code-level steps and plots for coefficient paths and cv.glmnet finds lambda via cross-validation are provided.

AI-written summary · about

  1. 0:00Lasso and Ridge in R
  2. 1:03Theory of Lasso and Ridge
  3. 24:29Linear regression limits
  4. 36:16Overfitting and regularization
  5. 42:56Ridge regression and Lambda
  6. 1:08:32Ridge regression demo in R
  7. 1:32:57Interpreting regression results
  8. 1:51:37Lasso regression intro
  9. 2:03:52Elastic net and model comparison
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.