arXiv:2610.24217cs.GTOct 2026

Manuscript Offprint

arXiv:2610.24217

Envy-Free Randomized Apportionment

Francesco La Commare, Jamie Tucker-Foltz, Victor Verdugo

Francesco La Commare ∗^{*}

Jamie Tucker-Foltz ∗^{*}

Victor Verdugo †^{\dagger}

Abstract. Nearly every form of representative democracy faces a mathematical quandary known as apportionment. The United States allocates representatives to each state in proportion to its population, while many parliamentary democracies select representatives from party lists in proportion to the number of votes each party receives. In both settings, the legislature's small size necessitates rounding to the nearest whole number of seats. There is no canonical way to determine who gets rounded up and who gets rounded down, with classic impossibility results holding that any deterministic apportionment system suffers from paradoxes.

Recent work has shown a plethora of ways to randomly round seat shares, in which the various rounding events are correlated to guarantee a specific total number of seats. While this approach can achieve perfect ex ante fairness, all known methods suffer from a new kind of paradox to which deterministic methods are immune: Party (state) i may have a larger number of votes (population) than party j but receive fewer seats. In this case, we say that party i envies party j. We investigate the extent to which such envy is avoidable. Specifically, we seek to design apportionment rules that minimize the expected number of envious pairs (i,j)(i,j). If the expectation is zero, we say that the seat allocation is envy-free.

On the negative side, we show that any n-party apportionment rule that ignores lower quotas (the floors of the deserved number of seats for each party) suffers from a worst-case envy of Θ(n2)\Theta(n^{2}), even on instances where an envy-free allocation exists. All previously studied apportionment rules fall into this class and thus do a poor job of minimizing envy, achieving the worst possible multiplicative and additive approximations (up to constant factors). In the case where all lower quotas are equal, we prove that all allocations have the same expected envy. In the general case, we give polynomial-time algorithms to decide whether an envy-free allocation exists and, if not, to construct an envy-minimizing apportionment rule. We also consider a handful of alternative objectives, such as minimizing total envy variance. We introduce a general LP framework giving polynomial-time algorithms for a large class of such objective functions by efficiently solving the separation problem on the dual. Finally, we empirically demonstrate that envy-free allocations exist very frequently, including in every historical instance from the US decennial census. Taken together, these results provide a clear recipe for implementing randomized apportionment in a less objectionable way in practice.

1 Introduction What is the best way to round a list of rational numbers to integers while preserving the sum? In 1921, this seemingly innocuous question caused a constitutional crisis in the United States. The list in question was

(9.70, 1.38, 7.24, 14.16, 3.88, 5.70, 0.92, 4.00, 11.97, 1.78, 26.8, 12.11, 9.93, 7.31, 9.99, 7.43, 3.17, 5.99, 15.92, 15.16, 9.86, 7.40, 14.07, 2.27, 5.36, 0.32, 1.83, 13.04, 1.49, 42.91, 10.57, 2.67, 23.8, 8.38, 3.24, 36.03, 2.50, 6.96, 2.63, 9.66, 19.27, 1.86, 1.46, 9.54, 5.61, 6.05, 10.88, 0.80).

These represented the numbers of seats in the US House of Representatives that each state deserved based on its population from the 1920 census, also known as standard quotas. The constitution requires House seats to be distributed in proportion to these numbers, but supplies no formula for deciding how to round them. For instance, the largest number, 42.91, is the standard quota for the most populous state of New York, calculated as

(statepopulation)(totalUSpopulation)⋅(housesize)=10385228105273051⋅435≈42.91.\frac{(state population)}{(total US population)}\cdot(house size)=\frac{10385228}{105273051}\cdot435\approx42.91.

*Yale University (francesco.lacommare@yale.edu, j.tuckerholtz@siam.org).

†^{\dagger}Pontificia Universidad Católica de Chile (victor.verdugo@uc.cl).

Should it be rounded up to 43, down to 42, or perhaps to something else entirely? In 1921, congress was unable to agree on a coherent rounding policy for all 48 US states, and thus violated their constitutional duty to reapportion seats! The numbers from the previous 1911 apportionment remained in place until 1929, by which point they were woefully unfair and out of date [10].

There is no obvious solution to this rounding problem. Simple policies like rounding to the nearest integer do not result in a fixed house size. Thomas Jefferson proposed a modified rounding scheme, used in the US for several decades, in which standard quotas are scaled up by a constant factor λ\lambda, then rounded down to integers, with λ\lambda carefully chosen to ensure the correct house size. John Adams proposed the opposite: scale down by a constant factor, then round up. These methods are not equivalent—Jefferson's method gives New York 45 seats whereas Adams' method gives only 41. And paradoxically, neither of these numbers is within one of the standard quota of 42.91.

In the absence of a canonical rule, the early history of the United States was fraught with decennial political battles over the choice of apportionment method. Today, the US uses an algorithm devised by mathematicians, building on the “divisor-based” approach of Jefferson’s and Adams’ methods. Outside the US, apportionment is used around the world in parliamentary systems, where parties are awarded seats in proportion to the number of votes cast for each party. For a comprehensive survey of the various apportionment systems in place around the world and their theoretical underpinnings, we refer the reader to the book by Pukelsheim [30].

The first modern, mathematical investigation of apportionment was initiated in the 1970s in a series of papers by Balinski and Young [4, 5, 6, 8, 7]. They applied an axiomatic approach to the study of apportionment methods, identifying desirable properties and proving/disproving the existence of rules satisfying them. Among the most famous results is that any rule satisfying the quota axiom—which requires the number of seats awarded to a state be either the ceiling or floor of its standard quota—suffers from the population paradox: it is possible for one state to rise in population and lose a seat, while another state falls in population and gains a seat [9].

In 2004, Grimmett [24] proposed a radical new manner to apportion seats: by random lot. In the foregoing example, New York would be granted 42 seats with probability 9%9\% and 43 seats with probability 91%91\%. Not only does this avoid the population paradox (in expectation), but it also ameliorates the inherent unfairness associated with deterministic apportionment methods. Each party/state receives the number of seats it deserves exactly ex ante, and up to an additive error of at most one seat ex post. Furthermore, by correlating these lotteries, one can ensure that exactly the right number are rounded up, so the house size always works out to the correct value.

Grimmett's original construction of such correlated lotteries was rather ad hoc, and subsequent work on randomized apportionment has sought to identify more principled approaches with stronger axiomatic properties. We discuss these developments in Section 1.3. However, none of them confront what is arguably the biggest elephant in the room, possibly the largest barrier to adoption. One state may have a higher population but be apportioned fewer seats than another. Or in the parliamentary context, one party ii may receive more votes than party jj but fewer seats. (We will adopt the language of parties and votes rather than states and populations going forward.) When this happens, we say that party ii envies party jj. The fundamental questions we ask in this paper are: When and how envy is avoidable?

1.1 Example The following minimal example illustrates how envy arises, and also how it may be avoided. Consider a nation with 100 voters, H=10H = 10 seats in the legislature, and n=4n = 4 parties, numbered 1, 2, 3, 4. Suppose the number of votes for each party are respectively 14, 18, 32, 36. As previously noted, the first step is to calculate the standard quota of each party, which is the number of seats they deserve based on scaling the raw vote tallies down to the size of the legislature. The integral part of the standard quota is called the lower quota and the fractional part the residue, which are tabulated in Table 1.1.

PartyNum votesStandard quotaLower quotaResidue
1141.410.4
2181.810.8
3323.230.2
4363.630.6

Table 1.1: An instance of the apportionment problem with n=4n = 4 and H=10H = 10.

Throughout this paper, we restrict ourselves to the class of quota-satisfying and proportional apportionment rules. In other words, each party must be granted a number of seats equal to at least its lower quota, with some parties receiving one extra seat, where an extra seat is awarded with probability equal to the party's residue. The first such rule explicitly proposed in the context of apportionment is Grimmett's method [24]. It arranges the residues as consecutive blocks on a number line, each of length equal to the corresponding residue. Then we imagine placing a comb with teeth separated by width 1 on top of these blocks as in Figure 1.1, with an offset drawn uniformly from [0, 1]. The teeth determine which parties get extra seats.

Figure

Figure 1.1: The outcome of running Grimmett's method using the order of parties given: 1, 2, 3, 4.

In this case, there are three possible outcomes, one of which is quite undesirable. Specifically, there is a 20% probability that the number of seats for parties 1, 2, 3, and 4 will be respectively (2,1,4,3)(2, 1, 4, 3). This outcome leaves both parties 2 and 4 envious: Party 1 received fewer votes but more seats than party 2, while party 3 received fewer votes but more seats than party 4.

Grimmett’s method has been criticized before on the grounds that the order is arbitrary, and thus it is not entirely unexpected that situations like this can happen. Sampford rounding [32] has been explicitly proposed as an alternative, due to its useful axiomatic properties [18]. On this instance, Sampford rounding reduces, but does not entirely eliminate, both of these envious pairs. The result is

Num seats (Sampford) = {(2,1,4,3)with probability 14/505≈0.03(1,1,4,4)with probability 27/505≈0.05(2,1,3,4)with probability 60/505≈0.12(1,2,4,3)with probability 60/505≈0.12(2,2,3,3)with probability 128/505≈0.25(1,2,3,4)with probability 216/505≈0.43\begin{cases} (2, 1, 4, 3) & \text{with probability } 14/505 \approx 0.03 \\ (1, 1, 4, 4) & \text{with probability } 27/505 \approx 0.05 \\ (2, 1, 3, 4) & \text{with probability } 60/505 \approx 0.12 \\ (1, 2, 4, 3) & \text{with probability } 60/505 \approx 0.12 \\ (2, 2, 3, 3) & \text{with probability } 128/505 \approx 0.25 \\ (1, 2, 3, 4) & \text{with probability } 216/505 \approx 0.43 \end{cases},

entailing that parties 2 and 4 will each only be envious with probability 74505≈0.15\frac{74}{505} \approx 0.15.

(2, 2, 3, 3) with probability 0.4

(1, 1, 4, 4) with probability 0.2

(1, 2, 3, 4) with probability 0.4

Figure

Figure 1.2: The outcome of running Grimmett's method using the order 1, 3, 2, 4.

However, this is not the best we can do. If we instead run Grimmett's method using the order 1, 3, 2, 4, it turns out we can eliminate the envy entirely. As shown in Figure 1.2, the randomized apportionment is supported only on allocations that are monotonically increasing in the order of parties: (2,2,3,3)(2,2,3,3), (1,1,4,4)(1,1,4,4), and (1,2,3,4)(1,2,3,4). We thus say that the seat allocation is envy-free.

The goal of this paper is to understand how much envy is inevitable and how much envy can be minimized by a clever choice of allocation.

1.2 Our Contributions and Technical Overview Our results about envy in randomized apportionment include impossibilities, efficient algorithms, and empirical validation. In Section 2 we review the standard apportionment model and discuss Grimmett's and Sampford's methods which we use as baseline references throughout. We also formally introduce our fundamental definition of envy, through multiple different objective envy aggregation functions. Throughout the paper we focus mostly on the particular objective of minimizing expected number of envious pairs of parties.

In Section 3 we study the special case where all parties share the same lower quota. We prove that, in this setting, the total expected envy is rule-independent: every quota-satisfying and proportional apportionment rule yields the same value, given in closed form by Equation (3.1). As a corollary, we obtain a tight upper bound of k(n−k)/2k(n-k)/2 when all residues are equal, where k≤n−1k \leq n-1 is the integral sum of residues.

In Section 4 we turn to the general multi-floor case, where rule-independence breaks down and envy minimization becomes a genuine optimization problem. We first show that oblivious apportionment rules, those whose randomization depends only on residues and ignores lower quotas, can be Θ(n2)\Theta(n^2)-suboptimal: we exhibit instances admitting an envy-free rule for which every oblivious rule incurs Ω(n2)\Omega(n^2) expected envy, matching the universal upper bound up to constant factors. This holds even for a non-adaptive adversary; i.e., a single distribution over instances thwarts any algorithm. This negative result applies to all previously studied randomized apportionment methods, including Grimmett's method and Sampford rounding.

We then present a linear-programming-based approach to study total envy. First, we introduce a compact flow-based linear program [EF-LP] with O(nk)O(nk) variables and constraints that decides whether an envy-free proportional rule exists. Then, we introduce an exponential-size linear program [MinLP] that minimizes expected total envy when zero envy is not achievable. We show that the dual of [MinLP] can be solved in polynomial time via the ellipsoid method, using a separation oracle that reduces to a polynomial-time dynamic program. Our LP approach can handle more general envy-aggregation functions, such as envy deviations or the probability of not being envy-free; in Section 2.3, we introduce these indicators, and in Section 4.3, we introduce our framework for minimizing the expectation of block-aggregable functions. As a corollary, using our LP framework, we can find in polynomial time the apportionment rule that minimizes total envy variance for single-floor instances; key to this result is our rule-independence theorem for the expected total envy, which reduces the variance minimization problem to a linear program.

In Section 5 we complement the theory with experiments on both synthetic and real-world instances. In random instances, envy-free solutions exist with high probability once the house size H is moderately larger than the number of parties n, and all canonical oblivious rules incur substantially more envy than the optimum. On historical U.S. census data, we test three preprocessing methods that accommodate the constitutional constraint of at least one seat per state, and find that an envy-free proportional rule exists for every decade under all three methods. Taken together, these results suggest that envy-free randomized apportionment is not merely a theoretical possibility but a practical one, achievable in the very instances that motivate the problem.

1.3 Related Work The problem of selecting a subset of exactly k objects from a set of n objects with given marginal inclusion probabilities is well studied in statistics, under the name πps\pi ps sampling (probabilities proportional to size). We refer the reader to the survey by Brewer and Hanif [13] and the book by Tillé [33] for a comprehensive overview. While Grimmet [24] was the first to apply this problem to apportionment, his algorithm is equivalent to the method of systematic sampling developed by Madow [27] more than 50 years earlier; curiously, this method has been independently re-invented multiple times, including Boix-Adserà et al. [12, Algorithm 3]. In the computer science literature, this problem is often referred to as dependent rounding, which has been extensively used in the design of relax-and-round approximation algorithms [21].

Our work contributes to a growing field of research on algorithmic apportionment and randomized apportionment specifically. Gölz et al. [23] study whether it is possible to correlate lotteries across different house sizes so that passing from HH to H+1H+1 can be implemented by giving an extra seat to some party without taking away any seats. In other words, the apportionment must be a lottery over deterministic rules that each satisfy house monotonicity [9]. Cembrano et al. [16] give a further characterization of the space of randomized rules that satisfy this axiom. Correa et al. [18] study a different notion of monotonicity in which arbitrary subsets of parties may form coalitions, and the objective is to avoid paradoxes where a coalition could gain support but lose seats. They identify Sampford rounding as a promising contender, succeeding where many other methods fail. We show that Sampford rounding does not perform well at minimizing envy, simply because it ignores lower quotas. Cembrano et al. [15] extend the static apportionment problem to an online setting. For randomized rules, they show that for n≤3n \leq 3 parties, it is possible for each party, in expectation, to receive its proportional share in every step. In the realm of deterministic apportionment, there has been extensive work employing techniques similar to those we use, such as linear programming and network flows [14, 17, 20, 31].

The apportionment problem is primarily motivated by the task of allocating seats in a legislature. However, ideas from randomized apportionment have found application in other domains, including peer selection [3] and affirmative action [19]. One domain that presents particularly similar envy considerations to our setting is the selection of citizens' assemblies, which are randomly selected panels of ordinary citizens that convene to deliberate on an issue, typically to advise the legislature [29]. A very recent work by Gölz et al. [22] considers the two-stage task of first selecting a set of cities proportional to their populations, then selecting the citizens within the city. They identify a similar notion of envy-freeness with respect to city size which they term ex post monotonicity and give a sufficient condition under which it can be satisfied, which empirically holds in their specific application. Our paper is the first to systematically study the task of minimizing envy and provide worst-case bounds.

Further afield, randomized selection algorithms with correlation constraints have also been studied in fair division [1]. This field is largely distinct from our setting in that agents have identical entitlements (i.e., standard quotas) but heterogeneous preferences over a complex set of goods being allocated (as opposed to common preferences for more seats). Similar techniques have been used to obtain fair randomized allocations, most notably the Birkhoff-von Neumann Theorem and its use in the classic probabilistic serial algorithm [11]. Aziz et al. [2] use this algorithm to obtain a best of both worlds fairness guarantee, where an allocation is completely envy-free ex ante and envy-free up to the value of a single good in the envied player's allocation (EF1) ex post. This mimics the guarantees of the class of apportionment methods we study: ex ante proportionality and ex post quota.

2 Preliminaries We consider an apportionment problem with nn parties and a fixed house size HH. Given vote counts p1,p2,…,pnp_1, p_2, \ldots, p_n, each party ii is entitled to qi=piH/∑j=1npjq_i = p_i H / \sum_{j=1}^n p_j seats, which is called the standard quota of party ii. We may decompose these quotas as qi=fi+riq_i = f_i + r_i, where fi=⌊qi⌋f_i = \lfloor q_i \rfloor is the party's lower quota and ri∈[0,1)r_i \in [0, 1) is its residue. After awarding each party its lower quota, exactly k=∑i=1nrik = \sum_{i=1}^n r_i seats remain to be allocated.

2.1 Apportionment Rules and Obliviousness An apportionment rule specifies a probability distribution over k-subsets, i.e., subsets S⊆[n]S \subseteq [n] of size kk, where i∈Si \in S indicates that party ii receives an additional seat. Equivalently, we may represent an allocation by a vector X∈{0,1}nX \in \{0,1\}^n with ∑i=1nXi=k\sum_{i=1}^n X_i = k, where Xi=1X_i = 1 whenever i∈Si \in S. We restrict to rules satisfying the following two axioms:

Quota. Each party i∈[n]i \in [n] always receives fi=⌊qi⌋f_i = \lfloor q_i \rfloor or ⌈qi⌉\lceil q_i \rceil seats.

Ex-ante proportionality. For each party i∈[n]i \in [n], the probability of receiving an additional seat is exactly its residue, i.e., Pr⁡(Xi=1)=ri\Pr(X_i = 1) = r_i.

By construction, after awarding each party its lower quota, an apportionment rule satisfies the quota property. However, ex ante proportionality is not free, and the existence of such methods is a non-trivial mathematical result. In what follows, we briefly recall two canonical apportionment rules studied in the literature and use them to motivate a general notion that will play a central role in our results.

Grimmett’s systematic sampling. Grimmett [24] proposed an apportionment rule, based on the classic systematic sampling method from the statistics literature. After awarding each party i its lower quota fif_i, the method allocates the remaining k seats as follows. Arrange the residues r1,…,rnr_1, \ldots, r_n as consecutive intervals on the real line, with interval i having length rir_i. Then, draw u uniformly at random from [0,1)[0,1), and award an additional seat to party i if the shifted interval of party i contains an integer. Since the interval [u,u+k)[u, u+k) contains exactly k integers, this procedure always allocates exactly k additional seats. Moreover, for each party i, the shifted interval contains an integer with probability exactly rir_i, ensuring ex ante proportionality.

Sampford rounding. This rule uses the sampling method introduced by Sampford [32]. After awarding lower quotas, the rule selects a subset of kk parties using the following rejective procedure. First, sample a party i1i_1 with probabilities proportional to rir_i. Then sample k−1k-1 additional parties i2,…,iki_2, \ldots, i_k independently with replacement, where each party ii is chosen with probabilities proportional to ri/(1−ri)r_i/(1-r_i). If the kk sampled parties are distinct, select them; otherwise, repeat the procedure. This method induces a distribution over kk-subsets with Pr⁡(Xi=1)=ri\Pr(X_i=1)=r_i for all ii. Sampford rounding has been studied extensively and is known to satisfy ex ante proportionality as well as negative association and additional correlation-based monotonicity properties in the randomized apportionment setting (e.g., [18]).

Both of the rules above share a common structural feature: their randomization depends only on the fractional parts of the quotas and ignores the deterministic seat allocations. This motivates the following notion.

Obliviousness. An apportionment rule is oblivious if its randomization depends only on the vector of residues (r1,…,rn)(r_{1},\ldots,r_{n}), and not on the lower quotas (f1,…,fn)(f_{1},\ldots,f_{n}).

An oblivious rule thus treats parties with identical residues symmetrically, regardless of their deterministic seat allocations. All randomized apportionment methods studied to date, including Grimmett's method and Sampford rounding, are oblivious in this sense. We remark that we use rir_i to denote both the fractional part of party ii's quota and its probability of receiving an additional seat. For notational convenience, we index parties so that residues are in nondecreasing order:

(2.1)

0≤r1≤r2≤⋯≤rn<1,0\leq r_{1}\leq r_{2}\leq\cdots\leq r_{n}<1,

2.2 Correlations and Envy The decomposition qi=fi+riq_i = f_i + r_i separates the deterministic and random components of the apportionment problem. Lower quotas f1,f2,…,fnf_1, f_2, \ldots, f_n depend only on the vote counts, while the remaining kk seats are allocated through a randomized rounding step that selects exactly kk parties. Because quota and ex ante proportionality uniquely determine the marginal probabilities Pr⁡(Xi=1)=ri\Pr(X_i = 1) = r_i, all rules satisfying these axioms differ only in how they correlate the random variables (X1,…,Xn)(X_1, \ldots, X_n). We focus precisely on this correlation structure, since it is the only source of potential fairness violations. For any ordered pair of parties (i,j)(i, j) with i≠ji \neq j, we define

(2.2)

eij=Pr⁡(Xi=0,Xj=1),e_{ij}=\Pr(X_{i}=0,X_{j}=1),

the probability that party jj receives an additional seat while party ii does not. Intuitively, when parties ii and jj share the same lower quota and ri≥rjr_i \geq r_j, the quantity eije_{ij} measures the probability that party ii is envious of party jj, in the sense that ii has a weakly higher entitlement yet receives fewer seats. We formalize envy by summing eije_{ij} over the appropriate pairs, as follows.

It will be useful to group together parties that share the same lower quota. Within such a group, all parties start from the same deterministic allocation and compete only for the additional seats assigned by the randomized rounding step. Specifically, we partition the set of parties into BB equal-floor blocks I1,I2,…,IB⊆[n]I_1, I_2, \ldots, I_B \subseteq [n] pairwise disjoint, such that fi=fjf_i = f_j whenever i,j∈Ibi, j \in I_b. By convention, within each block IbI_b parties are ordered by nondecreasing residue order as in (2.1). To aggregate envy, we account only for pairs of parties that belong to the same block, and only when a party with a higher residue fails to receive an additional seat while a lower-residue party in the same block does receive one—this is the only way that the seat allocation can vary non-monotonically with respect to the standard quotas. The total expected envy is thus the following quantity:

(2.3)

E[∑b=1B∑i>j:i,j∈IB1{Xi=0,Xj=1}]=∑b=1B∑i>j:i,j∈IBeij.\mathbb{E}\Big[\sum_{b=1}^{B}\sum_{i>j:i,j\in I_{B}}\mathbf{1}\{X_{i}=0,X_{j}=1\}\Big]=\sum_{b=1}^{B}\sum_{i>j:i,j\in I_{B}}e_{ij}.

When the total expected envy is zero, we say that the rule is envy-free. In the single-floor case, all parties have the same lower quota, i.e., B=1B = 1, so any difference in the final allocation arises solely from the random assignment of the remaining k=∑i=1nrik = \sum_{i=1}^{n} r_i seats. In this case, the total expected envy corresponds to simply ∑i>jeij\sum_{i > j} e_{ij}.

A caveat with the expression in (2.3) is that it breaks ties in an arbitrary way. It is a policy-maker's decision how to handle the case when two parties have the same standard quota: Perhaps neither party is justified in being envious if the other gets more seats, or perhaps both would be justified? We choose the formulation that the party numbered higher is entitled to weakly more seats because it is more natural from a mathematical perspective, enabling the proof of Theorem 3.2. Our impossibility result, Theorem 4.1, gives instances in which standard quotas are distinct (as is highly likely in practice), and our algorithms easily extend to either alternative tie-breaking policy.

2.3 Envy Aggregation Functions We now generalize Equation (2.3) to a set of alternative objective functions that may be more desirable depending on taste. Recall that an apportionment rule produces a random outcome X∈{0,1}nX \in \{0,1\}^n indicating which kk parties receive an additional seat. Let Sk={S⊆[n]:∣S∣=k}\mathcal{S}_k = \{S \subseteq [n] : |S| = k\} denote the set of feasible outcomes, where a subset SS corresponds to the event that Xi=1X_i = 1 if and only if i∈Si \in S. An apportionment rule can thus be identified with a probability distribution p=(p(S))S∈Skp = (p(S))_{S \in \mathcal{S}_k}. Under this representation, ex ante proportionality takes a simple linear form: for each party i∈[n]i \in [n], ri=Pr⁡(Xi=1)=∑S∈Sk:i∈Sp(S)r_i = \Pr(X_i = 1) = \sum_{S \in \mathcal{S}_k: i \in S} p(S).

Now suppose we have a partition J1,…,JLJ_1, \ldots, J_L of [n][n]. One natural partition is given by the equal-floor blocks, i.e., L=BL = B and Ji=IiJ_i = I_i for each ii. Another natural partition is just the trivial case of L=1L = 1 and J1=[n]J_1 = [n]. Apart from total envy, we can aggregate the envious pairs in the instance according to the partition JJ to capture additional indicators for the apportionment rule. In particular, the total envy due to partition JJ corresponds to

(2.4)

total expected envy=ES∼p[σJ(S)]=∑S∈SkσJ(S)p(S),\mathrm{t o t a l~e x p e c t e d~e n v y}=\mathbb{E}_{S\sim p}[\sigma_{J}(S)]=\sum_{S\in\mathcal{S}_{k}}\sigma_{J}(S)p(S),

where σJ(S)=∣{(i,j):there exists b∈[L] with i>j,i,j∈Jb,i∉S,j∈S}∣\sigma_J(S) = |\{(i,j) : \text{there exists } b \in [L] \text{ with } i > j, i, j \in J_b, i \notin S, j \in S\}|, i.e., the number of within-part inversions due to SS, where a lower-residue party is selected while a higher-residue party in the same block is not. Recall that parties are sorted according to non-decreasing residues. The representation in (2.4) is particularly useful when considering other envy aggregation functions. For instance, the following two values are of interest:

Total envy variance=VarS∼p[σJ(S)]=ES∼p[σJ2(S)]−(∑S∈SkσJ(S)p(S))2,\mathrm{T o t a l~e n v y~v a r i a n c e}=\mathrm{V a r}_{S\sim p}[\sigma_{J}(S)]=\mathbb{E}_{S\sim p}\Big[\sigma_{J}^{2}(S)\Big]-\Big(\sum_{S\in\mathcal{S}_{k}}\sigma_{J}(S)p(S)\Big)^{2},

Probability of not being envy-free = ES∼p[1{σJ(S)>0}]=∑S∈Sk:σJ(S)>0p(S)\mathbb{E}_{S \sim p}[\mathbf{1}\{\sigma_J(S) > 0\}] = \sum_{S \in \mathcal{S}_k : \sigma_J(S) > 0} p(S).

Observe that, for the total envy variance, taking the trivial partition J1=[n]J_1 = [n] recovers the variance of total envy in the instance, while taking the equal-floor blocks partition recovers the variance due to within-block inversions. In Section 4.3, we introduce an LP framework that allows us to minimize the total expected envy while remaining flexible enough to accommodate a more general class of envy-aggregation functions, including those above.

3 Single-Floor Instances In this section, we study the apportionment problem in the special case where all parties have the same lower quota, i.e., f1=f2=⋯=fnf_1 = f_2 = \cdots = f_n; in particular, we have a single block I1=[n]I_1 = [n]. This setting serves as a warm-up that isolates the effect of random rounding without any interaction across different blocks. We show that in this case, the total expected envy is completely determined by the residue vector and is independent of the apportionment rule being used (Section 3.1). We further derive a tight upper bound on this quantity (Section 3.2), which will later serve as a benchmark for the general multi-floor case.

3.1 Total Expected Envy is Rule-Independent We begin with a lemma stating two identities that hold for any apportionment rule. They are used repeatedly in our analysis.

LEMMA 3.1. For any apportionment rule, the following holds:

(a) ∑i<j(eij+eji)=k(n−k).\sum_{i<j}(e_{ij} + e_{ji}) = k(n - k).

(b) For any i≠ji \neq j, we have eij−eji=Pr⁡(Xj=1)−Pr⁡(Xi=1)=rj−rie_{ij} - e_{ji} = \Pr(X_j = 1) - \Pr(X_i = 1) = r_j - r_i.

Proof. Recall that the outcome XX of a randomized rule satisfies ∑i=1nXi=k\sum_{i=1}^{n} X_i = k. Observe that the number of unordered selected-unselected pairs is exactly k(n−k)k(n-k): there are kk selected indices and n−kn-k unselected indices. Therefore ∑i<j(1{Xi=1,Xj=0}+1{Xi=0,Xj=1})=k(n−k)\sum_{i<j} (\mathbf{1}\{X_i = 1, X_j = 0\} + \mathbf{1}\{X_i = 0, X_j = 1\}) = k(n-k). Taking expectation yields (a). For the second part, observe that

eij−eji=Pr⁡(Xi=0,Xj=1)−Pr⁡(Xi=1,Xj=0)=Pr⁡(Xj=1)−Pr⁡(Xi=1,Xj=1)−(Pr⁡(Xi=1)−Pr⁡(Xi=1,Xj=1))=rj−ri,\begin{aligned}e_{ij}-e_{ji}&=\Pr(X_{i}=0,X_{j}=1)-\Pr(X_{i}=1,X_{j}=0)\\&=\Pr(X_{j}=1)-\Pr(X_{i}=1,X_{j}=1)-(\Pr(X_{i}=1)-\Pr(X_{i}=1,X_{j}=1))\\&=r_{j}-r_{i},\\ \end{aligned}

where the last equality holds since the rule is ex ante proportional.

7

☐

We remark that (b) shows that envy is biased toward lower residues in direct proportion to the gap in marginals. To combine the two identities it is convenient to write each pair (eij,eji)(e_{ij}, e_{ji}) in terms of its symmetric and antisymmetric parts: for i≠ji \neq j, let Sij=eij+ejiS_{ij} = e_{ij} + e_{ji} and Δij=eij−eji\Delta_{ij} = e_{ij} - e_{ji}. By Lemma 3.1(a) and 3.1(b), we have ∑i<jSij=k(n−k)\sum_{i<j} S_{ij} = k(n - k), and Δij=rj−ri\Delta_{ij} = r_j - r_i. These identities allow us to express the total expected envy in closed form as a function of the residue vector alone. Furthermore, in the following theorem, we show that the total expected envy depends only on the residues r1,…,rnr_1, \ldots, r_n, not on the randomized rule.

THEOREM 3.2. Consider a single-floor instance with residues 0≤r1≤⋯≤rn<10 \leq r_1 \leq \cdots \leq r_n < 1. Then, for any apportionment rule, the total expected envy is equal to

(3.1)

12k(n−k)+12∑t=1nrt(n−2t+1).\frac{1}{2}k(n-k)+\frac{1}{2}\sum_{t=1}^{n}r_{t}(n-2t+1).

Proof. Using the symmetric/antisymmetric decomposition,

eji=Sij+Δji2=Sij+(eji−eij)2=Sij+ri−rj2,e_{ji}=\frac{S_{ij}+\Delta_{ji}}{2}=\frac{S_{ij}+(e_{ji}-e_{ij})}{2}=\frac{S_{ij}+r_{i}-r_{j}}{2},

where the last equality uses Lemma 3.1(b). Then,

∑i>jeij=∑i<jeji=12∑i<jSij+12∑i<j(ri−rj)=12k(n−k)+12∑i<j(ri−rj),\sum_{i>j}e_{ij}=\sum_{i<j}e_{ji}=\frac{1}{2}\sum_{i<j}S_{ij}+\frac{1}{2}\sum_{i<j}(r_{i}-r_{j})=\frac{1}{2}k(n-k)+\frac{1}{2}\sum_{i<j}(r_{i}-r_{j}),

where the last equality follows from Lemma 3.1(a). For the second sum, rtr_t appears positively whenever i=ti = t and j>tj > t (there are n−tn - t such pairs), and negatively whenever j=tj = t and i<ti < t (there are t−1t - 1 such pairs). Hence ∑i<j(ri−rj)=∑t=1nrt((n−t)−(t−1))=∑t=1nrt(n−2t+1)\sum_{i < j} (r_i - r_j) = \sum_{t=1}^n r_t((n - t) - (t - 1)) = \sum_{t=1}^n r_t(n - 2t + 1).

3.2 Tightness and Party Envy As an immediate consequence of Theorem 3.2, we obtain a sharp upper bound on the total expected envy in the single-floor case. The bound characterizes the worst possible instance and identifies when it is attained.

PROPOSITION 3.3. In the space of single-floor instances with residues 0≤r1≤⋯≤rn<10 \leq r_1 \leq \cdots \leq r_n < 1, any apportionment rule has total expected envy at most k(n−k)/2k(n-k)/2, and this upper bound is tight for each nn and k<nk < n. In particular, the total expected envy is at most n2/8n^2/8.

Proof. We start by observing that the second summation in (3.1) is maximized whenever ∑t=1nrt⋅t\sum_{t=1}^{n} r_t \cdot t is minimized. Since the sequence (rt)t=1n(r_t)_{t=1}^n is nondecreasing, Chebyshev's sum inequality implies that ∑t=1nrt⋅t≥(∑t=1nrt)(∑t=1nt)/n=k(n+1)/2\sum_{t=1}^{n} r_t \cdot t \geq (\sum_{t=1}^{n} r_t)(\sum_{t=1}^{n} t)/n = k(n+1)/2. Therefore,

∑t=1nrt(n−2t+1)≤(n+1)∑t=1nrt−2∑t=1nrt⋅t=(n+1)k−2k(n+1)/2=0,\sum_{t=1}^{n}r_{t}(n-2t+1)\leq(n+1)\sum_{t=1}^{n}r_{t}-2\sum_{t=1}^{n}r_{t}\cdot t=(n+1)k-2k(n+1)/2=0,

which implies that the total expected envy is at most k(n−k)k(n-k). For each nn and k<nk < n, this inequality is tight by considering an instance where the residues are ri=k/nr_i = k/n for each i∈[n]i \in [n]. Finally, the upper bound of n2/8n^2/8 is direct from the fact that x↦x(n−x)/2x \mapsto x(n-x)/2 is maximized when x=n/2x = n/2. This value is also attained when ri=1/2r_i = 1/2 for each i∈[n]i \in [n].

Together with Theorem 3.2, this bound shows that in the single-floor case, the residues alone determine both the exact value and the maximum possible magnitude of total expected envy. In the next section, we move to multi-floor blocks, where this clean rule independence no longer holds and envy minimization becomes a genuine optimization problem.

Beyond the total expected envy, one can also derive closed-form expressions for the envy of individual parties, including the highest-residue party and the aggregate envy of the middle parties. For this, let e1=0e_1 = 0 and let ei=∑j<ieije_i = \sum_{j < i} e_{ij}, for each i∈{2,…,n}i \in \{2, \ldots, n\}, be the expected envy of party ii. In particular, observe that the total expected envy equals ∑i=1nei\sum_{i=1}^n e_i. We have the following proposition.

PROPOSITION 3.4. In the space of single-floor instances with residues 0≤r1≤⋯≤rn<10 \leq r_1 \leq \cdots \leq r_n < 1, for any apportionment rule we have en=k(1−rn)e_n = k(1 - r_n).

Proof. From the definition of ene_{n}, we have

en=∑j<nenj=∑j<n(rj−Pr⁡(Xn=1,Xj=1))=k−rn−∑j<nPr⁡(Xn=1,Xj=1),e_{n}=\sum_{j<n}e_{nj}=\sum_{j<n}(r_{j}-\Pr(X_{n}=1,X_{j}=1))=k-r_{n}-\sum_{j<n}\Pr(X_{n}=1,X_{j}=1),

where the second equality follows from rj=Pr⁡(Xj=1)r_j = \Pr(X_j = 1), and the last one from ∑j=1nrj=k\sum_{j=1}^n r_j = k. On the other hand, we have ∑j<nXiXj=Xn∑j<nXj=Xn(k−Xn)=(k−1)Xn\sum_{j<n} X_i X_j = X_n \sum_{j<n} X_j = X_n(k - X_n) = (k - 1) X_n, since ∑j=1nXj=k\sum_{j=1}^n X_j = k and Xn2=XnX_n^2 = X_n. Taking expectations gives ∑j<nPr⁡(Xn=1,Xj=1)=E[(k−1)Xn]=(k−1)rn\sum_{j<n} \Pr(X_n = 1, X_j = 1) = \mathbb{E}[(k - 1) X_n] = (k - 1) r_n.

4 Multi-Floor Instances We now consider the general case of instances with multiple equal-floor blocks. In contrast to the single-floor setting, interactions across different lower quotas break the rule-independence of total expected envy: for a fixed residue vector, different apportionment rules can lead to substantially different levels of envy; e.g., the example in Section 1.1 about Sampford's and Grimmett's methods.

In Section 4.1, we begin by studying the limitations of oblivious apportionment rules, those whose randomization depends only on the residues and ignores lower quotas. We show that in the multi-floor setting, such rules can be arbitrarily suboptimal, incurring quadratic envy even when envy-free solutions exist.

We then turn to the design of optimal (non-oblivious) apportionment rules. In Section 4.2, we show that it is possible to decide whether a given instance admits an envy-free apportionment rule by solving a network flow. In Section 4.3, we handle the case when envy-freeness does not necessarily hold by formulating an exact linear program that minimizes total expected envy. Although this program has exponentially many variables, we show that it can be solved in polynomial time using a carefully designed separation oracle.

4.1 Oblivious Apportionment Rules We show that oblivious apportionment rules can perform extremely poorly in the multi-floor setting. Recall that a rule is oblivious if its randomization depends only on the residue vector and ignores the lower quotas. While such rules are natural and encompass all previously studied randomized methods, we show that they can incur quadratic envy even in instances where envy-free randomized rules exist. Combined with the universal quadratic upper bound in Proposition 3.3, this shows that oblivious rules are as bad as possible up to constant factors. A notable feature of our construction is that the adversary is non-adaptive, namely, we construct a distribution over adversarial instances that fools any randomized algorithm that outputs an apportionment rule. This implies, in particular, that any fixed rule incurs quadratic envy on some instance.

THEOREM 4.1. For arbitrarily large n, there is a distribution over apportionment instances with n parties with distinct standard quotas for which the following holds:

(i) An envy-free apportionment exists with probability one.

(ii) Any oblivious apportionment rule incurs expected envy Ω(n2)\Omega(n^{2}).

Proof. Our adversarial distribution is defined as follows, for nn divisible by 4. Let ε=1/(10n)\varepsilon = 1/(10n). Pick a subset T⊆[n/2]T \subseteq [n/2] of size n/4n/4 uniformly at random. We denote by T‾\overline{T} the complement of TT within [n/2][n/2], i.e., T‾:=[n/2]∖T\overline{T} := [n/2] \setminus T. The apportionment instance is defined by the following standard quotas:

qi={32+(i−1−n2)εifi∈T,12+(i−1−n2)εifi∈[n/2]∖T,1+(i−n2)(1+ε)ifi>n/2.q_{i}=\begin{cases}\frac{3}{2}+(i-1-\frac{n}{2})\varepsilon&\text{if}i\in T,\\\frac{1}{2}+(i-1-\frac{n}{2})\varepsilon&\text{if}i\in[n/2]\setminus T,\\1+(i-\frac{n}{2})(1+\varepsilon)&\text{if}i>n/2.\end{cases}

Figure 4.1 shows an example where n=8n = 8. Observe that, since nε<1n\varepsilon < 1, all standard quotas are distinct. Also, the sum of residues is

k=∑i=1n/2(12+(i−1−n2)ε)+∑i=n2+1n(i−n2)ε=n4,k=\sum_{i=1}^{n/2}\left(\frac{1}{2}+\left(i-1-\frac{n}{2}\right)\varepsilon\right)+\sum_{i=\frac{n}{2}+1}^{n}\left(i-\frac{n}{2}\right)\varepsilon=\frac{n}{4},

where the first sum collects the residues in TT and [n/2]∖T[n/2]\setminus T, and the second sum collects the residues for i>n/2i>n/2; observe that the ε\varepsilon part of the jthj^{\mathrm{th}} term of the first sum cancels out with the jthj^{\mathrm{th}}-last term of the second sum, leaving only n/2n/2 copies of 1/21/2.

Figure

Figure

Figure 4.1: Construction with n=8n=8, k=2k=2, and T={1,4}T=\{1,4\}. On the left is shown the standard quotas of each party, and on the right is shown the residues, which cluster around 1/21/2 and zero. The tiny steps have height ε\varepsilon. There is an envy-free apportionment that puts roughly half probability on {1,4}\{1,4\} and half probability on {2,3}\{2,3\}, but an oblivious rule only sees the residues on the right, so it cannot identify this partition.

First let us show that an envy-free randomized apportionment exists. We claim that the following distribution over sets S of size k=n/4k = n/4 is envy-free and proportional; see Figure 4.2 for an illustration of case (3):

(1) With probability (1−nε)/2(1 - n\varepsilon)/2, select S=TS = T.

(2) With probability (1−nε)/2(1 - n\varepsilon)/2, select S=T‾S = \overline{T}.

(3) With remaining probability nεn\varepsilon, pick a uniformly random index j∼[n/4]j \sim [n/4], then select one of the four sets, each with probability 1/4:

(A) S={n4+1+j,…,n2}∪{n+1−j,…,n}S = \left\{\frac{n}{4} + 1 + j, \ldots, \frac{n}{2}\right\} \cup \{n + 1 - j, \ldots, n\}.

(B) S={3n4+1−j,…,3n4}∪{3n4+1+j,…,n}S = \left\{\frac{3n}{4} + 1 - j, \ldots, \frac{3n}{4}\right\} \cup \left\{\frac{3n}{4} + 1 + j, \ldots, n\right\}.

(C) S=({n4+2−j,…,n2}∩T)∪{3n4+1,…,3n4+∣{1,…,n4+1−j}∩T∣}S = \left(\left\{\frac{n}{4} + 2 - j, \ldots, \frac{n}{2}\right\} \cap T\right) \cup \left\{\frac{3n}{4} + 1, \ldots, \frac{3n}{4} + \left|\{1, \ldots, \frac{n}{4} + 1 - j\} \cap T\right|\right\}.

(D) S=({n4+2−j,…,n2}∩T‾)∪{3n4+∣{1,…,n4+1−j}∩T‾∣,…,n+1−j}S = \left(\left\{\frac{n}{4} + 2 - j, \ldots, \frac{n}{2}\right\} \cap \overline{T}\right) \cup \left\{\frac{3n}{4} + \left|\{1, \ldots, \frac{n}{4} + 1 - j\} \cap \overline{T}\right|, \ldots, n + 1 - j\right\}.

Figure

Figure 4.2: Illustration of Case (3) of the envy-free randomized apportionment. In this example, n = 12, and shown are the remaining residues of each party after taking away probability mass according to Cases (1) and (2). The remaining probability mass is partitioned according to the sub-cases of case (3) in which they are bundled into additional sets of size k = n/4.

The sets selected in Cases (1) and (2) are clearly envy-free, because they consist of all parties with lower quotas 1 and 0, respectively. After subtracting probability (1−nε)/2(1 - n\varepsilon)/2 from each of the first n/2n/2 residues, the remaining residues of each party are plotted in Figure 4.2. Case 3 essentially pairs up the corresponding regions, always selecting k=n/4k = n/4 parties at a time so that all ε×ε\varepsilon \times \varepsilon blocks are accounted for. For instance, case (A) takes the jj blocks off the jthj^{\text{th}}-top row of the A-region on the right and combines them with the n/4−jn/4 - j blocks from the jthj^{\text{th}} bottom row of the A-region on the left. The B-regions are analogously paired in Case (B). Cases (C) and (D) collectively pair the jthj^{\text{th}}-top row in both regions, which has n/2n/2 blocks. Notice that each such set SS consists of the top residues in TT and T‾\overline{T}, so there is never any envy.

Now fix an oblivious apportionment rule. For the remainder of this proof, all probabilities are taken over both the random set TT chosen by the adversary and the random set SS selected by the rule. Note that TT and SS are independent random variables. As usual, we denote by XiX_i the indicator of the event that i∈Si \in S. We show that the expected envy is at least n2259200\frac{n^2}{259200}. First, we observe that

(4.1)

Pr⁡[∣S∩[n4]∣≥n20]≥14,\Pr\left[\left|S\cap\left[\frac{n}{4}\right]\right|\geq\frac{n}{20}\right]\geq\frac{1}{4},

for otherwise we would have

9n80=n4⋅1−nε2(sincenε=110)<∑i=1n/4E[Xi]=E[∑i=1n/4Xi]=E[∣S∩[n4]∣]≤Pr⁡[∣S∩[n4]∣≥n20]⋅n4+Pr⁡[∣S∩[n4]∣<n20]⋅n20≤14⋅n4+1⋅n20(assumingEquation(4.1)isfalse)=9n80,\begin{aligned}\frac{9n}{80}&=\frac{n}{4}\cdot\frac{1-n\varepsilon}{2}\qquad(since n\varepsilon=\frac{1}{10})\\&<\sum_{i=1}^{n/4}\mathbb{E}\left[X_{i}\right]\\&=\mathbb{E}\left[\sum_{i=1}^{n/4}X_{i}\right]\\&=\mathbb{E}\left[\left|S\cap\left[\frac{n}{4}\right]\right|\right]\\&\leq\Pr\left[\left|S\cap\left[\frac{n}{4}\right]\right|\geq\frac{n}{20}\right]\cdot\frac{n}{4}+\Pr\left[\left|S\cap\left[\frac{n}{4}\right]\right|<\frac{n}{20}\right]\cdot\frac{n}{20}\\&\leq\frac{1}{4}\cdot\frac{n}{4}+1\cdot\frac{n}{20}\qquad(assuming Equation(4.1)is false)\\&=\frac{9n}{80},\end{aligned}

which is a contradiction.

Now fix any SS containing at least n/20n/20 parties from [n/4];[n/4]; call these parties A⊆[n/4]A \subseteq [n/4]. Since ∣S∣=n/4|S| = n/4, this means that there are also at least n/20n/20 parties in {n/4+1,…,n/2}\{n/4 + 1, \ldots, n/2\} that SS does not contain. Consider the random set TT, which is still a uniformly random subset of [n/2][n/2], even after conditioning on SS, by independence. With probability at least 1/21/2, at least 1/31/3 of the elements of TT are from [n/4][n/4] and at least 1/31/3 are from {n/4+1,…,n/2}\{n/4 + 1, \ldots, n/2\}.¹ Conditioning on any such realization of ∣T∩[n/4]∣∈[13⋅n4,23⋅n4]|T \cap [n/4]| \in [\frac{1}{3} \cdot \frac{n}{4}, \frac{2}{3} \cdot \frac{n}{4}],

Pr⁡[∣T∩A∣≥n60and∣T∩B∣≥n60]=Pr⁡[∣T∩A∣≥n60]⋅Pr⁡[∣T∩B∣≥n60]≥12⋅12=14.\Pr\left[\left|T\cap A\right|\geq\frac{n}{60}\text{and}\left|T\cap B\right|\geq\frac{n}{60}\right]=\Pr\left[\left|T\cap A\right|\geq\frac{n}{60}\right]\cdot\Pr\left[\left|T\cap B\right|\geq\frac{n}{60}\right]\geq\frac{1}{2}\cdot\frac{1}{2}=\frac{1}{4}.

Thus, with probability at least 14⋅12⋅13⋅13=172\frac{1}{4} \cdot \frac{1}{2} \cdot \frac{1}{3} \cdot \frac{1}{3} = \frac{1}{72}, SS contains n/60n/60 parties in T∩AT \cap A but does not contain at least n/60n/60 parties in T∩BT \cap B, in which case the latter parties are envious. Thus, the total expected envy is at least 172⋅n60⋅n60=n2259200\frac{1}{72} \cdot \frac{n}{60} \cdot \frac{n}{60} = \frac{n^2}{259200}.

4.2 Envy-Freeness Detection via Network Flows In this section, we address the envy-freeness question in the multi-floor setting: when does there exist an apportionment rule with zero total expected envy? Recall that within a block, zero envy can only be achieved if the selected parties are precisely those with the highest residues.

Formally, consider the blocks I1,…,IBI_1, \ldots, I_B, where block bb has size mb=∣Ib∣m_b = |I_b|, and parties within each block are indexed according to nondecreasing residues. A necessary and sufficient condition for zero envy is that, in every outcome and every block bb, the selected parties in IbI_b are exactly the top ℓ\ell parties for some ℓ∈{0,…,mb}\ell \in \{0, \ldots, m_b\}. This

1^{1}The 13\frac{1}{3} could be replaced by any constant strictly less than 1/2 and both events actually occur with high probability. As we are not concerned with constant factors, we only require a constant probability lower bound of 12\frac{1}{2}.

observation reduces the space of feasible outcomes drastically since, instead of choosing arbitrary subsets of size k, a rule with zero total expected envy only needs to decide, for each block, how many parties to select. The remaining difficulty is to coordinate these per-block choices so that exactly k parties are selected overall, and ex ante proportionality is met. We model this problem as a network-flow linear program.

Network flow construction. We introduce variables fb,s,ℓ≥0f_{b,s,\ell} \geq 0, which represent the probability mass of outcomes in which, after processing blocks 1,…,b−11, \ldots, b-1, a total of ss parties have been selected, and block bb contributes exactly ℓ\ell additional parties (namely, the top ℓ\ell in residue order). Since the final outcome must select exactly kk parties, feasibility requires s+ℓ≤ks + \ell \leq k. These variables define a flow that moves from block to block, keeping track of the cumulative number of selected parties. At each block, the flow branches according to the number of parties selected in that block, and the proportionality constraints restrict how that number is distributed across blocks. The feasibility program is given by the following constraints:

[EF-LP]

min⁡(m1,k)∑ℓ=0f1,0,ℓ=1,min⁡(m1,k−s)∑ℓ=0f1,s,ℓ=0foreverys∈{1,…,k},\begin{align*}\min(m_{1},k)\\\sum_{\ell=0}f_{1,0,\ell}=1,\\\min(m_{1},k-s)\\\sum_{\ell=0}f_{1,s,\ell}=0\quad for every s\in\{1,\ldots,k\},\end{align*}

(4.2)

(4.3)

∑ℓ=0min⁡(mb,k−s)fb,s,ℓ−∑ℓ′=0min⁡(mb−1,s)fb−1,s−ℓ′,ℓ′=0foreverys∈{0,1,…,k}andb∈{2,…,B},(4.4)\sum_{\ell=0}^{\min(m_{b},k-s)}f_{b,s,\ell}-\sum_{\ell^{\prime}=0}^{\min(m_{b-1},s)}f_{b-1,s-\ell^{\prime},\ell^{\prime}}=0\quad for every s\in\{0,1,\ldots,k\}and b\in\{2,\ldots,B\}, \tag{4.4} ∑ℓ′=0min⁡(mB,k)fB,k−ℓ′,ℓ′=1,(4.5)\sum_{\ell^{\prime}=0}^{\min(m_{B},k)}f_{B,k-\ell^{\prime},\ell^{\prime}}=1, \tag{4.5} ∑s=0k∑ℓ=mb−t+1min⁡(mb,k−s)fb,s,ℓ=rtforeveryb∈{1,…,B}andt∈{1,…,mb},\sum_{s=0}^{k}\sum_{\ell=m_{b}-t+1}^{\min(m_{b},k-s)}f_{b,s,\ell}=r_{t}\quad for every b\in\{1,\ldots,B\}and t\in\{1,\ldots,m_{b}\}, f≥0.f\geq0.

Constraints (4.2) initialize the probability flow. They force all probability mass to start before the first block with zero selected parties. Thus, before processing block b=1b=1, the only reachable state is s=0s=0. Constraint (4.3) is the flow-conservation constraint: for every later block, the mass leaving a cumulative state equals the mass entering that state from the previous block. Constraint (4.4) forces all probability mass to end in outcomes that select exactly kk parties in total. Hence, every path carrying positive flow corresponds to a feasible apportionment outcome. Finally, (4.5) enforces ex ante proportionality; observe that for a block bb and a position t∈{1,…,mb}t\in\{1,\ldots,m_b\}, selecting the top ℓ\ell parties in block bb includes party tt if and only if ℓ≥mb−t+1\ell\geq m_b-t+1. We have the following proposition.

PROPOSITION 4.2. Given an apportionment instance, there exists an envy-free apportionment rule if and only if the linear program [EF-LP] is feasible.

Proof. If the linear program is feasible, since the network is acyclic, any feasible flow can be decomposed into a distribution over paths; see, e.g., [28, section 3.5]. Each path specifies how many parties are selected from each block, and the corresponding outcome selects the top parties within every block. Therefore, the induced rule has zero total expected envy and satisfies ex ante proportionality. Conversely, any envy-free apportionment rule induces feasible flow values by setting fb,s,ℓ=Pr⁡(Sb−1=s,Kb=ℓ)f_{b,s,\ell} = \Pr(S_{b-1} = s, K_b = \ell), where Sb−1S_{b-1} is the number of parties selected before block bb and KbK_b the number selected in bb.

The number of variables and constraints in [EF-LP] is O(nk)O(nk). Therefore, it can be solved efficiently using standard linear programming methods. We illustrate the flow formulation on the example from Section 1.1, reproduced in Table 1.1 for convenience. There are n=4n = 4 parties, H=10H = 10 seats, and the residues sum to k=0.4+0.8+0.2+0.6=2k = 0.4 + 0.8 + 0.2 + 0.6 = 2, so two additional seats must be distributed. The parties partition into two equal-floor blocks:

• Block A={1,2}A = \{1, 2\} with lower quota 1, residues (0.4,0.8)(0.4, 0.8);

  • Block B={3,4}B = \{3,4\} with lower quota 3, residues (0.2, 0.6).

Within each block, parties are sorted by nondecreasing residue. The network has three layers of nodes, corresponding to the state before processing any block, the state after Block A, and the state after Block B. Each node is labeled by the cumulative number of additional seats ss assigned so far. Since k=2k = 2, the possible values are s∈{0,1,2}s \in \{0,1,2\}. An edge from node (s)(s) in column bb to node (s+ℓ)(s + \ell) in column b+1b + 1 represents the decision to select the top-ℓ\ell parties from block bb, and carries flow equal to the probability mass assigned to that choice. The network is depicted in Figure 4.3.

Figure

Figure 4.3: Flow network for the introductory example. Nodes are labeled by the cumulative number of additional seats ss. Colored edges indicate the three paths carrying nonzero flow: the brown path selects both parties from Block AA (allocation (2, 2, 3, 3)), the purple path selects one from each block (allocation (1, 2, 3, 4)), and the green path selects both from Block BB (allocation (1, 1, 4, 4)). Gray edges are structurally valid but carry zero flow.

Recall that an outcome has zero envy if and only if, within each block, the selected parties are exactly the top-ℓ\ell in residue order for some ℓ\ell. In Block AA, the top-1 consists of party 2 alone (the higher residue), while the top-2 includes both parties 1 and 2. In Block BB, the top-1 is party 4 and the top-2 includes both parties 3 and 4. Since each block has size 2 and the total selection is k=2k = 2, there are exactly three zero-envy outcomes, corresponding to the three ways of splitting two selections across two blocks:

ℓA\ell_AℓB\ell_BSelected partiesSeat allocation
20{1,2}(2,2,3,3)
11{2,4}(1,2,3,4)
02{3,4}(1,1,4,4)

Each outcome corresponds to a source-to-sink path in the network: the first passes through s=0→2→2s = 0 \to 2 \to 2, the second through s=0→1→2s = 0 \to 1 \to 2, and the third through s=0→0→2s = 0 \to 0 \to 2. Then, the LP is feasible and the following defines an envy-free apportionment rule:

 Seats allocation ={(2,2,3,3) with probability 0.4,(1,2,3,4) with probability 0.4,(1,1,4,4) with probability 0.2.\text { Seats allocation } = \left\{ \begin{array}{l l} (2, 2, 3, 3) & \text { with probability } 0. 4, \\ (1, 2, 3, 4) & \text { with probability } 0. 4, \\ (1, 1, 4, 4) & \text { with probability } 0. 2. \end{array} \right.

4.3 Envy Aggregation via Linear Programming Duality When an envy-free proportional rule does not exist, a natural objective is to minimize the total expected envy. In this section, we consider a general linear programming framework to handle this objective and, more broadly, we introduce the class of block-aggregable functions, which are amenable to minimizing their expectation using the representation in Section 2.3.

Recall that apportionment rules are given by distributions over the subsets of parties that receive an additional seat, i.e., S↦p(S)S \mapsto p(S) is the probability of selecting S∈Sk={T⊆[n]:∣T∣=k}S \in \mathcal{S}_k = \{T \subseteq [n] : |T| = k\}. Given a function μ:Sk→R\mu : \mathcal{S}_k \to \mathbb{R}, consider the following linear program:

[MinLP]

minimize

∑S∈Skμ(S)p(S)\sum_{S\in\mathcal{S}_{k}}\mu(S)p(S)

subject to

∑S∈Sk:i∈Sp(S)=ri for every i∈[n],\begin{array}{r l}{\sum_{S\in\mathcal{S}_{k}:i\in S}p(S)=r_{i}}&{{}\mathrm{~f o r~e v e r y~}i\in[n],}\end{array} p(S)≥0for every S∈Sk.p(S)\geq0\quad\mathrm{f o r~e v e r y~}S\in\mathcal{S}_{k}.

We remark that every feasible solution pp in [MinLP] satisfies ∑S∈Skp(S)=1\sum_{S \in \mathcal{S}_k} p(S) = 1. Indeed, for such pp, we have k=∑i=1nri=∑i=1n∑S∈Sk:i∈Sp(S)=∑S∈Sk∣S∣p(S)=k∑S∈Skp(S)k = \sum_{i=1}^n r_i = \sum_{i=1}^n \sum_{S \in \mathcal{S}_k: i \in S} p(S) = \sum_{S \in \mathcal{S}_k} |S| p(S) = k \sum_{S \in \mathcal{S}_k} p(S).

The linear program is conceptually simple but has exponentially many variables, one for each feasible outcome S∈SkS \in \mathcal{S}_k. A standard approach in these cases is to consider the dual problem, study the complexity of the separation problem, and then solve efficiently using the ellipsoid method; see, e.g., [25]. In this case, the dual of [MinLP] is the following program:

[DualLP]

maximize

∑i=1nriyi\sum_{i=1}^{n}r_{i}y_{i}

subject to

∑i∈Syi≤μ(S)for every S∈Sk.\sum_{i\in S}y_{i}\leq\mu(S)\quad\mathrm{f o r~e v e r y~}S\in\mathcal{S}_{k}.

Then, the separation problem is the following:

[SEP]

max⁡S∈Sk{∑i∈Syi−μ(S)}.\max_{S\in\mathcal{S}_{k}}\Big\{\sum_{i\in S}y_{i}-\mu(S)\Big\}.

Our goal is to solve the problem [SEP] efficiently, in particular, using dynamic programming. Recall that given a partition J={J1,⋯ ,JL}J = \{J_1, \cdots, J_L\}, we introduce in Section 2.3 the function

σJ(S)=∣{(i,j):thereexistsb∈[L]withi>j,i,j∈Jb,i∉S,j∈S}∣foreveryS⊆[n],\sigma_{J}(S)=|\{(i,j):there exists b\in[L]with i>j,i,j\in J_{b},i\notin S,j\in S\}|for every S\subseteq[n],

i.e., the number of within-part inversions due to S, where a lower-residue party is selected while a higher-residue party is not. In particular, we have

(4.6)

σJ(S)=∑b=1LσJ(S∩Jb)for every S⊆[n].\sigma_{J}(S)=\sum_{b=1}^{L}\sigma_{J}(S\cap J_{b})\quad\mathrm{f o r~e v e r y~}S\subseteq[n].

We say that μ:Sk→R\mu : \mathcal{S}_k \to \mathbb{R} is block-aggregable respect to JJ if there exists ψ:N→R\psi : \mathbb{N} \to \mathbb{R} such that

μ(S)=ψ(σJ(S))foreveryS∈Sk.\mu(S)=\psi(\sigma_{J}(S))for every S\in\mathcal{S}_{k}.

We suppose in what follows that ψ:{0,1,…,n2}→R\psi : \{0,1,\ldots,n^2\} \to \mathbb{R} can be evaluated in polynomial time. The envy aggregations considered in Section 2.3 are captured by block-aggregable functions. For the case of total expected envy, it is sufficient to take ψ(x)=x\psi(x) = x, for the probability of not being envy-free, we can take ψ(x)=1{x>0}\psi(x) = \mathbf{1}\{x > 0\}, and for the variance of total expected envy, we can take ψ(x)=x2\psi(x) = x^2 for handling the first term. In the following result, we show that [MinLP] can be solved efficiently for block-aggregable functions, using dynamic programming for the separation problem.

THEOREM 4.3. Let II be a partition of [n][n], and let μ:Sk→R\mu : \mathcal{S}_k \to \mathbb{R} be block-aggregable with respect to II. Then, [MinLP] can be solved in polynomial time.

Proof. It is sufficient to show that the separation problem [SEP] can be solved in polynomial time. We show that for block-aggregable functions, this can be done using dynamic programming thanks to the decomposability property (4.6). For each part JbJ_b, let i1<i2<⋯<imbi_1 < i_2 < \cdots < i_{m_b} be its elements, with mb=∣Jb∣m_b = |J_b|, and let Mb=(mb2)M_b = \binom{m_b}{2}. We first compute an auxiliary table for this set JbJ_b. For q∈{0,…,min⁡{k,mb}}q \in \{0, \ldots, \min\{k, m_b\}\} and u∈{0,…,Mb}u \in \{0, \ldots, M_b\}, define

Fb(q,u)=max⁡{∑i∈Tyi:T⊆Jb,∣T∣=q,σJ(T)=u},F_{b}(q,u)=\max\Big\{\sum_{i\in T}y_{i}:T\subseteq J_{b},|T|=q,\sigma_{J}(T)=u\Big\},

where the maximum over an empty feasible set is interpreted as −∞-\infty. We compute FbF_b by dynamic programming. Let H[r,q,u]H[r, q, u] be the maximum value of ∑i∈Tyi\sum_{i \in T} y_i over sets T⊆{i1,…,ir}T \subseteq \{i_1, \ldots, i_r\} such that ∣T∣=q|T| = q and ∣{(is,it):s>t,is∉T,it∈T}∣=u|\{(i_s, i_t) : s > t, i_s \notin T, i_t \in T\}| = u. Initialize H(0,0,0)=0H(0, 0, 0) = 0, and −∞-\infty otherwise. For r=1,…,mbr = 1, \ldots, m_b, the recurrence is

H(r,q,u)=max⁡{H(r−1,q−1,u)+yir,H(r−1,q,u−q)}.H(r,q,u)=\max\Big\{H(r-1,q-1,u)+y_{i_{r}},H(r-1,q,u-q)\Big\}.

To justify the recurrence, consider two cases. If ir∈Ti_r \in T, then before processing iri_r we must have selected q−1q - 1 elements from {i1,…,ir−1}\{i_1, \ldots, i_{r-1}\}. Moreover, selecting iri_r does not create any new envious pair, because the larger element iri_r is selected. Hence, the number of pairs remains uu, and the contribution to the objective increases by yiry_{i_r}.

If instead ir∉Ti_r \notin T, then the same qq selected elements already belonged to {i1,…,ir−1}\{i_1, \ldots, i_{r-1}\}. Since iri_r is larger than all previous elements in the block, it creates exactly one new pair with each previously selected element. Therefore, exactly qq new pairs are created, and in order to end with uu pairs after processing iri_r, we must have had u−qu - q pairs before processing iri_r. At the end of the dynamic program, we set Fb(q,u)=H(mb,q,u)F_b(q, u) = H(m_b, q, u). This computation can be done in polynomial time.

We now define the global dynamic program. Let M=∑b=1BMbM = \sum_{b=1}^{B} M_b. For the values b∈{0,…,B}b \in \{0, \ldots, B\}, t∈{0,…,k}t \in \{0, \ldots, k\}, and a∈{0,…,M}a \in \{0, \ldots, M\}, let

D(b,t,a)=max⁡{∑ℓ=1b∑i∈Sℓyi:Sℓ⊆Jℓ,∑ℓ=1b∣Sℓ∣=t,∑ℓ=1bσJ(Sℓ)=a}.D(b,t,a)=\max\Big\{\sum_{\ell=1}^{b}\sum_{i\in S_{\ell}}y_{i}:S_{\ell}\subseteq J_{\ell},\sum_{\ell=1}^{b}|S_{\ell}|=t,\sum_{\ell=1}^{b}\sigma_{J}(S_{\ell})=a\Big\}.

Initialize D(0,0,0)=0D(0,0,0) = 0, and all other entries as −∞-\infty. Suppose the table for the first b−1b-1 parts has been computed. For b=1,…,Lb = 1, \ldots, L, the recurrence for the global table is

D(b,t,a)=max⁡{D(b−1,t−q,a−u)+Fb(q,u):0≤q≤min⁡{t,mb},0≤u≤min⁡{a,Mb}},D(b,t,a)=\max\Big\{D(b-1,t-q,a-u)+F_{b}(q,u):0\leq q\leq\min\{t,m_{b}\},0\leq u\leq\min\{a,M_{b}\}\Big\},

where infeasible entries are interpreted as −∞-\infty. To justify the recurrence, suppose that in part JbJ_b we select a set Sb⊆JbS_b \subseteq J_b such that ∣Sb∣=q|S_b| = q and σJ(Sb)=u\sigma_J(S_b) = u. Since JbJ_b has mbm_b elements and at most MbM_b pairs, we must have 0≤q≤mb0 \leq q \leq m_b and 0≤u≤Mb0 \leq u \leq M_b. For fixed qq and uu, the best possible contribution of block JbJ_b is exactly Fb(q,u)F_b(q, u). The previous b−1b-1 blocks must then contribute cardinality t−qt - q and aggregate value a−ua - u, which is captured by D(b−1,t−q,a−u)D(b-1, t - q, a - u). Taking the maximum over all feasible values of qq and uu gives the recurrence.

After all parts have been processed, the value is max⁡{D(B,k,a)−ψ(a):a∈{0,…,M}}\max\{D(B,k,a) - \psi(a) : a \in \{0, \ldots, M\}\}. Indeed, every feasible set S∈SkS \in \mathcal{S}_k decomposes uniquely as S=S1∪⋯∪SBS = S_1 \cup \cdots \cup S_B, with Sb=S∩JbS_b = S \cap J_b for each b∈[L]b \in [L]. For each fixed aggregate value aa, the table D(B,k,a)D(B,k,a) gives the best possible value of the term ∑i∈Syi\sum_{i \in S} y_i. Since μ\mu is block-aggregable, subtracting ψ(a)\psi(a) in the final maximization gives the correct objective value.

Since M=O(n2)M = O(n^2), the running time for this dynamic program is polynomial in nn. Combining this with the polynomial-time computation of the local tables FbF_b, the oracle problem can be solved in polynomial time.

Applications. As a direct consequence of 4.3, we can find apportionment rules that minimize the envy aggregation functions considered in Section 2.3. More specifically, by using the function μ\mu given by ψ(x)=x\psi(x) = x, we can solve [MinLP] to find the apportionment rule that minimizes total expected envy. Then, by calling the function μ\mu given by ψ(x)=1{x>0}\psi(x) = \mathbf{1}\{x > 0\}, we can solve [MinLP] to find the apportionment rule that minimizes the probability of not being envy-free. Finally, consider the case of single-floor instances. As a corollary of both our Theorem 3.2 and Theorem 4.3, we obtain the following proposition.

PROPOSITION 4.4. In the single-floor setting, we can find in polynomial time the apportionment rule that minimizes the total envy variance.

Proof. For any apportionment rule with distribution S↦p(S)S \mapsto p(S), we have that the variance of the total envy is equal to

VarS∼p[σI(S)]=ES∼p[σI2(S)]−(∑S∈SkσI(S)p(S))2=∑S∈SkσI2(S)p(S)−(12k(n−k)+12∑t=1nrt(n−2t+1))2,\begin{align*}\mathrm{Var}_{S\sim p}[\sigma_{I}(S)]&=\mathbb{E}_{S\sim p}\Big[\sigma_{I}^{2}(S)\Big]-\Big(\sum_{S\in\mathcal{S}_{k}}\sigma_{I}(S)p(S)\Big)^{2}\\&=\sum_{S\in\mathcal{S}_{k}}\sigma_{I}^{2}(S)p(S)-\Big(\frac{1}{2}k(n-k)+\frac{1}{2}\sum_{t=1}^{n}r_{t}(n-2t+1)\Big)^{2},\end{align*}

where the second equality holds since the total expected envy is rule-independent for single-floor instances (Theorem 3.2). Therefore, to minimize the total envy variance, it suffices to minimize ∑S∈SkσI2(S)p(S)\sum_{S \in \mathcal{S}_k} \sigma_I^2(S)p(S). This objective is captured by the block-aggregable function with ψ(x)=x2\psi(x) = x^2, and by calling [MinLP], we can find the rule with minimum total envy variance.

Figure

(a) Probability of envy-free feasibility vs house size for various n.

Figure

(b) Heatmap of feasibility over (n,H)(n, H).

Experiment (C): Expected envy vs house size

Figure

(c) Expected envy: optimal vs. oblivious.

Figure 4.4: Empirical behavior of envy-free feasibility and envy minimization. Each plot is generated from synthetic instances with random vote vectors.

5 Empirical Results We complement the theoretical analysis with experiments designed to (i) measure how often an envy-free proportional randomized rule exists in practice, and (ii) compare the expected envy incurred by canonical apportionment rules to the minimum achievable envy. Unless otherwise stated, each synthetic instance is generated by drawing a vote vector v∈R>0nv \in \mathbb{R}_{>0}^n i.i.d. from a continuous distribution (uniform on [0,1][0,1]), so ties occur with probability zero. Given vv and house size HH, we compute quotas qi=H⋅vi/∑jvjq_i = H \cdot v_i / \sum_j v_j and decompose qi=fi+riq_i = f_i + r_i. Parties are partitioned into equal-floor blocks I1,…,IBI_1, \ldots, I_B by the floors (fi)(f_i), and within each block we order by nondecreasing residues (breaking ties by index). Envy-free feasibility is decided by [EF-LP] (the flow formulation from Section 4.2), solved with Gurobi via a direct gurobipy implementation [26]. The minimum expected total envy is computed for small nn by solving the explicit [MinLP] in Section 4.3 over all kk-subsets.

Figure 4.4 summarizes the main empirical findings. Panel (a) reports the estimated probability that a zero-envy proportional randomized rule exists as a function of the house size H, for several values of n. Each point is computed over 1000 independent random instances. The probability increases steadily with H, indicating that envy-free solutions become easier to realize as the number of seats grows relative to the number of parties. Intuitively, larger house sizes produce finer quota structures and more flexibility in matching marginal probabilities while avoiding within-block inversions.

Panel (b) provides a complementary view by plotting feasibility over a two-dimensional grid of (n,H)(n, H). The heatmap shows that feasibility depends primarily on the ratio H/nH/n rather than on nn alone. For moderate values of HH, envy-free solutions appear frequently across a wide range of problem sizes, suggesting that the phenomenon is not confined to small instances. A notable feature of Panel (b) is that for small values of nn (e.g., n≤10n \leq 10), the feasibility probability does not reach 1 even for large house sizes HH. This is explained by the structure of same-floor blocks. Figure 5.1 shows that for small nn, there is a persistent probability of encountering non-singleton blocks even at large HH: for instance, at n=2n = 2 and H=197H = 197, the probability that all blocks are singletons is approximately 0.99, closely matching the observed feasibility rate. Once H/nH/n is sufficiently large, the probability of non-singleton blocks vanishes and feasibility converges to 1.

Panel (c) compares the expected envy achieved by different apportionment rules across 1000 instances with n = 10 parties. We plot the minimum achievable envy (computed by solving [MinLP] exactly for small n) together with Grimmett's rule, the randomized-order variant of Grimmett, and Sampford rounding. Due to the symmetries of our distribution of votes, all of these oblivious rules consistently incur the same envy with a large number of trials. It is far larger envy than the optimum, sometimes by a substantial margin. These observations align with the theoretical result that oblivious rules can be quadratically suboptimal in the worst case, and suggest that exploiting floor-block structure is practically important even in moderately sized instances.

Probability all same-quota blocks are singletons (n<10)(n < 10)

Figure

Figure 5.1: Probability that all same-quota-floor blocks are singletons, for n<10n < 10 parties.

5.1 U.S. House Apportionment over Census Decades We additionally tested envy-free feasibility on historical U.S. census populations and corresponding House sizes. The U.S. Constitution requires that each state receives at least one representative and that the District of Columbia receives none. To accommodate this constraint, we considered three alternative preprocessing methods, each guaranteeing at least one seat per state before applying the envy-free feasibility test. We remark that in each case, after the preprocessing step, we get a new instance that is then used to feed our apportionment methods.

Option 1 (Baseline-1 proportional). Every state receives one deterministic seat. The remaining Hrem=H−nH_{\text{rem}} = H - n seats are then apportioned proportionally to population among all n states, and we check envy-free feasibility of this residual problem via [EF-LP].

Option 2 (Exclude tiny states). Every state again receives one baseline seat. We define tiny states as those whose original proportional quota qi=piH/∑jpjq_i = p_i H / \sum_j p_j is less than 1. The residual HremH_{\text{rem}} seats are apportioned proportionally only among the non-tiny states, and [EF-LP] is run on this restricted instance. Tiny states receive exactly one seat with certainty.

Option 3 (Quota-floor-1 reweighting). Rather than excluding tiny states, we construct effective vote weights vieffv_i^{eff} such that the induced quotas satisfy qi≥1q_i \geq 1 for all states. States whose proportional quota would fall below 1 are clamped to have effective quota exactly 1 (and hence residue 0, guaranteeing they never receive a second seat), while the remaining quota mass is distributed proportionally among the other states. [EF-LP] is then run on the full instance of nn states with house size HH.

Figure

(a) Option 1 (Baseline-1 proportional)

Figure

(b) Option 2 (Exclude tiny states)

(c) Option 3 (Quota-floor-1 reweighting)

Figure 5.2: Same-floor block size distribution for the 2020 U.S. census under each preprocessing method. Each stacked segment represents one block; the height of each segment equals the block size.

The differences between these three preprocessing methods are elaborated in Appendix A. Empirically we observed that an envy-free proportional rule exists for every tested decade under all three methods. This suggests that, at least for the historical U.S. instances, the floor-block structure admits sufficient flexibility to match the marginals while avoiding within-block inversions, regardless of how the constitutional minimum-seat constraint is handled. Figure 5.2 illustrates the same-floor block structure for the 2020 census under all three preprocessing methods. Across all options, block sizes remain moderate: most states fall into singleton or small blocks, and the largest blocks contain only a handful of states. The three methods produce similar but distinct distributions: Option 3, for instance, concentrates more states into fewer blocks due to the reweighting of tiny states, while Option 2 reduces the total number of states participating in the residual problem. Despite these differences, the overall structure remains favorable in every case. Since the LP resolves envy within each block independently, small blocks impose few binding constraints on the flow variables, which helps explain why envy-free feasibility holds across all decades and all three methods. As long as no single block grows large enough to create conflicting marginal requirements, feasibility is easily achieved.

6 Conclusion In light of the contentious history surrounding apportionment, issues of fairness and paradoxes are paramount. To advance randomized apportionment from theory to practice, it is necessary to guard against outcomes that are likely to produce complaints, chief among which is envy. We have demonstrated that it is tractable to find envy-minimizing allocations at scale, and that the optimal level of envy is very often zero. These encouraging results suggest a clear path toward a wider adoption of randomized apportionment systems.

PairAvg ℓ1\ell_1Avg ℓ∞\ell_\infty
Option 1 vs Option 23.23840.6383
Option 1 vs Option 325.25583.3754
Option 2 vs Option 323.02543.1946

Table A.1: Average pairwise deviation in expected seats across all decades.

A Notes on Preprocessing Methods for US Apportionment Data The three methods differ in how they handle the tension between the constitutional minimum and proportionality. Fix 1 preserves proportional expectations across all states but may produce results with states with original quota below 1 being assigned more than one seat. Option 2 eliminates tiny states from the randomized allocation entirely, improving feasibility at the cost of deviating from proportionality. Option 3 occupies a middle ground: all states participate in the LP, but tiny states are effectively frozen at one seat through reweighting. Table A.1 reports the average pairwise deviation in expected seat allocations across all census decades, measured in both ℓ1\ell_1 and ℓ∞\ell_\infty norm.

References

[1] G. AMANATIDIS, G. BIRMPAS, A. FILOS-RATSIKAS, AND A. A. VOUDOURIS, Fair division of indivisible goods: A survey, in IJCAI, 2022, pp. 5385–5393.

[2] H. AZIZ, R. FREEMAN, N. SHAH, AND R. VAISH, Best of both worlds: Ex ante and ex post fairness in resource allocation, Operations Research, 72 (2024), pp. 1674–1688.

[3] H. AZIZ, O. LEV, N. MATTEI, J. S. ROSENSCHEIN, AND T. WALSH, Strategyproof peer selection using randomization, partitioning, and apportionment, Artificial Intelligence, 275 (2019), pp. 295–309.

[4] M. L. BALINSKI AND H. P. YOUNG, A new method for congressional apportionment, Proceedings of the National Academy of Sciences, 71 (1974), pp. 4602–4606.

[5] M. L. BALINSKI AND H. P. YOUNG, The quota method of apportionment, The American Mathematical Monthly, 82 (1975), pp. 701–730.

[6] M. L. BALINSKI AND H. P. YOUNG, On Huntington Methods of Apportionment, SIAM Journal on Applied Mathematics, 33 (1977), pp. 607–618.

[7] M. L. BALINSKI AND H. P. YOUNG, Criteria for Proportional Representation, Operations Research, 27 (1979), pp. 80–95.

[8] M. L. BALINSKI AND H. P. YOUNG, Quotatone apportionment methods, Mathematics of Operations Research, 4 (1979), pp. 31–38.

[9] M. L. BALINSKI AND H. P. YOUNG, Fair Representation: Meeting the Ideal of One Man, One Vote, Brookings Institution Press, 2nd ed., 2001.

[10] R. BOECKEL, Apportionment of representatives in congress, CQ Researcher, (1927), https://cqpress.sagepub.com/cqresearcher/report/apportionment-representatives-congress-cqresrre1927120600. Accessed: 2026-02-09.

[11] A. BOGOMOLNAIA AND H. MOULIN, A new solution to the random assignment problem, Journal of Economic Theory, 100 (2001), pp. 295–328.

[12] E. BOIX-ADSERÀ, B. L. EDELMAN, AND S. JAYANTI, The multiplayer colonel blotto game, Games and Economic Behavior, 129 (2021), pp. 15–31.

[13] K. R. W. BREWER AND M. HANIF, An Introduction to Sampling with Unequal Probabilities, vol. 15, Springer, New York, NY, 1983.

[14] J. CEMBRANO, J. CORREA, G. DÍAZ, AND V. VERDUGO, Proportionality in multiple dimensions to design electoral systems, Social Choice and Welfare, (2025), pp. 1–35.

[15] J. CEMBRANO, J. CORREA, S. M. GRIESBACH, AND V. VERDUGO, Online proportional apportionment, Mathematical Programming, (2026).

[16] J. CEMBRANO, J. CORREA, U. SCHMIDT-KRAEPELIN, A. TSIGONIAS-DIMITRIADIS, AND V. VERDUGO, New combinatorial insights for monotone apportionment, Mathematics of Operations Research, (2025).

[17] J. CEMBRANO, J. CORREA, AND V. VERDUGO, Multidimensional political apportionment, Proceedings of the National Academy of Sciences, 119 (2022), p. e2109305119.

[18] J. CORREA, P. GÖLZ, U. SCHMIDT-KRAEPELIN, J. TUCKER-FOLTZ, AND V. VERDUGO, Monotone randomized apportionment, Operations Research, (2026).

[19] H. EVREN AND M. KHANNA, Affirmative action's cumulative fractional assignments, 2021.

[20] N. GAFFKE AND F. PUKELSHEIM, Divisor methods for proportional representation systems: An optimization approach to vector and matrix apportionment problems, Mathematical Social Sciences, 56 (2008), pp. 166–184.

[21] R. GANDHI, S. KHULLER, S. PARTHASARATHY, AND A. SRINIVASAN, Dependent rounding and its applications to approximation algorithms, Journal of the ACM, 53 (2006), pp. 324–360.

[22] P. GÖLZ, J. MALY, U. SCHMIDT-KRAEPELIN, M. UTKE, AND P. C. VERPOORT, City sampling for citizens' assemblies, in AAAI, 2026, pp. 16971–16979.

[23] P. GÖLZ, D. PETERS, AND A. D. PROCACCIA, In this apportionment lottery, the house always wins, Operations Research, 74 (2026), pp. 390–407.

[24] G. GRIMMETT, Stochastic apportionment, The American Mathematical Monthly, 111 (2004), pp. 299–307.

[25] M. GRÖTSCHEL, L. LOVÁSZ, AND A. SCHRIJVER, Geometric algorithms and combinatorial optimization, vol. 2, Springer Science & Business Media, 2012.

[26] GUROBI OPTIMIZATION, LLC, Gurobi Optimizer Reference Manual, 2021, https://www.gurobi.com.

[27] W. G. MADOW, On the Theory of Systematic Sampling, II, The Annals of Mathematical Statistics, 20 (1949), pp. 333–354.

[28] T. L. MAGNANTI AND J. B. ORLIN, Network flows, PHI, Englewood Cliffs NJ, (1993).

[29] OECD, Innovative Citizen Participation and New Democratic Institutions: Catching the Deliberative Wave, Organisation for Economic Co-operation and Development, June 2020, https://doi.org/10.1787/339306da-en.

[30] F. PUKELSHEIM, Proportional Representation: Apportionment Methods and Their Applications, Springer, New York, NY, 2nd edition ed., 2017.

[31] G. ROTE AND M. ZACHARIASEN, Matrix scaling by network flow, in SODA, 2007, p. 848–854.

[32] M. R. SAMPFORD, On sampling without replacement with unequal probabilities of selection, Biometrika, 54 (1967), pp. 499–513.

[33] Y. A. TILLÉ, Sampling Algorithms, Springer, 2006.