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. How can we tune our logistic regression model predictions to increase or decrease the false positive rate and false negative rate? Describe how this could be implemented with reference to the problem of identifying spam email messages

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago