Step 2: Design fair pricing
Responsible AI for Algorithmic Pricing in Insurance and Credit
How do you build a fair pricing model?
Step 1 introduced the firm that removed gender from its model, only to find that postcode, vehicle type, and annual mileage were still carrying gender information through the outputs. Step 2 is about what to do next. Simply removing the protected attribute is one option, though it is the most limited one. This step presents four model designs, each targeting a different fairness criterion, and maps each design to the criterion it is intended to address.
There are three points at which you can intervene. You can adjust the data before the model sees it (pre-processing). You can build fairness directly into the model’s training objective (in-processing). Or you can adjust the model’s predictions after training is complete (post-processing). Each approach works best for different fairness criteria. The choice should follow from Step 1, not from what is easiest to implement. The taxonomy and its trade-offs are discussed in depth in Barocas et al. (2023); the insurance-specific implementations here draw primarily on Lindholm et al. (2022) and Xin and Huang (2024).
Mini-glossary
Notation follows Step 1: Define fairness.
| Symbol | What it means |
|---|---|
| X_P | Protected attribute (e.g. gender, race, ethnicity) |
| X_{NP} | Non-protected rating features |
| \hat{Y} | Predicted value of the chosen outcome variable. Pure premium by default in this step’s models, per the scope note above |
Model labels follow Xin and Huang (2024).
| Model | What it does |
|---|---|
| M0 (full model) | Baseline that uses all variables including protected attributes. Kept for comparison, not deployed when discrimination is prohibited |
| MU (unawareness) | Trained without the protected attribute. Targets fairness through unawareness (FTU) |
| MDP (demographic parity) | Fit on debiased non-protected predictors so average predicted outcomes are approximately equal across protected groups |
| MCDP (conditional demographic parity) | Fit on legitimate predictors plus debiased non-legitimate predictors. Group differences are allowed only through legitimate variables |
| MC (CPV / no omitted-variable bias) | Full model (M0) fitted, then predictions averaged over protected groups at scoring time |
Fairness can be enforced at three stages of the pipeline.
| Stage | What it does |
|---|---|
| Pre-processing | Adjust inputs before model training (used by MDP and MCDP) |
| In-processing | Enforce fairness constraints during training (e.g. regularisation or penalty terms in the objective) |
| Post-processing | Adjust outputs after model training (used by MC) |
Model designs
The four designs below (M0, MU, MDP/MCDP, MC) cover the main approaches in the actuarial literature (Xin and Huang 2024). They are illustrative examples: the insurance fairness literature has grown rapidly and encompasses approaches not covered here. Côté et al. (2025) provide a broader causal taxonomy of fairness methods in insurance, classifying approaches as best-estimate, unaware, aware, hyperaware, or corrective, which can help map additional methods to the criteria in Step 1. Charpentier (2024) provides a book-length treatment of discrimination, bias, and fairness methods in insurance, including technical tools for quantifying and mitigating discrimination. Côté et al. (2026b) survey these methods more recently, covering autocalibration, discrimination-free pricing extensions, and optimal transport; they also discuss statistical challenges specific to insurance, including data privacy constraints, finite-sample diagnosis, and portfolio generalisation. Boonen et al. (2026) cast the fairness–accuracy trade-off as an explicit multi-objective optimisation problem, deriving Pareto-optimal pricing rules that balance expected loss prediction against group fairness constraints. Denuit et al. (2026) study multicalibration in insurance (combining autocalibration with conditional mean independence (the mean form of CDP) as the fairness requirement) and propose practical implementations through local regression and credibility adjustments.
M0: The baseline
Before building any fair model, fit a baseline that uses all available variables including the protected attribute. This is M0. You will not deploy M0 in a market where discrimination is prohibited, but you need it for two reasons. First, it gives you a baseline estimate of expected cost for each group using all available variables, which you need for welfare analysis in Step 3. Second, it provides the benchmark against which to measure how much fairness constraints affect accuracy and pricing.
When to build it. Build M0 as a baseline for comparison wherever the protected attribute is available. It gives a baseline estimate of expected costs by group using all available variables, and sets the benchmark against which fair models are measured in Steps 3 and 4. It is not deployed.
MU: Removing the protected attribute
The simplest approach is to remove the protected attribute from the training data and fit the model on everything else. This is what most firms already do, either because they do not collect the protected variable or because regulation prohibits its use.
The limitation is real and important. Removing a variable does not remove its influence when other variables in the model are correlated with it. If postcode is correlated with race, and race is the protected attribute, then a model using postcode will still partially reflect race in its outputs. MU prevents direct discrimination but does nothing about indirect discrimination through proxy variables. It is a necessary starting point, not a sufficient solution for jurisdictions concerned with proxy effects.
When to choose MU. Your jurisdiction prohibits use of the protected attribute but does not require proof that proxy effects are absent. MU is the minimum legal baseline. It does not answer a regulator who asks whether the model’s outputs still differ by group.
MCDP: Separating legitimate from non-legitimate variation
MCDP suits situations where some price differences between groups are legally justified and some are not. A risk-rated firm will charge more to customers with a worse risk history (more claims in insurance, or weaker repayment history in lending). If those customers happen to be disproportionately from a protected group, that price difference is defensible as long as risk history is accepted as a legitimate factor by the regulator. What is not defensible is a price difference that arises because other variables in the model are acting as proxies for the protected attribute.
The model works in two stages. First, legitimate predictors (those the regulator accepts as grounds for price variation, such as claims history, vehicle type, or annual mileage) are kept in the model unchanged. Second, other predictors are stripped of their correlation with the protected attribute before the model is fitted. One approach is orthogonalisation (Kamiran and Calders 2012). Another is optimal transport, which remaps the distribution of each predictor to remove its dependence on the protected attribute (Lindholm et al. 2024b). A variable that was correlated with race or gender is adjusted so that its value no longer carries that information. Once this pre-processing is complete, the model is trained on the adjusted dataset. The result is a model where price differences between groups can only arise through the legitimate variables.
This is the model design that best maps to conditional demographic parity (CDP). Where the feature engineering pipeline cannot be modified, Denuit et al. (2026) propose a post-processing alternative that targets the same CDP condition through local recalibration of predictions within groups rather than by debiasing inputs before training. Case Study: Fair Models works through a full implementation of MCDP.
When to choose MCDP. Your regulator requires conditional demographic parity (equal outcomes after controlling for legitimate risk factors). Colorado’s 2023 draft quantitative-testing guidance for life insurance and New York’s Circular Letter No. 7 (2024) provide regulatory examples relevant to CDP.
MDP: Demographic parity across all variables
MDP is a stricter version that does not distinguish between legitimate and non-legitimate predictors. All non-protected predictors are debiased before the model is fitted: for each variable, the information it carries about the protected attribute is removed, leaving only the residual variation that is orthogonal to group membership. The model is then trained on these adjusted inputs, so that average predicted outcomes are approximately equal across protected groups unconditionally.
This is appropriate for regulatory environments that require demographic parity rather than conditional demographic parity: for example, where the regulator expects equal average prices across groups regardless of whether legitimate factors explain the difference. It involves a greater sacrifice of predictive accuracy than MCDP because it removes the group-predicting power of all variables, including legitimate ones. In markets where fine risk classification is commercially important, this trade-off deserves explicit consideration.
When to choose MDP. Your regulator requires unconditional demographic parity (equal average outcomes regardless of risk differences between groups). This is a stricter and rarer standard that carries a larger accuracy cost.
MC: Averaging over the protected attribute
MC takes a conceptually different approach. Instead of changing the data before training, it changes how predictions are used. A full model (M0) is fitted that includes the protected attribute, giving a baseline estimate of expected cost for each combination of characteristics. At the point of scoring, rather than using M0’s prediction directly, the model averages M0’s predictions across all possible protected-group values, keeping everything else about the customer unchanged. The result is a price that reflects the customer’s non-protected characteristics but does not depend on which group they belong to.
The counterintuitive feature of MC is that the protected attribute is required internally (the model uses it to generate group-specific predictions before averaging them out) but does not appear in the customer’s final price. This is precisely how MC addresses proxy discrimination: by using the protected attribute to correct for it, rather than ignoring it. This connects directly to the CPV criterion introduced in Step 1, which requires that a customer’s price would not change if they belonged to a different group. For technical readers, the formula is:
\hat{Y}_{MC} = \frac{1}{N}\sum_{j=1}^N \hat{f}_{M0}(X_{NP}, X_P = x_{p_j})
The advantage is better predictive accuracy: MC uses all available information in estimating expected costs. The price each customer sees does not directly use their protected group membership, but the model’s internal estimates do. This approach was introduced as the discrimination-free price by Lindholm et al. (2022) and implemented in the insurance context by Xin and Huang (2024). It targets the fairness criterion of controlling for the protected variable (CPV).
When to choose MC. Your obligation is CPV: each customer’s price should not depend on their group membership after controlling for all risk factors. MC achieves this while retaining the full model’s predictive accuracy, at the cost of requiring the protected attribute to remain available at prediction time.
Causal approaches
The model designs above treat fairness as a statistical property of inputs or outputs. A causal approach goes further, asking which pathways from rating variables to prices are permissible. If a variable influences price partly through a protected attribute (for example, postcode partly proxies race), a causal model can block that specific pathway while preserving the legitimate influence of the variable. This requires specifying a causal graph: a diagram of which variables cause which outcomes and through which routes.
Araiza Iturria et al. (2024) derive a discrimination-free premium explicitly under a causal framework in the insurance context, extending the statistical approach of Lindholm et al. (2022). Côté et al. (2025) implement a broader causal taxonomy of fairness methods in insurance, classifying approaches as best-estimate, unaware, aware, hyperaware, or corrective depending on how much causal information is incorporated. Causal methods are more demanding to implement (they require domain knowledge about causal structure in addition to data) but more precise about what discrimination they remove.
Matching model to criterion
| Model | Criterion | Approach |
|---|---|---|
| M0 (full) | Baseline | Uses X_P and X_{NP} |
| MU | FTU | \hat{Y} = f(X_{NP}) only |
| MDP | DP | Pre-process all X_{NP} to X_{NP}^{\star} |
| MCDP | CDP | Retain legitimate predictors; debias non-legitimate predictors |
| MC | CPV / no omitted-variable bias | Fit M0; average over X_P at prediction |
How regulation maps to model design
Xin and Huang (2024) maps regulatory regimes to fairness criteria and standard model designs.

The progression from left to right in the diagram is a progression in how much cross-subsidy regulation requires. At the left extreme, no regulation: the firm can use any variable and individual actuarial pricing prevails. At the right extreme, community rating: everyone pays the same price and cross-subsidy is complete. Most markets sit somewhere in the middle, and the right model depends on where.
Pre-processing
Pre-processing enforces fairness by adjusting the input data before the model is trained. The idea is to remove or reduce the correlation between non-protected variables and the protected attribute, so that the trained model cannot learn to proxy the protected group from the adjusted inputs.
MDP and MCDP both use pre-processing. In MDP, all non-protected predictors are debiased unconditionally. In MCDP, only non-legitimate predictors are adjusted while legitimate predictors are kept unchanged. Techniques include orthogonalisation (Kamiran and Calders 2012) and optimal transport (Lindholm et al. 2024b). Pre-processing is applied once before training and does not require changes to the model architecture or training procedure, making it relatively easy to slot into an existing modelling pipeline. Côté et al. (2026a) provide a scalable toolbox for detecting, quantifying, and diagnosing indirect discrimination in insurance rates, covering both input-based and output-based diagnosis across multiple protected characteristics.
In-processing
In-processing builds fairness into the model training step rather than adjusting inputs or outputs. One approach adds a penalty to the model’s training objective, a cost that increases whenever the model violates the chosen fairness criterion. The model then learns to balance predictive accuracy against fairness, with a single parameter controlling how much weight to give each goal.
In-processing is particularly useful in price optimisation, where the optimiser’s goal (typically maximising expected profit) can be extended to include a fairness constraint. Case Study: Welfare Implications implements this in the pricing-rule context (PDP and PAF rules in Step 3). A multi-task neural network approach embeds the fairness criterion directly into training, with the advantage that the protected attribute is not required at prediction time (Lindholm et al. 2024a). Tree-based models can be adapted to target demographic parity directly during the splitting and growth process (Simon et al. 2026), offering an alternative when gradient-based training is not available or interpretable tree structure is required.
Post-processing
Post-processing enforces fairness by adjusting the model’s predictions after training is complete. The underlying model is fitted without fairness constraints, giving a baseline estimate of expected cost. At the point of scoring, predictions are modified to meet the fairness criterion.
MC is the post-processing design in this playbook. It takes the full-model predictions and averages them across all values of the protected attribute for each customer. The customer receives that average as their price rather than the group-specific prediction. Post-processing leaves the model itself unchanged and is therefore straightforward to apply to an existing production model, though it requires the protected attribute to remain available at scoring time for the averaging step (Lindholm et al. 2022; Xin and Huang 2024).
The fairness–accuracy trade-off
A common concern when fairness constraints are proposed is that they will make the model substantially less accurate, leading to adverse selection and commercial harm. The evidence from Xin and Huang (2024) on a standard French motor insurance dataset is more reassuring than the concern suggests. A benchmarking study across GLM and tree-based ensemble models on two motor insurance portfolios finds that no single ML model dominates on both pricing accuracy and fairness, but that ML models broadly outperform the GLM and that accuracy costs from fairness constraints remain modest (Israni et al. 2026).
Fair models including MCDP and MC achieved loss ratios close to those of the unconstrained M0 baseline. The reduction in predictive accuracy was modest while the reduction in price disparities between protected groups was substantial. Fairness-constrained XGBoost models retained most of their predictive edge over GLMs while also meeting fairness criteria that GLMs alone might not satisfy.
Boucher and Pigeon (2024) examine whether telematics and usage-based rating variables can reduce reliance on sensitive variables such as sex, age, and territory in auto insurance, and find that telematics can partially replace those variables while maintaining predictive performance — a concrete example of fairness and accuracy coexisting in a commercial product.
This does not mean the trade-off is zero. A firm that enforces strict demographic parity will accept greater exposure to adverse selection (the tendency for lower-risk customers to leave the pool when they are cross-subsidising higher-risk customers, leaving a less profitable book), because it will price some high-risk customers identically to lower-risk customers in the same protected group. The relevant question is whether the magnitude of that exposure is acceptable given regulatory requirements and competitive pressures. That is a business decision, but it can be quantified. On the benchmark dataset studied here, the accuracy costs were modest; they may differ with other data, products, or constraint designs.
Addressing indirect discrimination through proxy removal (MCDP) also produces a side benefit: because the model cannot use proxies for the protected attribute, it reduces the risk that the fair model inadvertently attracts a systematically different risk pool. The adverse selection concern associated with fairness constraints is partly offset by the reduction in proxy variables within the model.
Implementation
- Link each model (M0, MU, MDP, MCDP, MC) to the criterion chosen in Step 1; the CAS Task Force practitioner guides (CAS Race and Insurance Pricing Task Force 2025a, 2025b) provide supporting detail on bias measurement and mitigation across the pipeline
- Retain baseline M0 for welfare and audit comparisons in Steps 3 and 4
- Document the pre-processing, in-processing, or post-processing choice and produce a reproducible pipeline
- Agree the list of legitimate vs non-legitimate variables with legal and compliance before modelling begins
Checklist
Use this checklist to confirm model design choices before welfare analysis. Assign an owner for each item and record sign-off.
| Task | Typical owner |
|---|---|
| Model (M0, MU, MDP, MCDP, MC) linked to Step 1 criterion | Actuarial and data science |
| Legitimate vs non-legitimate variables listed and signed off | Legal and compliance, actuarial |
| Baseline M0 retained for downstream comparisons | Model risk |
| Versioned data, code, and parameters | Data science and MLOps |