Docsity

Classification on Applied Multivariate Statistics - Homework 10 | STAT 5600, Assignments of Descriptive statistics

Toggle sidebar
bg1
Stat 5600 โ€” Applied Multivariate Statistics
Homework 10
Classification
Due Thursday, April 27
The DEPRESSION dataset contains five answers to questions about everyday function-
ality, and a categorical health variable for 30 healthy patients and 15 depressed ones. (More
information may be found in question 12.7 in your book.) Use read.table to pull this into
R, and the factor command to make the health variable a proper factor. Use this data to
answer the following questions.
1. Construct the linear discriminant analysis classifier for this dataset. Use cross-validation
to estimate the error rate for your classifier. What questions are most useful for cat-
egorizing the two groups?
2. Use rpart to construct a classification tree for this data. Examine your tree and error
rates. What questions does the tree use to conduct its classification?
3. Use randomForest to construct a random forest classifier for this data. What are the
out-of-bag error rates for your classifier? What questions have highest importance for
the classifier?
4. Discuss your conclusions for this dataset. Which questions seem to be most useful
overall for identifying depressed patients? Which model would you choose to use to
make predictions on future patients? Why?

Partial preview of the text

Download Classification on Applied Multivariate Statistics - Homework 10 | STAT 5600 and more Assignments Descriptive statistics in PDF only on Docsity!

Stat 5600 โ€” Applied Multivariate Statistics Homework 10 Classification Due Thursday, April 27

The DEPRESSION dataset contains five answers to questions about everyday function- ality, and a categorical health variable for 30 healthy patients and 15 depressed ones. (More information may be found in question 12.7 in your book.) Use read.table to pull this into R, and the factor command to make the health variable a proper factor. Use this data to answer the following questions.

  1. Construct the linear discriminant analysis classifier for this dataset. Use cross-validation to estimate the error rate for your classifier. What questions are most useful for cat- egorizing the two groups?
  2. Use rpart to construct a classification tree for this data. Examine your tree and error rates. What questions does the tree use to conduct its classification?
  3. Use randomForest to construct a random forest classifier for this data. What are the out-of-bag error rates for your classifier? What questions have highest importance for the classifier?
  4. Discuss your conclusions for this dataset. Which questions seem to be most useful overall for identifying depressed patients? Which model would you choose to use to make predictions on future patients? Why?