Documente Academic
Documente Profesional
Documente Cultură
1 Leave-one-out cross-validation
a play = yes
c Let {.} be the set containing data marked by row number 1,2,3,4 and 5 in assignment sheet:
Model No. Training set Testing set 0R Model errortesting
1 {2,3,4,5} {1} play = yes 0/1 x 100% = 0%
2 {1,3,4,5} {2} play = yes 0/1 x 100% = 0%
3 {1,2,4,5} {3} play = yes 1/1 x 100% = 100%
4 {1,2,3,5} {4} play = yes 0/1 x 100% = 0%
5 {1,2,3,4} {5} play = yes 0/1 x 100% = 0%
g Since resubstitution error rates for 0R and 1R are the same but the leave-one-out cross-validation
error rate of 0R is less than that of 1R, 0R model (play = yes) is chosen as final model.
2 Bootstrapping
d Assumptions: The true error rate is 50% for any prediction rule.
A scheme that memorizes the training set to give a resubstitution score of 100%
exists.
Calculation: (1 - e-1) x 50% + e-1 x 0% = 31.6%