Bounding and Approximating Intersectional Fairness through Marginal Fairness

Mathieu Molina, Patrick Loiseau

Introduction

Research on fairness in machine learning has been very active in recent years, in particular on fair classification under group fairness notions, see e.g., . Such notions define demographic groups based on so-called protected attributes (e.g., gender, race, religion), and impose that some statistical quantity be constant across the groups. For instance, demographic parity imposes that the class-1 classification rate is the same for all groups, but other notions were defined such as equal opportunity or calibration by group —see a survey in . As exact fairness is too constraining, one often measures unfairness, which roughly quantifies the distance to the fairness constraint.

Most works on fair classification consider a single protected attribute and hence only two (or a small number of) groups. Then, they use measures of unfairness to evaluate and penalize classifiers in order make them more fair. This is making an implicit but very fundamental assumption that one can estimate the unfairness measure from the data at hand. With only a few groups, this assumption is indeed easily satisfied as there are sufficiently many data points for each group.

In many—if not most—real-world applications, there are multiple protected attributes (typically 10-20) along which discrimination is prohibited . It is then desirable to consider the strong notion of intersectional fairness, which roughly specifies that no subgroup (defined by an arbitrary combination of protected attributes) is unfavorably treated. In that case, however, estimating the unfairness measure becomes very challenging: as the number of groups is exponentially large (e.g., 2102^{10} for 10 binary protected attributes), it is very likely that the dataset has at least one subgroup for which there are very few (or zero) data point. A potential solution is to treat each protected attribute separately through its marginal unfairness (which is easy to estimate); but it was observed in several real-world and algorithmic examples that it is not sufficient to ensure intersectional fairness . This raises the question: How to estimate intersectional fairness from data, and what is its precise relation to marginal fairness? To date, only very few papers have tackled this issue. adopt a definition of intersectional fairness that weights the unfairness of each group by its size. This allows them to get large-samples generalization guarantees of empirical estimates (hence solving the estimation issue), but then it does not protect minorities since it allows a very high unfairness for tiny subgroups—which is contradictory to the intuitively desired behavior.

makes a similar assumption by considering only subgroups above a minimum size, which eases estimate generalization. on the other hand uses the more natural definition of intersectional fairness based on the worst treated group irrespective of its size; but they consider only a few protected attributes, precisely to have enough data points on each subgroup to estimate intersectional unfairness. extends this work by proposing methods to interpolate for subgroups for which too few points are available, based on Bayesian machine learning models. However, this work is empirical and does not give any guarantee on the estimates obtained. In this paper, we also use the natural (strong) definition of intersectional fairness but we take instead a purely statistical approach. We view the protected attributes as random variables to understand intersectional fairness and how it related to marginal fairness more finely.

Contributions: We identify sufficient conditions under which intersectional fairness can be exactly derived from marginal densities, which clarifies when marginal unfairness is a good estimate of intersectional unfairness. We prove probabilistic bounds on intersectional unfairness based on marginal densities and independence measures of the protected attributes, that we show are easy to estimate. We propose a method to improve the approximation of intersectional unfairness and the theoretical bound based on grouping carefully some of the protected attributes together, which we do through a heuristic by leveraging the independence measures exhibited in our bounds. We perform experiments on real and synthetic datasets that illustrate the performance of our approach. In particular, we show that grouping with our heuristic does improve the approximation of intersectional unfairness. To the best of our knowledge, our work is the first work to exploit statistical information to better understand and estimate intersectional (un)fairness. Our work is fairly general and can be instantiated for a variety of standard fairness notions (demographic parity, equal opportunity, etc.). For simplicity, we focus on discrete protected attributes and on classification, but most of the core results can be extended to other cases.

Further Related Works: proposes a unified framework to train a fair classifier under intersectional fairness metrics, but without taking into account regimes with sparse group membership data. Some works propose to audit the accuracy of fairness metrics in contexts other than intersectionality, when there are missing data or when there are unlabeled examples . Others tackle the problem of intersectionality beyond group fairness, e.g., considers causal intersectional fairness. Finally there has been some interest in a different formulation of intersectional group fairness as a multi-objective optimization problem where each objective is the discrimination faced by a given protected group. Another interesting approach to fairness is individual fairness developed in , however this is quite different from group fairness metrics on which we focus on and our techniques do not apply.

Setting and Models

Notational convention: Wherever useful, for any two random variables VV and WW, we will use the short-hand pV(v) ⁣= ⁣Pr⁡(V ⁣= ⁣v)p_{V}(v)\!=\!\Pr(V\!=\!v), pV,W(v,w) ⁣= ⁣Pr⁡(V ⁣= ⁣v,W ⁣= ⁣w)p_{V,W}(v,w)\!=\!\Pr(V\!=\!v,W\!=\!w) and pV∣W(v∣w) ⁣= ⁣Pr⁡(V ⁣= ⁣v∣W ⁣= ⁣w)p_{V\mid W}(v\mid w)\!=\!\Pr(V\!=\!v\mid W\!=\!w).

Consider a multi-class classification task. A given individual is described by a tuple of random variables (X,A,Y)(X,A,Y) drawn according to a distribution D\mathcal{D} where XX is the features vector, YY is the label with values in Y\mathcal{Y}, and A=(A1,...,Ad)A=(A_{1},...,A_{d}) is a dd-tuple of protected attributes. The only variable used to make a prediction is XX and the only variable to measure unfairness is AA, but otherwise there are no constraints and AA can be a part of XX. We denote the support of XX, YY, AA and AkA_{k} for 1≤k≤d1\leq k\leq d, by X\mathcal{X}, Y\mathcal{Y}, A\mathcal{A} and Ak\mathcal{A}_{k} respectively. We assume that A\mathcal{A} is finite (hence discrete). For a deterministic classifier hh, Y^=h(X)\hat{Y}=h(X) is the predicted class for a random individual. The classifier hh is fixed, as we are interested in measuring its fairness and not finding a fair classifier.

To compare the discrimination between groups, we consider a second random variable A′A^{\prime} such that (A′∣Y^)(A^{\prime}\mid\hat{Y}) is independent and identically distributed (i.i.d.) to (A∣Y^)(A\mid\hat{Y}). Some authors look at the difference in the treatment of protected groups as a ratio , and some others as a difference . Here we choose to study discrimination in terms of ratio. We further apply a logarithm to symmetrize the discrimination measure between two protected groups and for ease of computation. We will consider Statistical Parity for simplicity of exposition, but other group fairness metrics can be either derived directly or adapted using the methods developed in this paper (see Appendix A.1). We define our measure of unfairness as follows:

For a distribution D\mathcal{D} and a classifier hh, we define the intersectional unfairness and the kthk^{th} protected attribute marginal unfairness as:

One could think that if the marginal unfairness of each protected attribute is smaller than some ϵ>0\epsilon>0, then the overall unfairness is smaller than ϵ\epsilon; measuring uM⁡ ⁣= ⁣sup⁡kuk∗\operatorname{u^{M}}\!=\!\sup_{k}u^{\ast}_{k} corresponds to this idea. As stated in the introduction this is not sufficient to describe unfairness and we can still have u∗ ⁣> ⁣uM⁡u^{\ast}\!>\!\operatorname{u^{M}}. We can rewrite (1) as u∗ ⁣= ⁣sup⁡Y ⁣log⁡(sup⁡ApY^∣A/inf⁡ApY^∣A)u^{\ast}\!=\!\sup_{\mathcal{Y}}\!\log(\sup_{\mathcal{A}}p_{\hat{Y}\mid A}/\inf_{\mathcal{A}}p_{\hat{Y}\mid A}), and similarly for uk∗u^{\ast}_{k}. This means that to measure unfairness we only need to analyze the function pY^∣Ap_{\hat{Y}\mid A}.

2 Estimation of Unfairness

Nonetheless, uBu_{B} has the drawback that for a low amount of samples and when the number of protected groups is high, it is almost determined deterministically by the parameter α\alpha and cannot be trusted. If Na ⁣= ⁣0N_{a}\!=\!0 for a protected group aa, the estimated distribution is uniform on Y^∣A ⁣= ⁣a\hat{Y}\mid A\!=\!a and this group does not affect the computation of the sup⁡\sup and inf⁡\inf. Hence if the most discriminated group is among the undiscovered one, we risk making an important error on the estimation. When NaN_{a} increases, we gain more information on the distribution of Y^∣A\hat{Y}\mid A. However, when NaN_{a} is still low for all groups, the estimated distribution of the inf⁡\inf of Y^∣A ⁣= ⁣a\hat{Y}\mid A\!=\!a is almost entirely determined by the prior parameter α\alpha.

3 Probabilistic Unfairness

When the number of protected subgroups grows arbitrarily large, it may be useless to try to guarantee fairness for every single one of them, regardless on how many people this truly affects. Should a decision maker sacrifice any potential predictive performance in order to guarantee fairness? It could be argued that an algorithm which discriminates 11 person among a 10001000 can be described as fair to an extent. We may even be able to directly compensate the small amount of persons discriminated against if possible. Let us consider another example: if a company has clients on which it leverages machine learning predictions to make decisions, it would seem very limiting to guarantee fairness for clients among specific protected groups for whom we will almost never deal with. Nevertheless, if the underlying clients distribution changes, our decision making process should also reflect this change in terms of fairness. This motivates looking at unfairness probabilistically in (Y^,A,A′)(\hat{Y},A,A^{\prime}). To do that we define the random unfairness U ⁣= ⁣u(Y^,A,A′)U\!=\!u(\hat{Y},A,A^{\prime}) the random variable which corresponds to randomly choosing a prediction, and then independently selecting two protected groups according to pA∣Y^p_{A\mid\hat{Y}} to compare them. We now define our notion of probabilistic unfairness:

For ϵ≥0\epsilon\geq 0 and δ∈\delta\in, we say that classifier hh over distribution D\mathcal{D} is (ϵ,δ)(\epsilon,\delta)-probably intersectionally fair if Pr⁡(U>ϵ)≤δ\Pr(U>\epsilon)\leq\delta.

Probabilistic fairness can be especially relevant in the context where AA are continuous sensitive attributes. Indeed, even for a very basic multivariate normal distribution on AA, we will end up with u∗ ⁣= ⁣∞u^{\ast}\!=\!\infty which is unhelpful. Yet by considering this notion of probabilistic fairness we end up with finite (hence comparable) measures of unfairness where the discriminated population size can be explicitly controlled; see Appendix A.4 for some examples. All in all, this notion of probabilistic unfairness, beyond its main interest of being a relaxed version of intersectional unfairness, could be in itself helpful for decision makers.

Measures of Independence and Theoretical Bounds

We now focus on providing valid (ϵ,δ)(\epsilon,\delta) couples for probable intersectional fairness. First note that while the intersectional unfairness u∗u^{\ast} is hard to estimate, it is much easier to estimate the marginal unfairness uM⁡\operatorname{u^{M}}. The work done by in the different setting of weighted unfairness, however, shows through experiments that across multiple classifiers and data-sets, u∗u^{\ast} and uM⁡\operatorname{u^{M}} can be uncorrelated, correlated, or even equal. Building on this observation, we would like to approach u∗u^{\ast} using marginal quantities estimable for reasonably-sized data-sets.

Since the intersectional unfairness takes into account the interactions between all the protected attributes AkA_{k}, one could guess that if the AkA_{k} are mutually independent, this implies that u∗u^{\ast} is close to uM⁡\operatorname{u^{M}}. Our first result is not far from this intuition, but we also need to take into account the influence from the classifier hh. Indeed, even if the protected attributes are independent, since the classifier makes predictions based on XX which may encode redundant information from some AkA_{k}, there can be interaction between those protected attributes through the classifier. See Appendix B.1 for a counter example with the independence of the AkA_{k} only but no clear relationship between marginal and intersectional fairness.

If the protected attributes AkA_{k} are mutually independent and mutually independent conditionally on Y^\hat{Y}, then

The main idea is to decompose pAp_{A} and pA∣Y^p_{A\mid\hat{Y}} as their products of marginals using the independence assumptions, and using the fact that the sup⁡\sup taken over a product of functions with independent variables is distributed over the product. The inequality is obtained because the sup⁡\sup of a sum is smaller than the sum of the sup⁡\sup. See proof in Appendix B.2. ∎

This theorem gives us a first sense on how intersectional unfairness relates with marginal unfairness in some contexts. This shows us that if the independence conditions are fulfilled, then u∗u^{\ast} becomes easy to estimate. What we provide here are conditions and a equation to derive a direct relationship between the intersectional unfairness and the marginal unfairness of each AkA_{k}. These are unfortunately too strong conditions to actually expect and are almost never randomly satisfied, but they help us give insight into the relationship between marginal and intersectional fairness. It also drives the analysis conducted in the next sub-section. We would like to relax the independence criteria while still using marginal information from the problem.

2 Bounds on Probable Intersectional Fairness

In order to bound the probable intersectional unfairness and relate it with the strictly independent case, we want to use some measure of independence. We want to bound in probability the joint probability density Pr⁡(A ⁣= ⁣a)\Pr(A\!=\!a) with the product of its marginals ∏k=1dPr⁡(Ak ⁣= ⁣ak)\prod_{k=1}^{d}\Pr(A_{k}\!=\!a_{k}). We will use one of the possible multivariable generalization of Mutual Information known as Total Correlation :

For δ∈(0,1]\delta\in(0,1], any classifier hh over a distribution D\mathcal{D} is (ϵ1,δ)(\epsilon_{1},\delta) and (ϵ2,δ)(\epsilon_{2},\delta)-probably intersectionally fair with

We apply Chebyshev’s inequality to LL and LyL_{y} for some introduced parameters α\boldsymbol{\alpha} to bound the tails of these random variables, while making sure that overall the probability bounds stay larger than 1−δ1-\delta. We can then compute inequalities on pAp_{A} and pA∣Y^p_{A\mid\hat{Y}}, and take the inf⁡\inf for aa and sup⁡\sup for α\boldsymbol{\alpha}. This leads to a constrained minimization problem that can be solved, which yields s∗s^{\ast}. The full proof is in Appendix B.3. For ϵ2\epsilon_{2} we additionally use that pY^∣A≤1p_{\hat{Y}\mid A}\leq 1 as Y\mathcal{Y} is discrete. ∎

We observe that both ϵ1\epsilon_{1} and ϵ2\epsilon_{2} are composed of one term in s∗s^{\ast} related with the δ\delta-confidence, and a quantity with marginal information. Aditionnaly ϵ2\epsilon_{2} also includes a term in γ\gamma that corresponds to some form of mutual information correction. We can control the confidence in this bound with the parameter δ\delta. Because s∗ ⁣= ⁣0s^{\ast}\!=\!0 if and only if σ ⁣= ⁣σy ⁣= ⁣0\sigma\!=\!\sigma_{y}\!=\!0 and combined with (5) we can see that s∗s^{\ast} somewhat measures how far we are from the conditions of Proposition 3.1. With ϵ1\epsilon_{1} we see that when s∗s^{*} goes to zero, we recover exactly the conditions of Proposition 3.1.

In order to prove Theorem 3.2, we used Chebyshev’s inequality. We can derive a similar proof for other concentration inequalities, specifically with Chernoff bounds through the estimation of the moment generating function, which often leads to tighter bounds. However this leads to harder quantities to estimate in addition to having to solve a non-convex optimization problem, see Appendix B.4.

To conclude this section we provide additional intuition on the relationship between marginal and intersectional fairness. We can then derive the following corollary from the proof of the above Theorem:

Denoting (Ω,T,Pr⁡)(\Omega,\mathcal{T},\Pr) the probability space on which (Y^,A,A′)(\hat{Y},A,A^{\prime}) is defined, there exists an event FF so that for f(y,a)=∏k=1d(pY^∣Ak(y∣ak)/pY^(y))f(y,a)=\prod_{k=1}^{d}(p_{\hat{Y}\mid A_{k}}(y\mid a_{k})/p_{\hat{Y}}(y)) we have for UU the random unfairness:

The proof can be found in Appendix B.3. This means that there is a fraction of the relevant pairs population of size bigger than 1−δ1-\delta, for which we can give an interval for the maximum random unfairness over this fraction FF. This interval is centered and reduce around a unique quantity as s∗s^{\ast} goes to , with s∗s^{\ast} and δ\delta determining the length of this interval. When δ\delta goes to , we have Pr⁡(F)→1\Pr(F)\rightarrow 1 hence sup⁡ω∈FU(ω)→u∗\sup_{\omega\in F}U(\omega)\rightarrow u^{\ast} because we are dealing with finite random variables. Notice also that when both δ\delta and s∗s^{\ast} go to , we recover Proposition 3.1 as sup⁡ω∈F∣log⁡(f(Y^,A′)/f(Y^,A))(ω)∣\sup_{\omega\in F}|\log(f(\hat{Y},A^{\prime})/f(\hat{Y},A))(\omega)| goes toward the quantity derived in this Proposition when δ\delta goes to .

3 Estimation of the measures of independence

Theorem 3.2 trades the precise estimation of u∗u^{\ast} with an upper bound, but with much easier quantities to estimate. More specifically, as they are information measures, we can leverage the extensive literature on statistical estimators and entropy estimation. We can intuitively see that the estimation of s∗s^{\ast} and γ\gamma will be easier to handle because even the estimation with the empirical distribution p^A,Y^\hat{p}_{A,\hat{Y}} is always well defined, and is a Maximum Likelihood Estimator (MLE) as continuous functions of MLE. They are well defined because s∗s^{\ast} and γ\gamma are functions of entropies and of the quantities Q(P) ⁣= ⁣∑ipilog⁡(pi)2Q(P)\!=\!\sum_{i}p_{i}\log(p_{i})^{2} for a probability distribution PP, which is finite event for pi ⁣= ⁣0p_{i}\!=\!0 because x↦xlog⁡(x)x\mapsto x\log(x) and x↦xlog⁡(x)2x\mapsto x\log(x)^{2} are continuous at . Contrarily to uBu_{B} we do not have to use any prior to obtain a well defined estimator. In addition, using the delta method on the sum of entropies, for which the MLE is asymptotically normal (See 3.1), shows that γ^\hat{\gamma} is asymptotically normal.

For more information on the estimation of entropy, mutual information or total correlation we defer to to name but a few. Moreover even with the very simple MLE, we can obtain L2L_{2} error upper-bounds for H(P)H(P) in O(log⁡(∣P∣)2/n)\mathcal{O}(\log(|P|)^{2}/n) where ∣P∣|P| is the number of outcomes for a discrete distribution PP . This bound depends only on the number of outcomes (supposed known), and not the actual distribution. Using the same tools, we derive a rough error bound for Q(P)Q(P):

We apply the methods described in that bounds the bias using approximation theory for Bernstein polynomials and bounds the variance using the Efron-Stein inequality. See proof in Appendix B.6. ∎

More efficient estimators can be created using methods of , nevertheless the main interest of this proposition is to show that these quantities have an error rate depending on the number of samples nn, and not the number of samples per group NaN_{a}, which is much better.

Beyond the practical use of these inequalities and approximations, these theorems also show one crucial idea: we can relate intersectional and marginal unfairness with the help of information on the independence of the protected attributes.

Refined approximations and inequalities

In the previous section, we have derived conditions for marginal unfairness to directly relate to u∗u^{\ast}, and bounds on probable intersectional fairness. We now would like to propose an approximation of u∗u^{\ast} using similar ideas. Looking at (6), (3), and indirectly through Corollary 3.3 it seems natural to propose as one possible approximation of u∗u^{\ast} the following quantity:

For the rest of the article, we thus now only focus on s∗s^{\ast} and uIu_{I}. Compared with uBu_{B} the estimator with Bayesian prior, it does not depend on a prior parameter, and is usually well defined as we only need Nai,yN_{a_{i},y} the number of samples per aia_{i} and yy to be strictly positive instead of all Na,yN_{a,y}. However this estimator of u∗u^{\ast} is not consistent. We will show that the previous bounds can be improved and that we can make our estimator consistent by gradually grouping together the protected attributes as the number of samples increases.

Until now, we have always decomposed the protected attributes AA on their marginals AiA_{i}. However it may be that we have more than just marginal information available. Take the example of 4 protected attributes A ⁣= ⁣(A1,A2,A3,A4)A\!=\!(A_{1},A_{2},A_{3},A_{4}). For a set t⊆{1,2,3,4}t\subseteq\{1,2,3,4\}, we define At ⁣= ⁣(Ak)k∈tA_{t}\!=\!(A_{k})_{k\in t}. We may not have enough data to compute the full intersectional unfairness, but it may be possible to compute it for the grouped protected attributes A{1,2} ⁣= ⁣(A1,A2)A_{\{1,2\}}\!=\!(A_{1},A_{2}) and A{3,4}A_{\{3,4\}}. We can use the same decomposition as we did before on the new marginals attributes (which corresponds to flattening A1A_{1} and A2A_{2} together) with support A{1,2} ⁣= ⁣A1×A2\mathcal{A}_{\{1,2\}}\!=\!\mathcal{A}_{1}\times\mathcal{A}_{2} and A{3,4} ⁣= ⁣A3×A4\mathcal{A}_{\{3,4\}}\!=\!\mathcal{A}_{3}\times\mathcal{A}_{4}.

More generally, let qq be a partition of {1,...,d} ⁣= ⁣[d]\{1,...,d\}\!=\![d]. For a partition qq, we denote A(q) ⁣= ⁣(At)t∈qA^{(q)}\!=\!(A_{t})_{t\in q}. This is only a different way to group together the marginal attributes, and is the same as AA. Whenever quantities are changed according to some partition qq, it will be indicated with (q)(q). For each of the new marginal attributes defined by a set tt of qq, the new marginal unfairness ut∗u^{\ast}_{t} corresponds to the intersectional unfairness of the (Ak)k∈t(A_{k})_{k\in t}. If the AtA_{t} are independent, and independent conditionally on Y^\hat{Y}, we can apply Proposition 3.1 and obtain directly u∗u^{\ast} through the newly defined marginals. If we relax the independence conditions, the same arguments of the previous section still apply, and we can look at the bounds and approximations defined by these new marginal densities. We denote the new approximation with partition qq by uI(q) ⁣= ⁣sup⁡y∈Y∑t∈qsup⁡(at,at′)∈At2ut(y,at,at′)u_{I}^{(q)}\!=\!\sup_{y\in\mathcal{Y}}\sum_{t\in q}\sup_{(a_{t},a_{t}^{\prime})\in\mathcal{A}_{t}^{2}}u_{t}(y,a_{t},a_{t}^{\prime}) where we are using the new marginals defined by qq. If we use the partition qq of singletons then uI(q) ⁣= ⁣uIu_{I}^{(q)}\!=\!u_{I}, and if we use the trivial partition (the whole set) then uI(q) ⁣= ⁣u∗u_{I}^{(q)}\!=\!u^{\ast}. The constraints of independence for these new marginals should be more feasible than the original marginals, hence it is possible that the AtA_{t} fulfill the independence conditions, even if the AkA_{k} do not (the trivial partition is such an example). If we have enough data to compute the marginal densities derived from qq and the AtA_{t} fulfill the independence conditions, we can then compute u∗u^{\ast} through the partition qq. Of course most of the time the independence conditions are not satisfied satisfied for a partition qq. Nonetheless because s∗s^{\ast} measures how far we are from the independence conditions, we can more carefully select a partition among those for which we can compute the new marginal densities.

2 Efficient Partition Selection

Let Q\mathcal{Q} be the set of all feasible partitions qq, that is Q ⁣= ⁣{q∈P([d]) ⁣∣ ⁣∀t∈q,∀(at,y)∈At×Y,Nat,y>0}\mathcal{Q}\!=\!\{q\in\mathcal{P}([d])\!\mid\!\forall t\in q,\forall(a_{t},y)\in\mathcal{A}_{t}\times\mathcal{Y},N_{a_{t},y}>0\} with P([d])\mathcal{P}([d]) the set of all partitions of [d][d]. This set represents the set of partitions for which we can compute the newly defined marginals without having to use a prior parameter. Note that Q\mathcal{Q} is a random set that converges to P([d])\mathcal{P}([d]) almost surely as the number of samples nn increases. If q′∈Qq^{\prime}\in\mathcal{Q}, then any partitions qq finer than q′q^{\prime} (meaning that any element of qq is a subset of an element of q′q^{\prime}) is in Q\mathcal{Q} as well. We will say that qq can be merged further if there exists a partition q′∈Qq^{\prime}\in\mathcal{Q} so that qq is finer than q′q^{\prime}. Note that the choice of a partition qq does not change the value of u∗u^{\ast} but only that of uI(q)u_{I}^{(q)}. We therefore want to find a good feasible partition qq in Q\mathcal{Q} so that we can expect heuristically ∣uI(q)−u∗∣|u_{I}^{(q)}-u^{\ast}| to be the lowest among the partitions. There are two criteria that should help us decide which partition q∈Qq\in\mathcal{Q} to choose from.

If a partition q′q^{\prime} is coarser than qq (which means that qq is finer than q′q^{\prime}), then reasonably the approximation is better with q′q^{\prime} than qq. The reasoning is that by taking coarser partitions, we are taking more interactions between the protected attributes into account. For example the coarsest partition which is the whole set gives us the intersectional unfairness as mentioned earlier. However because the ‘finer-than’ relationship is only a partial order, we are not able to choose between any two sets. Because Theorem 3.2 seems to hint that there is a relationship between the error ∣uI(q)−u∗∣|u_{I}^{(q)}-u^{\ast}|, and the distance to the independence conditions s∗s^{\ast}, the second criterion will be to select the partitions qq with the smallest s∗(q)s^{\ast}(q) defined as s∗s^{\ast} but taking the marginals in qq. These two criteria are closely linked. Selecting coarser partitions does tend to yield partitions with smaller s∗s^{\ast}, but not always. We give some details on relationship between s∗(q)s^{\ast}(q) of a partition qq compared to a coarser one in Appendix C.2. More crucially, finding a good partition with a small s∗(q)s^{\ast}(q) will also improve our inequalities as they are a function of s∗(q)s^{\ast}(q) which decreases on average as shown in Figure 5 as the number of sample grows (and as the partitions get coarser).

In principle, finding the best partition according to our criteria requires enumerating all feasible partitions which is computationally intractable. Instead we propose a greedy heuristic that we describe in Algorithm 1. We start from the finest partition (the partition of singletons), look at all the feasible partitions (with enough data) that can be obtained from merging two elements of the current partition, select the one with the smallest s∗s^{\ast}, and repeat until there are no coarser partitions with enough data. Note that when we want to verify that there is enough data available, we may need to do it multiple times for the same subset of protected attributes. This is an expensive call so it is more efficient to do memoization and remember if there is enough data available for a given subset once encountered, which we do using a hash table to reduce the lookup time. We denote this partition q∗q^{*}. We have the following property with the proof in Appendix C.1:

The estimator uI(q∗)u_{I}^{(q^{*})} is a consistent estimator of u∗u^{\ast}.

Experiments

In this section, we present experimental results that show how our inequalities and approximations perform on real and synthetic data-sets, and compare their estimation error rates as the number of samples grow. All the code used in our experiments can be found in the supplementary material or at https://github.com/mathieu-molina/BoundApproxInterMargFairness.

In order to compare how well uBu_{B} and uIu_{I} perform as estimators on data on datasets with a high number of protected attributes, we need to compute u∗u^{\ast} which is as discussed above inherently difficult. We will always measure the unfairness with respects to the empirical distribution of the dataset. For this empirical distribution to yield a well defined fairness measure, we need that Na,y>0N_{a,y}>0 for all aa and yy.

This means that if we want to take into account a high number of sensitive attributes, we have to pick a very large dataset.

We used US Census data from 1990 which contains n ⁣= ⁣2,458,285n\!=\!2,458,285 samples, and for which we identified many potential protected attributes. We then train a Random Forest binary classifier on a poverty binary label, where we weight the labels differently so as to obtain about the same number of predictions for each outcome. However we still do not have Na,y>0N_{a,y}>0 on the whole dataset. To alleviate this issue, we will consider subsets of the protected attributes for which this is true, and we will measure fairness with respect to these subsets. We obtain about 100100 different subsets with d=8d=8 protected attributes, that we denote as DiD_{i} which is the original dataset where we only kept the ii-th subset of protected attributes and the predictions Y^\hat{Y}. Each of these subsets yield different values of u∗u^{\ast} and s∗s^{\ast}. We pick 1212 (for computational reasons) different DiD_{i} with various values of u∗u^{\ast} and s∗s^{\ast}. Some examples of the final protected attributes include sex, not speaking English at home, being overweight, being Hispanic, and others. We will always take δ ⁣= ⁣0.1\delta\!=\!0.1 when relevant.

We also conduct experiments on synthetic data. We generate (A,Y^)(A,\hat{Y}) probability distributions from a Dirichlet distribution, thus we can directly compute u∗u^{\ast} without dealing with a very large dataset. We take d ⁣= ⁣10d\!=\!10. This synthetic data is one of the worst case for the approximation of u∗u^{\ast} with uIu_{I}, as the marginal distributions are a sum of 2d−12^{d-1} i.i.d. random variables that all converges to 1/21/2 as dd grows. We therefore will not plot uIu_{I} for the synthetic data (it is close to ). Nonetheless, this synthetic data remains useful in order to compare the error rates between uBu_{B} and s^∗\hat{s}^{*} and their respective true value. We denote by PiP_{i} a generated probability distribution. We generate 1212 of them.

2 Experiments Results

We see in Figure 1 on the left-most plot, that u^I\hat{u}_{I} is reasonably close to u∗u^{\ast} on average. Still the gap between ϵ∗\epsilon^{*} and ϵ1\epsilon_{1} is quite big. Other bounds such as ϵ2\epsilon_{2} or with other concentration inequalities are generally a bit more efficient but still loose, nevertheless we focus here on comparing the error rates between s∗s^{\ast} and uBu_{B}, and on how uIu_{I} performs. The other two plots look at the L2rL_{2}^{r} for the various estimators, with the middle one being with the real datasets DiD_{i}, and the right on the synthetic datasets PiP_{i}. We can see that s^∗\hat{s}^{*} and u^I\hat{u}_{I} converges much faster than uBu_{B}. Moreover, it seems that the difference in error rate will only grow bigger as dd increases, as there is a bigger gap for PiP_{i}. We can also see that uBu_{B} is unreliable, because the error rate varies a lot depending on α\alpha, and can even increase. This is because the parameter α\alpha dominates the computation of uBu_{B} as discussed earlier.

We now conduct similar experiments, but this time using partitions. We can see in the middle plot of Figure 2 that u^I(q∗)\hat{u}_{I}^{(q^{*})} performs better. The choice of τ\tau the count threshold for grouping always gives reasonable approximations, with τ ⁣= ⁣1\tau\!=\!1 being close to uBu_{B}, and τ\tau big makes it close to uIu_{I}. Most importantly, the apparent good error rate of uBu_{B} is merely an artifact of the current range of u∗u^{\ast} being above the starting values of uBu_{B} for these α\alpha. It is clear that uBu_{B} is unreliable by looking at the left plot in Figure 2: the estimation with uBu_{B} at n=2000n=2000 for different values of α\alpha varies very little when u∗u^{\ast} varies (it is almost not a function of u∗u^{\ast}). This means that uBu_{B} depends very little on the data for low amount of samples. Even if it is not perfect, uI(q∗)u_{I}^{(q^{*})} still has better performance and is more coherent. We note that the approximation performs well comparatively only when dd is high, and considering more sensitive attributes should make an even bigger difference. These results combined with Proposition 4.1 show that uI(q∗)u_{I}^{(q^{*})} is a relevant estimator of u∗u^{\ast} with scarce data and high number of protected attributes. Concerning s∗(q∗)s^{\ast}(q^{*}) the right-most plot shows that while it is not completely monotone, s∗(q∗)s^{\ast}(q^{*}) does decreases on average when using partitions as the number of sample increases. The upper bound will become tighter as nn grows, which will make bigger groupings of protected attributes possible.

Discussion

In this work, we presented new methods to approximate and to bound (in high probability) a strong intersectional unfairness measure, based on statistical information computable from a reasonable dataset. Our results highlight the key role of independence of the protected attributes conditionally to the classifier, and propose to approach it via a smart grouping of some attributes—which our theoretical bound allows us to compute via an efficient heuristic.

Our experiments show that the approximations proposed here perform reasonably well for data-sets with a high number of protected attributes, but that our bounds are not very effective. However their main interest is that it gives insight into the link between marginal and intersectional fairness, which was the main goal of this work. It also helps us derive the proposed approximation. We expect that more effective bounds could be derived for our notion of probabilistic fairness, for instance by making additional assumptions on the distribution, but presumably without an explicit dependence on independence measures and marginal densities, making the link between marginal and intersectional fairness harder to see.

In order to train fair models using the proposed approximations or bounds of this paper, we can use soft counts to compute the empirical densities (based on the classifier score for instance) as suggested in . This makes the approximations and bounds differentiable, and ensure that we can apply gradient based methods so as to solve a constrained or penalized optimization problem using these quantities.

We hope that our approach will enable the development of improved bounds, raise interest in the proposed notion of probabilistic unfairness which we think is crucial to the development of fair algorithms, as well as the use of our approximations to penalize classifiers in order to train intersectionally fair classifiers.

Acknowledgments

This work has been partially supported by MIAI @ Grenoble Alpes (ANR-19- P3IA-0003), by the French National Research Agency (ANR) through grant ANR-20-CE23-0007, and by TAILOR (a project funded by EU Horizon 2020 research and innovation programme under GA No 952215). The authors are hosted at the CREST lab (CNRS, GENES, Ecole Polytechnique, Institut Polytechnique de Paris).

References

Checklist

Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]

Did you describe the limitations of your work? [Yes]

Did you discuss any potential negative societal impacts of your work? [Yes] This work is specifically related to Fairness, and as such we highlight in the Introduction existing works which already discuss some of the societal issues that intersectional fairness raises.

Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]

If you are including theoretical results…

Did you state the full set of assumptions of all theoretical results? [Yes]

Did you include complete proofs of all theoretical results? [Yes]

Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes]

Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] We specified relevant data processing details, the actual supervised learning model used not being the main interest. More details are given in the code.

Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]

Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes]

If you are using existing assets (e.g., code, data, models) or curating/releasing new assets…

If your work uses existing assets, did you cite the creators? [Yes]

Did you mention the license of the assets? [N/A]

Did you include any new assets either in the supplemental material or as a URL? [N/A]

Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes]

Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes]

If you used crowdsourcing or conducted research with human subjects…

Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]

Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]

Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]

Appendix A Additional elements on Measures of Fairness

Throughout the whole paper, we used a specific measure of fairness for simplicity. Nevertheless, the same arguments apply to a broader set of fairness measures, by modifying u∗u^{\ast}.

To define u∗u^{\ast}, we decided to take the log⁡\log of a ratio. We note that when taking the sup⁡\sup over all possibles aa and a′a^{\prime} in A\mathcal{A}, sup⁡A2u(1,⋅,⋅)≤ϵ\sup_{\mathcal{A}^{2}}u(1,\cdot,\cdot)\leq\epsilon is equivalent to the definition in , that is to say:

However if we want to define a measure of unfairness between two protected groups, it is reasonable for it to be symmetric in the groups considered. We make it so by applying log⁡\log and an absolute value function to the above middle quantity. Other distances and pseudo distances can also be chosen, such as ∣Pr⁡(Y^=1∣A=a)−Pr⁡(Y^=1∣A=a′)∣|\Pr(\hat{Y}=1\mid A=a)-\Pr(\hat{Y}=1\mid A=a^{\prime})|. It is also symmetric, but may be less useful in comparing models with many protected attributes that are not designed to be fair, as this measure will be close to 11 most of the time, making the comparison less precise between two different models.

We can also modify UU and the definition of probabilistic fairness accordingly to obtain other desirable measures of unfairness. Say that we are only interest in the unfairness related to the outcome Y^=1\hat{Y}=1. Taking U′=u(1,A,A′)U^{\prime}=u(1,A,A^{\prime}) and Pr⁡(U′>ϵ∣Y^=1)≤δ\Pr(U^{\prime}>\epsilon\mid\hat{Y}=1)\leq\delta the new definition of probabilistic fairness in this case, we can derive similar propositions and theorems as done in this paper. We only need to take the expectation and variance with respect to Pr⁡(⋅ ⁣∣ ⁣Y^=1)\Pr(\cdot\!\mid\!\hat{Y}=1) for LL and LyL_{y}. This yields statistical quantities which are harder to interpret (∑a∈APr⁡(A=a∣Y^=1)log⁡(Pr⁡(A=a)/∏k=1dPr⁡(Ak=ak)\sum_{a\in\mathcal{A}}\Pr(A=a\mid\hat{Y}=1)\log(\Pr(A=a)/\prod_{k=1}^{d}\Pr(A_{k}=a_{k})) but that should remain easy to estimate as they are always well defined because, considering the empirical distribution p^\hat{p} we have p^A(A=a)=0  ⟹  p^A(A=a∣Y^=1)=0\hat{p}_{A}(A=a)=0\implies\hat{p}_{A}(A=a\mid\hat{Y}=1)=0. The changed definitions would be the following if we are only interested in the outcome y∈Yy\in\mathcal{Y}:

Notably, we obtain a much nicer variant of Proposition 3.1, with u∗=∑k=1duk∗u^{\ast}=\sum_{k=1}^{d}u^{\ast}_{k}.

Similarly we can also change only the underlying probability distribution. We can replace the underlying probability Pr⁡\Pr by Pr⁡Y=1\Pr_{Y=1}. Using this new probability measure we see that u∗u^{\ast} is a relaxed version of Equality of Opportunity for a binary predictor defined in by

Indeed, u∗=0u^{\ast}=0 is now equivalent with Equality of Opportunity. Practically, changing the underlying probability does not make much difference as showed in because this amounts to measuring unfairness on the part of the dataset for which Y=1Y=1.

Finally we can change over which treatment criterion we want to evaluate differences. In this paper we decided to look at the variable Y^\hat{Y}. We can similarly define our fairness measure with YY. We can actually use any (X,A,Y)(X,A,Y)-measurable random variable ZZ instead of Y^\hat{Y}. For instance ∣Y^−Y∣|\hat{Y}-Y|, which tells us whether or not the prediction is correct for binary classification, can be a good candidate.

Combining all of the above comments, we can consider a wider array of fairness metrics for which variations of the techniques and theorems described in this paper apply.

A.2 Some variants of Theorem 3.2 for modified fairness measures

We consider the following definition of unfairness:

For δ∈(0,1]\delta\in(0,1], any classifier hh over a distribution D\mathcal{D} is (ϵ1,δ)(\epsilon_{1},\delta)-probably intersectionally fair with

Intersectional Fairness when comparing to the population average:

We consider the following definition of unfairness:

For δ∈(0,1]\delta\in(0,1], any classifier hh over a distribution D\mathcal{D} is (ϵ1,δ)(\epsilon_{1},\delta)-probably intersectionally fair with

A.3 Comparison between other measures of fairness

We will briefly give some inequalities relating these quantities. We have that

Through these equations we see that w∗w^{*} cannot approach u∗u^{\ast}.

The advantage of the notion of probable intersectional fairness compared to w∗w^{*} is two-fold: we can be arbitrarily close to u∗u^{\ast}, and through δ\delta we explicitly control the size of the population that faces discrimination.

Additionally we will present an example, which shows that when the number of protected groups grows large, the notion of weighted unfairness can become inadequate for certain scenarios compared to probabilistic unfairness.

We will consider that we have 991991 protected groups with three different protected groups sets of sizes 11, 495495 and 495495, for which we will denote any of their elements by a1a_{1}, a2a_{2}, and a3a_{3} respectively. We will consider that Pr⁡(A=a1)=0.01\Pr(A=a_{1})=0.01, and that the remaining protected groups are distributed uniformly Pr⁡(A=a2)=Pr⁡(A=a3)=0.001\Pr(A=a_{2})=\Pr(A=a_{3})=0.001.

Suppose that Pr⁡(Y^=1∣A=a1)=1\Pr(\hat{Y}=1\mid A=a_{1})=1 and Pr⁡(Y^=1∣A=a2)=Pr⁡(Y^=1∣A=a3)=1/2\Pr(\hat{Y}=1\mid A=a_{2})=\Pr(\hat{Y}=1\mid A=a_{3})=1/2. Then Pr⁡(Y^=1)=1/100+99/200=101/200\Pr(\hat{Y}=1)=1/100+99/200=101/200. Thus u(a1)=1−101/200=99/200u(a_{1})=1-101/200=99/200, w(a1)=99/20000w(a_{1})=99/20000, u(a2)=u(a3)=101/200−1/2=1/200u(a_{2})=u(a_{3})=101/200-1/2=1/200, and w(a2)=w(a3)=1/200000w(a_{2})=w(a_{3})=1/200000. Which means that w∗=99/20000w^{*}=99/20000 and the model is (1/200,0.99)(1/200,0.99)-probabilistically fair. Now suppose that Pr⁡(Y^=1∣A=a1)=1\Pr(\hat{Y}=1\mid A=a_{1})=1, Pr⁡(Y^=1∣A=a2)=1\Pr(\hat{Y}=1\mid A=a_{2})=1, and Pr⁡(Y^=1∣A=a3)=0\Pr(\hat{Y}=1\mid A=a_{3})=0. Then we have Pr⁡(Y^=1)=101/200\Pr(\hat{Y}=1)=101/200. Thus u(a1)=99/200u(a_{1})=99/200, w(a1)=99/20000w(a_{1})=99/20000, u(a2)=99/200u(a_{2})=99/200, w(a2)=99/200000w(a_{2})=99/200000, u(a3)=101/200u(a_{3})=101/200, and w(a3)=101/200000w(a_{3})=101/200000. Which means that w∗=99/20000w^{*}=99/20000 and the model is (101/200,0.99)(101/200,0.99)-probabilistically fair. Here we see from these two examples, that 99%99\% population of their population saw their unfairness multiply by about a 100100 times while w∗w^{*} did not change. But probabilistic unfairness did manage to capture this change.

What we see is that when there is a high number of protected groups, relatively bigger groups tend to determine the weighted measure of unfairness w∗w^{*}, but they can still consist of only a very small part of the total population overall.

Let Aϵ={a∈A∣u(a)≤ϵ}\mathcal{A}_{\epsilon}=\{a\in\mathcal{A}\mid u(a)\leq\epsilon\} and AϵC\mathcal{A}_{\epsilon}^{C} its complementary set.

If a∗=arg max⁡w(a)∈Aϵa^{*}=\operatorname*{arg\,max}w(a)\in\mathcal{A}_{\epsilon} then w(a∗)=pA(a∗)u(a∗)≤ϵsup⁡ApAw(a^{*})=p_{A}(a^{*})u(a^{*})\leq\epsilon\sup_{\mathcal{A}}p_{A}. Otherwise using that Pr⁡(AϵC)≤δ\Pr(\mathcal{A}_{\epsilon}^{C})\leq\delta, we have w(a)≤δu∗w(a)\leq\delta u^{\ast}.

A.4 Intersectional Fairness and Continuous Protected Attributes

Here we will show that when AA is continuous, even for reasonable distributions, we might end up with u∗=∞u^{\ast}=\infty. Whereas our definition of probabilistic unfairness still has finite values, and can therefore be used as an interpretable tool to compare unfairness across models.

Suppose that we have a random vector (A1,A2,...,Ad,Y^)(A_{1},A_{2},...,A_{d},\hat{Y}) distributed according to a multivariate normal N(μ,Σ)\mathcal{N}(\mu,\Sigma) with μ\mu and Σ\Sigma the mean and covariance. Because Y^\hat{Y} is continuous, we will instead use the density fY^∣Af_{\hat{Y}\mid A} in the definition of u∗u^{\ast}. Because this vector is distributed according to a multivariate normal, the conditional distribution is still normal and we can derive the exact parameters. The conditional distribution is

with μˉ\bar{\mu} a linear form in aa, and Σˉ\bar{\Sigma} that depends only in Σ\Sigma. Basically, we can make the mean go to ∞\infty by making aa go to ∞\infty. Hence for a given y∈Yy\in\mathcal{Y}, we have that inf⁡a∈AfY^∣A(y∣a)=0\inf_{a\in\mathcal{A}}f_{\hat{Y}\mid A}(y\mid a)=0 for all yy, which means that the unfairness is always infinite.

If we want to compare two machine learning models, and we do not want to compare for a specific point δ\delta, then ϵ∗(δ)\epsilon^{*}(\delta) can be seen as a function of ϵ\epsilon, and we can compare these functions. If for two models h1h_{1} and h2h_{2} one function is always above the other, we could say that one is more fair than the other.

There are other fairness metrics specifically for continuous attributes, such as in the HGR coefficient between AA and Y^\hat{Y}, but which may be less interpretable to decision makers.

Appendix B Missing proofs and elements of part 3

Let us define the following probability distribution on (A1,A2,Y^)(A_{1},A_{2},\hat{Y}), with A1A_{1}, A2A_{2}, and Y^\hat{Y} binary:

We have pA=1/4p_{A}=1/4, and pA1=pA2=1/2p_{A_{1}}=p_{A_{2}}=1/2. Therefore A1⊥ ⁣ ⁣ ⁣⊥A2A_{1}\perp\!\!\!\perp A_{2}. We have pY^=1/2p_{\hat{Y}}=1/2, hence pA1∣Y^(0∣0)=pA2∣Y^(0∣0)=1/2p_{A_{1}\mid\hat{Y}}(0\mid 0)=p_{A_{2}\mid\hat{Y}}(0\mid 0)=1/2 and pA1,A2∣Y^(0,0,∣0)=3/8≠pA2∣Y^(0∣0)pA1∣Y^(0∣0)p_{A_{1},A_{2}\mid\hat{Y}}(0,0,\mid 0)=3/8\neq p_{A_{2}\mid\hat{Y}}(0\mid 0)p_{A_{1}\mid\hat{Y}}(0\mid 0), therefore the AkA_{k} are not independent conditionally on Y^\hat{Y}. Because pA1∣Y^=pA2∣Y^=1/2p_{A_{1}\mid\hat{Y}}=p_{A_{2}\mid\hat{Y}}=1/2, any form of marginal unfairness is , and u∗=log⁡((3/4)/(1/4))=log⁡(3)≠0u^{\ast}=\log((3/4)/(1/4))=\log(3)\neq 0. In this example we have mutual independence of the AkA_{k}, independence between AkA_{k} and Y^\hat{Y}, but still no meaningful relationship between intersectional and marginal fairness because we did not have independence conditionally on Y^\hat{Y}.

B.2 Proof of Proposition 3.1

Using the assumed independence, for any aa in A\mathcal{A} and yy in Y\mathcal{Y} we can rewrite pY^∣Ap_{\hat{Y}\mid A} with marginal quantities:

Because the numerator is a product of independent variables (in the functional sense), taking the sup in A\mathcal{A} yields:

The inequality is obtained by triangle inequality and because sup⁡y∈Ysup⁡(ak,ak′)∈Ak2uk(y,ak,ak′)=uk∗\sup_{y\in\mathcal{Y}}\sup_{(a_{k},a_{k}^{\prime})\in\mathcal{A}_{k}^{2}}u_{k}(y,a_{k},a_{k}^{\prime})=u^{\ast}_{k} by definition.

B.3 Proof of Theorem 3.2 and Corollary 3.3

For δ∈(0,1]\delta\in(0,1], any classifier hh over a distribution D\mathcal{D} is (ϵ1,δ)(\epsilon_{1},\delta) and (ϵ2,δ)(\epsilon_{2},\delta)-probably intersectionally fair with

We want to show that our classifier is (ϵ,δ)(\epsilon,\delta) probably fair for a given δ\delta.

We will first bound in probability LL and LyL_{y}, to be able to approach the joint densities through the product of marginal densities. We will denote by μ\mu, μy\mu_{y}, σ\sigma and σy\sigma_{y} the expectations and variances of LL and LyL_{y} Let us apply Chebyshev’s inequality to LL. We obtain that

Using the fact that {∣L−μ∣<α1}⊂{∣L−μ∣≤α1}\{|L-\mu|<\alpha_{1}\}\subset\{|L-\mu|\leq\alpha_{1}\} and taking the complementary event we can write that

We can do the same for LyL_{y} with a parameter α2>0\alpha_{2}>0.

Now we want to consider a condition on the parameters α=(α1,α2)\boldsymbol{\alpha}=(\alpha_{1},\alpha_{2}) so that the probability of the conjunction of the events {∣L−μ∣≤α1}\{|L-\mu|\leq\alpha_{1}\} and {∣Ly−μy∣≤α2}\{|L_{y}-\mu_{y}|\leq\alpha_{2}\} is greater than 1−δ1-\delta. For δ>0\delta>0, α1>0\alpha_{1}>0 and α2>0\alpha_{2}>0, a sufficient condition is that σ2α2+σz2α22≤δ\frac{\sigma^{2}}{\alpha^{2}}+\frac{\sigma^{2}_{z}}{\alpha_{2}^{2}}\leq\delta. We can show this using complementary event and Boole’s inequality:

We define g(α)=σ2α12+σz2α22−δg(\boldsymbol{\alpha})=\frac{\sigma^{2}}{\alpha_{1}^{2}}+\frac{\sigma^{2}_{z}}{\alpha_{2}^{2}}-\delta. For any α\boldsymbol{\alpha} such that g(α)≤0g(\boldsymbol{\alpha})\leq 0 we have with probability at least 1−δ1-\delta that

where φ(μy,μ)=eμy−μ\varphi(\mu_{y},\mu)=e^{\mu_{y}-\mu}, ψ(α)=eα1+α2\psi(\boldsymbol{\alpha})=e^{\alpha_{1}+\alpha_{2}}, and f(y,a)=∏k=1dpY^∣Ak(y∣ak)/pY^(y)df(y,a)=\prod_{k=1}^{d}p_{\hat{Y}\mid A_{k}}(y\mid a_{k})/p_{\hat{Y}}(y)^{d}. Hence by taking the sup⁡\sup over aa and inf⁡\inf over α\boldsymbol{\alpha} on the right hand-side, we obtain

As it is a product of functions of independent variables, sup⁡a∈Af(y,a)\sup_{a\in\mathcal{A}}f(y,a) is just the product of the sup⁡\sup of each pY^∣Akp_{\hat{Y}\mid A_{k}}.

We will now solve the constrained optimization problem for ψ\psi. We can write inf⁡eα1+α2=einf⁡(α1+α2)\inf e^{\alpha_{1}+\alpha_{2}}=e^{\inf(\alpha_{1}+\alpha_{2})}, so we will just need to solve the simpler problem inf⁡g(α)≤0s(α)\inf_{g(\alpha)\leq 0}s(\alpha), with s(α)=α1+α2s(\alpha)=\alpha_{1}+\alpha_{2}. Let us compute the gradients of ss and gg:

We will now show that this is a convex problem. The function ss is linear thus convex, and we will now compute the hessian of gg:

Clearly we have that the determinant of HgH_{g}, Det(Hg)Det(H_{g}) is strictly positive. Therefore HgH_{g} is definite positive, and gg is convex. And for δ>0\delta>0 there is a feasible interior point by taking α1\alpha_{1} and α2\alpha_{2} big enough, which means that Slater’s conditions hold (e.g. a convex constraint with a feasible interior point). We will now analyze the KKT conditions for minimization with the dual parameter c≥0c\geq 0:

We obtain that α1=2cσ2\alpha_{1}=\sqrt{2c\sigma^{2}} and α2=2cσy2\alpha_{2}=\sqrt{2c\sigma_{y}^{2}} Clearly c>0c>0 otherwise the first two lines cannot be 1, hence using the last equation we have g(α1,α2)=0g(\alpha_{1},\alpha_{2})=0. We now develop this last equality to obtain cc:

Plugging cc in the previous expressions we have

We will now do the same in order to lower bound pA(Y^∣A)p_{A}(\hat{Y}|A).

Here we take the sup⁡\sup over α\boldsymbol{\alpha} and inf⁡\inf over aa instead. We have that sup⁡ψ(α)−1=(inf⁡ψ(α))−1=exp⁡(−s∗/δ)\sup\psi(\boldsymbol{\alpha})^{-1}=(\inf\psi(\boldsymbol{\alpha}))^{-1}=\exp(-s^{*}/\sqrt{\delta}).

Because UU involves the two variables AA and A′A^{\prime}, we need to bound L′L^{\prime} and Ly′L^{\prime}_{y} the variables LL and LyL_{y} that are taken as a function of A′A^{\prime} instead of AA. Because (A′,Y^)∼(A,Y^)(A^{\prime},\hat{Y})\sim(A,\hat{Y}), all the computations above still apply, and we have

Hence we only need to replace δ\delta by δ/2\delta/2 in the above inequalities.

Combining everything, we can conclude that when the event {∣L−μ∣≤α1∗}∩{∣Ly−μy∣≤α2∗}∩{∣L′−μ∣≤α1∗}∩{∣Ly′−μy∣≤α2∗}\{|L-\mu|\leq\alpha^{*}_{1}\}\cap\{|L_{y}-\mu_{y}|\leq\alpha^{*}_{2}\}\cap\{|L^{\prime}-\mu|\leq\alpha^{*}_{1}\}\cap\{|L^{\prime}_{y}-\mu_{y}|\leq\alpha^{*}_{2}\} occurs, we have

which means that our classifier is (ϵ1,δ)(\epsilon_{1},\delta)-probably intersectionally fair. Note that ϵ1\epsilon_{1} is a function of (δ,σ,σy)(\delta,\sigma,\sigma_{y}).

In order to derive the proof for ϵ2\epsilon_{2}, we simply remark that pY^∣A≤1p_{\hat{Y}\mid A}\leq 1 which can be used to upper bound the numerator. Therefore when the event {∣L−μ∣≤α1∗}∩{∣Ly−μy∣≤α2∗}∩{∣L′−μ∣≤α1∗}∩{∣Ly′−μy∣≤α2∗}\{|L-\mu|\leq\alpha^{*}_{1}\}\cap\{|L_{y}-\mu_{y}|\leq\alpha^{*}_{2}\}\cap\{|L^{\prime}-\mu|\leq\alpha^{*}_{1}\}\cap\{|L^{\prime}_{y}-\mu_{y}|\leq\alpha^{*}_{2}\} occurs, we have

We can conclude in the same way as for ϵ1\epsilon_{1}.

Looking at the proof, it also holds true that the model will also be (min⁡{ϵ1,ϵ2},δ)(\min\{\epsilon_{1},\epsilon_{2}\},\delta)-probably intersectionally fair. ∎

Denoting (Ω,T,Pr⁡)(\Omega,\mathcal{T},\Pr) the probability space on which (Y^,A,A′)(\hat{Y},A,A^{\prime}) is defined, there exists an event FF so that for f(y,a)=∏k=1d(pY^∣Ak(y∣ak)/pY^(y))f(y,a)=\prod_{k=1}^{d}(p_{\hat{Y}\mid A_{k}}(y\mid a_{k})/p_{\hat{Y}}(y)) we have for UU the random unfairness:

What we have shown in the above proof of the Theorem before taking the sup⁡\sup and inf⁡\inf in a∈Aa\in\mathcal{A}, is that the event {∣L−μ∣≤α1∗}∩{∣Ly−μy∣≤α2∗}∩{∣L′−μ∣≤α1∗}∩{∣Ly′−μy∣≤α2∗}\{|L-\mu|\leq\alpha^{*}_{1}\}\cap\{|L_{y}-\mu_{y}|\leq\alpha^{*}_{2}\}\cap\{|L^{\prime}-\mu|\leq\alpha^{*}_{1}\}\cap\{|L^{\prime}_{y}-\mu_{y}|\leq\alpha^{*}_{2}\} is included in FF, and hence Pr⁡(F)≥1−δ\Pr(F)\geq 1-\delta. Using these upper bounds, and simplifying by pY^(Y^)exp⁡(−γ)p_{\hat{Y}}(\hat{Y})\exp(-\gamma) when taking the ratio of pY^∣Ap_{\hat{Y}\mid A} and pY^∣A′p_{\hat{Y}\mid A^{\prime}} , we have that

Taking the sup⁡\sup over all elements ω\omega in FF we obtain that

where sup⁡ω∈FU(ω)\sup_{\omega\in F}U(\omega) is the maximum random unfairness over the event FF.

We cannot recover a form which uses the uku_{k}, as here the variable AA and A′A^{\prime} are linked through FF. Notice that we can upper bound sup⁡ω∈F∣log⁡(f(Y^,A′)/f(Y^,A))(ω)∣\sup_{\omega\in F}|\log(f(\hat{Y},A^{\prime})/f(\hat{Y},A))(\omega)| by sup⁡ω∈Ω∣log⁡(f(Y^,A′)/f(Y^,A))(ω)∣\sup_{\omega\in\Omega}|\log(f(\hat{Y},A^{\prime})/f(\hat{Y},A))(\omega)| because F⊂ΩF\subset\Omega, which then recovers Theorem 3.2 but stated in a slightly different way. The convenient part of this Corollary is that we are also able to lower bound sup⁡ω∈FU(ω)\sup_{\omega\in F}U(\omega), but of course the inconvenience is that FF is unknown. ∎

B.4 Additional Bounds on Probable Intersectional Fairness

These moments generating functions can be expressed as functions of Renyi Divergences, indeed

While κ(t)\kappa(t) can therefore be estimated using techniques of for instance, the estimation of κy\kappa_{y} is less straightforward.

We will apply the same reasoning used in Appendix B.3 and will only highlight the differences.

We want to ensure that the right hand-side is greater than 1−δ1-\delta. Because we need to make sure that it also holds for L′L^{\prime} and Ly′L_{y}^{\prime}, we need 2δ2\delta instead of δ\delta. We define the constraint

we need to have g(λ+,λ−)≤0g(\lambda^{+},\lambda^{-})\leq 0. Hence using feasible values of λ+\lambda^{+} and λ−\lambda^{-}, the event [Ly≥λ+]∩[L≤λ−][L_{y}\geq\lambda^{+}]\cap[L\leq\lambda^{-}] implies

Using that sup⁡ApY^∣A≤1\sup_{\mathcal{A}}p_{\hat{Y}\mid A}\leq 1 we therefore have the following Theorem:

For δ∈(0,1]\delta\in(0,1], any classifier hh over a distribution D\mathcal{D} is (ϵ3,δ)(\epsilon_{3},\delta)-probably intersectionally fair, with

Compared to using Chebyshev, this should be both tighter as we are using more information than the first and second moment, and this bound should also be more efficient in terms of probability, as we are using one sided concentration inequalities.

B.5 Properties of the cumulant generating-function

We now want to be able to say a bit more on the properties of this constrained minimization problem. We will show by first recalling and developing useful properties on κ\kappa that the problem is non convex and differentiable almost everywhere.

We will list the properties about κ\kappa that will be useful to us developed in , with being a summary containing all the information needed.

We have that κ\kappa is strictly convex and infinitely many times differentiable. This means that κ′\kappa^{\prime} is strictly increasing and that it can be inverted on Im⁡(κ′)\operatorname{Im}(\kappa^{\prime}). We will write κ′(−1)=η\kappa^{\prime(-1)}=\eta, and for all xx so that κ′′(η(x))≠0\kappa^{\prime\prime}(\eta(x))\neq 0 we have η′=1/κ′′(η)\eta^{\prime}=1/\kappa^{\prime\prime}(\eta).

We also have that κ(0)=0\kappa(0)=0, κ′(0)=μ\kappa^{\prime}(0)=\mu, and κ′′(0)=σ2\kappa^{\prime\prime}(0)=\sigma^{2}.

From these properties we can conclude that η(μ)=0\eta(\mu)=0, and that η′(μ)=1/κ′′(η(μ))=1/σ2\eta^{\prime}(\mu)=1/\kappa^{\prime\prime}(\eta(\mu))=1/\sigma^{2}.

We will recall the definition of the convex conjugate of a function.

We will now list the useful properties about I=κ⋆I=\kappa^{\star} also developed in .

The function II is infinitely many times differentiable on Im⁡(κ′)\operatorname{Im}(\kappa^{\prime}), I(μ)=0I(\mu)=0, and for every x∈Im⁡(κ′)x\in\operatorname{Im}(\kappa^{\prime}) we can rewrite II as

The function I+I^{+} is continuously differentiable on (−∞,sup⁡κ′)(-\infty,\sup\kappa^{\prime}).

We have μ∈Im⁡(κ′)\mu\in\operatorname{Im}(\kappa^{\prime}) because κ′(0)=μ\kappa^{\prime}(0)=\mu. Let fx(t)=tx−κ(t)f_{x}(t)=tx-\kappa(t). If x<μx<\mu, then because κ′\kappa^{\prime} is increasing we have for any t≥0t\geq 0

If x≥μx\geq\mu, then for any t≤0t\leq 0 we have

Let us analyze the potential discontinuity at μ\mu. We have I(μ)=0I(\mu)=0 and I+=0I^{+}=0 on (−∞,μ)(-\infty,\mu), so the function is continuous on (−∞,sup⁡κ′)(-\infty,\sup\kappa^{\prime}). Let us compute I′I^{\prime}:

and we know that η(μ)=0\eta(\mu)=0. Hence we have that I+I^{+} is continuously differentiable on (−∞,sup⁡κ′)(-\infty,\sup\kappa^{\prime}). ∎

The function e−I+e^{-I^{+}} is non-convex at μ\mu.

We will simply look at the second derivative of h(x)=e−I+(x)h(x)=e^{-I^{+}(x)} for x≥μx\geq\mu:

Therefore h′′(μ)=−1/σ2<0h^{\prime\prime}(\mu)=-1/\sigma^{2}<0 for σ≠0\sigma\neq 0, which means that it is non-convex at μ\mu. ∎

The same proposition applies to Iy+I_{y}^{+} and I−I^{-}, with the relevant κ\kappa or κy\kappa_{y}. This means that g′′((μy,μ))=−(1/σ2+1/σy2)<0g^{\prime\prime}((\mu_{y},\mu))=-(1/\sigma^{2}+1/\sigma_{y}^{2})<0 hence the following corollary

The constraint gg is non convex at (μy,μ)(\mu_{y},\mu).

Finally we remark that when A\mathcal{A} is finite, the sup of κ′\kappa^{\prime} is bounded and therefore there are finite values of λ\lambda for which I(λ)=∞I(\lambda)=\infty. Hence there are feasible points for any δ∈\delta\in.

B.6 Errors bounds on Q𝑄Q

Let P=(p1,...,pS)P=(p_{1},...,p_{S}) be a discrete distribution of size ∣P∣=S|P|=S, we want to estimate the quantity Q(P)=∑k=1Spklog⁡2(pk)Q(P)=\sum_{k=1}^{S}p_{k}\log^{2}(p_{k}) with nn i.i.d. realizations of PP. We denote NkN_{k}, the number of realizations for category kk.

In order to bound the L2L_{2} error of Q^=∑k=1S(Nk/n)log⁡2(Nk/n)\hat{Q}=\sum_{k=1}^{S}(N_{k}/n)\log^{2}(N_{k}/n), we will use the bias variance decomposition of Q^\hat{Q}:

The analysis of these error terms is completely derived from . In particular, the method they use for entropy is close to this problem. They show that the bias term can be bounded by deriving smoothness modulus for the function x↦xlog⁡(x)x\mapsto x\log(x), and that the variance term can be bounded using an Efron-Stein inequality. Here, we need to analyse x↦xlog⁡2(x)x\mapsto x\log^{2}(x), which is technically more difficult as some nice properties such as the convexity of xlog⁡(x)x\log(x) is lost. Still we can show the following two lemmas with the proof further down:

Note that we will directly use some elements already derived in , and will only show here the parts where special care is needed.

Let f:x↦xlog⁡2(x)f:x\mapsto x\log^{2}(x). analyze the statistic of the form F(P)=∑k=1Sf(pk)F(P)=\sum_{k=1}^{S}f(p_{k}). We apply Lemma 1313 of for discrete functionals of PP, which is derived from a corollary of the Efron-Stein inequality, on QQ:

In order to bound the bias use the fact that for any ff,

The function Bn(f)(x)B_{n}(f)(x) is the Bernstein polynomial of f(x)f(x). Lemma 55. of shows that for φ(x)=x(1−x)\varphi(x)=\sqrt{x(1-x)}:

The quantity ωφ2\omega^{2}_{\varphi} is the second-order Ditzian-Totik modulus of smoothness of ff. It is shown in Lemma 88 of that for the function x↦xlog⁡(x)x\mapsto x\log(x) (which corresponds the the entropy), ωφ2(f,t)=t2log⁡(4)/(1+t2)\omega^{2}_{\varphi}(f,t)=t^{2}\log(4)/(1+t^{2}). We will use a proof similar to Lemma 8 to derive the modulus of smoothness for x↦x2log⁡(x)x\mapsto x^{2}\log(x).

In addition, we remark using the triangle inequality that for any ff and gg continuous functions on $$, then

Let f:x↦xlog⁡2(x)f:x\mapsto x\log^{2}(x) for xx in $.Byexpanding. By expandingg(x)=x\log^{2}(x/e)=x\log^{2}(x)+x-2x\log(x)weseethatwecanrewritewe see that we can rewritefasasf(x)=x\log^{2}(x/e)+2x\log(x)-x.Thereforeusingthepreviousremarkandbecause. Therefore using the previous remark and because\omega^{2}_{\varphi}(x\mapsto x,t)=0$ we have

It remains to upper bound ωφ2(g,t)\omega^{2}_{\varphi}(g,t).

First we will show that gg is concave on (0,1](0,1]. We compute the first and second derivative of gg for xx in (0,1](0,1]:

Hence gg is strictly concave over (0,1](0,1].

Now we will upper bound ωφ2(g,t)\omega^{2}_{\varphi}(g,t). Let tt in [0,1/2][0,1/2]. To be clear, we will use the same language and logic developed in for the proof of Lemma 8 to make the comparison easier. Defining M=(u+v)/2∈M=(u+v)/2\in, then the computation of the second order modulus is an optimization over the regime ∣u−v∣≤2tM(1−M)|u-v|\leq 2t\sqrt{M(1-M)}. Equivalently, it is in the interval [M(1−Δ),M(1+Δ)]∩[M(1-\Delta),M(1+\Delta)]\cap, where Δ=t(1−M)/M\Delta=t\sqrt{(1-M)/M}. Because gg is strictly concave on $,themaximumof, the maximum of|g(x)+g(y)-2g((x+y)/2)|$ is reached at the boundaries of the above feasible interval. We have

Therefore the optimization problem defined by the second order modulus of smoothness is equivalent to the maximization of h(u,v)=∣g(u)+g(v)−2g((u+v)/2)∣h(u,v)=|g(u)+g(v)-2g((u+v)/2)| over three different regimes:

The function M↦MM\mapsto M reaches its max over regime AA at t2/(1+t2)t^{2}/(1+t^{2}). The function x↦−xlog⁡(x)x\mapsto-x\log(x) is positive increasing until x=1/ex=1/e. Hence because t2/(1+t2)≤1/et^{2}/(1+t^{2})\leq 1/e for t∈[0,1/2]t\in[0,1/2], M↦−Mlog⁡(M)M\mapsto-M\log(M) reaches its max over regime AA also at t2/(1+t2)t^{2}/(1+t^{2}). Thus over regime AA

We will upper bound each of those three terms. First note that as t∈[0,1/2]t\in[0,1/2], t2/(1−t2)≤1/3t^{2}/(1-t^{2})\leq 1/3 and (1+t2)2/(1−t2)≤25/12(1+t^{2})^{2}/(1-t^{2})\leq 25/12 Because −log⁡-\log is decreasing and 2M−1≤12M-1\leq 1, we have that

For M≤1M\leq 1, we have that (2M−1)/M≤1(2M-1)/M\leq 1. Hence

The functions M↦1/(M(2M−1))M\mapsto 1/(M(2M-1)) and M↦M/(2M−1)M\mapsto M/(2M-1) are decreasing in MM over (1/2,1](1/2,1] and bigger than 11. Therefore

Combining everything we have over regime BB using that M≤1M\leq 1

The functions g1:Δ↦((1+Δ)log⁡(1+Δ)+(1−Δ)log⁡(1−Δ))/Δ2g_{1}:\Delta\mapsto((1+\Delta)\log(1+\Delta)+(1-\Delta)\log(1-\Delta))/\Delta^{2} and g2:Δ↦((1+Δ)log⁡2(1+Δ)+(1−Δ)log⁡2(1−Δ))/Δ2g_{2}:\Delta\mapsto((1+\Delta)\log^{2}(1+\Delta)+(1-\Delta)\log^{2}(1-\Delta))/\Delta^{2} are both continuous over $henceboundedwithamaxreachedrespectively(canbeseengraphically,orbylookingatthederivative)athence bounded with a max reached respectively (can be seen graphically, or by looking at the derivative) at1and.Withand . Withg_{1}(1)=2\log(2),andfor, and for\Delta\rightarrow 0$:

Hence using these bounds over regime AA, BB, and CC, and remarking that it is reached for regime AA on t2/(1+t2)t^{2}/(1+t^{2}), we obtain

By applying on Equation (76) the upper bounds we derived and taking t=n−1/2t=n^{-1/2}, we can conclude

Appendix C Using partitions of protected attributes

The main idea of this proof, is that when the number of samples nn increases, the probability that min⁡A,YNa,y<τ\min_{\mathcal{A},\mathcal{Y}}N_{a,y}<\tau goes to as n→∞n\rightarrow\infty. And when min⁡A,YNa,y≥τ\min_{\mathcal{A},\mathcal{Y}}N_{a,y}\geq\tau then by definition uI(q∗)=u^∗u_{I}^{(q^{*})}=\hat{u}^{*} which is consistent.

We define for aa in A\mathcal{A} the modified empirical estimator p^A(A=a)\hat{p}_{A}(A=a), with p^A(A=a)=Na/n\hat{p}_{A}(A=a)=N_{a}/n if Na>0N_{a}>0 and 11 otherwise. Using Chebyshev’s inequality and because Na,y∼B(pA,Y^(a,y),n)N_{a,y}\sim\mathcal{B}(p_{A,\hat{Y}}(a,y),n) we have for ϵ>0\epsilon>0:

which means that p^A\hat{p}_{A} is a consistent estimator of pAp_{A}. By Slutsky’s Theorem and because pA(a)>0p_{A}(a)>0, p^A,Y^(a,y)/p^(a)\hat{p}_{A,\hat{Y}}(a,y)/\hat{p}(a) is a consistent estimator of pY^∣A(y∣a)p_{\hat{Y}\mid A}(y\mid a). Hence by the Continuous Mapping Theorem using the continuous functions max⁡\max, min⁡\min, log⁡\log and ∣⋅∣|\cdot|, we have that u∗^\hat{u^{\ast}} the estimator using the modified empirical probabilities, is a consistent estimator of u∗u^{\ast}.

Now for the consistency of uI(q∗)u_{I}^{(q^{*})}, for τ>0\tau>0 and ϵ>0\epsilon>0, we have

The first term goes to by the consistency of u^\hat{u}. We will show that the second term also goes to zero as n→∞n\rightarrow\infty. For τ>0\tau>0 we apply Hoeffding’s inequality on Na,y∼B(pA,Y^(a,y),n)N_{a,y}\sim\mathcal{B}(p_{A,\hat{Y}}(a,y),n) to obtain the following concentration inequality:

Therefore because ∣A∣∣Y∣|\mathcal{A}||\mathcal{Y}| is finite we have the consistency of uI(q∗)u_{I}^{(q^{*})}.

C.2 Some intuition on the impact of grouping protected attributes

Let qq a partition and ρ\rho a partition coarser than qq, which means that every element of qq is a subset of some element of ρ\rho. We want to somewhat relate the approximations and inequalities obtained using ρ\rho or qq. Using the fact that ρ\rho is coarser than qq, we can define for any r∈ρr\in\rho the partition qr={t∈q∣t⊂r}q_{r}=\{t\in q\mid t\subset r\} of rr. This is a partition because the tt are disjoints, cover the whole set so rr as well in particular, and any t∈qt\in q can either be a subset of rr or disjoint as ρ\rho is coarser than qq.

We redefine the random variable LL for these partitions. We define L(q)=log⁡(pA/∏t∈qpAt)∘AL^{(q)}=\log(p_{A}/\prod_{t\in q}p_{A_{t}})\circ A and L(q,r)=log⁡(pAr/∏t∈qrpAt)∘AL^{(q,r)}=\log(p_{A_{r}}/\prod_{t\in q_{r}}p_{A_{t}})\circ A.

Using the partitions qrq_{r} we can group together the pAtp_{A_{t}} terms:

Then by taking the log⁡\log, we obtain the proposition. ∎

Looking at (108), we have the interesting property that if ρ\rho is a coarser partition than qq, then C(A(ρ))≤C(A(q))C(A^{(\rho)})\leq C(A^{(q)}). This corresponds to the intuition that taking coarser partition decreases some measure of independence, which is here the total correlation.

For any partition q∈Qq\in\mathcal{Q} we have

Which is why when using a partition qq to group together the protected attributes, we may be able to reduce the original variance of LL and LyL_{y}, hence reduce s∗s^{\ast} which is an increasing function of the variances. The decrease in s∗s^{\ast} is not guaranteed when using a coarser partition because of the covariance terms, but empirically this is often the case.

Appendix D Additional Experiments and Plots

In this section we will present additional plots from the experiments conducted in Section 5.

The experiments were conducted on a machine with a i7 7700HQ CPU, and 8gb of ram. Running all the experiments took about 1 full day.

The main dataset used is a publicly available sample from the 1990 US census. The US census is legally mandated, hence every citizen has to give its information to the US government. No identifiable information is available, and the samples were randomly chosen from the original full dataset. Full information is available at the UCI archive link.

We reproduce here Figure 1 and Figure 2 on Figure 4 and Figure 5 adding the 1st1^{\text{st}} and 10th10^{\text{th}} decile but only using α=1\alpha=1 for uBu_{B} and τ=10\tau=10 to make it readable.

We recall that we always take δ=0.1\delta=0.1. We present on Figure 6 a comparison of the relative error rate between uBu_{B}, s∗s^{\ast}, and inf⁡g(λ)λ+−λ−\inf_{g(\boldsymbol{\lambda})}\lambda^{+}-\lambda^{-} where gg is estimated through the empirical distribution, and the optimization problem is solved numerically. We see that while it is easier to estimate than uBu_{B}, it is harder than s∗s^{\ast}. Note that numerically solving the minimization problem may lead to numerical errors for too low number of samples.

We also compare some of the bounds presented throughout this paper. Here we do not care about their estimation, but only their asymptotic value. In addition, we want to evaluate the impact of using partitions on these bounds. In order to do so we take a sample of size n=2000n=2000 of each of our DiD_{i}, and compute q∗q^{*}. Then we use the full dataset to compute s∗(q∗)s^{*}(q^{*}) for τ=10\tau=10, γ(q∗)\gamma(q^{*}) and inf⁡g(λ)λ+−λ−\inf_{g(\boldsymbol{\lambda})}\lambda^{+}-\lambda^{-}. We also compute the exact unfairness quantile ϵ∗(δ)\epsilon^{*}(\delta). We obtain Figure 7. We see that using partitions seem to always yield tighter bounds, and that most of the time ϵ1≥ϵ2≥ϵ3\epsilon_{1}\geq\epsilon_{2}\geq\epsilon_{3}. Even the improved bounds are still far from ϵ∗\epsilon^{*} (the optimal bound in probability), but it shows that these bounds can be improved. We conjecture that if we want to find reliable information on u∗u^{\ast} when dd becomes very large, these bounds can be useful in practice. Conversely, these bounds and approximations should not be used if sufficient information is available to directly use uBu_{B} (for instance at least 11 sample by protected group).