Question: Given the admission dataset, implement the following tasks in Python. ( a ) Consider admit and notdmit samples only. Assume data follow a joint normal

Given the admission dataset, implement the following tasks in Python.
(a) Consider admit and notdmit samples only. Assume data follow a joint normal distribution. Build a Bayes classifier and evaluate its performance using a 5-fold cross validation approach. You will need to randomly split the dataset into 5 subsets. 4 subsets are used for training your classifier and the remaining 1 subset is used for testing purpose. Repeat training and testing for all combinations of subsets. Construct confusion matrices and then calculate accuracies for both training and
testing datasets. You can set a cut-off =0.5 if needed.
(b) Consider admit and notdmit samples only. Build a KNN classifier and evaluate its
performance using a 5-fold cross validation approach. You will need to randomly split the dataset into 5 subsets. 4 subsets are used for training your classifier and the remaining 1 subset is used for testing purpose. Repeat training and testing for all combinations of subsets. Construct confusion matrices and then calculate accuracies for both training and testing datasets. Specify k and distance measurement on your own.
(c) Standardize (or rescale) both datasets and redo parts (a) and (b).
 Given the admission dataset, implement the following tasks in Python. (a)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!