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. Based on the output above, which predictor would you drop first in a backwards elimination feature selection. (intercept) prop_dollar. prop_profit avg_capital_run money

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions