Question: In this problem, your task is to evaluate the performance of two Logistic - Regression models ( M 1 and M 2 ) for a

In this problem, your task is to evaluate the performance of two Logistic-Regression models (M1
and M2) for a binary classification problem. The attributes in the test set you have chosen are
represented by X. Table 1 shows the output (P(+|M1) and P(+|M2)) of the models, which represent
the posterior probabilities for the positive class. As this is a binary classification problem, P()=
1 P(+) and P(| X)=1 P(+| X).
Instance True Class P (+| X, M1) P (+| X, M2)
1+0.780.61
2+0.620.08
3-0.440.62
4-0.550.39
5+0.610.48
6+0.470.09
7-0.070.38
8-0.140.09
9+0.480.06
10-0.320.01
Table 1: Output of two models
(1) For the two models M1 and M2, suppose you choose the decision threshold to be \tau =0.5. In
other words, any test instances whose output of the model is greater than \tau will be classified as a
positive example. Write down the confusion matrix and calculate the precision, recall and accuracy
of the two models respectively.
(2) Plot the ROC for both M1 and M2, and calculate their AUC. Which model performs better
based on the AUC value? (Hint: In this scenario, the ROC is a step line.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!