Cross-validation and Local Regression Lab Peter Fox Data Analytics – ITWS-4600/ITWS-6600/MATP-4450 Group 4 Lab 1, April 5, 2018
Diamonds require(ggplot2) # or load package first data(diamonds) head(diamonds) # look at the data! # ggplot(diamonds, aes(clarity, fill=cut)) + geom_bar() ggplot(diamonds, aes(clarity)) + geom_bar() + facet_wrap(~ cut) ggplot(diamonds) + geom_histogram(aes(x=price)) + geom_vline(xintercept=12000) ggplot(diamonds, aes(clarity)) + geom_freqpoly(aes(group = cut, colour = cut))
Cross-validation - cvTools group4/lab1_cv{1,18}.R – try params
Smoothing/ local … http://cran.r-project.org/doc/contrib/Ricci-refcard-regression.pdf Review this and apply to datasets in labs…
Scripts in the usual place group4/lab1_svmreg*.R group4/lab1_knnreg*.R group4/lab1_loess*.R group4/lab1_pls*.R group4/lab1_lplm*.R group4/lab1_quant*.R group4/lab1_ridge*.R group4/lab1_splines*.R