Question: Return to the original test data partition. Note that this test data partition includes both purchasers and nonpurchasers. Create a new data frame called Score

Return to the original test data partition. Note that this test data partition includes both purchasers and nonpurchasers. Create a new data frame called Score Analysis that contains the test data portion of this dataset.

a. Add a column to the data frame with the predicted scores from the logistic regression.

b. Add another column with the predicted spending amount from the prediction model chosen.

c. Add a column for “adjusted probability of purchase” by multiplying

“predicted probability of purchase” by 0.107. This is to adjust for oversampling the purchasers (see earlier description).

d. Add a column for expected spending: adjusted probability of purchase

× predicted spending.

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 Business Analytics Data Questions!