Abstract
The central question of this paper is how to simply enhance a set of given supervised learning algorithms under some fairness requirements, to ensure that any sensitive variable does not “unfairly” influence the outcome. To achieve this goal, we work with several notions of fairness (Demographic Parity, Equalized Odds, Lack of Disparate Mistreatment), possibly generalised to more general concepts of conditional fairness. We linearly combine an ensemble of binary and/or continuous basis classifiers or regressors to build an “approximately optimal” solution in terms of fairness and accuracy for any given notion of fairness. The trade-off between fairness and predictive power is managed by considering penalised criteria. We rely on post-processing procedures without any transformation of the data nor of the basis training algorithms. Some empirical experiments, by simulation and on real databases, are provided to illustrate our approach.
Introduction
Machine learning is increasingly used to take decision that can severely affect people’s life in education, living, working, lending or criminal risk assessment, for instance. This phenomena has been accompanied by an increase in concern about disparate treatment caused by potential model failures and patent biases in training data. The potential for unfairness 1 in algorithmic decisions being growing, an important recent stream of the literature around some notions of fairness and fair algorithms is rapidly developing. It has been inspired by the concept of discrimination in social sciences and law, extending previous works done for instance by Cleary (1966) and Einhorn and Bass (1971), but under the point of view of machine learning. To be short, to ensure that learned classifiers (or regressors, more generally) are non-discriminatory - also called “fair” - with respect to some sensitive feature has become a crucial question.
A significant effort in the machine learning community (and beyond) has focussed on the development of mathematical definitions of fairness (Berk et al., 2018; Hardt et al., 2016; Madras et al., 2018, among others) and of algorithmic methods to assess and mitigate biases in relation to these definitions: Agarwal et al. (2018), Kusner et al. (2017), Zafar et al. (2017), Lundberg and Lee (2017), among others. The interest in improving fairness for classification or regression purpose is to be able to make “responsible” predictions. A model should be considered as convenient under this ethical point of view if its predictions are reliable and aligned with the system objectives, which most often includes accuracy (predictions should mostly indicate ground truth) and fairness (
For a given notion of fairness, a challenge is then to propose some modelling procedures in order to get more fair predictors without sacrifying too much accuracy (predictive power). Numerous ways of obtaining fairness - at least approximately - are reviewed in Section 2. In this paper, we will adopt a post-processing point-of-view: for some given notion of fairness, once one or several predictor(s) are calibrated, their performance(s) could be adjusted and/or combined to obtain more fair predictions. We will start from some machine learning “basis” algorithms that will be applied to the same dataset. This is not demanding because several simple and/or standard methods for classification/regression purpose are most often available in practise. In order to provide fair predictions, we linearly combine the latter set of predictors, in the spirit of random forests (Breiman, 2001). Usual ensemble learning algorithms invoke the same type of basis classifiers to produce repeated multiple classifications of the same records (Kotsiantis & Pintelas, 2004). In our case, we will potentially use very different basis classifiers/regressors, and we will require only a few ones instead of hundreds (at least), as for random forests. Our challenge will be to calibrate the respective weights of some basis predictors in an “optimal” way, depending on the notion of fairness we have selected. This will be done by optimising some penalised criteria, after having empirically estimated some convenient measures of fairness and accuracy. Our final predictors will be linear combinations of the basis predictors, whose weights depend on a trade-off between accuracy and fairness (through the choice of an hyperparameter). In some classical situations, we are even able to exhibit closed-form solutions.
The rest of the paper is organised as follows. Section 2 provides an analysis of the literature about fairness definitions and the ways of obtaining more fair predictors. In Section 3, we formally define all the fairness measures we investigate, i.e., demographic parity, equalised odds and lack of disparate mistreatment. Moreover, we introduce conditional versions of such measures, given an arbitrarily chosen set of explanatory variables. In Section 4, we introduce our new post-processing procedure, i.e. building several predictors by model averaging. Where possible, optimal solutions are provided, depending on the selected notion of fairness. The trade-off between fairness and accuracy is managed through penalisation. Some numerical experiments on real datasets and by simulation illustrate the relevance of our approach in Section 5 and in Section A in the appendix.
Analysis of the Literature
The related machine learning literature has tended to focus on domains such as recidivism prediction, automated hiring and face recognition, where fairness can be understood, at least partially, in terms of well-defined quantitative metrics. It has been argued that some algorithms trained with biased data may result in algorithmic discrimination, as in illustrated in Barocas et al. (2023). For example, some statistical methods used in the US judicial system are questioned, pointing to a bias against African-Americans. Indeed, African-American defendants were more likely to be wrongly classified as having a higher risk of recidivism. Thus, a fairly extensive literature has proposed different criteria to identify and correct such biases. All these works have been enriched by research on discrimination involving gender, race, colour, religion, disability, family status, children health, facial recognition, etc. For instance, Buolamini and Gebru (2018) analyze pictures to evaluate how biases can be present in automated facial analysis algorithms and datasets with respect to phenotypic subgroups. Chouldechova et al. (2018) investigate the decision of children’s placement in case of abuse based on administrative information and how such pieces of information can impact decisions. Other examples can be found in O’Neil (2016), Noble (2018) and Lambrecht and Tucker (2019), among others.
The simplest and most intuitive notion of fairness is statistical parity, also called group fairness or demographic parity, which equalizes outcomes across protected and non protected groups. Demographic parity of a predictor requires that its predictions are independent of a protected attribute (also called “sensitive attribute”). Under this approach, the (unconditional) distributions of the predicted class/outcome should be the same for both protected group categories. From an intuitive viewpoint of justice, a strict application of demographic parity can create highly undesirable decisions. For instance, if the protected attribute is gender, one might incarcerate women who pose no public safety risk so that the same proportions of men and women are released on probation. This problem has been illustrated in Dwork et al. (2012).
In order to avoid the limitation of the previous concept of fairness, it seems necessary to take into account the “true” output, beside its predictor and the protected attribute. This induced the idea of equalised odds with respect to a protected attribute. This occurs when the given predictor and the protected attribute are independent conditionally on the output (Hardt et al., 2016). This notion of fairness is also called conditional procedure accuracy equality (Berk et al., 2018). Thus, a binary predictor satisfies equalised odds if two individuals in different groups are treated comparably by this predictor when they exhibit comparable future behaviour.
The closely related concept of equal opportunity boils down to equalised odds when focusing on a particular value of the discrete outcomes only. This notion is used in particular when one specifies a decision concerning a beneficial outcome, like “not defaulting to a loan” or “admission to a college”, for instance. This notion is called balance for the positive (or negative) class in Kleinberg et al. (2017). Beside, another unfairness metric of interest, called disparate mistreatment, has been introduced by Zafar et al. (2017). These authors call a decision making process to be suffering from disparate mistreatment with respect to a given sensitive attribute (e.g., race) if the mis-classification rates differ for groups of people having different values of that sensitive attribute (e.g., black or white).
In our work, we will develop our methods by working with the concepts of demographic parity, equalised odds and the lack of disparate mistreatment, which are among the most popular and widely accepted (Verma & Rubin, 2018, Table 1).
Summary of the “Adult” and “COMPAS” Datasets.
Summary of the “Adult” and “COMPAS” Datasets.
The idea of improving the fairness of classifiers/regressors is not new and several strategies have emerged in the literature. Indeed, in order to address the ethical problem posed by a lack of fairness, several fairness-aware machine learning algorithms have been investigated. As in Friedler et al. (2019), they can be categorised as (i) pre-processing techniques, designed to modify training data so that the outcomes of any machine learning algorithm applied to such data may be considered as fair; (ii) algorithm modification techniques, that modify an existing algorithm or create a new one that will be fair for any traning dataset; (iii) post-processing techniques, that rework the outputs of some model so that it becomes more fair.
The motivation behind pre-processing algorithms is the idea that training datasets may be a source of discrimination that a machine learning algorithm might learn. This phenomenon could appear because the training data itself captures historical discrimination, or because there are more subtle patterns in the data (under-representation of a minority group, e.g.). In order to remove the assumed bias introduced by a dataset, the first natural idea would be to modify the labels of some attributes. For instance, this means that the proportions of positive labels are equal in the protected and unprotected groups. A classifier is then trained with these new labels assuming that equal opportunity of positive labelling will become widespread in test sets. Calders et al. (2009) and Kamiran and Calders (2012) propose diverse approaches to attain this objective: removal of some raw data (based on correlations analysis), change of their labels, re-weighting of observations. Calmon et al. (2017) have chosen to work by randomisation, following the works of Pedreschi et al. (2009) and Zemel et al. (2013). Another idea was proposed by Dwork et al. (2012) for statistical parity. It consists in mapping training datasets to intermediate representations, by optimising a classification criterion while constraining nearby individuals to be mapped similarly. A major difficulty with pre-processing algorithms comes from interaction effects (e.g., between race and earnings). Some a priori non sensitive variables may contain information leading to unfairness. In theory, all interactions effects between senstive features and the others would need to be anticipated and removed. Obviously, even if it were possible, this cleaning procedure would induce a significant loss of information. Rebalancing the information set is another possibility (Berk et al., 2018; Zemel et al., 2013). Lu et al. (2017) use actionable plans to transform predictions of the inputs to desired outputs at minimal cost.
Beside, algorithm modifications are present in the form of additional constraints during the calibration stage, considering that removing sensitive features is insufficient. This is most often made through regularisation or constrainted optimisation. For instance, Kamishima et al. (2012) introduce a fairness focussed regularisation term and apply it to a logistic regression classifier. Considering disparate impact fairness, Feldman et al. (2015) impose to their binary classifier a constraint that corresponds to a balanced error rate. Calders and Verwer (2010) build separate models for each value of a sensitive attribute and apply the appropriate model depending on the value of this attribute. Zemel et al. (2013) combine pre-processing and algorithm modification. Their approach is to learn a modified representation of data that is most effective for classification purpose, while still being free of signals pertaining to the sensitive attribute. Observing that standard fairness constraints are non convex and cannot be easily satisfied, Zafar et al. (2017) introduce a convex relaxation during an optimisation stage. Following the same ideas, Donini et al. (2018) directly enforce fairness during the training step of a classifier, optimising a fairness constraint related to the notion of equalised odds. See Kamishima et al. (2012), Agarwal et al. (2018), among others, and a review by Friedler et al. (2019). In some cases, optimal fair classifiers can be explicitly obtained on a theoretical basis: see Chzhen et al. (2020) and del Barrio et al. (2020).
A third approach to obtain fairness in Machine Learning is by modifying the results of a previously trained predictor to achieve the desired results on different sub-groups. These ideas are categorised as post-processing techniques, even if they often may be seen as algorithm modifications too. For example, Kamiran et al. (2010) propose an approach in which the non-discriminatory constraint is deeply pushed into a decision tree learner by changing its splitting criterion and its pruning strategy. They use a novel leaf re-labelling approach after training in order to satisfy fairness constraints. A similar approach is proposed in Zliobaite (2015) who splits the initial dataset, trains a logistic regression, outputs class probability scores for the test set and varies the classification threshold from 0 to 1, which changes the acceptance rate. Hardt et al. (2016) propose to enforce equalised odds binary choice situations based on univariate scores by conveniently choosing thresholds. They introduce a predictive score with the enforcement that higher values of this score correspond to greater likelihoods of the outcome of interest. A binary classifier is obtained by thresholding the score. A score satisfies equalised odds if it is independent of the sensitive feature given the outcome. The idea that the prediction error restricted to any protected group remains below some pre-determined level has also be investigated in a regression setting under statistical parity by Agarwal et al. (2019). See also a related work by Chzhen et al. (2020), in which the authors measure unfairness by the Total Variation distance in place of Kolmogorov-Smirnov distance. Woodworth et al. (2017) explored the use of post-processing as a way to ensure fairness with respect to error profiles by directly incorporating non-discrimination into the learning process. A similar approach is developed in Kearns et al. (2018) who work with subgroups in place of individuals. A random reassignment of the class labels previously assigned by the algorithm has been proposed in Feldman et al. (2015). Agarwal et al. (2018) used a weighted classification implementation of logistic regression and gradient-boosted trees in order to find the lowest-error distribution over a class of classifiers.
Our approach by model averaging is different from the previous methods due to several points. First, it cannot be associated with a pre-processing technique : we do not modify the input data to make fair the outcomes of the classifiers applied to the data. Indeed, the motivation behind preprocessing algorithms is the idea that training data is the cause of discrimination in most machine learning algorithms. And, by modifying data, one can protect most learning algorithm from the risk of discrimination. However, to avoid this pitfall, one must be sure that all correlations (or other more subtle relationships between the features in the data) have been removed. This requires having “anticipated” all the hidden relationships between these variables, a very difficult and questionable task. Second, our technique by “averaging” is not related to algorithm modification because it does not rework the calibration stage of our basis classifiers/regressors. Indeed, reworking the basis predictors under fairness constraints in terms of calibration may be a source of worry in practical terms (numerical burden, recoding, etc), and their fairness woud be enforced only approximately most of the time.
Actually, the closest paradigm to our method by model averaging is post-processing. Indeed, we propose to linearly combine several “basis predictions” that are generally unfair to obtain more fair predictions, and without sacrificing too much predictive power. Our technique does not require to build new estimators but simply to combine the existing ones conveniently, a clear advantage in practise. Moreover, by taking such basis predictors as given and built in a preliminary stage that we do not reconsider, we can combine potentially very-complex basis predictors (neural networks, in particular) without opening the “black-box”. Note that averaging a group of classifiers/regressors generally performs more accurately than using a single one, by combining the strengths of the individual predictors - which can be very different - while at the same time their weaknesses are mitigated. The latter idea is applied in machine learning under the terminologies “bagging” or “ensemble methods”. This is recognized as a powerful way of decreasing prediction errors (Hastie et al., 2009, Section 8).
There are no direct connexions between our way of working and the existing post-processing techniques that have already been proposed in the literature. Nonetheless, independently and in parallel to this work, some authors have recently applied similar ideas, but restricting themselves to a particular family of machine learning models or/and in a different spirit. Grgić-Hlaa et al. (2017) were the first to note that ensemble method can improve model fairness. They propose using an ensemble method that randomly selects a classifier from a pool. Bhaskaruni et al. (2019) have reworked the AdaBoost weighting scheme to improve fairness, using the k-NN technique of unfairness detection proposed by Luong et al. (2011). See Iosifidis et al. (2019) too, that apply Adaboost in addition to post-processing. Kenfack et al. (2021) assign weights of classifiers proportionally to their performances in term of fairness and accuracy, respectively evaluated in terms of an arbitrarily chosen fairness metric and classification errors. Nonetheless, their reweighting formula may be seen as rather arbitrary. To improve fairness, Zhang et al. (2021) proposed the so-called Fair and Adaptive Random Forests (FARF), an adaptation of the classical random forest algorithm. Still in the case of random forests, Fantin (2020) and Hu et al. (2019) assume the existence of a third party which holds private demographic information, audits the (numerous) trees generated from a data centre that stores non-private data only, and selects those that are acceptable in terms of fairness. The final predictor is finally a weighted average of the retained individual predictors. The trade-off between fairness and accuracy was considered by Guardieiro et al. (2023) as a multi-objective optimisation problem. To exhibit Pareto-optimal models, they propose an iterative calibration strategy for finding weights and model parameters. On our side, the model parameters are fixed and only the weights have to be found. See other references in Guardieiro et al. (2023). Note that many so-called “fair” decision trees - including random forests - techniques have also been proposed in the literature. Most of them propose to modify the information gain metric when selecting attributes to split leaf nodes in a fair way. With our terminilogy, they belong to the family of algorithm modifications: see Raff et al. (2018), Nanfack et al. (2021), Zhang et al. (2021), Abebe et al. (2022), among others.
Finally, even if most of the reviewed literature comes from computer science, there are also many recent contributions in economics and econometrics on this topic. Some of these papers incorporate fairness through some constraints and/or penalties as in our work. Others state a welfare function as a loss, by building group-specific weights for instance. Such welfare functions yield interesting alternative approaches to penalisation method based on misclassification errors and MSE. See Rambachan et al. (2020), Ghysels et al. (2020), Kitagawa et al. (2021) and references therein.
This preliminary section formally recalls all definitions and concepts of fairness that will be used afterwards. All of them have already been defined in the literature of the domain.
Let
Strictly speaking, a (univariate) predictor is a mapping
As discussed in the introduction, many definitions of fairness have been proposed in the literature: see Williamson and Menon (2019), and the references therein. Now, we mathematically define the concepts that will be of interest in this paper.
Demographic parity (also called statistical parity or DP) is satisfied when In the case of a continuous predicted variable While simple and intuitive, demographic parity has serious conceptual limitations as a fairness notion, many of which are pointed out in Dwork et al. (2012). Equalized odds (EO) is satisfied if When the random variables All our definition and further developments around equalised odds can be easily adapted to the related concept of “sufficiency” (Barocas et al., 2023), for which the roles of In the case of discrete outcomes, the lack of disparate mistreatment (LDM) (Zafar et al., 2017) is defined as
The discrepancy between The criteria above encourage us to consider fairness based on conditional probabilities/expectations/laws. Now, we define a general notion of conditional fairness, that extends any previously defined concept of fairness. Assume that
In the case of demographic parity and discrete outcomes, this means
Other references are Woodworth et al. (2017) and Darlington (1971).
All the concepts of conditional fairness impose stronger constraints than the previously defined criteria. 3 Even if the original idea of conditional fairness already appeared in Kamiran et al. (2013), it formal definition emerged only recently. Notably, “conditional statistical parity” has been defined in Corbett-Davies et al. (2017), Ritov et al. (2017), Xu et al. (2020), Hurlin et al. (2024). In this paper, we extend this concept beyond DP and towards EO and LDM.
We present our new class of fair predictors by “model averaging” (or “bagging”), for the different notions of fairness we have introduced before. They linearly combine several (a priori unfair) basis predictors, under a post-processing perspective. We will discuss several penalised criteria to find a convenient trade-off between the predictive power of the new predictors and their fairness.
The Idea of Model Averaging
To fix the ideas, assume we have
An ensemble of
In the case of regressions, the idea of bagging (Breiman, 1996) is similar: combine
The previous formulation is very general and includes some popular models as special cases, like random forests. The latter additive tree model is widely used in real-world applications and appears as the most popular and powerful off-the-shelf classifer (Breiman, 2001). It can cope with regression and multi-class classification for categorical or numerical variables with high degree of accuracy. In essence, random forest is a bagging model of trees where each tree is trained on a group of randomly sampled instances with randomly selected features. 5
Now, we would like to calibrate
Typically, as for random forests, the number
Until now, we have not discussed the predictive power of such new models by model averaging. In other words, it is likely that an “optimal” weighting scheme that only seeks to improve fairness will deteriorate its performances in terms of prediction, compared to the initial classifiers/regressors (or at least the best ones). Intuitively, when we use fair predictors based on weighted averages of some “reasonably performing” basis predictors, the new performances should be “average”, in a rough sense. Specifically, they should belong to the range of the performances obtained with the initial predictors, at least when all weights are nonnegative and sum to one. We will propose to directly manage the trade-off between fairness and predictive power by considering penalised criteria. They would simultaneously take into account the loss due to unfairness and the loss due to bad predictions. The share between the two losses will be tackled through a tuning parameter
Penalized Criteria
For every fairness concept, our aim is to find an optimal vector of weights
Note that solving (4.1) would not yield strictly speaking a fair predictor by averaging simpler predictors. Our logic is rather to exhibit predictors that are “approximately fair”, the result of a reasonable trade-off between fairness and accuracy. Many authors already agreed that imposing strict fairness is often a too strong requirement, or at least too costly in terms of prediction power. See the penalised approach of Centorrino et al. (2022), the
By considering linear combinations of basis predictors, our model encompasses all these simpler models. In other words, model averaging enriches the set of the initial models, offering more flexibility. As a consequence, after convenient calibration, we can achieve better fairness that individual predictors, and similarly in terms of accuracy. Concerning the two latter dimensions simultaneously, we exhibit a set of “optimal models” by playing with the hyperparameter
To approximately satisfy some moment conditions, we rely on an i.i.d. sample
Let us first deal with demographic parity, as defined by the constraint (3.3). A natural criterion of fairness is here The empirical versions of the latter constraints are obtained by replacing theoretical expectations by empirical ones, based on the calibration subset. A convenient choice of When Alternatively, assume there are an infinity of solutions Concerning equalised odds, the constraint (3.5) has to be satisfied for every Under some conditions of regularity, it can be shown that Under the point of view of LDM, let us still choose a To obtain “perfect fairness’, the goal would be to find a vector Concerning conditional fairness given a vector of covariates, the picture is more complex because we have to manage multiple conditioning random vectors. Depending on our definition of fairness (DP, EO or LDM), denote by
To build a fair classifier/regressor by linear combinations of basis predictors in the DP or EO cases, we would like to fulfil some moment-type relationships as
An alternative direct approach is possible, that does not necessitate partitioning the
The weights associated to our basis selectors intuitively behave as follows: if one of the basis selectors is better than the others both in terms of accuracy and fairness, it will capture most of the total weight (the
Even if most papers in the literature focus on binary outcomes (classification), we stress that our methodology through penalised criteria obviously applies to general regression-type problems, as illustrated in Section 5.3. In other words,
In the case of binary explained variables
In the case of demographic parity, a general penalised criterion for finding optimal weights is
In the case of equalised odds, it is necessary to redefine some quantities of interest: for every The generalised penalised-EO programme could be defined as
Concerning lack of disparate mistreatment, for every
When
Interestingly, note that our penalised loss framework can easily take into account several definitions of fairness simultaneously, through slightly more complex programmes. For instance, if a user hesitates between Demographic Parity and Equalized Odds, the best suited solution by model averaging would be to mix (4.3) and (4.7). When
More generally, taking into account all fairness criteria and all potential discretization options, a “meta-program” to simultaneously manage DP, EO and LDM would be a synthesis of (4.11), (4.12) and (4.13). With the notations of Section 4.3, this means
Numerous definitions of fairness are available in the literature. In this paper, we have focussed on four of them, as defined in Section 3. It would be easy to adapt our ideas and our penalised criteria to other concepts of fairness, once they can be rewritten as equalities between some conditional expectations. Sometimes, none of these concepts is self-evident and it is not obvious to discriminate between several criteria of fairness. For instance, choosing between “separation” (
Empirics
In this section, we illustrate our way of improving the fairness of some predictive models, and also the difficulty of this task when a high predictive power is required. This trade-off is well known in the literature. We will stress the practical importance of the tuning parameter
Performance Measures
Consider general binary and/or continuous predictive models
Many measures of fairness may be chosen, depending on the concepts we consider (Friedler et al., 2019, e.g.). We will work with the following ones, that are relevant for any continuous or binary explained variable in the case of demographic parity, the “disparate impact” is defined as
in the case of equalised odds, we propose the measure of “mean in the case of lack of disparate mistreatment, define the “disparate mistreatment rate” as
In the previous definitions, we recall that expectations have to be understood w.r.t.
To measure conditional fairness, the same concepts can be easily adapted. For instance, a measure of conditional demographic parity given
To evaluate the accuracy of our predictors, we simply rely on the classical mean-squared error

The data split process.
This stage remained hidden in Section 4, because we considered some “given” basis estimators. Then, based on the calibration dataset Demographic parity: the empirical Equalized odds: the empirical mean Lack of disparate mistreatment: the empirical Conditional demographic parity: the empirical conditional Conditional equalized odds: the empirical mean conditional Conditional lack of disparate mistreatment: the empirical conditional
To obtain a global idea of conditional fairness, we can calculate an “average” of these measures to estimate
The choice of the bandwidth
We use two commonly-used real datasets for fairness studies: Adult dataset 8 and COMPAS (Correctional Offender Management Profiling for Alternative Sanctions) dataset. 9 The Adult database provides information about gender, age, education level, etc., of some individuals. The task is to predict whether a person can gain more than 50k USD per year, using gender as the sensitive variable. The COMPAS recidivism dataset includes information about criminal history information, gaol and prison time, demographic features, etc. The task is to predict if a prisoner is likely to have recidivist behaviour, with race as the protected attribute. Here, we distinguish only the white community from the non-white community, without further digging into the precise race classification. A summary of the two latter databases is given in Table 1. After some basic preprocessing of these two datasets (dealing with the missing data, encoding the categorical variables, etc.), we split each dataset into three parts: training (30%), calibration (50%) and test (20%) datasets. We compare the performance of the bagging predictor (without any discretization procedure and without imposing the positivity of the weights) with other state-of-the-art post-processing fair learning methods, especially the methods of Agarwal et al. (2018) and that of Hardt et al. (2016). The latter methods yields a way of improving the fairness of some basis predictors. We have used the existing code provided by these authors. For comparison purpose, the training datasets and the test datasets are the same among different post-processing methods.
To illustrate the method, let us specify the criterion to be minimised in the DP case and for the COMPAS dataset. Here, we consider 5 basis predictors.
10
Any vector
In Figures 2 and 3, we use a 2-dimension map to compare the performances of all these different predictors. One dimension evaluates fairness (with perfect fairness at zero), and the other dimension evaluates precision with MSE. The closer the performance of a model is to

Comparison of performances between our bagging predictor and other post-processing methods (COMPAS dataset). (a) Demographic Parity performance of the bagging predictor on the COMPAS dataset, (b) Equalized Odds performance of the bagging predictor on the COMPAS dataset, (c) Lack of Disparate Mistreatment performance of the bagging predictor on the COMPAS dataset.

Comparison of performances between our bagging predictor and other post-processing methods (Adult dataset). (a) Demographic Parity performance of the bagging predictor on the Adult dataset, (b) Lack of Disparate Mistreatment performance of the bagging predictor on the Adult dataset.
In the case of continuous explained variables
Summary of the “Crime” and “Law” Datasets.
Summary of the “Crime” and “Law” Datasets.
After some basis preprocessing of these two datasets as in Section 5.2, we similarly split each dataset into three parts (training, calibration and test subsets). In the case of regression, there is no discretization issue, and optimisation could be done easily. Thus, we have tested the bagging method with different fairness definitions, as discussed before.
With the same notation as in Section 5.2 and to illustrate, let us specify the criterion to be minimised in the EO case and for the Law dataset. We still invoke the 5 basis predictors as for classification purpose. Every basis predictor provides a forecasted value of

Comparison of performances between our bagging predictor and other post-processing methods (Crime dataset). (a) Demographic Parity performance of the bagging regressor on the Crime dataset, (b) Equalized Odds performance of the bagging regressor on the Crime dataset, (c) Lack of Disparate Mistreatment performance of the bagging predictor on the Crime dataset.

Comparison of performances between our bagging predictor and other post-processing methods (Law dataset). (a) Demographic Parity performance of the bagging regressor on the Law dataset, (b) Lack of Disparate Mistreatment performance of the bagging predictor on the Law dataset.
We have studied a new simple method to improve fairness from a set of several “basis” unfair classifiers/regressors, by linearly combining their forecasts. Our procedure may be considered as a particular case of “model averaging” or “bagging”, to be inline with the terminology in machine learning. Such ideas have been applied to three standard fairness concepts - Demographic Parity, Equalized Odds and Lack of Disparate Mistreatment -, in addition to some extensions towards “conditional fairness” given the values of some non sensitive features. In practical terms, there is a trade-off between accuracy and fairness, as expected. Even with a small number of predictors, an almost perfect fairness seems to be reachable most often, but at the price of a significant loss of accuracy. Clearly, the more basis predictors we have, the more flexible the model will be. And the easier it will be to achieve near perfect fairness at a reasonable price in terms of accuracy. A simulation study has shown the potential of our method and its sensitivity to our tuning parameter. Our method performs more than honourably compared to some competing methods, as observed on several real databases. Nonetheless, more empirical work is surely necessary to evaluate to what extent our findings and intuitions are robust in practise. Moreover, finding an “optimal” data-driven tuning parameter is another avenue for further studies. This choice would surely depend on the individual preferences of users (and society as a whole) between fairness and forecasting performances. Under this perspective, a true behavioural model seems to be necessary.
We have improved a set of basic predictors by simple linear combinations. One advantage of this approach is its simplicity, but it can also be seen as a limitation. Thus, it could be desirable to extend our framework by looking for non-linear functions of the first stage predictors. In principle, this would be theoretically possible, at the cost of more complex and relatively arbitrary parameterizations, which are open to question. What is more, we would lose the closed-form solutions we had found. Nevertheless, we keep this idea for future work.
Footnotes
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: J.-D. Fermanian was supported by the labex Ecodec (reference project ANR-11-LABEX-0047).
Declaration of Conflicting Interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Notes
A simulation Experiment
Let us evaluate the numerical performances of our “fair bagging” predictors on a simulated experiment. To this aim, we generate a synthetic dataset where the explained variable
For every experiment, as a preliminary stage, we evaluate
To evaluate the performances of the new bagging classifiers, we are free to choose continuous and/or discrete predictors, during the calibration stage and/or the testing stages, as explained in Section 3.3 of the main paper. To simplify, we consider only two cases:
the “no-discretization” case, where our predictor by model averaging is a real number, directly calculated as a linear combination of the outputs of the basis classifiers, for calibration and testing purposes ( the discretised case, where the bagging predictor is always binary, during the calibration and the testing stages ( Accuracy and Fairness of the Three Basis Classifiers, that have been Combined by Model Averaging. For every type of fainess concept, the medians (first line) and the standard deviations (second line, into brackets) of the corresponding performances measures (as defined in section 4.1) are calculated on 250 independent drawns. Measure of accuracy (Mean Square Error; dashed line) and measures of Demographic Parity (disparate impact Measure of accuracy (Mean Square Error; dashed line) and measures of Equalized Odds (Mean Measure of accuracy (Mean Square Error; dashed line) and measures of Lack of Disparate Mistreatment (disparate mistreatment rate
The whole procedure is replayed
Fairness
Logistic
Tree
Neural Networks
Accur.
Fairness
Accur.
Fairness
Accur.
Fairness
DP (no discr.)
0.0718
0.331
0.077
0.343
0.138
0.362
(0.0016)
(0.0199)
(0.0018)
(0.0231)
(0.0372)
(0.1325)
DP (discr.)
0.096
0.202
0.104
0.173
0.146
0.201
(0.0037)
(0.0180)
(0.0068)
(0.0923)
(0.0374)
(0.1022)
EO (no discr.)
0.070
0.905
0.079
0.903
0.130
0.861
(0.0022)
(0.0069)
(0.0041)
(0.0097)
(0.0107)
(0.0736)
EO (discr.)
0.097
0.868
0.104
0.866
0.147
0.844
(0.0040)
(0.0149)
(0.0058)
(0.05967)
(0.0108)
(0.0799)
LDM (no discr.)
0.073
2.438
0.079
1.826
0.143
2.236
(0.0014)
(0.1541)
(0.0039)
(0.2525)
(0.0180)
(0.2584)
LDM (discr.)
0.096
2.506
0.104
1.995
0.149
2.149
(0.0041)
(0.2134)
(0.0053)
(0.2996)
(0.0267)
(0.2806)
Generally speaking, it is difficult to guess an “optimal value” of
Solution of Programme (3.8)
In the case of lack of disparate mistreatment and setting
