Feature Selection & Parsimony Analysis
Compare 5 Machine Learning Feature Selection Algorithms (Lasso, Forward SFS, RFE, ElasticNet, Exhaustive Search) against Baseline OLS. Explore the bias-variance tradeoff across feature counts $k=1 \dots 5$, pinpointing the 2-feature optimal sweet spot and the 5-feature overfitting cliff.
50 Startups Dataset
5 Selection Methods
Global Sweet Spot: k=2 ($8,198.80 RMSE)
Overfitting Warning: k=5 ($9,137.99 RMSE)
1. Select Feature Selection Algorithm
2. Number of Features (k = 1 to 5)
Test RMSE
Optimal
$8,198.80
Lower is better (Best across methods)
R² Score
94.7% Fit
0.9474
Explains 94.74% of profit variance
Adjusted R²
0.9324
Penalizes redundant parameters
Mean Absolute Error
$6,488.75
Average prediction error ($)
F-Statistic
p < 0.0001
347.8
Model is highly statistically significant
Active Predictors (2):
R&D Spend
Marketing Spend
Occam's Razor: 2-feature model minimizes out-of-sample error.
Fitted OLS Regression Equation
Profit = 44,050.85 + 0.825 × (R&D Spend) + 0.024 × (Marketing Spend)
| Predictor |
Estimate (β) |
Std. Error |
t-Stat |
p-Value |
95% Conf. Int |
VIF |
Predicted Startup Profit
$130,154.20
Calculated using: β₀ + β₁(R&D) + β₂(Marketing)
| Rank |
Sample ID |
Actual Profit |
Predicted Profit |
Residual ($) |
Abs Error |
% Error |
Diagnostic Status |