Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Classify Loan Default vs Predict Loss

Easy
Machine LearningRegressionSupervised LearningDecision Trees

Problem

Business Context

FinSure, a consumer lending platform processing ~250K loan applications per quarter, wants to standardize how its risk team chooses between classification and regression models. For each funded loan, the team tracks both whether the borrower defaults within 12 months and the total dollar loss if default occurs.

Dataset

You are given a historical loan dataset and must build two separate supervised learning models on the same feature set:

  1. a classification model to predict whether a loan will default, and
  2. a regression model to predict expected loss amount in dollars.
Feature GroupCountExamples
Applicant demographics6age, employment_length, home_ownership
Credit history8fico_score, delinquencies_2y, revolving_utilization
Loan attributes7loan_amount, interest_rate, term_months, purpose
Income & affordability5annual_income, dti_ratio, verified_income
Behavioral / bureau flags4recent_inquiries, prior_defaults, bankruptcies
  • Size: 180K funded loans, 30 features
  • Targets:
    • default_12m: binary target (1 = default within 12 months, 0 = no default)
    • loss_amount_usd: continuous target, highly right-skewed with many zeros for non-defaulted loans
  • Missing data: 3-12% missing across income verification and bureau fields
  • Target distribution:
    • Default rate: 11.5%
    • Loss amount: median $0, 95th percentile ~$8,700

Success Criteria

A strong solution should clearly explain the difference between classification and regression through model choice, outputs, loss functions, and evaluation metrics. The classification model should achieve ROC-AUC > 0.78 and the regression model should achieve MAE < $1,150 on the holdout set.

Constraints

  • Risk analysts need interpretable outputs and stable feature effects
  • Batch scoring must finish in under 10 minutes for 250K rows
  • The approach should be simple enough to retrain monthly

Deliverables

  1. Train one classification model for default_12m and one regression model for loss_amount_usd
  2. Explain why each target requires a different modeling setup and metric suite
  3. Build preprocessing for mixed numeric/categorical data with missing values
  4. Evaluate both models on a holdout test set and compare against simple baselines
  5. Summarize when the business should use the classification output vs the regression output

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
ChimeClassify Loan Default with Supervised LearningEasyWongaPredict Loan Default for FintechEasyBuild a Loan Default ClassifierEasy