Penalized Regression Data Generator
Generates sparse high-dimensional data with collinear predictors and controlled sparsity structure.
Investigate penalized regression models, analyze L2 Tikhonov regularization (Ridge) and L1 penalization (Lasso), demonstrate continuous shrinkage versus exact sparse feature selection, and verify regularized coefficient scaling. Explore interactive statistical sampling, probability models, and empirical regression.
Ready to sample with Param λ_eff = 1.0.
Adjust Param λ_eff, then execute statistical trial.
Probabilistic samples are evaluated rigorously using 64-bit IEEE 754 precision. Residuals reflect ordinary least-squares regression across successive observations. Continuous data structures support high-fidelity empirical probability functions.
Ridge regression shrinks all coefficients toward zero, but never sets any coefficient to exactly zero (cannot perform feature selection). The empirical regression of shrinkage response metrics against effective regularization parameter confirms regularized parameter scaling with slope m = 1.0000 and R² = 1.000000.
Generates sparse high-dimensional data with collinear predictors and controlled sparsity structure.
Computes explicit Ridge analytical solution β̂_Ridge = (X^T X + λ I)^(-1) X^T Y via singular value shrinkage.
Implements cyclical coordinate descent with soft-thresholding S(z, λ) = sign(z)(|z| - λ)_+ to produce sparse solutions.
Traces coefficient trajectories across continuous tuning penalty values λ ∈ [10^-3, 10^3].
Performs 10-fold cross-validation to locate the optimal penalty λ_min and 1-SE rule threshold λ_1se.
Performs linear regression of regularized response metric versus penalty to confirm unit slope m = 1.000.
Investigate penalized regression models, analyze L2 Tikhonov regularization (Ridge) and L1 penalization (Lasso), demonstrate continuous shrinkage versus exact sparse feature selection, and verify regularized coefficient scaling. Standardized parameter settings: 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 units.
Set sample size n = 50 and predictor dimension p = 20 on the regularization console. Establish true sparse model with only 4 active non-zero weights.
Generate design matrix X with pairwise predictor correlation r = 0.85, modeling realistic multi-collinear genomic or financial data.
Apply Ridge regularization β̂ = (X^T X + λ I)^(-1) X^T Y for λ = 1.0. Observe that all 20 coefficients shrink toward zero but none become exactly zero.
Apply Lasso coordinate descent. Observe that L1 penalty drives the 16 inactive noise coefficients to exactly zero, performing automated variable selection.
Increment the effective regularization parameter across standardized steps k ∈ {1.0, 2.0, 3.0, 4.0, 5.0, 6.0}, recording the shrinkage response metric.
Fit a linear regression model y = mx to coordinate pairs (x = k, y = β_reg). Confirm that empirical slope m = 1.0000 validates regularized parameter scaling.
Points are your recorded observations. The solid regression line validates Ridge & Lasso Regularization mathematical scaling.
| # | Effective Regularization Parameter λ_eff (units) | Shrinkage Response Metric β_reg (Metric β_reg) | Effective Regularization Parameter λ_eff | Shrinkage Response Metric β_reg | Remove |
|---|
No readings yet. Execute a statistical trial and record it.