(Solved): (e) Use 'Grad.Rate' as predictor and 'Apps' as response. Fit natural cubic spline to the training da ...
(e) Use 'Grad.Rate' as predictor and 'Apps' as response. Fit natural cubic spline to the training data and use it to predict the response on the test data. Plot scatter plot and the fitted regression line. Report the test error.