← 📊 Data Science & Analytics

📊 Regression Lab

Show train / test split
Train RMSE:
Test RMSE:
Fit quality:
FPS:
Drag — rotate · Scroll — zoom

📊 Regression Fit & Overfitting Explorer

A 3D scatter of noisy data points around a hidden true surface, with a polynomial regression fit you can push from too-simple to too-flexible, watching training and test error diverge as it overfits.

🔬 What It Demonstrates

The bias–variance tradeoff at the heart of predictive modeling: low-degree fits underfit real structure, high-degree fits chase noise, and only a middle ground generalizes well from training data to unseen test data.

🎮 How to Use

Pick a true pattern, then drag the complexity slider up and down while watching the fitted surface reshape and the train/test RMSE readouts respond. Increase noise or shrink the sample size to see overfitting appear sooner.

💡 Did You Know?

The same normal-equation least-squares math used here scales up to the linear and polynomial regression models that power real analytics pipelines — the difference is dimensionality, not the underlying idea.