Sample loan data
Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.
What is in it
Each row is one fictional personal-loan application in 2024: age, income, years employed, credit score, purpose, amount, term and debt-to-income ratio. Approval follows one fixed made-up rule (credit score and debt-to-income), and approved loans carry a rate and a standard amortized monthly payment you can check with PMT.
More practice tables like this one: all 14 newer sample datasets.
First rows
point at a column to light it up
| application_idtext | application_datedate | agenumber | annual_incomenumber | employment_yearsnumber | credit_scorenumber | loan_purposetext | loan_amountnumber | term_monthsnumber | debt_to_incomenumber | approvedyes/no | interest_ratenumber | monthly_paymentnumber |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LA70001 | 2024-04-16 | 21 | 72500 | 1 | 733 | Medical | 18500 | 60 | 0.311 | TRUE | 0.111 | 403.16 |
| LA70002 | 2024-05-03 | 47 | 31000 | 1 | 671 | Business | 15200 | 36 | 0.351 | FALSE | ||
| LA70003 | 2024-04-06 | 36 | 57000 | 5 | 687 | Car | 34200 | 36 | 0.31 | TRUE | 0.1124 | 1123.56 |
| LA70004 | 2024-06-25 | 27 | 114500 | 5 | 789 | Home improvement | 9500 | 36 | 0.09 | TRUE | 0.0827 | 298.88 |
| LA70005 | 2024-04-11 | 28 | 119500 | 6 | 760 | Debt consolidation | 27300 | 36 | 0.298 | TRUE | 0.0912 | 869.66 |
| LA70006 | 2024-06-27 | 42 | 104000 | 6 | 716 | Car | 27600 | 36 | 0.381 | TRUE | 0.104 | 895.77 |
| LA70007 | 2024-07-16 | 24 | 66000 | 4 | 752 | Debt consolidation | 20400 | 60 | 0.189 | TRUE | 0.1055 | 438.98 |
| LA70008 | 2024-07-03 | 27 | 72000 | 3 | 768 | Medical | 29300 | 60 | 0.338 | TRUE | 0.1009 | 623.84 |
| LA70009 | 2024-08-28 | 48 | 64500 | 5 | 653 | Car | 18800 | 36 | 0.371 | FALSE | ||
| LA70010 | 2024-08-29 | 27 | 82500 | 7 | 839 | Home improvement | 13100 | 36 | 0.335 | TRUE | 0.0682 | 403.41 |
Approval rate by loan purpose
% approved, 1,000-row file
Show as a table
| loan_purpose | value |
|---|---|
| Wedding | 72.4 |
| Home improvement | 69.7 |
| Other | 67.6 |
| Debt consolidation | 67.1 |
| Car | 64.8 |
| Medical | 64.2 |
| Business | 63.3 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| application_id | text | Application number |
| application_date | date | Applied (2024) |
| age | integer | Applicant age |
| annual_income | integer | Stated income (USD, fictional) |
| employment_years | integer | Years with current employer |
| credit_score | integer | 300-850 |
| loan_purpose | text | Reason for the loan |
| loan_amount | integer | Amount requested (USD) |
| term_months | integer | 36 or 60 |
| debt_to_income | decimal | Existing monthly debt / monthly income |
| approved | boolean | Approved (TRUE/FALSE); a fixed fictional rule, not a real lender's |
| interest_rate | decimal | Annual rate if approved, blank if not |
| monthly_payment | decimal | Standard amortized payment if approved, blank if not |
Practice questions
answers checked in SQL and in Python
What share of applications were approved?
66.8%
Excel
=COUNTIF(K:K,TRUE)/1000SQL
SELECT ROUND(100.0*SUM(approved)/COUNT(*),1) FROM loan_applicationsFile: loan-applications-1000
Average credit score of approved and declined applicants?
approved TRUE: 718.8; approved FALSE: 622.5
SQL
SELECT CASE WHEN approved THEN 'TRUE' ELSE 'FALSE' END AS ok, ROUND(AVG(credit_score),1) AS cs FROM loan_applications GROUP BY ok ORDER BY cs DESC, okFile: loan-applications-1000
Total amount approved by loan purpose?
Debt consolidation $4,151,500; Car $1,688,100; Home improvement $1,662,900; Other $1,269,700; Medical $787,600; Business $781,500; Wedding $390,400
SQL
SELECT loan_purpose, SUM(loan_amount) AS amt FROM loan_applications WHERE approved GROUP BY loan_purpose ORDER BY amt DESC, loan_purposeCheck one monthly_payment with Excel: =PMT(interest_rate/12, term_months, -loan_amount).
File: loan-applications-1000