Lead Quality and Default Prediction for a US Online Lender
Underwriting Analytics on 2.3M Loan Leads
My Role
- Follow each lead through the whole funnel
- Four feature-selection methods, not just one
- Gradient boosting, compared with RF and logistic
Approach at a Glance
Details- 1Data Preparation
- 2Exploratory Analysis
- 3Feature Analysis and Selection
- 4Default Prediction Model
- 5Pipeline
Executive Summary
A data science engagement for a US online small-loan lender that buys its applicants as leads from lead generators. Every lead costs money twice: once to buy it, and again for the paid checks run during underwriting, such as fraud screening, automated underwriting scores and credit-bureau data. The lender needed to know which leads are worth buying, which checks are worth paying for, and which approved loans are likely to default.
I analysed 2.3 million leads, following each one through the whole funnel: purchase price and source, the underwriting scores and their costs, approval, origination, first-payment default and repayment. From that I delivered three things:
- Feature analysis: which signals actually predict a good loan.
- A predictive model for default.
- An automated pipeline to run the data processing.
The new model predicted defaults 15% better than the client's previous model. The analysis also showed that lead sources differ sharply in quality, that credit-bureau sub-scores are among the strongest signals, and that some paid checks weren't worth their cost. I worked on it as a solo consultant, and the model and pipeline were handed over and run in production.
Client Profile
The client is a US online lender issuing small, short-term loans. It doesn't market to borrowers directly. It buys applications as leads from many lead generators, at different prices, and runs each through an automated underwriting funnel with several paid data providers.
That business model makes three decisions critical, and they were hard to make from the data as it was:
- Which leads to buy: lead sources and price points vary, and a cheap lead that defaults is the most expensive one.
- Which checks to pay for: every underwriting check adds cost per applicant, but not every check adds predictive value.
- Which loans will default: first-payment default is where the losses are, and the existing model left room for improvement.
The data lived in one large, messy export: millions of rows, with scores packed into composite text fields, mixed categorical values and many missing values.
Technical Approach
-
Data Preparation – The 2.3M-row export was cleaned and made model-ready:
- Unpacking scores: credit-bureau sub-scores, stored together in a single text field, were split into separate features.
- Encoding: categorical fields such as lead source, lead-generator price and underwriting outcome were encoded.
- Missing values and scaling: missing values were handled consistently, and features were normalised.
-
Exploratory Analysis – Distributions and Pearson and Spearman correlations across the funnel, from lead price and source through scores to approval, origination, default and pay-off.
-
Feature Analysis and Selection – Several methods were compared, so the conclusions don't depend on a single technique:
- Random Forest feature importance;
- PCA to see how much of the signal a few components capture;
- Lasso regression with cross-validation;
- Recursive feature elimination (RFE).
The results showed which lead sources bring worse loans, that credit-bureau sub-scores are among the strongest predictors, and which paid checks add little for their cost.
-
Default Prediction Model – Gradient boosting was compared with Random Forest and logistic regression, and the best model predicted defaults 15% better than the client's previous model.
-
Pipeline – The data processing was automated with Airflow and packaged in Docker, so the model could be retrained and run on new data.
Business Outcome
The lender got a default model that predicts 15% better than its previous one, running in production through an automated pipeline. It also got clear evidence for its two cost decisions. Lead sources differ in the quality of loans they bring, so lead purchasing can favour the better ones. Some paid underwriting checks add little predictive value, so they can be reconsidered. Both decisions apply to every one of the millions of leads the business processes.
Technologies
Planning something similar?
Tell me about it on a short call. New projects can start within 2 weeks