SOLUTION::
A)probability classifier(solution provided in R)
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:
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)
data = data.frame(chol_level,heart_level,y)
model = glm(y~chol_level+heart_level)
summary(model)
Please use the bayes rule below to derive the probabilistic classifier. Do not create a python co...