✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Create a variable called predicted_fraud which equals "No" if the model’s predictions are less than or equal to 0.4, and "Yes" if the model’s predictions are greater than 0.4. How many cases of fraud were predicted?
HINT: First use the predict() function to calculate the predicted probability of fraud using your model in Part B. Then use the rep() function and conditional statement similarly to the previous question.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!