Question
In this example we will consider data form a consumer-to-consumer (C2C) lending market, in which borrowers can post loan listings and lenders can invest in
In this example we will consider data form a consumer-to-consumer (C2C) lending market, in which borrowers can post loan listings and lenders can invest in these loans. From the lenders perspective, it would be useful to get a sense of how likely the loan is to default, given some information on it. Data is available (you can see it in the file "loandatamodified.csv") on approximately 5,500 loans and whether these loans ultimately failed (defaulted) or were current. In addition to this information, we also have data on the following 4 features:
a) The amount of the loan in $
b) The age of the loan in months
c) The borrower rate (the interest rate that the borrower pays the lender)
d) The borrower's credit rating (which is either "good" or "low"). Since this is a categorical feature, we convert it into a dummy (numerical) feature which takes value 1 for low and 0 for good. (Note: the original data has many credit rating categories that range from AA, B, C all the way down to High Risk. For simplicity, I clubbed these ratings into only two categories, either "good" or "low").
A logistic model is trained on this data, with "fail/default" being the positive case and "loan current" being the negative case. The following model is obtained:
- In words, what is the impact on the probability of a loan defaulting/failing, the larger the amount borrowed, all else being equal?
- From the model above, what is the predicted probability that a loan will default if it is for 3000$, has age = 4 months, a borrower rate of 0.12 and the borrower's credit rating is good (Note: this means that the ratinglow feature takes a value of 0 in the model). In answering this question, it is helpful to understand the standard e+ and e[1]notation that you see in the output above as follows: 3.171e-05 = 0.00003171, 3.624e-01 = 0.3624, 1.302e+01 = 13.02 and 7.887e-01 = 0.7887
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