Skip to content

Fairness is a choice, not a metric

November 2026 note ~ 17 min read from the talk “Fairness to wybór, nie metryka”

Abstract

One credit model, at one cutoff, passes two standard fairness tests and fails two others. The AI Act names the goal — detect, prevent and mitigate bias — but not the definition, the threshold or the reference population. This note goes through four places where a “technical metric” turns out to be a choice: whom we measure on, whether removing an attribute removes it, which definitions can hold together, and how much room a modelling team really has. What comes out is not a “fair model” but a choice that is written down. The figures run on a seeded synthetic portfolio; code included.

Is this model fair? Take one PD model. It estimates the probability that a customer will not repay, and above a cutoff the application is declined. Two groups of applicants, A and B, differ in a protected attribute: age, sex, where they live. Four people ask four reasonable questions about it.

  1. Does the model use the attribute? No, it is not an input. Fairness through unawareness: pass.
  2. Does “PD 10%” mean 10% in both groups? Yes. Calibration within groups: pass.
  3. Do we approve both groups equally often? No. Demographic parity: fail.
  4. Do we reject good clients equally often? No. Equalized odds: fail.
Three panels for one PD model: calibration curves of groups A and B on the diagonal, approval rate 55% in group A and 89% in group B, good clients rejected 42% in group A and 10% in group B Three panels for one PD model: calibration curves of groups A and B on the diagonal, approval rate 55% in group A and 89% in group B, good clients rejected 42% in group A and 10% in group B
One model, one cutoff. A synthetic portfolio of 200 000 applicants, 30% of them in group A, scored by an XGBoost PD model that never sees the group and approves below a predicted PD of 10%. The predicted PD matches the observed default rate in both groups (left). Group A is approved 55% of the time and group B 89% (centre). Of the clients who went on to repay, the model rejects 42% in group A and 10% in group B (right).

Two passes and two fails, for the same model at the same cutoff, and all four verdicts are true at once. This is not a bug in the code. These are four different definitions of what “fair” means. Each has its advocates and each protects something that matters. Until now, choosing among them was the modelling team’s internal affair. From 2 December 2027 credit scoring falls under the AI Act’s high‑risk obligations, and the choice stops being private.

This note is the written version of my talk at Data Science Summit 2026 in Warsaw. The talk argued one thing: wherever a fairness question looks like a technical metric, there is a choice underneath it, and somebody bears its cost. I build credit‑risk models at Allegro Pay, so the examples come from scoring. The note picks up where the third question of Four questions before an algorithm decides about people stopped.

What the AI Act asks for, and what it leaves open

Credit scoring of natural persons is a high‑risk use under Annex III, point 5(b), of Regulation (EU) 2024/1689; detecting financial fraud is carved out. High‑risk status brings the provider’s obligations: risk management, data governance, technical documentation, human oversight, post‑market monitoring. Three provisions deal with bias directly.

  • Art. 10, data. Examine the data for possible biases and put in place measures to detect, prevent and mitigate them. The data sets have to be representative of the persons or groups the system is intended to be used on.
  • Art. 4a, sensitive data. Special categories of personal data (Art. 9 GDPR) may exceptionally be processed where that is strictly necessary to detect and correct bias. The Digital Omnibus moved this rule here from Art. 10(5).
  • Art. 11 and Annex IV, documentation. The technical documentation has to describe, among other things, the key design choices, the trade‑offs made, and the metrics for potentially discriminatory impacts.

What appears nowhere: which definition of fairness, what threshold, measured against which population. The goal is named. The method is not.

The method was meant to arrive through harmonised standards. The Act entered into force on 1 August 2024, with the Annex III obligations originally due on 2 August 2026. The Digital Omnibus on AI (Regulation (EU) 2026/1744, July 2026) moved them to 2 December 2027, mainly because the harmonised standards that CEN‑CENELEC JTC 21 is writing were not ready; their deadline is now February 2027. Applying a harmonised standard gives a presumption of conformity, so the standards matter. But the one on bias is still in the works, and even a finished standard will fix the process, not the choice of values.

Regulation is also not the only reason to care. A refusal limits a person’s access to financial services and feeds into the next institution’s decision. The second Consumer Credit Directive (Art. 6) prohibits discrimination in access to credit. One screenshot saying “my husband got a limit ten times higher” is enough to turn a model into a news story. And a rejected good client is lost revenue, while a model that is weaker in one subgroup misprices risk there. A large part of “fairness” is simply model quality in subgroups, and a lender has that interest with or without a regulator.

The rest of this note puts four questions to the model above. Measurement: whom do we compute on? Repair: is it enough to remove the attribute? Metrics: can all four tests pass? Choice: what can we actually do? Each time, what looked like a technical metric turns out to be a choice.

1. You cannot measure it cleanly

Whom are we measuring? A regulator thinks about the population of a country. A lender’s metrics live at the bottom of a funnel: the population of Poland, of whom some use Allegro, of whom some apply for Allegro Pay, of whom some are accepted, of whom, months later, we know who repaid. People drop out at every stage, through self‑selection, pre‑screening rules and the model’s own decision. The make‑up of each group changes from stage to stage, and the same metric gives a different answer at each level. Which level is the “right” one is a decision, not a fact.

Can applicants stand in for everyone? Suppose we want to know how the model would treat all users, and we have its assessment only for those who applied. Kasia is 24, lives in Kraków and applied. Ola is 24, lives in Kraków and did not. The standard fix is reweighting: there are fewer 24‑year‑old applicants from Kraków than 24‑year‑olds in Kraków, so each applicant gets a larger weight and counts for those who did not apply. The trouble is that Kasia applied because she needs credit now, and needing credit is related to risk. Ola does not need it. Same demographics, different risk. Behavioural data from the platform help a little; about the whole population we know only age and address, from the statistical office. An assumption always remains, and it has to be written down. How much the choice of population can move a result — one model, impact ratios from 0.62 to 0.88 — is in the previous note.

We know the truth only for the accepted. The fourth verdict above, how many good clients we reject, needs the repayment outcome of the rejected as well. In practice it does not exist; this is the selective labels problem (Lakkaraju et al., 2017). What a lender can compute is the metric among the people an earlier policy approved. Groups that were rejected more often in the past leave less data behind, so the next model may judge them worse. The AI Act names this loop itself: Art. 10(2)(f) asks for bias to be examined “especially where data outputs influence inputs for future operations”.

A simulation can do what a lender cannot: look up what happened to the people who were declined. Suppose the previous policy was a three‑feature bureau scorecard that approved 60% of applicants, and outcomes exist only for those it approved.

Share of good clients rejected by group, computed on applicants approved by the old policy and on all applicants Share of good clients rejected by group, computed on applicants approved by the old policy and on all applicants
The same model, measured twice. Among the applicants the old policy approved, the only ones with a known outcome, the model rejects 24% of group A’s good clients and 1% of group B’s. Over every applicant it is 42% and 10%. The old policy approved 27% of group A and 74% of group B, so group A is 30% of the applicants but 14% of the people the metric can see.

The measurable version understates both rates and the gap between them: 23 points instead of 32. Nothing was computed wrongly. It was computed on the people an earlier decision left visible.

Reject inference exists, and has problems of its own. The idea is to give each rejected applicant an estimated outcome, for example from the credit bureau, and to train on everyone. It assumes a rejected applicant would have behaved with us as they did elsewhere. That cannot be checked on the rejected. And it brings other lenders’ decisions into our labels.

Against which attributes can we measure at all? From customer data a Polish lender knows age and sex (both are encoded in the PESEL national ID number) and the address. It does not collect what Art. 9 GDPR protects: ethnic origin, religion, health, disability, sexual orientation. For an attribute we do not hold there are three options, and each has a price.

  • Ask. A voluntary survey, which Art. 4a makes room for. But who answers? The responses are self‑selected too.
  • Approximate. Use a proxy such as the address or the surname, as BISG does in the United States. The proxy’s error differs between groups, so the fairness metric carries a bias of its own (Chen et al., 2019).
  • Do not measure. Legally the simplest. It also means we know nothing about bias against those groups.

2. Removing a feature does not remove it

The model above passes the first test: the protected attribute is not an input. It can still be read back from the inputs the model does have. On the synthetic portfolio a plain logistic regression recovers the group from the model’s nine features with an AUC of 0.98; the length of the credit file alone reaches 0.94. A pass on unawareness guarantees nothing.

Is that bad? It depends on the attribute.

If it is genuinely related to risk, cutting out its proxies breaks the model. Remove the five features that give the group away on their own (file length, inquiries, active loans, instalment share, tenure) and refit. The group is now hard to recover (AUC 0.62) and the approval gap falls from 34 points to 7, which looks like a repair. But the model now predicts an average PD of 7.8% for group A, whose members default 11.0% of the time, and 6.5% for group B, who default 5.1% of the time. The gap closed because the model stopped measuring risk correctly, and its power fell from 44 to 35 Gini points on the way.

If it should not influence the decision at all, then being able to reconstruct it is the problem. Sex is such an attribute for us: we decided that it should have no bearing on a credit decision. In one of our models every feature on its own carried a weak signal, nothing suspicious. Together, shopping behaviour plus the credit report made sex clearly recoverable. The model did not go to production in that form. The simulation reproduces the pattern:

AUC of recovering sex from each of sixteen candidate features separately and from all of them together AUC of recovering sex from each of sixteen candidate features separately and from all of them together
Weak alone, strong together. In the simulation sex has no effect on default and is in no model; it only shifts what people buy and, slightly, how they use credit. No single candidate feature recovers it with an AUC above 0.69, and thirteen of the sixteen stay at or below 0.57. All sixteen together reach 0.83.

Two remarks on that test. Which category an attribute belongs to, related to risk or not allowed to matter, is settled by a decision and not by a test. And the test was possible only because sex is in our monitoring data even though it is not in the model. For the Art. 9 attributes, which we do not collect at all, no such test can be run.

3. The metrics exclude each other

Definitions of group fairness come in three families. Here A is the group, Y the actual default, Ŷ a rejection by the model and p̂ the predicted PD.

DefinitionFormallyIn wordsClose toThe model above
Demographic parityP(Ŷ=1 | A=a) = P(Ŷ=1 | A=b)the same approval rate in every groupanti‑discrimination law, public opinionfails
Equalized oddsP(Ŷ=1 | Y=y, A=a) = P(Ŷ=1 | Y=y, A=b)a client who will repay has the same chances whatever the groupthe customerfails
Calibration within groupsP(Y=1 | p̂=p, A=a) = pa PD of 5% means 5%, whoever you arerisk, finance, pricingpasses

The impossibility theorem. Outside trivial cases the three cannot hold together (Chouldechova, 2017; Kleinberg, Mullainathan & Raghavan, 2017). The proof fits in a picture. Take 100 clients in each group.

  1. Group A contains more bad clients: 20 against 5. That is the data, not the model.
  2. We want equal errors, so we reject the same share of bad clients in both groups: 60%, which is 12 and 3.
  3. The model is calibrated. A PD means the same in both groups, so the share of bad clients among the rejected is the same, say a half. For every bad client rejected, one good client is rejected.
Two grids of 100 clients. Group A: 12 bad rejected, 8 bad approved, 12 good rejected, 68 good approved. Group B: 3 bad rejected, 2 bad approved, 3 good rejected, 92 good approved Two grids of 100 clients. Group A: 12 bad rejected, 8 bad approved, 12 good rejected, 68 good approved. Group B: 3 bad rejected, 2 bad approved, 3 good rejected, 92 good approved
Twelve rejected bad clients in group A bring twelve good ones with them; three in group B bring three. Of group A’s good clients 12 in 80 are rejected, 15%. Of group B’s, 3 in 95, or 3%.

More bad clients means more rejected good ones. Good clients from group A are rejected more often, unless both groups default at the same rate or the model is perfect. In general FPR = p/(1−p) · (1−PPV)/PPV · TPR, where p is the group’s default rate, PPV the share of bad clients among the rejected, TPR the share of bad clients rejected and FPR the share of good clients rejected. Calibration is simplified here to an equal PPV. Hold PPV and TPR equal across groups and a higher p forces a higher FPR. The model from the opening obeys the same arithmetic:

GroupDefault rate pBad among rejected (PPV)Bad clients rejected (TPR)Good clients rejected (FPR)
A11.0%16.0%64.6%42.2%
B5.1%14.6%31.7%9.9%

With a default rate twice as high and nearly the same PPV, something has to give. Here both error rates do: the model rejects more of group A’s bad clients and far more of its good ones.

The calibration requirement chooses for us. A lender does not come to this trade‑off with a free hand.

  1. The PD has to be calibrated. Pricing, provisions under IFRS 9 and the model policy all depend on it.
  2. There is one cutoff for everyone. Separate thresholds per group would be direct discrimination.
  3. Group A more often has a high PD, including the clients who will repay, so more of them land beyond the cutoff.
Distribution of predicted PD among clients who repaid, for groups A and B, with the 10% cutoff; group A's distribution lies further right Distribution of predicted PD among clients who repaid, for groups A and B, with the 10% cutoff; group A's distribution lies further right
Predicted PD of the clients who went on to repay. Both curves come from the same calibrated model and meet the same 10% cutoff. Group A’s curve lies further to the right, so 42% of its good clients fall beyond the cutoff, against 10% of group B’s.

Nobody ever voted for “calibration at the price of equal errors”. The choice was made implicitly, when points 1 and 2 were accepted.

4. There is more room than it seems

If calibration and the cutoff are fixed, is there anything left to decide? More than it seems, because the model itself is not fixed. We already reject models that are “best” by AUC, every time we build one. We do not want 20 000 variables, only a few dozen. The model has to be stable over time (PSI). The directions of its relationships have to make sense. Data has a cost and an availability. The result has to be explainable to the customer (GDPR, CCD2). We are choosing one model out of many admissible ones anyway, so model quality within groups can be one more selection criterion.

The Rashomon effect. How many admissible models are there? Breiman (2001) gave the phenomenon its name: many different models describe the same data about equally well. Black, Raghavan & Barocas (2022) call it model multiplicity. On the synthetic portfolio I trained 300 models, each on a random set of six to ten of the sixteen candidate features. The algorithm, the data and the cutoff are the same throughout.

Scatter of 300 models: overall Gini against the approval gap between groups; models within one Gini point of the current one differ widely in the gap Scatter of 300 models: overall Gini against the approval gap between groups; models within one Gini point of the current one differ widely in the gap
Same power, different disparity. Each dot is a model built on a different feature set. 77 of the 300 are within one Gini point of the current model (shaded band), and their approval gap runs from 18 to 37 points. The 37 that understate group A’s PD by more than 5% (triangles) have an average gap of 27 points. The 40 that stay calibrated average 32 points and still span 29 to 37.

Three things are in that picture. Inside the band the power is practically the same and the disparity clearly is not. The lowest disparity belongs to models that understate group A’s PD, a milder form of the “repair” from the previous section, and the calibration requirement rules them out. And among the calibrated models a choice still exists.

Crafting: from a feature to a feature set. That choice can be made on purpose. Set 1 is the current model: the whole bureau report plus two shopping features. Set 2 is picked from the band under three conditions: calibrated in both groups, sex no easier to recover than from set 1, and the best ranking power inside group A. It ends up with three bureau features and five shopping features. Group A has a thin credit file. The bureau says little about it, and shopping behaviour says more.

Gini of two feature sets overall, in group A and in group B: equal overall, set 2 higher in group A and lower in group B Gini of two feature sets overall, in group A and in group B: equal overall, set 2 higher in group A and lower in group B
Two feature sets with the same overall power, both calibrated: in each group the mean PD is within 3% of the observed default rate. Set 2 gives up 5 Gini points in group B (43.0 to 37.9) and gains almost 8 in group A (31.2 to 38.8). Overall it moves from 44.2 to 43.6.
Set 1Set 2
Good clients rejected, group A42.2%39.6%
Bad clients approved, group A35.4%32.3%
Good clients rejected, group B9.9%8.9%
Bad clients approved, group B68.3%73.8%
AUC of recovering sex from the features0.660.64

Fewer of group A’s good clients are rejected, and fewer of its bad ones approved. The price is paid in group B, where the model now sees less: 74% of its bad clients get through instead of 68%. The approval gap itself hardly moves, from 33.6 to 32.9 points. What changed is not how many people in group A are approved but which ones. And because set 2 leans on shopping data, the sex‑reconstruction test is repeated after the change, as after every change. The gain in A has a price in B. That is a decision, and it has to be written down.

5. A documented choice

Every “technical” decision in this note had someone paying for it:

Technical decisionWho bears the cost
Reference populationthe groups that disappear in the funnel
Reject inference, yes or nothe rejected
Calibrated PD and a single cutoffthe group with the higher default rate
Removing a variablethe group the model recognises through proxies
Selection of features and modelthe group the model separates worse

Each of these decisions can be defended. None of them follows from the data alone.

What a documented choice looks like. An entry in the model development report, one for each decision. For the choice of feature set above:

D7: choice of feature set
Optionsset 1 (current) or set 2 (better in group A); Gini 44.2 against 43.6
Choiceset 2
Justificationthe same power, calibration preserved; good clients rejected in group A: 42.2% → 39.6%
Who bears the costgroup B and the portfolio; bad clients approved in group B: 68.3% → 73.8%
Measure and thresholdGini in group A and in group B, default rate among the approved in group B; outside the tolerance: alert and review
Reviewat recalibration, after 12 months at the latest

We also watch what we do not optimise. Equal approval rates were not the aim of that choice, but we watch how the gap changes. It can be computed on every applicant, without waiting for repayment. The reference point is the level on the day the model was approved, not zero. Leaving the tolerance band means an alert and a review.

Monthly approval gap between groups over 24 months with a tolerance band; months 17 and 18 leave the band Monthly approval gap between groups over 24 months with a tolerance band; months 17 and 18 leave the band
Twenty‑four months of the approval gap for set 2, with 20 000 applicants a month. The level at approval is 33 points and the tolerance is ±3. In months 17 and 18 a campaign brings in riskier applicants from group A, and the gap reaches 41 points.

A conscious choice includes knowing what it costs, and noticing when the cost goes up.

The deliverable is a recorded choice, not a “fair model”.

  • We do not declare a “fair model”. We declare which definition we chose and what it costs us.
  • We write down every decision. What the options were, what we chose, why, and who bears the cost.
  • Data science gives the options, the business decides. The choice of values does not belong to the modelling team.

That is also what Annex IV asks the technical documentation to contain: the design choices, the trade‑offs and the metrics for discriminatory impact.

Beyond scoring: what transfers

Scoring is a special case, but the lessons are about decisions, not about the algorithm.

LessonHigh‑risk systemsOrdinary MLLLMs
Every definition of fairness is a choiceyesyesyes
We measure only the people we can seeyesyespartly
Removing a feature does not remove ityesyesyes
Many equally good models existyesyesyes
Calibration chooses for uspartlynono

Only the last row is specific to risk models: a calibrated probability and a single cutoff are requirements of credit risk, not of every system that decides about people. And Art. 4a allows bias to be examined on sensitive data outside the high‑risk category too.

Reproduce the figures

Every figure and every simulation number on this page comes from one seeded script: synthetic applicants in two groups, XGBoost PD models on different feature sets, matplotlib. fair_gen_figs.py. The 100‑client example is plain arithmetic, as in the talk. The data are synthetic and say nothing about any real lender’s portfolio; what I say about our own practice comes from the talk, not from the simulation.

This note is the written version of my Data Science Summit 2026 talk in Warsaw, Fairness to wybór, nie metryka: wyzwania debiasingu modeli i gdzie jest pole manewru (given in Polish). Slides: Fairness to wybór, nie metryka (PDF) · all talks: github.com/wlazlod/conference-talks.

Sources

  • Regulation (EU) 2024/1689 (AI Act): Art. 4a, 10, 11, Annex III point 5(b), Annex IV.
  • Regulation (EU) 2026/1744 (Digital Omnibus on AI).
  • Directive (EU) 2023/2225 (CCD2), Art. 6 and 18; the Polish implementing act was still in progress in November 2026.
  • Regulation (EU) 2016/679 (GDPR), Art. 9.
  • CEN‑CENELEC JTC 21, “Final stretch before the publication of harmonized standards in support of the AI Act”, 28 October 2026.
  • Kleinberg, Mullainathan & Raghavan (2017), Inherent Trade‑Offs in the Fair Determination of Risk Scores.
  • Chouldechova (2017), Fair Prediction with Disparate Impact.
  • Kleinberg, Ludwig, Mullainathan & Rambachan (2018), Algorithmic Fairness.
  • Chen, Kallus, Mao, Svacha & Udell (2019), Fairness Under Unawareness: Assessing Disparity When Protected Class Is Unobserved.
  • Lakkaraju, Kleinberg, Leskovec, Ludwig & Mullainathan (2017), The Selective Labels Problem.
  • Breiman (2001), Statistical Modeling: The Two Cultures.
  • Black, Raghavan & Barocas (2022), Model Multiplicity: Opportunities, Concerns, and Solutions.
Cite this note (BibTeX)
@misc{wlazlo2026fairnesschoice,
  author       = {Wlaz{\l}o, Daniel},
  title        = {Fairness Is a Choice, Not a Metric},
  year         = {2026},
  month        = nov,
  howpublished = {datadeer.pl},
  url          = {https://datadeer.pl/notes/fairness-is-a-choice.html}
}