arXiv:2609.07959stat.MLSep 2026

Manuscript Offprint

arXiv:2609.07959

The Role of Uncertainty in Assessing the Fairness of Machine Learning Models

Francesca Panero, Ernst C. Wit, Marco Scutari

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Francesca Panero,¹,² Ernst C. Wit³,* and Marco Scutari⁴

¹ Department of Methods and Models for Economics, Territory and Finance, Sapienza Università di Roma, Rome, 00161, Italy, ² Department of Statistics, London School of Economics and Political Science, London, WC2B 4RR, UK, ³ Faculty of Informatics, Università della Svizzera Italiana (USI), Lugano, 6962, Switzerland and ³ Istituto Dalle Molle di Studi sull'Intelligenza Artificiale (IDSIA), Lugano, 6962, Switzerland

  • Address for correspondence. Ernst Wit, Faculty of Informatics, Università della Svizzera Italiana (USI), Lugano, 6962, Switzerland. ernst.jan.camiel.wit@usi.ch

Abstract

Machine learning models are widely used in clinical applications, social media, law enforcement and critical infrastructure. Verifying whether their outputs are biased against disadvantaged groups or individuals is crucial to ensuring they are fair and allowing their use in such settings. A rigorous risk assessment of possible fairness violations requires quantifying the uncertainty associated with selecting and estimating such models. Yet, this is rarely done in the literature, which focuses on identifying a single model with a suitable trade-off between predictive accuracy and fairness. In this paper, we move beyond point estimation and discuss frequentist and Bayesian approaches to uncertainty quantification for fair machine learning, with practical examples and implications for simulated and real data.

Key words: fairness, machine learning, uncertainty quantification, bootstrap, Bayesian inference, risk assessment

1. Introduction

Assessing the fairness of machine learning models is the process of identifying and eliminating algorithmic bias against individuals belonging to disadvantaged groups. Tools and commercial products based on such models, often called “AI systems,” are required to be “developed and used in a way that includes diverse actors and promotes equal access, gender equality and cultural diversity, while avoiding discriminatory impacts and unfair biases that are prohibited by Union or national law” by the EU AI Act (European Union, 2024). The US (U.S. Congress, 2020) and Japan’s AI Act (Japan, 2025) contain similar provisions. However, these legal frameworks and the associated guidelines also recognise that the possibility of unfair model outputs cannot be excluded entirely without impacting the models’ suitability for practical use. For instance, the NIST AI Risk Management Framework (NIST, 2023) explicitly states we should aim to “minimise anticipated negative impacts of AI systems and identify opportunities to maximise positive impacts,” discussing how “trade-offs may emerge between optimising for interpretability and achieving privacy” and “privacy-enhancing techniques can result in a loss in accuracy, affecting decisions about fairness” in different domains and scenarios. The trade-off between fairness and predictive accuracy is also widely documented in the literature (Menon and Williamson, 2018; Zhao and Gordon, 2022), and overcoming it remains an active research topic (e.g., Wick et al., 2019).

To fulfil these legal obligations, we must assess the risks associated with machine learning models by weighing the impact of various types of algorithmic bias against the probability of observing them. In turn, this requires us to quantify the uncertainty in the model outputs, including that arising from model selection, parameter estimation and the inherent stochastic noise in both training and target data. How to do that is not well explored in the literature, which mainly frames fairness as a constrained optimisation problem that produces only point parameter estimates (Pessach and Shmueli, 2022). In particular, the trade-off between accuracy and fairness is almost exclusively formulated as optimising for goodness of fit while constraining some mathematical definition of fairness using for example techniques from convex (Zafar et al., 2019), non-convex (Komiyama et al., 2018), graph (Agarwal et al., 2021) or functional optimisation (Oneto et al., 2020). Recently, attempts to introduce uncertainty in fairness have looked at how to reduce the impact of lack of information in data, especially regarding disadvantaged categories (Lee et al., 2026; Singh et al., 2021; Zhang et al., 2023), and how to embed uncertainty in the fairness definition (Tahir et al., 2023; Romano et al., 2020). The landscape, though, is still dominated by point predictions, largely because the machine learning and computer science culture of algorithmic fairness prioritises prediction accuracy over accurate modelling (Breiman, 2001; Shmueli, 2010).

This paper highlights the implications of uncertainty quantification in fair machine learning and offers suggestions for implementing it using frequentist and Bayesian approaches. Unlike to previous work in fairness uncertainty, we provide a characterisation of uncertainty leveraging a more classical statistical toolbox, which allows us to have exact rigorous results with well-understood properties, look at the uncertainty quantification problem from multiple points of view, and provide different solutions that can be useful for stakeholders in fairness. The approaches we describe, bootstrap resampling and hierarchical modelling, are representative examples of what frequentist and Bayesian statistics make possible in this setting; they are not meant as normative or universal recommendations. How we ensure fairness depends on which mathematical definition of fairness is most appropriate in a specific application; many are reviewed in Mehrabi et al. (2021) and Pessach and Shmueli (2022). It also depends on whether we are enforcing fairness by transforming the data before we analyse them (“pre-processing”), by appropriately selecting and estimating the machine learning model (“in-processing”), or by adjusting model predictions afterwards (“post-processing”). The literature presents several examples of each approach (Jiang and Nachum, 2020; Chzhen and Schreuder, 2022; Tifrea et al., 2024, among others), but again compares them mainly in terms of accuracy.

How much fairness we choose to enforce, different fairness definitions and pre-, in- and post-processing approaches will produce conclusions with different amounts of uncertainty, which should be taken into account when assessing model risk, as we argue in the following.

The remainder of the paper is structured as follows. We will introduce some notation and review the literature in Section 1.1. In Section 1.2, we formulate uncertainty quantification in the context of fair machine learning, noting the limitations of pre- and post-processing approaches. We then describe frequentist and Bayesian approaches to uncertainty quantification for in-processing approaches in Section 2. In Section 3, we first illustrate our findings on simulated data, investigating how correlation between sensitive and non-sensitive predictors and different fairness values affect uncertainty. Secondly, we apply the methodologies to two benchmark real data sets and discuss the implications of our findings.