Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Predict Loan Default with LightGBM

Easy
Machine LearningHyperparameter TuningEnsemble MethodsDecision Trees

Problem

Business Context

LendWise, a digital consumer lending platform processing ~250K loan applications per month, wants a default-risk model to support instant underwriting decisions. You need to design a solution using XGBoost or LightGBM that predicts whether a newly issued loan will become 90+ days delinquent within 12 months.

Dataset

Feature GroupCountExamples
Applicant profile10age, employment_length, annual_income, housing_status
Credit bureau14fico_score, revolving_utilization, open_accounts, prior_delinquencies
Loan attributes8loan_amount, term_months, interest_rate, purpose
Behavioral / banking9avg_monthly_balance, paycheck_volatility, overdraft_count
Application metadata6channel, device_type, state, submission_hour
  • Size: 420K historical loans, 47 features
  • Target: Binary — defaulted within 12 months (1) vs non-default (0)
  • Class balance: 11.4% positive, 88.6% negative
  • Missing data: 18% missing in banking features, 6% in employment fields, and sparse missingness in bureau pulls

Success Criteria

A good solution should achieve ROC-AUC >= 0.84, PR-AUC >= 0.42, and improve approval-quality decisions over the current scorecard baseline while keeping false approvals within policy limits. The model should also provide feature-level explanations for adverse action review.

Constraints

  • Online inference latency must stay below 50 ms per application
  • The risk team needs reasonably interpretable outputs
  • Retraining budget is limited to a weekly batch pipeline
  • The solution must avoid target leakage from post-origination signals

Deliverables

  1. Choose XGBoost or LightGBM and justify the choice for this underwriting problem.
  2. Define preprocessing and feature engineering for mixed numeric/categorical data with missing values.
  3. Propose a train/validation/test strategy that reflects production deployment.
  4. Train and evaluate the model with appropriate metrics and threshold selection.
  5. Explain how you would deploy, monitor, and refresh the model in production.

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Next questions
Build a Loan Default ClassifierEasyPredict Loan Default from ApplicationsEasyEquifaxPredict Loan Default with Logistic RegressionEasy
0 / ~200 words