{"id":26899780,"url":"https://github.com/wtmcgrew/sql-credit-risk-analysis","last_synced_at":"2025-07-04T17:32:16.277Z","repository":{"id":285481391,"uuid":"958150419","full_name":"wtmcgrew/sql-credit-risk-analysis","owner":"wtmcgrew","description":"Credit Risk Analysis using SQL \u0026 Excel – Approval trends by FICO, DTI, PTI, LTV, and delinquencies.","archived":false,"fork":false,"pushed_at":"2025-04-01T00:39:04.000Z","size":521,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T01:31:45.265Z","etag":null,"topics":["case-study","credit-risk","data-analysis","financial-analysis","loan-applications","portfolio-project","sql","sqlite","underwriting"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtmcgrew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-31T18:15:05.000Z","updated_at":"2025-04-01T00:39:08.000Z","dependencies_parsed_at":"2025-04-01T01:31:49.947Z","dependency_job_id":"497c9793-5a5d-4235-97d0-83bd34127cb2","html_url":"https://github.com/wtmcgrew/sql-credit-risk-analysis","commit_stats":null,"previous_names":["wtmcgrew/sql-credit-risk-analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wtmcgrew/sql-credit-risk-analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtmcgrew%2Fsql-credit-risk-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtmcgrew%2Fsql-credit-risk-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtmcgrew%2Fsql-credit-risk-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtmcgrew%2Fsql-credit-risk-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtmcgrew","download_url":"https://codeload.github.com/wtmcgrew/sql-credit-risk-analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtmcgrew%2Fsql-credit-risk-analysis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263588270,"owners_count":23484893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["case-study","credit-risk","data-analysis","financial-analysis","loan-applications","portfolio-project","sql","sqlite","underwriting"],"created_at":"2025-04-01T06:53:23.797Z","updated_at":"2025-07-04T17:32:16.258Z","avatar_url":"https://github.com/wtmcgrew.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Credit Approval Risk Analysis Using SQL\n\n## 📊 Project Overview\nThis project analyzes mock auto loan application data to explore how key credit risk factors—FICO score, PTI, DTI, LTV, and late payments—influence loan approval decisions. The goal is to simulate real-world underwriting logic using SQL and Excel to surface trends and risk signals.\n\n## 🎯 Objective\nTo identify common traits of approved vs. declined applicants using SQL queries and data visualization, and to create a clean, portfolio-ready case study demonstrating credit risk analysis skills.\n\n## 🧰 Tools Used\n- SQL (SQLite via DBeaver)\n- Microsoft Excel (data analysis + visuals)\n- GitHub (project documentation)\n\n## 📂 Folder Structure\n```\nAuto Loan Risk Analysis/\n├── data/           # CSV + Excel files\n├── queries/        # Individual exploratory SQL files\n├── visuals/        # Final PNG screenshots of charts + tables\n├── sql_credit_risk_project.sql  # Master SQL script\n├── README.md       # This file\n```\n\n## 📌 Key Business Questions\n1. What is the approval rate by FICO band?\n2. Are applicants with high PTI and/or DTI more likely to be declined?\n3. How does LTV affect approval outcomes?\n4. Do late payments within the last 12 months impact approval rates?\n5. What’s the profile of a 'safe' applicant based on common approval traits?\n\n## 🔍 Summary of Insights\n- **DTI (%)** showed the strongest correlation with loan decline decisions (13% avg gap).\n- **PTI (%)** didn’t show as strong a trend, indicating higher tolerance for monthly payment size.\n- **LTV (%)** mattered more at extreme levels (e.g. \u003e130%).\n- Even **1–2 late payments** significantly impacted approval odds.\n- Approved applicants averaged **higher FICO**, **lower DTI**, and **cleaner credit history**.\n\n## 📈 Visuals\nAll charts and tables were created in Excel and exported to PNG format. You can find them in the `/visuals/` folder:\n- Approval Rate by FICO Band\n- Decline Rate by PTI and DTI Bands\n- Decline Rate by LTV Band\n- Decline Rate by Recent Late Payments\n- Side-by-side Profile Comparison (Approved vs. Declined)\n\n## ✅ How to Reproduce\n1. Open `sql_credit_risk_project.sql` in any SQL editor (e.g., DBeaver)\n2. Run each query to explore the data\n3. Open Excel files in `/data/` to view or recreate the charts\n\n## 💼 Author\nWhitney McGrew — Senior Credit Analyst | SQL Enthusiast | Credit Risk Professional\n\nConnect with me on [LinkedIn](https://www.linkedin.com/in/whitneymcgrew/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtmcgrew%2Fsql-credit-risk-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtmcgrew%2Fsql-credit-risk-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtmcgrew%2Fsql-credit-risk-analysis/lists"}