Projects

Bias-Variance Playground

Fall 2025CodeLive demo

Train and test RMSE across regularization strength, with the optimal lambda marked

I built this as a learning aid. You change the sample size, feature count, correlation, and noise, and you watch the bias-variance tradeoff change in real time. The goal is to make it clear why regularization matters when high-dimensional regression becomes unstable.

What it does

  • Presets for common cases: comfortable OLS, OLS against Ridge at the edge, underdetermined LASSO, and high correlation.
  • Controls for n, p, regularization strength, model, feature correlation, noise, and random seed.
  • Live charts for error curves, coefficient shrinkage, and predicted against actual values. A warning shows when OLS breaks (p ≥ n).
  • A snapshot panel and CSV export, so you can keep a setup for later analysis.