Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We have a dataset containing 180 email messages. 90 of the email messages were identified as spam and 90 were identified as not spam. Fout

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
We have a dataset containing 180 email messages. 90 of the email messages were identified as spam and 90 were identified as not spam. Fout features were selected for the task of building a classification model to identify if an email was spam (positive class) or not (negative class). A tabhe explaining the features and some R output is shown below. spaindat = spandat $>.8 mutate(preds = predict( (glm1, type = "response") \%sx round()) im = caret: ; confusionMatrix(data i= factor(spandatSpreds). reference = factor (spandatsis_spam), positive = "1.1) spandat = spandot 10x mutate(preds = predict(glm1, type = "response") os round()) cm = caret:: confusionMatrix(data = factor(spandatspreds), reference = factor ( spomdatsis, 5pam), cmstable positive = "1") Using the confusion matrix output and noting that the positive class is the presence of spam (coded as 1). calculate the following performance me For each, report your answer to 2 decimal places. In the context of identifying spam email messages, which performance metric do you think is most important: overall accuracy, false positiver false negative rate? Why

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

What are the steps in preparing a bank reconciliation?

Answered: 1 week ago