How emzaro805/sba-loan-default-analysis works
Main Components
• Data Sources:
• SampleData.csv (the dataset derived from the full SBA loan records)
• SBA Loan Data Driven Solution.docx (documentation/requirements reference)
• Data Ingestion & Preprocessing:
• R scripts (Project R code.R and Plot R code.R) that read the CSV, perform data cleaning (e.g., handling missing values, converting types), and prepare the data.
• Exploratory Data Analysis (EDA):
• Visualizations produced by ggplot2 in the R scripts (histograms, bar graphs, scatterplots to analyze distribution, loan default rates, etc.)
• Modeling & Analysis:
• Logistic Regression and K-Nearest Neighbors models – key components include feature selection and model evaluation (accuracy, Kappa Score) using libraries such as caret, dplyr, and e1071.
• Insights & Reporting:
• Generation of key insights and recommendations from the model output (as detailed in the README) that help banks adjust their loan approval processes.
Relationships and Data Flow
• Data flows from the raw dataset (CSV) to a data wrangling layer where missing values and irrelevant columns are handled.
• Cleaned data then flows into an EDA module where visualizations and statistical summaries are generated.
• Preprocessed data is passed into two parallel modeling components (Logistic Regression and KNN) which in turn feed into an evaluation layer that computes accuracy and other metrics.
• The outputs of the models lead to strategic recommendations documented in the README/docx report.
Architectural Patterns and Technologies
• Sequential processing steps: Ingestion → Cleaning → Exploration → Modeling → Evaluation → Reporting.
• R as the main programming environment, with key libraries (caret, ggplot2, dplyr, e1071, readxl) noted as supporting technologies.