Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Partition the data into training (50 percent), validation (30 percent), and test (20 percent) sets. Use logistic regression to classify observations as undecided (or decided)

Partition the data into training (50 percent), validation (30 percent), and test (20 percent) sets. Use logistic regression to classify observations as undecided (or decided) using Age, HomeOwner, Female, Married, HouseholdSize, Income, and Education as input variables and Undecided as the output variable. Perform an exhaustive-search best subset selection with the number of subsets equal to 2. a. From the generated set of logistic regression models, select one that you believe is a good fit. Express the model as a mathematical equation relating the output variable to the input variables. b. Increases in which variables increase the chance of a voter being undecided? Increases in which variables decrease the chance of a voter being decided? c. Using the default cutoff value of 0.5 for your logistic regression model, what is the overall error rate on the test data? d. Examine the decile-wise lift chart for your model on the test data. What is the first decile lift? Interpret this value.

Undecided Age HomeOwner Female Married HouseholdSize Income Education Church
1 51 1 1 1 4 171.0 15 0
1 37 1 1 1 3 96.0 18 0
1 53 1 1 1 6 86.0 20 0
0 33 1 1 1 2 176.0 18 1
0 46 1 1 1 6 420.0 15 1
1 34 1 1 1 6 109.0 15 0
0 61 1 0 1 3 39.0 20 1
1 55 1 0 1 6 132.0 16 0
0 35 1 1 1 5 92.0 18 1

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

Accounting What the Numbers Mean

Authors: David H. Marshall, Wayne W. McManus, Daniel F. Viele

10th edition

9780077515904, 007802529X, 77515900, 978-0078025297

More Books

Students also viewed these Accounting questions