pref_voting: The Preferential Voting Tools package for Python
Wesley H. Holliday, Eric Pacuit · The Journal of Open Source Software · 2025
designed for research in voting theory (Brams & Fishburn, 2002;Dummett, 1984;Pacuit, 2019;Tideman, 2006;Zwicker, 2016), a subfield of social choice theory (Arrow, 1963;Fishburn, 1973;Kelly, 1988;Sen, 2017), and for practical applications of the theory.The basic problem of voting theory concerns how to combine "inputs" from multiple individual voters into a single social "output".For example, a common type of input from each voter is a ranking of some set of candidates, while a common type of social output is the selection of a winning candidate (or perhaps a set of candidates tied for winning).A voting method is then a function that takes in a ranking from each voter and outputs a winning candidate (or set of tied candidates).Other functions may instead output a social ranking of the candidates (Arrow, 1963) or a probability distribution over the candidates (Brandt, 2017), and other input types are also possible, such as sets of approved candidates (Brams & Fishburn, 2007), or assignments of grades to candidates (Balinski & Laraki, 2010), or real-valued functions on the set of candidates (d' Aspremont & Gevers, 2002;Sen, 2017).Faced with a function of any of these types, voting theorists study the function from several perspectives, including the general principles or "axioms" it satisfies (Felsenthal, 2012;Nurmi, 1987Nurmi, , 1999)), its susceptibility to manipulation by strategic voters (Taylor, 2005), its statistical behavior according to probability models for generating voter inputs (Green-Armytage et al., 2016;Merrill, 1988), the complexity of the function and related computational problems (e.g., the problem of determining if the function can be manipulated in a given election) (Faliszewski et al., 2009), and more.These studies are greatly facilitated by the implementation of algorithms for computing the relevant functions and checking their properties, which are provided in pref_voting.
Cited by 2 works. doi:10.21105/joss.07020 Open-access PDF
Authors
References
- The Theory of Social Choice
- Social Choice and Individual Values
- Comparing Voting Systems
- Collective Choice and Social Welfare
- Handbook of Computational Social Choice
- Voting Paradoxes and How to Deal with Them
- Chapter 4 Voting procedures
- Making Multicandidate Elections More Democratic
- Social Choice and the Mathematics of Manipulation
- A Unified Theory of Voting