detect_bias
Analyzes financial records for demographic bias by comparing approval rates or outcome distributions across cohort groups, returning disparity ratios and bias risk labels.
Instructions
Detects demographic or categorical bias in a financial dataset by comparing approval rates, average amounts, or outcome distributions across cohort groups. Returns disparity ratios and a bias risk label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | Array of financial records | |
| group_field | Yes | Field to group by for bias analysis (e.g. 'region', 'income_tier', 'credit_band') | |
| outcome_type | Yes | Whether the outcome field is binary (0/1) or numeric | |
| outcome_field | Yes | Binary or numeric outcome field to compare across groups (e.g. 'approved', 'loan_amount') |