Training and Test Sets
  • Introduction
  • Row-slicing Data Frames
  • Plotting the Training and Test Sets
  • Plotting the Least-Squares Line
  • Calculating the Test MSE
  • Generating a Quadratic Model
  • Calculating the Test MSE for the Quadratic Model
More with the MSE
  • For Loops
  • lm Revisited
  • MSE via a For Loop
  • Visualizing the MSE's
  • Functions of Two Variables
  • For Loop inside a Function
  • Variability of the Test MSE
  • Course Wrap-up