Getting Started¶
This section will help you get up and running with the UK Credit Risk RWA Calculator quickly.
Prerequisites¶
Before you begin, ensure you have:
- Python 3.13+ installed
- uv package manager (recommended) or pip
- Access to your exposure data in Parquet or CSV format
What You'll Learn¶
- Installation - How to install the calculator and its dependencies
- Quick Start - Run your first RWA calculation in minutes
- Concepts - Understand the key concepts and terminology
Overview¶
The RWA calculator processes your credit exposure data through a pipeline that:
- Loads raw data from Parquet/CSV files
- Resolves counterparty and facility hierarchies
- Classifies exposures into regulatory exposure classes
- Applies credit risk mitigation (CRM)
- Calculates RWA using SA, IRB, or Slotting approaches
- Aggregates results with supporting factors and output floors
graph TD
A[Your Data] --> B[RWA Calculator]
B --> C[RWA Results]
subgraph Configuration
D[CRR Config]
E[Basel 3.1 Config]
end
D --> B
E --> B
Quick Example¶
from datetime import date
from rwa_calc.api import CreditRiskCalc
response = CreditRiskCalc(
data_path="/path/to/data",
framework="CRR",
reporting_date=date(2026, 12, 31),
).calculate()
print(f"Total RWA: {response.summary.total_rwa:,.0f}")
Need more control? See the Quick Start for framework selection, IRB mode, and export options.
Next Steps¶
- New to RWA calculations? Start with Concepts
- Ready to install? Go to Installation
- Want to jump right in? Try the Quick Start