Machine Learning Model Performance
Transparent empirical evaluation of Gaussian Naive Bayes and comparison benchmark models on 1,200 held-out test customer profiles.
Primary Algorithm: Gaussian Naive Bayes
Target: Credit Risk ClassificationConfusion Matrix (Naive Bayes)
True vs. Predicted Risk Labels
| Actual \ Predicted | Pred Low | Pred Med | Pred High |
|---|---|---|---|
| Actual Low | 515 | 10 | 2 |
| Actual Med | 178 | 10 | 15 |
| Actual High | 116 | 19 | 335 |
Algorithm Benchmark Comparison
Naive Bayes vs. Baseline Classifiers
| Algorithm | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| Naive Bayes | 71.67% | 69.57% | 71.67% | 67.18% |
| Logistic Regression | 89.0% | 88.88% | 89.0% | 88.93% |
| Decision Tree | 87.42% | 88.33% | 87.42% | 87.79% |
| Random Forest | 87.75% | 86.96% | 87.75% | 87.1% |
Machine Learning Theory: Why Naive Bayes for Credit Risk?
Naive Bayes is a probabilistic machine learning algorithm rooted in Bayes' Theorem. It computes the posterior probability of each credit risk class given the observed customer financial features and selects the class with the highest probability.
1. Bayes' Theorem Formulation
- P(Risk | Features): Posterior probability that an applicant is Low, Medium, or High Risk.
- P(Risk): Prior probability of each risk tier based on population training distribution.
- P(Features | Risk): Likelihood of observing the specific financial traits for that risk class.
- P(Features): Marginal evidence normalizer across all risk tiers.
2. The "Naive" Conditional Independence Assumption
The model assumes all customer attributes (income, debt-to-income, credit utilization, defaults) are conditionally independent given the risk class. While financial attributes exhibit real-world correlations, this simplification dramatically reduces computational complexity from exponential to linear \(\mathcal{O}(n)\) while delivering reliable probability calibrations.
Computational Efficiency
Naive Bayes requires only a single pass over the training data to calculate means, variances, and frequency distributions, making it orders of magnitude faster to train and evaluate than iterative neural networks.
Probabilistic Outputs
Unlike pure margin or split-based classifiers, Naive Bayes natively produces smooth posterior probability distributions for each class, making it ideal for underwriting risk scores where decision thresholds need tuning.
Gaussian Naive Bayes
For continuous financial indicators (such as credit utilization %, savings, and monthly income), Gaussian Naive Bayes models the conditional feature distributions using normal Gaussian bell curves \((\mu, \sigma^2)\).