Question
please use the bayes rule below to derive the probabilistic classifier. Do not create a python code, use figures i.e show how to derive the classifier by Input the values into the equation and calculate


The following is an extended version of the example given in the class. Two groups of persons, Healthy and No-Healthy (encode
Construct the possibility classifier using Bayes Rule. p(xnewlc)p(c) p(c Xnew Use MLE to estimate μc and Lc. new Hc newl CFC)
The following is an extended version of the example given in the class. Two groups of persons, Healthy and No-Healthy (encoded as 0 and 1, respectively) are under study. Each person is represented by cholesterol level and heart beat rate. The following is the training set: D (, 0), (, 0), (, 0), (, 1), (, 1), (, 1)], where (, 0) means the person has cholesterol level and heart beat rate 3.4 and 70, respectively, and is in class 0. The other examples are interpreted similarly. Answer the following questions a. Give the probabilistic classifier b. Predict the health status for a person with cholesterol level 4.8 and heart beat rate 87.
Construct the possibility classifier using Bayes Rule. p(xnewlc)p(c) p(c Xnew Use MLE to estimate μc and Lc. new Hc newl CFC)- (27t)2/2|S 11/2 7lc 7l Note: both μc and are 2D vectors, and is a 2x2 co-variance matrix. eaise Ve
0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION::

A)probability classifier(solution provided in R)

call: g1(formula - y chol.level heart level) Deviance Residuals 0.13684 0.27193 -0. 36890-0.06707 0.31930 0.11492 0.13684 coe

so probability Ea => Y=-4.179-0.53 X1+0.084 X2

where, X1 is cholesterol level

X2 is heartbeat rate

b) predict the health status for a person

cholesterol level=48

heartbeat rate= 87

based on the above model:

Y=-4.179 -0.53704 * cholesterol level + 0.084*heartbeat rate

Y= -4.179 -0.53704 * 48+ 0.084*87

Y=0.53648

based on this status for a person=1   

Solution in R:

  • Variables

chol_level = c(3.4, 4.2,4.8,3.5,5.0,5.4,3.4)
heart_level = c(70,80,85,85,90,95,70)
y = c(0,0,0,1,1,1,0)

  • Dataframe

data = data.frame(chol_level,heart_level,y)

  • Logistic regression model

model = glm(y~chol_level+heart_level)
summary(model)

Add a comment
Know the answer?
Add Answer to:
Please use the bayes rule below to derive the probabilistic classifier. Do not create a python co...
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