ML Course Project Credit Risk Prediction System

Will this loan
be repaid?

RiskLens asks three machine-learning models — Linear Regression, Logistic Regression and a Decision Tree — to predict if a borrower will pay back a loan, then explains the answer in plain English.

Linear Regression
Logistic Regression
Decision Tree
How it works

Three simple steps

No finance or machine-learning knowledge needed.

1
📝

Tell us about the borrower

Age, income, the loan amount and a little credit history — 10 easy questions.

2
🤖

Three AI models analyse it

Each model was trained on 32,000 past loans and gives its own opinion.

3
✅

Get a clear answer

Approve, review or decline — with the reasons why and tips to lower the risk.

The team of models

Meet the three models

Each one looks at the same borrower in a different way. Together they make a more reliable decision.

What the data tells us

Lessons from 32,000 loans

Ready to try it?

Pick an example borrower or type your own numbers — the answer updates instantly.

Start a check →

Check a loan

Answer a few questions. Once you see a result, change anything and it updates live.

Try an example:
  1. 1Applicant
  2. 2The loan
  3. 3Credit history
🔍

Your result will appear here

Fill in the 3 steps, or tap an example above.

Compare the models

Which model is best at spotting risky loans? All results are from 6,400 loans the models never saw during training.

🎚️ How strict should the bank be?

A loan is refused when the predicted risk is above this line. Move it and watch the trade-off.

50%

📊 3D scoreboard

Drag to rotate · hover a bar for its value

Data insights

What did we learn from 32,000 past loans? Hover any chart for exact numbers.

🏷️ Default rate by loan grade

Grade A is the bank's safest rating, G the riskiest.

🏠 Default rate by home situation

How many borrowers in each group did not repay.

📈 Repaid vs not repaid

Where the two groups differ. Each group adds up to 100%.

🎯 Default rate by loan purpose

🔗 What moves with default?

Correlation with not repaying (right = more risk).

🗂️ A peek at the data

Batch check

Check many applicants at once by uploading a CSV file. Everything runs privately inside your browser — the file is never uploaded anywhere.

No file? Use our sample

60 real applicants from the test set (with their true outcome), so you can see how accurate the models are.

Download sample
Which columns are needed?

Learn how it works

The ideas behind the project, explained simply — with the maths for those who want it.

🏦

The problem

When a bank lends money, some borrowers don't pay it back (“default”). Approving a bad loan loses money; refusing a good customer loses business. We teach computers to learn from past loans which kinds of borrowers tend to default, so new applications can be judged quickly and fairly. In ML terms this is a binary classification problem: predict loan_status (1 = default, 0 = repaid).

📏 How we measure “good”

🗂️ The data columns

❓ FAQ

Loading the AI models…