This document applies cross validation to plot the errors of polynomial regression models with different degrees of freedom (df) fit to simulated data. It generates training and test data using a known function with random noise. Models are fit to the training data for df from 1 to 20. The test data is used to calculate errors, which are plotted to show the best model balances complexity and underfitting.
This document applies cross validation to plot the errors of polynomial regression models with different degrees of freedom (df) fit to simulated data. It generates training and test data using a known function with random noise. Models are fit to the training data for df from 1 to 20. The test data is used to calculate errors, which are plotted to show the best model balances complexity and underfitting.
This document applies cross validation to plot the errors of polynomial regression models with different degrees of freedom (df) fit to simulated data. It generates training and test data using a known function with random noise. Models are fit to the training data for df from 1 to 20. The test data is used to calculate errors, which are plotted to show the best model balances complexity and underfitting.