Question: Lets use the census income dataset and apply decision tree and na ve Bayesian methods to predict whether a person s income will exceed $
Lets use the census
income dataset and apply decision tree and nave
Bayesian methods to predict whether a persons income will exceed
$Kyr Some of the attributes available to predict the income are
age,
employment type, education, marital status, work hours per week etc.
Please finish the tasks below:
Please split the dataset as training and test data
Build the Decision Tree on the training data and predict the
response on the test data. Calculate the accuracy and generate the
Confusion Matrix.
Build the Nave Bayesian model on the training data and predict
the response on the test data. Calculate the accuracy and generate
the Confusion Matrix
Compare the two models. Which model is better? And why?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
