Question: Objective: In this assignment, you will create a logistic regression model to classify transactions as either belonging to a new cardholder or an existing cardholder
Objective: In this assignment, you will create a logistic regression model to classify transactions as either belonging to a "new" cardholder or an "existing" cardholder based on engineered spending behavior features. Youll develop and evaluate your model using several key steps to understand its effectiveness and identify improvements.
Dataset: Credit card fraud detection dataset: ccinfo.csv transactions.csv Instructions:
Feature Engineering Points: Engineer at least three new features that may help differentiate new cardholders from existing ones.
Be creative with your features, but also justify why you believe they would help in classification.
Add comments explaining each feature, why it is relevant, and how it is calculated.
Model Training points
Define the target variable newcardholder for new, for existing
Split the data into training and test sets training, test
Train a logistic regression model on the training set using the engineered features.
Display the model summary, including coefficients and pvalues, and explain what these mean.
Model Evaluation points
Predict on the test set and generate the following evaluation metrics:
Confusion Matrix
Accuracy, Precision, Recall, and F Score Explain what each of these metrics means in the context of the problem.
Model Diagnosis and Improvement points If the model does not perform well ie low accuracy, overunder fitting or imbalanced precisionrecall:
Identify possible reasons for poor performance eg class imbalance, weak features
Apply methods to improve the model eg oversampling, undersampling, or feature selection
Conclusion points Summarize your approach, findings, and any suggestions for further improvement.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
