This repository is the borrower financial analysis layer at the front of the public commercial credit-risk stack. It uses synthetic borrower statements and benchmark-style reference data to produce standardised financials, ratio summaries, working-capital metrics, and qualitative risk flags that can support both structured credit assessment and practical lending decisioning workflows.
This project demonstrates how borrower financial information can be turned into reusable commercial credit-analysis outputs. It is designed for recruiter and employer review, so the repo emphasises clear structure, explainable metrics, and portfolio-style documentation across both bank-style credit review and non-bank underwriting use cases.
Upstream inputs:
- synthetic borrower statements and benchmark reference data staged under
data/
Downstream consumers:
PD-and-scorecard-commercialLGD-commercial
This project can be applied in:
- Borrower financial spreading and ratio review for structured credit assessment
- Serviceability, leverage, and working-capital analysis for portfolio risk review
- Consistent financial inputs for downstream PD, LGD, and monitoring workflows
- Financial analysis inputs for originations decisioning and approval strategy
- Cash-flow and liquidity review for lender-side underwriting
- Early borrower quality diagnostics for portfolio performance tracking
- synthetic borrower financial statements
- public listed-company style benchmark extracts
- financial spreading, ratio, and qualitative assessment assumptions staged under
data/
outputs/tables/standardised_borrower_financials.csvoutputs/tables/ratio_summary_tables.csvoutputs/tables/working_capital_metrics.csvoutputs/tables/trend_diagnostics.csvoutputs/tables/qualitative_risk_flags.csvoutputs/tables/pipeline_validation_report.csv
data/: raw, interim, processed, and external borrower-analysis inputsreports/: retained PDF artifacts (reports/public_company_analysis/andreports/portfolio_overview.pdf) for reviewer-facing examplessrc/: reusable financial spreading, ratio, and pipeline modulesscripts/: wrapper scripts for pipeline executiondocs/: methodology, assumptions, data dictionary, and validation notesnotebooks/: walkthrough notebooks for reviewer contextoutputs/: exported tables, reports, and sample artifactstests/: validation and regression checks
Compatibility note:
- Older setups that still contain a top-level
Reports/folder are automatically migrated to the canonicalreports/layout bysrc/public_company_analysis.py.
python -m src.run_pipelineOr:
python scripts/run_demo_pipeline.py- All borrower records are synthetic and are included for demonstration only.
- Benchmarking and qualitative flags use simplified portfolio assumptions rather than internal bank financial spreading rules.
- The repo is intended to show reusable analytical workflow and reporting quality, not to represent a production credit spreading platform.