Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using a dataset representing applications for a bank loan, the task will be to build a logistic regression model that can predict whether or not
Using a dataset representing applications for a bank loan, the task will be to build a logistic regression model that can predict whether or
not a loan will be approved.
Useful and Python functions for this assignment are:
For this activity, perform the following:
Load the "applicationrecord.csv located in the topic Resources, into a data frame and perform initial exploratory tasks:
Display representative portions of the data.
Check for missing values and clean the data.
Check for outliers and decide if and how to process them.
Formally state what your model will predict using the variables in the data.
Split the data into a training set and a testing set with a split ratio of :
Build the Predictive Model:
Define the formula for the gim
Run the model.
Interpret the results, referring to the pvalues.
Evaluate the Model Performance:
Compare the predicted versus actual values.
Search for any predictions that differ significantly from the actual values.
Validate the Model:
Produce a Gain and Lift chart and use it to describe the performance of the model.
Measure the Variation Inflation Factor VIF to test for multicollinearity. If changes are necessary to the model based in VIF, state and
implement them.
Has the formula, as defined in the previous section, changed? Why or why not?
If changes to the model occurred, repeat the validation steps on the new model.
Make Predictions:
Demonstrate a few examples of predictions your model can make.
Validate the predictions by calculating the misclassification error.
Interpret the results.
State a few suggestions for improving the model.
RangeIndex: entries, to
Data columns total columns:
# Column NonNull Count Dtype
ID nonnull int
CODEGENDER nonnull object
FLAGOWNCAR nonnull object
FLAGOWNREALTY nonnull object
CNTCHILDREN nonnull int
AMTINCOMETOTAL nonnull float
NAMEINCOMETYPE nonnull object
NAMEEDUCATIONTYPE nonnull object
NAMEFAMILYSTATUS nonnull object
NAMEHOUSINGTYPE nonnull object
DAYSBIRTH nonnull int
DAYSEMPLOYED nonnull int
FLAGMOBIL nonnull int
FLAGWORKPHONE nonnull int
FLAGPHONE nonnull int
FLAGEMAIL nonnull int
OCCUPATIONTYPE nonnull object
CNTFAMMEMBERS nonnull float
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started