Question: You have developed a program to filter out spam emails. What it does is to give each email inyour inbox a score. The higher the

You have developed a program to filter out spam emails. What it does is to give each email inyour inbox a score. The higher the score is, the more likely the email is a spam according to yourprogram. After running this program for a little while, you decided to check upon it. Youinvestigated IO emails. Five of them are truly spams. Their scores are 0.5,0.7,0.3,0.72,0.9. Theother five are emails from your professors, your parents, and your friends, with scores 0.1,0.75,0.6,0.4,0.2.(I) Draw the ROC curve for your program, considering the spam samples as positive class andnon-spam samples as negative class).
(2) Suppose, you tried to use 0.55 as the threshold value, i.e., an email is predicted to be spam ifits score >0.55. What is the precision, recall, and F-measure of your program under thisthreshold?

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 Programming Questions!