Datasets:
interest_rate float64 5.31 30.9 | grade stringclasses 7
values | annual_income float64 3k 300k | debt_to_income float64 0 58.6 | emp_length float64 0 10 | loan_amount int64 1k 40k | term int64 36 60 | homeownership stringclasses 3
values | verified_income stringclasses 3
values | loan_purpose stringclasses 12
values | inquiries_last_12m int64 0 29 | total_credit_limit int64 0 3.39M | total_credit_utilized int64 0 942k | total_debit_limit int64 0 387k | account_never_delinq_percent float64 14.3 100 | public_record_bankrupt int64 0 3 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14.07 | C | 90,000 | 18.01 | 3 | 28,000 | 60 | MORTGAGE | Verified | moving | 6 | 70,795 | 38,767 | 11,100 | 92.9 | 0 |
12.61 | C | 40,000 | 5.04 | 10 | 5,000 | 36 | RENT | Not Verified | debt_consolidation | 1 | 28,800 | 4,321 | 16,500 | 100 | 1 |
17.09 | D | 40,000 | 21.15 | 3 | 2,000 | 36 | RENT | Source Verified | other | 4 | 24,193 | 16,000 | 4,300 | 93.5 | 0 |
6.72 | A | 30,000 | 10.16 | 1 | 21,600 | 36 | RENT | Not Verified | debt_consolidation | 0 | 25,400 | 4,997 | 19,400 | 100 | 0 |
14.07 | C | 35,000 | 57.96 | 10 | 23,000 | 36 | RENT | Verified | credit_card | 7 | 69,839 | 52,722 | 32,700 | 100 | 0 |
6.72 | A | 34,000 | 6.46 | 6 | 5,000 | 36 | OWN | Not Verified | other | 6 | 42,100 | 3,898 | 27,200 | 78.1 | 0 |
13.59 | C | 35,000 | 23.66 | 10 | 24,000 | 60 | MORTGAGE | Source Verified | credit_card | 1 | 291,852 | 18,916 | 9,100 | 100 | 0 |
11.99 | B | 110,000 | 16.19 | 10 | 20,000 | 60 | MORTGAGE | Source Verified | debt_consolidation | 1 | 342,336 | 60,805 | 22,250 | 93 | 0 |
13.59 | C | 65,000 | 36.48 | 10 | 20,000 | 36 | MORTGAGE | Source Verified | home_improvement | 3 | 283,190 | 69,561 | 36,700 | 97.1 | 0 |
6.71 | A | 30,000 | 18.91 | 3 | 6,400 | 36 | RENT | Not Verified | credit_card | 0 | 33,114 | 17,768 | 14,700 | 100 | 0 |
15.04 | C | 75,000 | 10.45 | 10 | 25,000 | 60 | MORTGAGE | Verified | debt_consolidation | 4 | 39,433 | 22,895 | 5,000 | 94.1 | 1 |
9.92 | B | 91,900 | 1.82 | 2 | 40,000 | 60 | MORTGAGE | Source Verified | other | 4 | 450,371 | 55,939 | 9,000 | 92 | 0 |
13.59 | C | 122,000 | 12.06 | 5 | 16,000 | 36 | MORTGAGE | Source Verified | debt_consolidation | 8 | 263,800 | 43,686 | 12,100 | 84.4 | 0 |
9.43 | B | 88,000 | 3.67 | 10 | 17,000 | 60 | MORTGAGE | Source Verified | credit_card | 6 | 259,915 | 14,387 | 70,800 | 98.4 | 0 |
19.03 | D | 17,000 | 33.98 | 6 | 3,000 | 36 | MORTGAGE | Verified | debt_consolidation | 0 | 74,042 | 26,483 | 3,600 | 90.9 | 1 |
19.03 | D | 60,000 | 38.46 | 10 | 20,000 | 60 | MORTGAGE | Not Verified | credit_card | 0 | 136,815 | 75,552 | 39,700 | 100 | 0 |
19.03 | D | 60,000 | 31.22 | 6 | 12,000 | 60 | MORTGAGE | Not Verified | credit_card | 4 | 375,092 | 93,016 | 15,800 | 95.2 | 0 |
28.72 | F | 72,000 | 20.33 | 3 | 30,000 | 60 | RENT | Source Verified | debt_consolidation | 6 | 58,911 | 54,947 | 2,500 | 91.7 | 0 |
26.77 | E | 210,000 | 9.53 | 10 | 5,000 | 36 | MORTGAGE | Verified | medical | 2 | 322,046 | 73,705 | 17,500 | 100 | 0 |
15.05 | C | 83,000 | 18.44 | 1 | 20,000 | 60 | MORTGAGE | Source Verified | debt_consolidation | 1 | 555,154 | 39,482 | 8,300 | 63.6 | 0 |
6.08 | A | 50,000 | 15.6 | 10 | 7,000 | 36 | MORTGAGE | Not Verified | credit_card | 0 | 70,313 | 18,128 | 18,800 | 100 | 0 |
11.98 | B | 42,000 | 32 | 1 | 10,000 | 36 | MORTGAGE | Source Verified | credit_card | 4 | 272,403 | 47,575 | 10,100 | 100 | 1 |
13.59 | C | 100,000 | 26.53 | 5 | 21,050 | 60 | MORTGAGE | Not Verified | debt_consolidation | 1 | 566,384 | 151,251 | 26,200 | 100 | 0 |
6.71 | A | 40,280 | 7.27 | 6 | 3,500 | 36 | MORTGAGE | Verified | home_improvement | 1 | 188,450 | 6,103 | 7,500 | 90 | 0 |
7.96 | A | 82,000 | 17.31 | 10 | 8,000 | 36 | RENT | Not Verified | credit_card | 1 | 65,425 | 69,177 | 11,500 | 88 | 0 |
12.61 | C | 55,000 | 14.42 | 7 | 18,000 | 60 | MORTGAGE | Source Verified | debt_consolidation | 0 | 197,985 | 17,296 | 22,100 | 100 | 0 |
11.98 | B | 55,000 | 13.68 | 1 | 10,000 | 36 | RENT | Source Verified | credit_card | 7 | 41,891 | 26,637 | 17,700 | 100 | 0 |
7.34 | A | 33,000 | 19.38 | 5 | 3,200 | 36 | RENT | Not Verified | debt_consolidation | 0 | 43,876 | 22,920 | 17,600 | 100 | 0 |
5.32 | A | 60,000 | 11 | 3 | 10,000 | 36 | RENT | Not Verified | debt_consolidation | 0 | 56,000 | 14,338 | 36,400 | 92.3 | 0 |
6.07 | A | 48,000 | 2.88 | 4 | 6,000 | 36 | MORTGAGE | Source Verified | house | 2 | 147,217 | 2,489 | 25,000 | 100 | 0 |
12.62 | C | 106,000 | 26.25 | 4 | 12,000 | 36 | MORTGAGE | Verified | debt_consolidation | 2 | 405,236 | 105,548 | 62,120 | 100 | 0 |
9.44 | B | 245,000 | 24.9 | 3 | 40,000 | 60 | MORTGAGE | Source Verified | debt_consolidation | 1 | 772,243 | 497,876 | 74,100 | 100 | 0 |
19.03 | D | 50,000 | 36.75 | 9 | 19,000 | 60 | MORTGAGE | Verified | credit_card | 0 | 246,210 | 51,523 | 71,100 | 90.3 | 0 |
20.39 | D | 80,000 | 28.3 | 3 | 28,000 | 60 | MORTGAGE | Source Verified | debt_consolidation | 0 | 250,359 | 113,927 | 23,800 | 96.3 | 0 |
9.93 | B | 140,000 | 13.82 | 10 | 15,000 | 60 | MORTGAGE | Not Verified | debt_consolidation | 2 | 631,258 | 69,647 | 58,100 | 100 | 0 |
6.08 | A | 70,000 | 0 | 1 | 2,400 | 36 | OWN | Source Verified | small_business | 0 | 30,400 | 92 | 0 | 92.3 | 0 |
21.45 | D | 45,000 | 10.59 | 2 | 10,000 | 36 | RENT | Source Verified | debt_consolidation | 1 | 14,500 | 13,304 | 11,300 | 100 | 0 |
15.04 | C | 70,000 | 17.06 | 10 | 24,000 | 60 | MORTGAGE | Verified | car | 2 | 363,649 | 29,954 | 12,900 | 95.2 | 0 |
10.42 | B | 75,000 | 18.53 | 2 | 9,500 | 36 | RENT | Not Verified | other | 2 | 55,075 | 34,186 | 19,600 | 100 | 0 |
12.61 | C | 53,592 | 7.1 | 2 | 30,000 | 36 | RENT | Source Verified | other | 0 | 42,499 | 10,466 | 18,800 | 100 | 0 |
18.06 | D | 19,000 | 24.79 | 6 | 10,000 | 60 | MORTGAGE | Not Verified | other | 0 | 23,234 | 12,435 | 3,000 | 100 | 1 |
11.99 | B | 90,000 | 15.72 | 5 | 15,000 | 60 | RENT | Source Verified | moving | 8 | 77,285 | 51,012 | 23,900 | 100 | 0 |
15.05 | C | 77,000 | 14.82 | 10 | 35,000 | 60 | RENT | Source Verified | debt_consolidation | 0 | 74,852 | 44,015 | 27,700 | 96.6 | 0 |
15.05 | C | 42,000 | 25.89 | 2 | 10,000 | 36 | RENT | Source Verified | credit_card | 1 | 43,239 | 31,094 | 8,300 | 100 | 0 |
12.62 | C | 130,000 | 13.51 | 4 | 40,000 | 60 | MORTGAGE | Source Verified | home_improvement | 2 | 403,408 | 49,857 | 34,300 | 100 | 0 |
6.72 | A | 76,300 | 10.71 | 10 | 15,000 | 36 | OWN | Not Verified | debt_consolidation | 4 | 185,068 | 26,515 | 16,800 | 96.7 | 1 |
6.71 | A | 190,000 | 2.68 | 2 | 20,000 | 36 | MORTGAGE | Not Verified | debt_consolidation | 0 | 175,300 | 18,870 | 78,300 | 100 | 0 |
15.05 | C | 41,000 | 25.7 | 0 | 4,500 | 36 | RENT | Verified | debt_consolidation | 0 | 29,311 | 13,527 | 10,300 | 100 | 0 |
9.93 | B | 30,000 | 3.64 | 2 | 16,000 | 60 | RENT | Not Verified | car | 0 | 18,000 | 5,542 | 17,000 | 100 | 0 |
10.42 | B | 88,000 | 17.24 | 6 | 10,000 | 36 | MORTGAGE | Source Verified | credit_card | 2 | 404,236 | 199,983 | 32,000 | 97.4 | 0 |
22.91 | E | 115,000 | 18.72 | 2 | 20,000 | 60 | MORTGAGE | Verified | debt_consolidation | 6 | 394,519 | 69,124 | 40,150 | 76 | 0 |
30.79 | G | 95,731 | 19.64 | 10 | 20,600 | 60 | RENT | Not Verified | debt_consolidation | 1 | 86,768 | 53,109 | 33,700 | 100 | 0 |
15.05 | C | 127,000 | 9.12 | 2 | 35,000 | 60 | RENT | Source Verified | major_purchase | 0 | 74,518 | 34,313 | 32,300 | 100 | 0 |
6.07 | A | 75,000 | 22.91 | 10 | 10,000 | 36 | MORTGAGE | Source Verified | debt_consolidation | 0 | 224,758 | 63,799 | 23,000 | 100 | 0 |
6.07 | A | 70,000 | 21.41 | 5 | 12,000 | 36 | MORTGAGE | Not Verified | debt_consolidation | 1 | 279,995 | 52,244 | 14,800 | 100 | 0 |
17.47 | D | 22,000 | 13.05 | 6 | 1,925 | 36 | OWN | Source Verified | debt_consolidation | 0 | 130,600 | 4,277 | 2,300 | 80 | 0 |
7.34 | A | 75,000 | 20.16 | 8 | 15,000 | 36 | MORTGAGE | Verified | house | 4 | 365,595 | 30,262 | 49,600 | 100 | 0 |
13.59 | C | 73,000 | 39.08 | 10 | 20,000 | 36 | MORTGAGE | Verified | debt_consolidation | 8 | 146,435 | 51,162 | 40,600 | 100 | 1 |
6.72 | A | 76,000 | 14.62 | 6 | 6,000 | 36 | MORTGAGE | Not Verified | debt_consolidation | 2 | 368,543 | 24,135 | 56,300 | 100 | 0 |
5.31 | A | 188,000 | 11.64 | 10 | 10,000 | 36 | RENT | Not Verified | debt_consolidation | 1 | 80,444 | 45,181 | 28,500 | 100 | 0 |
9.93 | B | 50,000 | 12.15 | 8 | 25,000 | 36 | MORTGAGE | Verified | debt_consolidation | 8 | 97,664 | 21,687 | 25,600 | 96.2 | 1 |
9.92 | B | 58,000 | 12.58 | 10 | 10,000 | 36 | OWN | Source Verified | debt_consolidation | 0 | 37,300 | 14,770 | 17,000 | 86.4 | 0 |
9.93 | B | 105,000 | 16.73 | 1 | 6,000 | 36 | RENT | Not Verified | debt_consolidation | 0 | 63,600 | 53,168 | 51,100 | 100 | 0 |
14.07 | C | 114,000 | 28.13 | 10 | 20,000 | 60 | MORTGAGE | Verified | credit_card | 1 | 451,597 | 88,594 | 33,000 | 96.4 | 0 |
7.97 | A | 150,000 | 7.89 | 10 | 15,000 | 36 | MORTGAGE | Source Verified | medical | 1 | 96,633 | 43,253 | 54,000 | 100 | 0 |
5.31 | A | 69,000 | 15.42 | 0 | 20,000 | 36 | MORTGAGE | Not Verified | debt_consolidation | 0 | 291,176 | 33,890 | 57,700 | 94.3 | 0 |
9.93 | B | 30,000 | 32.4 | 10 | 10,500 | 60 | MORTGAGE | Not Verified | debt_consolidation | 1 | 69,244 | 23,425 | 16,850 | 93 | 0 |
14.08 | C | 60,000 | 17.28 | 5 | 11,400 | 60 | MORTGAGE | Source Verified | credit_card | 2 | 47,882 | 36,724 | 12,300 | 100 | 1 |
12.61 | C | 74,000 | 32.06 | 5 | 5,500 | 36 | MORTGAGE | Not Verified | car | 0 | 384,554 | 63,783 | 66,400 | 100 | 0 |
12.62 | C | 25,000 | 3.7 | 0 | 5,000 | 36 | RENT | Source Verified | debt_consolidation | 1 | 1,900 | 807 | 1,200 | 66.7 | 0 |
17.47 | D | 32,000 | 22.09 | 6 | 9,600 | 36 | OWN | Source Verified | other | 6 | 30,649 | 24,714 | 2,500 | 76.9 | 0 |
12.62 | C | 31,000 | 16.26 | 0 | 15,000 | 36 | RENT | Source Verified | other | 2 | 43,430 | 14,955 | 22,000 | 100 | 0 |
6.71 | A | 64,000 | 8.72 | 3 | 10,000 | 36 | RENT | Source Verified | debt_consolidation | 0 | 49,500 | 19,719 | 25,000 | 100 | 0 |
19.42 | D | 24,000 | 16.3 | 3 | 10,450 | 60 | RENT | Source Verified | major_purchase | 1 | 54,966 | 42,068 | 10,000 | 100 | 0 |
12.62 | C | 77,000 | 16.04 | 2 | 7,200 | 36 | MORTGAGE | Source Verified | credit_card | 3 | 188,426 | 59,514 | 14,800 | 100 | 0 |
14.08 | C | 31,000 | 28.42 | 10 | 35,000 | 60 | MORTGAGE | Not Verified | debt_consolidation | 0 | 190,216 | 24,861 | 20,300 | 100 | 0 |
10.91 | B | 13,930 | 21.94 | 6 | 4,200 | 36 | RENT | Verified | debt_consolidation | 1 | 13,450 | 4,212 | 2,700 | 100 | 0 |
17.47 | D | 60,000 | 19.22 | 0 | 2,400 | 36 | RENT | Verified | other | 3 | 69,357 | 68,594 | 10,600 | 100 | 0 |
18.06 | D | 41,787 | 37.74 | 9 | 12,800 | 36 | MORTGAGE | Verified | credit_card | 1 | 42,639 | 36,441 | 22,300 | 100 | 0 |
16.02 | C | 45,000 | 15.44 | 4 | 8,000 | 36 | MORTGAGE | Verified | other | 2 | 215,675 | 13,559 | 20,700 | 100 | 1 |
19.03 | D | 77,000 | 18.39 | 0 | 30,000 | 36 | MORTGAGE | Verified | debt_consolidation | 3 | 174,300 | 31,663 | 12,400 | 90 | 0 |
12.62 | C | 72,000 | 27.23 | 1 | 7,000 | 36 | MORTGAGE | Source Verified | debt_consolidation | 7 | 158,659 | 65,964 | 7,900 | 95.2 | 1 |
6.07 | A | 165,000 | 11.14 | 8 | 25,000 | 36 | MORTGAGE | Source Verified | other | 2 | 103,527 | 70,510 | 43,500 | 100 | 0 |
9.43 | B | 43,000 | 1.56 | 10 | 40,000 | 60 | MORTGAGE | Source Verified | home_improvement | 3 | 45,100 | 860 | 35,600 | 100 | 0 |
10.42 | B | 90,000 | 17.44 | 10 | 24,000 | 60 | MORTGAGE | Verified | debt_consolidation | 1 | 524,622 | 87,687 | 63,500 | 100 | 0 |
7.96 | A | 95,000 | 11.45 | 10 | 5,000 | 36 | OWN | Not Verified | debt_consolidation | 2 | 73,740 | 14,461 | 29,600 | 100 | 1 |
13.59 | C | 152,000 | 21.09 | 10 | 40,000 | 60 | MORTGAGE | Not Verified | small_business | 5 | 476,029 | 121,076 | 170,900 | 97.7 | 0 |
15.04 | C | 49,500 | 34.86 | 2 | 15,000 | 60 | MORTGAGE | Source Verified | credit_card | 1 | 241,110 | 159,851 | 26,700 | 100 | 0 |
12.61 | C | 32,000 | 13.77 | 5 | 5,000 | 36 | OWN | Source Verified | home_improvement | 1 | 37,596 | 18,294 | 11,800 | 76.2 | 0 |
7.96 | A | 78,000 | 9.61 | 8 | 7,000 | 36 | RENT | Source Verified | credit_card | 3 | 48,354 | 40,982 | 11,900 | 68.4 | 1 |
13.58 | C | 52,000 | 24.39 | 2 | 17,450 | 60 | RENT | Source Verified | debt_consolidation | 4 | 86,360 | 47,451 | 24,500 | 100 | 0 |
16.01 | C | 147,000 | 5.16 | 10 | 30,000 | 60 | MORTGAGE | Source Verified | debt_consolidation | 6 | 386,381 | 23,551 | 20,500 | 81.8 | 0 |
22.91 | E | 140,000 | 28.53 | 10 | 15,000 | 36 | OWN | Verified | debt_consolidation | 1 | 454,500 | 177,350 | 77,500 | 100 | 0 |
7.97 | A | 50,000 | 20.74 | 5 | 20,000 | 36 | RENT | Not Verified | debt_consolidation | 8 | 128,476 | 16,061 | 60,000 | 100 | 0 |
18.06 | D | 55,000 | 12.22 | 6 | 15,000 | 60 | RENT | Not Verified | debt_consolidation | 3 | 26,500 | 10,994 | 7,600 | 85.7 | 1 |
6.08 | A | 190,000 | 15.84 | 3 | 12,000 | 36 | MORTGAGE | Not Verified | debt_consolidation | 0 | 619,105 | 84,019 | 62,000 | 100 | 0 |
5.32 | A | 126,000 | 3.82 | 10 | 16,500 | 36 | RENT | Source Verified | debt_consolidation | 0 | 49,529 | 7,020 | 27,200 | 100 | 0 |
5.32 | A | 95,000 | 15.48 | 10 | 19,200 | 36 | MORTGAGE | Not Verified | debt_consolidation | 2 | 277,964 | 47,779 | 39,100 | 100 | 1 |
9.93 | B | 80,000 | 14.16 | 10 | 7,050 | 36 | MORTGAGE | Source Verified | major_purchase | 2 | 285,387 | 22,788 | 32,500 | 100 | 0 |
20 | D | 23,000 | 49.58 | 10 | 15,000 | 60 | MORTGAGE | Verified | credit_card | 2 | 44,927 | 29,553 | 14,700 | 96 | 1 |
Lending Club Loans - Exploratory Data Analysis
Video Presentation
Dataset Summary
The dataset originates from Lending Club, one of the largest peer to peer lending platforms in the United States, and was sourced from Kaggle. It contains 10,000 loan records with 55 features that capture a comprehensive profile of each borrower and their loan. After column selection and data cleaning, the final working dataset contains 9,976 rows and 16 columns.
Research Question: What borrower and loan characteristics influence the interest rate a borrower receives? Specifically, this analysis explores how factors such as income level, debt-to-income ratio, homeownership status, income verification, and credit history relate to the interest rate assigned by the platform.
Target Variable: interest_rate - a continuous numerical variable representing the annual interest rate assigned to each loan, ranging from approximately 5% to 30%..
Dataset Structure
Data Fields
| # | Feature | Type | Description |
|---|---|---|---|
| 1 | interest_rate |
Float | Annual interest rate assigned to the loan (target variable, 5.31%-30.94%) |
| 2 | grade |
Categorical | Risk grade assigned by the platform (A through G, where A = lowest risk) |
| 3 | annual_income |
Float | Borrower's self-reported annual income in USD |
| 4 | debt_to_income |
Float | Ratio of monthly debt payments to monthly income |
| 5 | emp_length |
Float | Employment length in years |
| 6 | loan_amount |
Integer | Total amount of the loan in USD |
| 7 | term |
Integer | Loan repayment period (36 or 60 months) |
| 8 | homeownership |
Categorical | Borrower's housing status (Rent, Own, Mortgage) |
| 9 | verified_income |
Categorical | Whether income was verified (Not Verified, Source Verified, Verified) |
| 10 | loan_purpose |
Categorical | Purpose of the loan (debt consolidation, credit card, home improvement, etc.) |
| 11 | inquiries_last_12m |
Integer | Number of credit inquiries in the past 12 months |
| 12 | total_credit_limit |
Integer | Total credit limit across all accounts |
| 13 | total_credit_utilized |
Integer | Total credit currently utilized |
| 14 | total_debit_limit |
Integer | Total debit limit across all accounts |
| 15 | accounts_opened_24m |
Integer | Number of accounts opened in the past 24 months |
| 16 | account_never_delinq_percent |
Float | Percentage of accounts that were never delinquent |
Data Cleaning & Preparation
Feature Selection
The raw dataset contains 55 columns. To focus the analysis on the research question, I selected 16 features based on three filtering criteria:
- Excessive missing values - Columns where the majority of records were null (such as delinquency-specific fields that are naturally absent for borrowers who never missed a payment) were excluded.
- Nonsensical or redundant content - Columns with IDs, internal codes, or duplicate representations of the same information were removed.
- Irrelevant categorical data - Features that do not logically contribute to interest rate pricing (such as state or issue date) were dropped.
Missing Values
Two columns in the filtered dataset contained missing values:
emp_length- 817 missing values (8.2%). I imputed these with the median after verifying that there was no significant difference between the median and mean for this distribution, making either a valid choice. The median was preferred as a more robust measure against potential skew.debt_to_income- 24 missing values (0.2%). These records were dropped. At less than 0.25% of the dataset, their removal has no impact on the statistical integrity of the analysis.
After this step, zero missing values remained across all 16 columns.
Duplicate Check
A full check for duplicate rows was performed across the entire dataset. No duplicate records were found, confirming that each row represents a unique loan.
Outlier Detection & Handling
Box plots were used to visually inspect all numeric columns for statistical outliers. While outliers were present in several features, the inspection focused on annual_income and debt_to_income, as these contained the most significant logical and technical inconsistencies.
Each case was evaluated individually, distinguishing between two categories:
Technical errors (identified but already removed):
annual_income- 23 records showed zero income. Further inspection revealed that all 23 also had missingdebt_to_income(which is derived from income, so this is expected), and 22 out of 23 had missing employment data. However, all other fields in these rows were fully populated - including grade, loan amount, credit history, and homeownership. This suggests these are not empty records, but rather cases where income data was not captured or reported. All 23 rows were already removed in the missing values stage due to their missingdebt_to_income. Only 1 additional row was removed solely for missingdebt_to_income.
Logical extremes (capped):
annual_income- Several records exceeded 1M USD (max 2.3M USD). While these are valid observations, they distort statistical measures such as the mean and inflate variance. Incomes above the 99th percentile were capped to reduce skew while preserving these data points in the analysis.debt_to_income- Values exceeding the 99th percentile were capped to contain their effect without removing the records.
Legitimate variation (kept as-is):
- Outliers in columns such as loan_amount, total_credit_limit, and inquiries_last_12m were retained. These values represent natural variation in borrower profiles and do not indicate data quality issues.
Cleaning Summary
| Step | Action | Rows Affected |
|---|---|---|
| Feature selection | 55 columns reduced to 16 | - |
Missing emp_length |
Imputed with median | 817 rows updated |
Missing debt_to_income |
Dropped rows (including 23 zero-income records) | 24 rows removed |
| Income above 99th percentile | Capped | ~1% of rows adjusted |
| Debt-to-income above 99th percentile | Capped | ~1% of rows adjusted |
| Duplicates | None found | 0 rows affected |
| Final dataset | Ready for analysis | 9,976 rows, 16 columns |
Exploratory Data Analysis (EDA)
The EDA was structured as a four-part narrative, moving from the platform's institutional risk assessment to the borrower's personal financial behavior. Rather than treating variables in isolation, this approach builds a 'data story' to uncover what truly drives loan pricing beyond the obvious impact of risk grades.
The Grade - Starting Point, Not the Answer
The relationship between grade and interest rate is expected - higher risk grades naturally carry higher rates. However, confirming this pattern is only the starting point. The real goal of this analysis is to look beyond the grade and understand what underlying borrower and loan characteristics drive the grade itself, and whether some factors influence interest rate independently of the grade.
Borrower Financial Profile
Income vs. Interest Rate:
Higher income groups receive slightly lower average interest rates, ranging from 13.3% for borrowers earning under 40K to 11.2% for those earning over 150K. While the correlation is positive, it is weaker than one might expect - a borrower earning five times more than another receives only a 2 percentage point reduction in rate. This suggests that the platform treats income as a secondary signal rather than a primary pricing factor, relying more heavily on credit behavior and debt metrics to assess risk.
Income Verification vs. Interest Rate:
Counter-intuitively, verified borrowers face higher average interest rates compared to non-verified borrowers. This is a classic example of selection bias - the platform does not verify income randomly. It typically requires verification from borrowers who present higher risk signals or apply for larger loan amounts. As a result, the "Verified" label does not mean "safer borrower" - it is actually a red flag for higher risk. This is an important reminder that correlation does not imply causation, and understanding the business logic behind a variable is just as important as reading its numbers.
Loan Characteristics
Loan Term vs. Interest Rate:
About 70% of loans are issued for a 36-month term, yet 60-month loans carry noticeably higher interest rates. With a correlation of 0.36, loan term is the strongest positive predictor of interest rate in the dataset. The logic is straightforward - a longer repayment period means more risk for the lender, so borrowers pay a higher rate to compensate for that added uncertainty.
Loan Purpose vs. Interest Rate:
The purpose of the loan impacts interest rate, reflecting how the platform assesses the risk behind different uses of funds. Renewable Energy and Vacation loans carry the highest rates (13.3-13.5%), while House and Credit Card loans receive the lowest (11.4%). Interestingly, Small Business loans (13.0%) fall close to the top but not at the peak as one might expect. Debt consolidation, the most common purpose on the platform (over 50% of all loans), sits at 13.0% - right in the middle of the range, representing a known and manageable level of risk that the platform has extensive experience pricing.
Credit Behavior - The Real Driver
The borrower's credit profile turns out to be the most influential factor in interest rate pricing beyond the grade itself. Two variables - credit utilization and total debit limit - show opposite but complementary patterns that together reveal what the platform truly values.
Borrowers who use a larger share of their available credit pay progressively higher rates, climbing from 11.2% for those using under 25% to 14.8% for those above 75%, where the effect plateaus. The total debit limit mirrors this from the opposite direction - borrowers with limits above 30K receive rates as low as 10.8%, while those under 5K face 14.7%.
The insight here is that these two metrics capture different dimensions of the same underlying signal. A high debit limit reflects institutional trust - other banks have already assessed this borrower and extended them significant credit. A low utilization rate reflects personal discipline - the borrower has access to credit but chooses not to overuse it. The platform rewards both, making credit behavior the strongest driver of favorable loan pricing after the grade itself.
Summary & Conclusions
The central question of this analysis - what truly influences loan pricing on the Lending Club platform - reveals a clear hierarchy that challenges conventional assumptions about how interest rates are determined.
Income, despite being the most intuitive predictor, accounts for only a 2 percentage point difference between the lowest and highest earning groups. Even income verification, which one might expect to signal trustworthiness, turns out to be a red flag - a classic case of selection bias where the platform mandates verification precisely for higher-risk applicants.
The real drivers of loan pricing operate on a fundamentally different axis: behavioral and institutional signals. Credit utilization - how much of their available credit a borrower actually uses - and total debit limit - how much credit other institutions have already entrusted them with - emerge as the most powerful predictors of interest rate after the platform's own grade. This distinction is critical: the platform does not primarily price based on who the borrower is (income), but rather on how they behave financially and how existing institutions perceive their reliability. Combined with the loan's structural characteristics (term length and purpose), these behavioral metrics paint a consistent picture - Lending Club's pricing model is fundamentally a behavioral risk engine, not a status-based one.
Full analysis: Open in Colab
Author
Ido Aidan
Course: Introduction to Data Science | Reichman University (IDC)
- Downloads last month
- 265


