Skip to content

Conversation

@LittleGreenPig
Copy link

Yi Yang

mean(M2$certified!=M2$predict2)
```

### According to the table, the pruned tree does a better job in making predictions about the the students in the second data set than the original tree. The pruned tree has a lower error rate (0.4637). However, both of the trees have high error rates thus the model is not ideal for our data. Thus we might need to modify the model by including other variables.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! What is the error rate of the original tree?


### The first model uses raw variables (SAT total score and high school GPA) to predict the outcome variable (gender), while the second model features an extract variable from the data (ACT total score) instead of SAT.

### Model 1 has a slightly lower error rate comparing to Model 2, which indicates that SAT total score has higher accuracy of predicting the student's gender than ACT total score. However, both of the trees have high error rates thus the model is not ideal for our data. Thus we might need to modify the model by taking other variables into consideration.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the error rates of the models?

### The first model uses raw variables (SAT total score and high school GPA) to predict the outcome variable (gender), while the second model features an extract variable from the data (ACT total score) instead of SAT.

### Model 1 has a slightly lower error rate comparing to Model 2, which indicates that SAT total score has higher accuracy of predicting the student's gender than ACT total score. However, both of the trees have high error rates thus the model is not ideal for our data. Thus we might need to modify the model by taking other variables into consideration.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Keep up the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants