It seems to me, that judging a prediction model by graphing the results is akin to judging a book by its cover. Random forest was used to fit the regression model, which then was used for prediction. The predicted and actual
Wednesday, February 11, 2015 Getting the Data The data source for this project is from: http://groupware.les.inf.puc-rio.br/har. Reading in the training dataset that was downloaded from https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv:
training <- read.csv("pml-training.csv")
attach(training) #attaching data frame to reduce the length of the variable names associated to it.
Preprocessing the Data The first 7 variables in the training data set