⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Model Selection: AIC vs BIC

Statistical learning isn't just about fitting a curve — it's about choosing which curve to trust. This lab generates noisy samples from a hidden polynomial, fits real least-squares polynomials of degree 1 through 10 to them, and computes the Akaike and Bayesian information criteria for every candidate. A live 3D scene shows the inspected fit overlaying the actual data on one side and a bar chart of AIC (orange) and BIC (green) across all ten degrees on the other, each marked at its own minimum. Push the noise up, shrink the sample, or change the true underlying complexity, and watch how the two criteria disagree on how much model complexity is actually justified by the data.