Use the HeartDesease_DataFile.xls file as training data set and create a decision tree, and a Naïve Bayes Classifier in R that will predict the following records (AKA test data) for Heart
Use the HeartDesease_DataFile.xls file as training data set and create a decision tree, and a Naïve
Bayes Classifier in R that will predict the following records (AKA test data) for Heart Disease. For the
Decision Tree section of this assignment, show your tree in R based on the training data set.
Yes, 95, No, Yes
No, 80, Yes, No
Yes, 95, N0, Yes // professor might mentioned wrong
Yes, 100, Yes, No
Data
ChestPain | Mass | BlockedArteries | GoodBloodCirculation | HeartDisease |
Yes | 87 | Yes | No | Yes |
Yes | 92 | Yes | No | Yes |
Yes | 82 | Yes | No | Yes |
Yes | 98 | Yes | No | Yes |
Yes | 85 | Yes | No | Yes |
Yes | 96 | Yes | No | Yes |
Yes | 80 | Yes | No | Yes |
Yes | 80 | Yes | No | Yes |
Yes | 97 | Yes | No | Yes |
Yes | 80 | Yes | No | Yes |
Yes | 73 | Yes | No | Yes |
Yes | 73 | Yes | No | Yes |
Yes | 79 | Yes | No | Yes |
Yes | 91 | Yes | No | Yes |
Yes | 86 | Yes | Yes | Yes |
Yes | 98 | Yes | Yes | Yes |
Yes | 75 | Yes | Yes | Yes |
Yes | 86 | Yes | Yes | Yes |
Yes | 75 | Yes | Yes | Yes |
Yes | 87 | Yes | Yes | Yes |
Yes | 89 | Yes | Yes | Yes |
Yes | 76 | Yes | Yes | Yes |
Yes | 74 | Yes | Yes | Yes |
Yes | 98 | Yes | Yes | Yes |
Yes | 83 | Yes | Yes | Yes |
Yes | 76 | Yes | Yes | Yes |
Yes | 83 | Yes | Yes | Yes |
Yes | 83 | Yes | Yes | Yes |
Yes | 93 | Yes | Yes | Yes |
Yes | 100 | Yes | Yes | Yes |
Yes | 96 | Yes | Yes | Yes |
Yes | 75 | Yes | Yes | Yes |
Yes | 81 | Yes | Yes | Yes |
Yes | 99 | Yes | Yes | Yes |
Yes | 95 | Yes | Yes | Yes |
Yes | 71 | Yes | Yes | Yes |
Yes | 92 | Yes | Yes | Yes |
Yes | 73 | Yes | Yes | Yes |
Yes | 89 | Yes | Yes | Yes |
Yes | 82 | Yes | Yes | Yes |
Yes | 93 | Yes | No | Yes |
Yes | 85 | Yes | No | Yes |
Yes | 96 | Yes | No | Yes |
Yes | 71 | Yes | No | Yes |
Yes | 97 | Yes | No | Yes |
Yes | 89 | Yes | No | Yes |
Yes | 79 | Yes | No | Yes |
Yes | 86 | Yes | No | Yes |
Yes | 78 | Yes | No | Yes |
Yes | 86 | Yes | No | Yes |
Yes | 93 | Yes | No | Yes |
Yes | 81 | Yes | No | Yes |
Yes | 75 | Yes | No | Yes |
Yes | 100 | Yes | No | Yes |
Yes | 70 | Yes | No | Yes |
Yes | 84 | Yes | No | Yes |
Yes | 87 | Yes | No | Yes |
Yes | 88 | Yes | No | Yes |
Yes | 96 | Yes | No | Yes |
Yes | 89 | Yes | No | Yes |
Yes | 89 | Yes | No | Yes |
Yes | 74 | Yes | No | Yes |
Yes | 97 | Yes | No | Yes |
Yes | 77 | Yes | No | Yes |
Yes | 80 | Yes | No | Yes |
Yes | 71 | Yes | No | Yes |
Yes | 77 | Yes | No | Yes |
Yes | 93 | Yes | No | Yes |
Yes | 71 | Yes | No | Yes |
Yes | 93 | Yes | No | Yes |
Yes | 92 | Yes | No | Yes |
Yes | 98 | Yes | No | Yes |
Yes | 84 | Yes | No | Yes |
Yes | 85 | Yes | No | Yes |
Yes | 87 | Yes | No | Yes |
Yes | 95 | Yes | No | Yes |
Yes | 99 | Yes | No | Yes |
Yes | 79 | Yes | No | Yes |
Yes | 73 | Yes | No | Yes |
Yes | 72 | Yes | No | Yes |
Yes | 72 | Yes | No | Yes |
Yes | 93 | Yes | No | Yes |
Yes | 90 | Yes | No | Yes |
Yes | 82 | Yes | No | Yes |
Yes | 81 | Yes | No | Yes |
Yes | 72 | Yes | No | Yes |
Yes | 98 | Yes | No | Yes |
Yes | 84 | Yes | No | Yes |
Yes | 98 | Yes | No | Yes |
Yes | 97 | Yes | No | Yes |
Yes | 89 | Yes | No | Yes |
Yes | 85 | Yes | No | Yes |
Yes | 77 | No | No | Yes |
Yes | 94 | No | No | Yes |
Yes | 77 | No | No | Yes |
Yes | 83 | No | No | Yes |
Yes | 79 | No | No | Yes |
Yes | 74 | No | No | Yes |
Yes | 84 | No | No | Yes |
Yes | 97 | No | No | Yes |
Yes | 71 | No | No | Yes |
Yes | 88 | No | No | Yes |
Yes | 84 | No | No | Yes |
Yes | 99 | No | No | Yes |
Yes | 70 | No | No | Yes |
Yes | 61 | Yes | Yes | No |
Yes | 89 | Yes | Yes | No |
Yes | 88 | Yes | Yes | No |
Yes | 81 | Yes | Yes | No |
Yes | 60 | Yes | Yes | No |
Yes | 70 | Yes | Yes | No |
Yes | 69 | Yes | Yes | No |
Yes | 67 | Yes | Yes | No |
Yes | 99 | Yes | Yes | No |
Yes | 84 | Yes | Yes | No |
Yes | 82 | Yes | Yes | No |
Yes | 73 | Yes | Yes | No |
Yes | 75 | Yes | Yes | No |
Yes | 65 | Yes | Yes | No |
Yes | 73 | Yes | Yes | No |
Yes | 81 | Yes | Yes | No |
Yes | 70 | Yes | Yes | No |
Yes | 82 | Yes | Yes | No |
Yes | 96 | Yes | Yes | No |
Yes | 87 | Yes | Yes | No |
Yes | 82 | Yes | Yes | No |
Yes | 88 | Yes | Yes | No |
Yes | 92 | Yes | Yes | No |
Yes | 75 | Yes | Yes | No |
Yes | 61 | Yes | Yes | No |
Yes | 77 | Yes | Yes | No |
Yes | 68 | Yes | Yes | No |
Yes | 72 | Yes | Yes | No |
Yes | 84 | Yes | Yes | No |
Yes | 66 | Yes | Yes | No |