Problem 1
Consider the following training dataset with fifteen entries. Each entry has answers to a series of questions that ask if they liked a certain type of food, in which the participant answered (1) for yes or (0) for now. The last column(“midwest?”) is our target column, meaning that once the decision tree is built, this is the classification we are trying to guess, i.e.., if a person is from Midwest.
Create the entire decision tree for this dataset using Information Gain as the attribute selection measure. Make sure that you provide me with the entropy and the information gain for the attributes at each partitioning step and highlight attribute and its value that you chose at each step to partition the dataset like I did in the example that I provided.
Problem 2
Consider the below dataset.
age |
income |
student |
credit_rating |
buys_computer |
<=30 |
high |
no |
fair |
no |
<=30 |
high |
no |
excellent |
no |
31…40 |
high |
no |
fair |
yes |
>40 |
medium |
no |
fair |
yes |
>40 |
low |
yes |
fair |
yes |
>40 |
low |
yes |
excellent |
no |
31…40 |
low |
yes |
excellent |
yes |
<=30 |
medium |
no |
fair |
no |
<=30 |
low |
yes |
fair |
yes |
>40 |
medium |
yes |
fair |
yes |
<=30 |
medium |
yes |
excellent |
yes |
31…40 |
medium |
no |
excellent |
yes |
31…40 |
high |
yes |
fair |
yes |
>40 |
medium |
no |
excellent |
no |
Classify the following data-point using Naïve Bayesian method. Show all relevant calculations similar to the example given in the slide.
X = (age > 40, Income = medium, Student = no, Credit_rating = Fair)
Problem 3
Consider the following confusion matrix
Actual Class Predicted Class |
Cancer = yes |
Cancer = no |
Total |
Cancer = yes |
90 |
210 |
300 |
Cancer = no |
140 |
9560 |
9700 |
Total |
230 |
9770 |
10000 |
Find the following:
a. Accuracy
b. Sensitivity
c. Specificity
d. Precision
e. Recall
f. F1 measure
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more