Question: Task 2 : Import Train . csv into your Jupyter notebook. 2 . 1 Check the total number of observations and print a few records.
Task :
Import Traincsv into your Jupyter notebook.
Check the total number of observations and print a few records. Please note that the variable conversion in the raw data. Hint: Convert the relevant variables such as payment variables, PayPay and customer related variables demographic to categorical variables as appropriate.
Fit a logistic regression after making the dataset balanced. Hint: Use class weight parameter.
Remove the variables that would cause multicollinearity. Explicitly state the variables that you are dropping in a markdown cell in your Jupyter notebook. Hint: To remove a variable, use the drop function.
Import Testcsv into your Jupyter notebook.
Test the model on the test dataset. Please note that the variable conversion in the raw data. Hint: Convert the relevant variables such as payment variables, PayPay and customer related variables demographic to categorical variables as appropriate.
Plot the confusion matrix.
Provide your insights on accuracy, precision and F Score in a markdown cell in your Jupyter notebook.
ID A numerical value assigned to each credit card customer
LIMITBAL The remaining credit a customer can use
SEX male ; female
EDUCATION graduate school ; university ; high school ; others ; unknown ; unknown
MARRIAGE unknown married single others
AGE A customers age in years
PAY Repayment status in September : or less: Paid duly ; or greater payment was delayed
PAY Repayment status in August or less: Paid duly ; or greater payment was delayed
PAY Repayment status in July or less: Paid duly ; or greater payment was delayed
PAY Repayment status in June or less: Paid duly ; or greater payment was delayed
PAY Repayment status in May or less: Paid duly ; or greater payment was delayed
PAY Repayment status in April or less: Paid duly ; or greater payment was delayed
BILLAMT The amount in the bill statement for September in NT dollar
BILLAMT The amount in the bill statement for August in NT dollar
BILLAMT The amount in the bill statement for July in NT dollar
BILLAMT The amount in the bill statement for June in NT dollar
BILLAMT The amount in the bill statement for May in NT dollar
BILLAMT The amount in the bill statement for April in NT dollar
PAYAMT The amount paid in NT dollar in September
PAYAMT The amount paid in NT dollar in August
PAYAMT The amount paid in NT dollar in July
PAYAMT The amount paid in NT dollar in June
PAYAMT The amount paid in NT dollar in May
PAYAMT The amount paid in NT dollar in April
Default Shows customers who defaulted on their payments on the following month: yes no
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
