Question

The following table provides a set of training data that contains 10 observations, 2 characteristics and a qualitative r...

The following table provides a set of training data that contains 10 observations, 2 characteristics and a qualitative response variable that tells us if the patient should be classified as sick and go immediately to emergency.

Observation X1 X2 Y
1 4 1 Healthy
2 1 0 Healthy
3 2 4 Sick
4 3 2 Healthy
5 1 2 Sick
6 2 5 Sick
7 4 3 Healthy
8 3 4 Sick
9 2 3 Sick
10 6 2 Healthy

.Suppose we want to create an automatic predictor using a linear classifier for this data set. Using your classifier give the prediction for :

a. X 1 = 3 and X 2 = 4

b. X 1 = 4 and X 2 = 5

c. X 1 = 2 and X 2 = 2

d. What problem could be found with this linear classifier?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

data stored in Book1.csv file below where yellow onces are the train observations and green are the prediction parts

X1 X2 1 Healthy 4Sick 2Healthy 2 Healthy 4 Predict 12 5 Predict 2 Predict 15

Created the proper dataset above

Now done the analysis below in R

> library(e1071) > datal-read. csv(Book1.csv) > datal$x1-as.factor (datal$x1) > datal$x2-as.factor (datal$x2) > datal$Y-as.

data prepared above. Now algo predict below

> reg1-naiveBayes (Y-. ,data-train) > regl Naive Bayes classifier for Discrete Predictors Call: naiveBayes.default(x-X, y-Y,

The predicted values are sick,Healty and sick respectively for a , b and c

d)The only problem we can find in the above naive bayes linear classifier is if we have an unknown level of X1 or X2 we will not be able to classify as this is bayesian method where in the train set we don't have that particular value

Hope the above answer has helped you in understanding the problem. Please upvote the ans if it has really helped you. Good Luck!!

Add a comment
Know the answer?
Add Answer to:
The following table provides a set of training data that contains 10 observations, 2 characteristics and a qualitative r...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT