• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Work with all your cloud files (Drive, Dropbox, and Slack and Gmail attachments) and documents (Google Docs, Sheets, and Notion) in one place. Try Dokkio (from the makers of PBworks) for free. Now available on the web, Mac, Windows, and as a Chrome extension!



Page history last edited by hoffman.tricia@gmail.com 10 years, 11 months ago



Camp Presentation Materials

Camp Presentation

R Code

Description of Talk





Home Page For the Beginning Data Mining/Machine Learning Class


Install R 

To get started using R you can download it from   http://cran.r-project.org/ 


Complete instructions for downloading R and installing it on eclipse are here:  To run R on Eclipse



Reading Material 

To understand the mathematics behind linear regression check out these slides:  MultivariateLinearRegression.pdf


To understand why you need to normalize the data before the regression: RidgeBiasDiscussion.txt


 PredictionErrorvsModelComplexity This chart is from the Elements of Statistical Learning text book


Ridge Regression Section 3.4.1 on page 61 of the :

"The Elements of Statistical Learning - Data Mining, Inference, and Prediction"  by Trevor Hastie, Robert Tibshirani, and Jerome Friedman.      http://www-stat.stanford.edu/~tibs/ElemStatLearn








Examples to Run 

Here are some examples you might find interesting:

SimpleRegressionExample.R      problem statement  this is a ridiculously simple example

sonar_regress_crossval.R   example using cross-validation

RidgeRegSonarData.R        example of Ridge Regression



Data to Download

Data Required for these programs



Data for Camp Example



Comments (0)

You don't have permission to comment on this page.