Professional Documents
Culture Documents
COLLEGE PHYSICS
Chapter # Chapter Title
PowerPoint Image Slideshow
• Variable Selection
• Cross-validation
• Cross-validation Methods
MODEL SELECTION/ VARIABLE SELECTION
• Given the data set with many potential predictors we need to decide
which ones to include in our model and which ones to leave out.
• Statistical algorithms may be used to find the best set of predictors.
Common selection methods are:
• Forward Selection (Automatic procedure)
• Backward Elimination (Automatic procedure)
• Best subset Selection (Automatic procedure)
FORWARD SELECTION
11
12
R-CODE MODEL SELECTION
13
EXERCISE
1. Use Carseats dataset from ISLR and find the best model
2. Use swiss dataset and find the best model