Next Article in Journal
Level-k Models and Overspending in Contests
Previous Article in Journal
On the Impact of an Intermediary Agent in the Ultimatum Game
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Monte Carlo Methods for the Shapley–Shubik Power Index †

Graduate School of Engineering, Tokyo Institute of Technology, Ookayama, Meguro-ku, Tokyo 152-8552, Japan
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in the 21st Japan-Korea Joint Workshop on Algorithms and Computation (WAAC), Fukuoka, Japan, 26–27 August 2018.
Games 2022, 13(3), 44; https://doi.org/10.3390/g13030044
Submission received: 16 April 2022 / Revised: 17 May 2022 / Accepted: 26 May 2022 / Published: 2 June 2022
(This article belongs to the Section Algorithmic and Computational Game Theory)

Abstract

:
This paper deals with the problem of calculating the Shapley–Shubik power index in weighted majority games. We propose an efficient Monte Carlo algorithm based on an implicit hierarchical structure of permutations of players. Our algorithm outputs a vector of power indices preserving the monotonicity, with respect to the voting weights. We show that our algorithm reduces the required number of samples, compared with the naive algorithm.

1. Introduction

The analysis of power is a central issue in political science. In general, it is difficult to define the idea of power, even in restricted classes of the voting rules commonly considered by political scientists. The use of game theory to study the power distribution in voting systems can be traced back to the invention of “simple games” by von Neumann and Morgenstern [1]. A simple game is an abstraction of the constitutional political machinery for voting.
In 1954, Shapley and Shubik [2] proposed the specialization of the Shapley value [3] to assess the a priori measure of the power of each player in a simple game. Since then, the Shapley–Shubik power index (S–S index) has become widely known as a mathematical tool for measuring the relative power of the players in a simple game.
In this paper, we consider a special class of simple games, called weighted majority games, which constitute a familiar example of voting systems. Let N be a set of players. Each player i N has a positive integer voting weight w i as the number of votes or weight of the players. A positive integer q is the quota needed for a coalition to win. A coalition N N is a winning coalition if i N w i q holds; otherwise, it is a losing coalition. Many works analyze weighted majority games in a variety of settings, including the Council of the European Union [4,5,6], the U.S. Electoral College [7,8], and the International Monetary Fund [9,10]. Weighted majority games and power indices are applicable beyond classical voting situations in politics. Applications of power indices include cost allocation [11], analyses of genetic networks [12], analyses of social networks [13,14], and reliability problems in the maintenance of computer networks [15].
The difficulty involved in calculating the S–S index in weighted majority games is described in [16] without a proof (see p. 280, problem [MS8]). Deng and Papadimitriou [17] showed the problem of computing the S–S index in weighted majority games to be #P-complete. Prasad and Kelly [18] proved the NP-completeness of the problem of verifying the positivity of a given player’s S–S index in weighted majority games. The problem of verifying the asymmetry of a given pair of players was also shown to be NP-complete [19]. It is known that even approximating the S–S index within a constant factor is intractable, unless P = N P  [20].
There are variations of methods for calculating the S–S index. These include algorithms based on the Monte Carlo method [21,22,23,24,25,26], multilinear extensions [27,28], dynamic programming [22,29,30,31,32], generating functions [33], binary decision diagrams [34], the Karnaugh map [35], relation algebra [36], or the enumeration technique [37]. A survey of algorithms for calculating power indices in weighted voting games is presented in [22].
In the classical theory of cooperative games, it is assumed that all players can communicate freely. Alonso-Meijide et al. [38] consider situations where some players are incompatible, i.e., some players cannot cooperate among themselves for ideological or economic reasons. They proposed a method for calculating the S–S and Banzhaf–Coleman power indices when some players are incompatible, using generating functions. Courtin et al. [39] discussed multi-type games in which there are several non-ordered types in the input, while the output consists of a single real value. When the output is dichotomous, they extend and fully characterize the S–S index.
This paper addresses Monte Carlo algorithms for calculating the S–S index in weighted majority games. In the following section, we describe the notations and definitions used in this paper. In Section 3, we analyze a naive Monte Carlo algorithm (Algorithm 1) and extend some results obtained in the study reported in [25]. In Section 4, we propose an efficient Monte Carlo algorithm (Algorithm 2) and show that our algorithm reduces the required number of samples compared to the naive algorithm. Table 1 summarizes the results of this study, where ( φ 1 , φ 2 , , φ n ) denotes the S–S index and ( φ 1 A , φ 2 A , , φ n A ) denotes the estimator obtained by Algorithm 1 or 2.

2. Notations and Definitions

In this paper, we consider a special class of cooperative games called weighted majority games. Let N = { 1 , 2 , , n } be a set of players. A subset of players is called a coalition. A weighted majority game G is defined by a sequence of positive integers G = [ q ; w 1 , w 2 , , w n ] , where we may think of w i as the number of votes or the weight of player i, and q as the quota needed for a coalition to win. In this paper, we assume that 0 < q w 1 + w 2 + + w n .
A coalition S N is called a winning coalition when the inequality q i S w i holds. The inequality q w 1 + w 2 + + w n implies that N is a winning coalition. A coalition S is called a losing coalition if S is not winning. We define an empty set as a losing coalition.
Let π : { 1 , 2 , , n } N be a permutation defined on the set of players N, which provides a sequence of players ( π ( 1 ) , π ( 2 ) , , π ( n ) ) . We denote the set of all the permutations by Π N . We say that the player π ( i ) N is the pivot of the permutation π Π N , if { π ( 1 ) , π ( 2 ) , , π ( i 1 ) } is a losing coalition and { π ( 1 ) , π ( 2 ) , , π ( i 1 ) , π ( i ) } is a winning coalition. For any permutation π Π N , piv ( π ) N denotes the pivot of π . For each player i N , we define Π i = { π Π N piv ( π ) = i } . Obviously, { Π 1 , Π 2 , , Π n } becomes a partition of Π N . The S–S index of player i, denoted by φ i , is defined by | Π i | / n ! . We know that 0 φ i 1 ( i N ) and i N φ i = 1 .
Assumption A1.
The set of players is arranged to satisfy w 1 w 2 w n .
Clearly, this assumption implies that φ 1 φ 2 φ n .

3. Naive Algorithm and Its Analysis

In this section, we describe a naive Monte Carlo algorithm and analyze its theoretical performance. In the following, M denotes the number of samples generated in our algorithm.
Algorithm 1 Naive Algorithm.
    Step 0: Set m : = 1 , φ i : = 0 ( i N ) .
    Step 1: Choose π Π N uniformly at random.
                 Put (the random variable) I ( m ) : = piv ( π ) . Update φ I ( m ) : = φ I ( m ) + 1 .
    Step 2: If m = M , then output φ i / M ( i N ) and stop.
                 Else, update m : = m + 1 and go to Step 1.
For each permutation π Π N , we can find the pivot piv ( π ) N in O ( n ) time. Thus, the time complexity of Algorithm 1 is bounded by O ( M ( τ ( n ) + n ) ) , where τ ( n ) denotes the computational effort required for the random generation of a permutation.
We denote the vector (of random variables) obtained by executing Algorithm 1 by ( φ 1 A 1 , φ 2 A 1 , , φ n A 1 ) . The following theorem is obvious.
Theorem 1.
For each player i N , E φ i A 1 = φ i .
The following theorem provides the number of samples required in Algorithm 1.
Theorem 2.
For any ε > 0 and 0 < δ < 1 , we have the following.
(1) Ref. [25] If we set M ln 2 + ln ( 1 / δ ) 2 ε 2 , then each player i N satisfies that
Pr φ i A 1 φ i < ε 1 δ .
(2) If we set M ln 2 + ln ( 1 / δ ) + ln n 2 ε 2 , then
Pr i N , φ i A 1 φ i < ε 1 δ .
(3) If we set M n ln 2 + ln ( 1 / δ ) 2 ε 2 , then
Pr 1 2 i N φ i A 1 φ i < ε 1 δ .
The distance measure 1 2 i N φ i A 1 φ i appearing in (3) is called the total variation distance.
Proof. 
Let us introduce random variables X i ( m ) ( m { 1 , 2 , , M } , i N ) in Step 1 of Algorithm 1, defined by
X i ( m ) = 1 ( if i = I ( m ) ) , 0 ( otherwise ) .
It is obvious that, for each player i N , { X i ( 1 ) , X i ( 2 ) , , X i ( M ) } is a Bernoulli process satisfying φ i A 1 = m = 1 M X i ( m ) / M , E φ i A 1 = E X i ( m ) = φ i   ( m { 1 , 2 , , M } ) . Hoeffding’s inequality [40] implies that each player i N satisfies
Pr φ i A 1 φ i ε 2 exp 2 M 2 ε 2 m = 1 M ( 1 0 ) 2 = 2 exp ( 2 M ε 2 ) .
(1) If we set M ln ( 2 / δ ) 2 ε 2 , then
Pr φ i A 1 φ i < ε 1 2 exp 2 ln ( 2 / δ ) 2 ε 2 ε 2 = 1 δ .
(2) If we set M ln ( 2 n / δ ) 2 ε 2 , then we have that
Pr i N , φ i A 1 φ i < ε = 1 Pr i N , φ i A 1 φ i ε     1 i N Pr φ i A 1 φ i ε 1 i = 1 n 2 exp ( 2 M ε 2 )         1 i = 1 n 2 exp 2 ln ( 2 n / δ ) 2 ε 2 ε 2 = 1 i = 1 n δ n = 1 δ .
(3) The vector of random variables
( M φ 1 A 1 , M φ 2 A 1 , , M φ n A 1 ) = m = 1 M X 1 ( m ) , m = 1 M X 2 ( m ) , , m = 1 M X n ( m )
is multinomially distributed with parameters M and ( φ 1 , φ 2 , , φ n ) . Then, the Bretagnolle–Huber–Carol inequality [41] (Theorem A1 in Appendix A) implies that
Pr 1 2 i N φ i A 1 φ i ε = Pr i N M φ i A 1 M φ i 2 M ε 2 n exp 2 M ε 2 2 n exp 2 ln ( 2 n / δ ) 2 ε 2 ε 2 = δ ,
and thus, we have the desired result.    □

4. Our Algorithm

In this section, we propose a new algorithm based on the hierarchical structure of the partition { Π 1 , Π 2 , , Π n } . First, we introduce a map f i : Π i Π i 1 for each i N \ { 1 } . For any π Π i , f i ( π ) denotes a permutation obtained by swapping the positions of players i and i 1 in the permutation ( π ( 1 ) , π ( 2 ) , , π ( n ) ) . Because w i 1 w i (Assumption 1), it is easy to show that the pivot of f i ( π ) becomes the player i 1 . The definition of f i directly implies that { π , π } Π i ; if π π , then f i ( π ) f i ( π ) . Thus, we have the following.
Lemma 1.
For any i N \ { 1 } , the map f i : Π i Π i 1 is injective.
Figure 1 shows injective maps f 2 , f 3 , f 4 induced by G = [ 50 ; 40 , 30 , 20 , 10 ] .
When an ordered pair of permutations ( π , π ) satisfies that either (1) π = π or (2) π Π i , π Π j , i < j , and π = f i 1 f j 1 f j ( π ) , we say that π is an ancestor of π . Here, we note that π is always an ancestor of π itself. Lemma 1 implies that every permutation π Π N has a unique ancestor, called the originator, π Π j satisfying either that j = n or that its inverse image f j + 1 1 ( π ) = . For each permutation π Π N , org ( π ) N denotes the pivot of the originator of π ; i.e., Π org ( π ) includes the originator of π .
Now, we describe our algorithm.
Algorithm 2 Our Algorithm.
    Step 0: Set m : = 1 , φ i : = 0 ( i N ) .
    Step 1: Choose π Π N uniformly at random. Put the random variable L ( m ) : = org ( π ) .
                 Update φ i : = φ i + 1 / L ( m ) ( if i L ( m ) ) , φ i ( if L ( m ) < i ) .
    Step 2: If m = M , then output φ i / M ( i N ) and stop.
                 Else, update m : = m + 1 and go to Step 1.
In the example shown in Figure 1, if we choose π = ( 3 , , 4 , 1 ) at Step 1 of Algorithm 2, then org ( π ) = 3 , and Algorithm 2 updates
( φ 1 , φ 2 , φ 3 , φ 4 ) : = ( φ 1 + ( 1 / 3 ) , φ 2 + ( 1 / 3 ) , φ 3 + ( 1 / 3 ) , φ 4 ) .
For each permutation π Π N , we can find the originator org ( π ) N in O ( n ) time. Thus, the time complexity of Algorithm 2 is also bounded by O ( M ( τ ( n ) + n ) ) , where τ ( n ) denotes the computational effort required for the random generation of a permutation.
We denote the vector (of random variables) obtained by executing Algorithm 2 by ( φ 1 A 2 , φ 2 A 2 , , φ n A 2 ) . We have the following properties.
Theorem 3. 
(1) For each player i N , E φ i A 2 = φ i .
(2) For each pair of players { i , j } N , if φ i > φ j , then φ i A 2 φ j A 2 .
(3) For each pair of players { i , j } N , if φ i = φ j , then φ i A 2 = φ j A 2 .
Proof. 
(1) For each i N , we define that ξ i = | { π Π N org ( π ) = i } | . It is obvious that | Π i | = ξ i + ξ i + 1 + + ξ n ( i N ) . If we choose π Π N uniformly at random, then Pr [ org ( π ) = i ] = ( i · ξ i ) / n ! holds. From the above, it is easy to see that, for each i N , a random variable Δ φ i ( π ) defined by
Δ φ i ( π ) : = 1 / org ( π ) ( if i org ( π ) ) , 0 ( if org ( π ) < i ) ,
satisfies that
E [ Δ φ i ( π ) ] =       Pr [ org ( π ) = i ] 1 i + Pr [ org ( π ) = i + 1 ] 1 i + 1 + + Pr [ org ( π ) = n ] 1 n =       i · ξ i n ! 1 i + ( i + 1 ) · ξ i + 1 n ! 1 i + 1 + + n · ξ n n ! 1 n =       ξ i + ξ i + 1 + + ξ n n ! = | Π i | n ! = φ i .
When ( π ( 1 ) , π ( 2 ) , , π ( M ) ) denotes a sequence of permutations generated in Algorithm 2, we have that
E φ i A 2 = E Δ φ i ( π ( 1 ) ) + Δ φ i ( π ( 2 ) ) + + Δ φ i ( π ( M ) ) M = m = 1 M E [ Δ φ i ( π ( m ) ) ] M = m = 1 M φ i M = φ i .
(2) Assumption 1 implies that, if φ i > φ j , then w i > w j , and thus, i < j . The update formula of φ i in Algorithm 2 directly implies that inequalities φ 1 φ 2 φ n hold throughout the iterations of Algorithm 2, which leads to inequalities φ 1 A 2 φ 2 A 2 φ n A 2 . From the above, we obtain that φ i A 2 φ j A 2 .
(3) In the following, we assume that φ i = φ j and i < j . Assumption 1 implies that φ i = φ i + 1 = = φ j , and thus, | Π i | = | Π i + 1 | = = | Π j | . From Lemma 1, f i + 1 , , f j are bijections; thus, π Π , org ( π ) { i , i + 1 , , j 1 } . Then, the update formula of φ i in Algorithm 2 implies that equalities φ i = φ i + 1 = = φ j hold throughout the iterations of Algorithm 2, which leads to the desired result: φ i A 2 = φ i + 1 A 2 = = φ j A 2 . □
The following theorem provides the number of samples required in Algorithm 2.
Theorem 4.
For any ε > 0 and 0 < δ < 1 , we have the following.
(1) For each player i N = { 1 , 2 , , n } , if we set M ln 2 + ln ( 1 / δ ) 2 ε 2 i 2 , then
Pr φ i A 2 φ i < ε 1 δ .
(2) If we set M ln 2 + ln ( 1 / δ ) 2 ε 2 , then
Pr i N , φ i A 2 φ i < ε 1 2 i = 1 n δ 2 i 2 = 1 2 δ 2 + δ 2 4 + δ 2 9 + + δ 2 n 2 .
(3) If we set M | N * | ln 2 + ln ( 1 / δ ) 2 ε 2 , then
Pr 1 2 i N φ i A 2 φ i < ε 1 δ ,
where N * = { i N \ { n } φ i > φ i + 1 } { n } , i.e., | N * | is equal to the size of the maximal player subset, the S–S indices of which are mutually different.
Proof. 
Let us introduce random variables X i ( m ) ( m { 1 , 2 , , M } , i N ) in Step 2 of Algorithm 2, defined by
X i ( m ) = 1 / L ( m ) ( if 1 i L ( m ) ) , 0 ( if L ( m ) < i ) .
It is obvious that, for each player i N , { X i ( 1 ) , X i ( 2 ) , , X i ( M ) } is a collection of independent and identically distributed random variables satisfying
φ i A 2 = m = 1 M X i ( m ) / M , E φ i A 2 = E X i ( m ) = φ i , and ( 1 / i ) X i ( m ) ( 1 / n )
for all m { 1 , 2 , , M } . Hoeffding’s inequality [40] implies that each player i N satisfies
Pr φ i A 2 φ i ε 2 exp 2 M 2 ε 2 m = 1 M ( 1 / i 0 ) 2 = 2 exp ( 2 M ε 2 i 2 ) .
(1) If we set M ln ( 2 / δ ) 2 ε 2 i 2 , then
Pr φ i A 2 φ i < ε 1 2 exp 2 ln ( 2 / δ ) 2 ε 2 i 2 ε 2 i 2 = 1 δ .
(2) If we set M ln ( 2 / δ ) 2 ε 2 , then we have that
Pr i N , φ i A 2 φ i < ε = 1 Pr i N , φ i A 2 φ i ε     1 i N Pr φ i A 2 φ i ε 1 i = 1 n 2 exp ( 2 M ε 2 i 2 ) 1 2 i = 1 n exp 2 ln ( 2 / δ ) 2 ε 2 ε 2 i 2 = 1 2 i = 1 n δ 2 i 2 .
(3) We introduce random variables Y ( m )   ( m { 1 , 2 , , M } , N ) in Step 2 of Algorithm 2, defined by
Y ( m ) = 1 ( if = L ( m ) ) , 0 ( otherwise ) .
Because = 1 n Y ( m ) = 1 ( m ) , the above definition directly implies that
X i ( m ) = 1 i Y i ( m ) + 1 i + 1 Y i + 1 ( m ) + + 1 n Y n ( m ) .
For each player i N and i n , we define Π i = { π Π i org ( π ) = } . It is easy to show that | Π 1 | = | Π 2 | = = | Π | for each { 1 , 2 , , n } . The above definitions imply that
1 2 i N φ i A 2 φ i = 1 2 M i N M φ i A 2 M φ i = 1 2 M i N m = 1 M X i ( m ) M | Π i | n ! =       1 2 M i N m = 1 M = i n 1 Y ( m ) M n ! = i n | Π i | =       1 2 M i N = i n m = 1 M 1 Y ( m ) M n ! | Π i |       1 2 M i = 1 n = i n m = 1 M 1 Y ( m ) M n ! | Π i | = 1 2 M = 1 n i = 1 m = 1 M 1 Y ( m ) M n ! | Π i | =       1 2 M = 1 n m = 1 M 1 Y ( m ) M n ! | Π 1 | ( since | Π 1 | = | Π 2 | = = | Π | ) =       1 2 M = 1 n m = 1 M Y ( m ) M n ! | Π 1 | .
For each player N * , we have the equalities | Π | = n ! φ = n ! φ + 1 = | Π + 1 | , which yields that f + 1 : Π + 1 Π is a bijection; thus, Π does not include any originator. From the above, it is obvious that, if N * , then Π 1 = Π 2 = = Π = . For each { 1 , 2 , , n } , { Y ( 1 ) , Y ( 2 ) , , Y ( M ) } is a Bernoulli process satisfying E [ Y ( m ) ] = 1 n ! i = 1 | Π i | = n ! | Π 1 | ( m ) . Thus, N * implies that Y ( m ) = 0 for any m { 1 , 2 , , M } . To summarize the above, we have shown that
if N * then m = 1 M Y ( m ) M n ! | Π 1 | = m = 1 M 0 M n ! 0 = 0 .
Now, we have an upper bound of the total variation distance
1 2 i N φ i A 2 φ i 1 2 M = 1 n m = 1 M Y ( m ) M n ! | Π 1 | = 1 2 M N * m = 1 M Y ( m ) m = 1 M E [ Y ( m ) ] .
The vector of random variables m = 1 M Y ( m ) N * is multinomially distributed and satisfies that the total sum is equal to M. Then, the Bretagnolle–Huber–Carol inequality [41] (Theorem A1 in Appendix A) implies that
Pr 1 2 i N φ i A 2 φ i ε Pr 1 2 M N * m = 1 M Y ( m ) m = 1 M E [ Y ( m ) ] ε =       Pr N * m = 1 M Y ( m ) m = 1 M E [ Y ( m ) ] 2 M ε 2 | N * | exp 2 M ε 2       2 | N * | exp 2 ln 2 | N * | / δ 2 ε 2 ε 2 = δ
and thus, we have the desired result. □
The following corollary provides an approximate version of Theorem 4 (2). Surprisingly, it says that the required number of samples is irrelevant to n (number of players).
Corollary 1.
For any ε > 0 and 0 < δ < 1 , we have the following.
If we set M ln 2 + ln ( 1 / δ ) + ln 1.129 2 ε 2 , then
Pr i N , φ i A 2 φ i < ε 1 δ .
Proof. 
If we put δ = δ / 1.129 , then Theorem 2 (2) implies that
Pr i N , φ i A 2 φ i < ε       1 2 δ 2 + δ 2 4 + δ 2 9 + + δ 2 n 2       1 δ 1 + 1 2 3 + 1 2 8 + 1 2 15 + 1 2 24 + + 1 2 n 2 1       1 δ 1 + 1 2 3 + 1 2 8 1 + 1 2 7 + 1 2 14 + 1 2 21 + =       1 δ 1 + 1 2 3 + 1 2 8 1 1 ( 1 / 2 ) 7 1 1.129 δ = 1 δ .
Here, we note that ln 2 0.69314 and ln 1.129 0.12133 .
In a practical setting, it is difficult to estimate the size of N * defined in Theorem 4 (3) since the problem of verifying the asymmetricity of a given pair of players is NP-complete [19]. The following corollary is useful in some practical situations.
Corollary 2.
For any ε > 0 and 0 < δ < 1 , we have the following.
If we set M n ln 2 + ln ( 1 / δ ) 2 ε 2 , then
Pr 1 2 i N φ i A 2 φ i < ε 1 δ ,
where n = | { i N \ { n } w i > w i + 1 } { n } | , i.e., n is equal to the size of a maximal player subset with mutually different weights.
Proof. 
Since φ i > φ i + 1 implies w i > w i + 1 , it is obvious that | N * | n , and we have the desired result. □
A game of the power of the countries in the EU Council is defined by (255; 29, 29, 29, 29, 27, 27, 14, 13, 12, 12, 12, 12, 12, 10, 10, 10, 7, 7, 7, 7, 7, 4, 4, 4, 4, 4, 3) [42,43]. In this case, n = 27 and n = 9 . A weighted majority game defined by [44] (Section 12.4) for a voting process in the United States has a vector of weights
( 270 ; 45 , 41 , 27 , 26 , 26 , 25 , 21 , 17 , 17 , 14 , 13 , 13 , 12 , 12 , 12 , 11 , 10 , , 10 4 times , 9 , , 9 4 times , 8 , 8 , 7 , , 7 4 times , 6 , , 6 4 times , 5 , 4 , , 4 9 times , 3 , , 3 7 times ) , where n = 51 and n = 19 .

5. Computational Experiments

This section reports the results of our preliminary numerical experiments. All the experiments were conducted on a Windows machine, i7-7700 [email protected] Memory (RAM) 16 GB. Algorithms 1 and 2 were implemented using Python 3.6.5.
We tested the EU Council instance and the United States instance described in the previous section. In each instance, we set M in Algorithms 1 and 2 (the number of generated permutations) to M { 1 × 10 5 , 2 × 10 5 , , 24 × 10 5 } . For each value of M, we executed Algorithms 1 and 2 100 times. Figure 2 and Figure 3 show the results of some players. For each value of M, we calculated the mean number of | φ i φ i A | , denoted by ε i ^ , in an average of 100 trials. The horizontal axes of Figure 2 and Figure 3 show the value 1 / ε i ^ 2 . Under the assumption that M = α / ε i ^ 2 , we estimated α by the least squares method. Table 2 shows the results and ratios of α of the two algorithms.
For each (generated) permutation, the computational effort of both Algorithms 1 and 2 are bounded by O ( n ) . Here, we discuss the constant factors of O ( n ) computations. We tested the cases where weights w i are generated uniformly at random from the intervals ( 1 , 10 ) or ( 1 , 20 ) , and the quota is equal to ( 1 / 2 ) i N w i . For each n { 10 , 20 , , 100 } , we executed Algorithms 1 and 2 by setting M = 10,000. Under the assumption that computational time is equal to a n + b , we estimated a and b by the least squares method. Figure 4 shows that for each permutation, the computational effort of Algorithm 2 increases about five-fold compared to Algorithm 1.

6. Conclusions

In this paper, we analyzed a naive Monte Carlo algorithm (Algorithm 1) for calculating the S–S index denoted by ( φ 1 , φ 2 , , φ n ) in weighted majority games. By employing the Bretagnolle–Huber–Carol inequality [41] (Theorem A1 in Appendix A), we estimated the required number of samples that gives an upper bound of the total variation distance.
We also proposed an efficient Monte Carlo algorithm (Algorithm 2). The time complexity of each iteration of our algorithm is equal to that of the naive algorithm (Algorithm 1). Our algorithm has the property that the obtained estimator ( φ 1 A 2 , φ 2 A 2 , , φ n A 2 ) satisfies
both [ if φ i < φ j , then φ i A 2 φ j A 2 ] and [ if φ i = φ j , then φ i A 2 = φ j A 2 ] .
We proved that, even if we consider the property
Pr i N , φ i A 2 φ i < ε 1 δ ,
the required number of samples is irrelevant to n (the number of players).

Author Contributions

Y.U.: validation, original draft preparation; M.T.: visualization, coding simulations; T.M.: manuscript writing, project supervision. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by JSPS KAKENHI, Grant Numbers JP26285045, JP26242027, and JP20K04973.

Conflicts of Interest

The authors declare that they have no conflict of interest.

Appendix A. (Bretagnolle–Huber–Carol Inequality)

Theorem A1
([41]). If the random vector ( Z 1 , Z 2 , Z 3 , , Z n ) is multinomially distributed with parameters ( p 1 , p 2 , , p n ) and satisfies Z 1 + Z 2 + + Z n = M , then
Pr i = 1 n Z i M p i 2 M ε 2 n exp ( 2 M ε 2 ) .
Proof. 
It is easy to see that
Pr i = 1 n Z i M p i 2 M ε = Pr 2 max S { 1 , 2 , , n } i S ( Z i M p i ) 2 M ε =       Pr S { 1 , 2 , , n } , i S ( Z i M p i ) M ε S { 1 , 2 , , n } Pr i S ( Z i M p i ) M ε =       S { 1 , 2 , , n } Pr i S Z i M i S p i M ε
For any subset S { 1 , 2 , , n } , there exists a Bernoulli process ( X S ( 1 ) , X S ( 2 ) , , X S ( M ) ) satisfying i S Z i = m = 1 M X S ( m ) and E [ X S ( m ) ] = i S p i   ( m { 1 , 2 , M } ) . Hoeffding’s inequality [40] implies that
S { 1 , 2 , , n } Pr i S Z i M i S p i M ε = S { 1 , 2 , , n } Pr m = 1 M X S ( m ) E m = 1 M X S ( m ) M ε       =       S { 1 , 2 , , n } Pr 1 M m = 1 M X S ( m ) 1 M E m = 1 M X S ( m ) ε S { 1 , 2 , , n } exp ( 2 M ε 2 )       =       2 n exp ( 2 M ε 2 ) .

References

  1. Von Neumann, J.; Morgenstern, O. Theory of Games and Economic Behavior; Princeton University Press: Princeton, NJ, USA, 1944. [Google Scholar]
  2. Shapley, L.S.; Shubik, M. A method for evaluating the distribution of power in a committee system. Am. Political Sci. Rev. 1954, 48, 787–792. [Google Scholar] [CrossRef]
  3. Shapley, L.S. A value for n-person games. In Contributions to the Theory of Games II; Kuhn, H.W., Tucker, A.W., Eds.; Princeton University Press: Princeton, NJ, USA, 1953; pp. 307–317. [Google Scholar]
  4. Laruelle, A.; Widgrén, M. Is the allocation of voting power among EU states fair? Public Choice 1998, 94, 317–339. [Google Scholar] [CrossRef]
  5. Leech, D. Designing the voting system for the Council of the European Union. Public Choice 2002, 113, 437–464. [Google Scholar] [CrossRef] [Green Version]
  6. Życzkowski, K.; Słomczyński, W. Square Root Voting System, Optimal Threshold and π. In Power, Voting, and Voting Power: 30 Years After; Springer: Berlin/Heidelberg, Germany, 2013; pp. 573–592. [Google Scholar]
  7. Owen, G. Evaluation of a presidential election game. Am. Political Sci. Rev. 1975, 69, 947–953. [Google Scholar] [CrossRef]
  8. Miller, N.R. A priori voting power and the US Electoral College. In Power, Voting, and Voting Power: 30 Years After; Springer: Berlin/Heidelberg, Germany, 2013; pp. 411–442. [Google Scholar]
  9. Leech, D. Voting power in the governance of the International Monetary Fund. Ann. Oper. Res. 2002, 109, 375–397. [Google Scholar] [CrossRef] [Green Version]
  10. Leech, D.; Leech, R. A new analysis of a priori voting power in the IMF: Recent quota reforms give little cause for celebration. In Power, Voting, and Voting Power: 30 Years After; Springer: Berlin/Heidelberg, Germany, 2013; pp. 389–410. [Google Scholar]
  11. Young, H.P. Cost allocation. Handb. Game Theory Econ. Appl. 1994, 2, 1193–1235. [Google Scholar]
  12. Lucchetti, R.; Radrizzani, P. Microarray data analysis via weighted indices and weighted majority games. In International Meeting on Computational Intelligence Methods for Bioinformatics and Biostatistics; Springer: Berlin/Heidelberg, Germany, 2009; pp. 179–190. [Google Scholar]
  13. Holler, M.J.; Rupp, F. Power in networks: A PGI analysis of Krackhardt’s Kite Network. In Transactions on Computational Collective Intelligence XXXIV; Springer: Berlin/Heidelberg, Germany, 2019; pp. 21–34. [Google Scholar]
  14. Holler, M.J.; Rupp, F. Power in Networks: The Medici. Homo Oeconomicus 2021, 38, 59–75. [Google Scholar] [CrossRef]
  15. Bachrach, Y.; Rosenschein, J.S.; Porat, E. Power and stability in connectivity games. In Proceedings of the 7th International Joint Conference on Autonomous Agents and Multiagent Systems, Estoril, Portugal, 12–16 May 2008; Volume 2, pp. 999–1006. [Google Scholar]
  16. Garey, M.R.; Johnson, D.S. Computers and Intractability; Freeman: San Francisco, CA, USA, 1979; Volume 174. [Google Scholar]
  17. Deng, X.; Papadimitriou, C.H. On the complexity of cooperative solution concepts. Math. Oper. Res. 1994, 19, 257–266. [Google Scholar] [CrossRef]
  18. Prasad, K.; Kelly, J.S. NP-completeness of some problems concerning voting games. Int. J. Game Theory 1990, 19, 1–9. [Google Scholar] [CrossRef]
  19. Matsui, Y.; Matsui, T. NP-completeness for calculating power indices of weighted majority games. Theor. Comput. Sci. 2001, 263, 305–310. [Google Scholar] [CrossRef] [Green Version]
  20. Elkind, E.; Goldberg, L.A.; Goldberg, P.W.; Wooldridge, M. Computational complexity of weighted threshold games. In AAAI; Association for the Advancement of Artificial Intelligence: Menlo Park, CA, USA, 2007; pp. 718–723. [Google Scholar]
  21. Mann, I.; Shapley, L.S. Values of Large Games, IV: Evaluating the Electoral College by Montecarlo Techniques; Technical Report RM-2651; The RAND Corporation: Santa Monica, CA, USA, 1960. [Google Scholar]
  22. Matsui, T.; Matsui, Y. A survey of algorithms for calculating power indices of weighted majority games. J. Oper. Res. Soc. Jpn. 2000, 43, 71–86. [Google Scholar] [CrossRef] [Green Version]
  23. Fatima, S.S.; Wooldridge, M.; Jennings, N.R. A linear approximation method for the Shapley value. Artif. Intell. 2008, 172, 1673–1699. [Google Scholar] [CrossRef] [Green Version]
  24. Castro, J.; Gómez, D.; Tejada, J. Polynomial calculation of the Shapley value based on sampling. Comput. Oper. Res. 2009, 36, 1726–1730. [Google Scholar] [CrossRef]
  25. Bachrach, Y.; Markakis, E.; Resnick, E.; Procaccia, A.D.; Rosenschein, J.S.; Saberi, A. Approximating power indices: Theoretical and empirical analysis. Auton. Agents-Multi-Agent Syst. 2010, 20, 105–122. [Google Scholar] [CrossRef]
  26. Castro, J.; Gómez, D.; Molina, E.; Tejada, J. Improving polynomial estimation of the Shapley value by stratified random sampling with optimum allocation. Comput. Oper. Res. 2017, 82, 180–188. [Google Scholar] [CrossRef]
  27. Owen, G. Multilinear extensions of games. Manag. Sci. 1972, 18, 64–79. [Google Scholar] [CrossRef]
  28. Leech, D. Computing power indices for large voting games. Manag. Sci. 2003, 49, 831–837. [Google Scholar] [CrossRef] [Green Version]
  29. Brams, S.J.; Affuso, P.J. Power and size: A new paradox. Theory Decis. 1976, 7, 29–56. [Google Scholar] [CrossRef]
  30. Lucas, W.F. Measuring power in weighted voting systems. In Political and Related Models; Springer: Berlin/Heidelberg, Germany, 1983; pp. 183–238. [Google Scholar]
  31. Mann, I.; Shapley, L.S. Values of Large Games, VI: Evaluating the Electoral College Exactly; Technical Report RM-3158-PR; The RAND Corporation: Santa Monica, CA, USA, 1962. [Google Scholar]
  32. Uno, T. Efficient computation of power indices for weighted majority games. In International Symposium on Algorithms and Computation; Springer: Berlin/Heidelberg, Germany, 2012; pp. 679–689. [Google Scholar]
  33. Bilbao, J.M.; Fernandez, J.R.; Jiménez-Losada, A.; Lopez, J.J. Generating functions for computing power indices efficiently. Top 2000, 8, 191–213. [Google Scholar] [CrossRef]
  34. Bolus, S. Power indices of simple games and vector-weighted majority games by means of binary decision diagrams. Eur. J. Oper. Res. 2011, 210, 258–272. [Google Scholar] [CrossRef]
  35. Rushdi, A.M.A.; Ba-Rukab, O.M. Map calculation of the Shapley-Shubik voting powers: An example of the European Economic Community. Int. J. Math. Eng. Manag. Sci. 2017, 2, 17–29. [Google Scholar] [CrossRef]
  36. Berghammer, R.; Bolus, S.; Rusinowska, A.; De Swart, H. A relation-algebraic approach to simple games. Eur. J. Oper. Res. 2011, 210, 68–80. [Google Scholar] [CrossRef] [Green Version]
  37. Klinz, B.; Woeginger, G.J. Faster algorithms for computing power indices in weighted voting games. Math. Soc. Sci. 2005, 49, 111–116. [Google Scholar] [CrossRef]
  38. Alonso-Meijide, J.M.; Casas-Méndez, B.; Fiestras-Janeiro, M.G. Computing Banzhaf–Coleman and Shapley–Shubik power indices with incompatible players. Appl. Math. Comput. 2015, 252, 377–387. [Google Scholar] [CrossRef] [Green Version]
  39. Courtin, S.; Nganmeni, Z.; Tchantcho, B. The Shapley–Shubik power index for dichotomous multi-type games. Theory Decis. 2016, 81, 413–426. [Google Scholar] [CrossRef]
  40. Hoeffding, W. Probability inequalities for sums of bounded random variables. J. Am. Stat. Assoc. 1963, 58, 13–30. [Google Scholar] [CrossRef]
  41. van der Vaart, A.W.; Wellner, J.A. Weak Convergence and Empirical Processes: With Applications to Statistics; Springer Science & Business Media: Berlin/Heidelberg, Germany, 1996. [Google Scholar]
  42. Felsenthal, D.S.; Machover, M. The Treaty of Nice and qualified majority voting. Soc. Choice Welf. 2001, 18, 431–464. [Google Scholar] [CrossRef] [Green Version]
  43. Bilbao, J.M.; Fernandez, J.R.; Jiménez, N.; Lopez, J.J. Voting power in the European Union enlargement. Eur. J. Oper. Res. 2002, 143, 181–196. [Google Scholar] [CrossRef] [Green Version]
  44. Owen, G. Game Theory; Academic Press: Cambridge, MA, USA, 1995. [Google Scholar]
Figure 1. Injective maps f 2 , f 3 , f 4 induced by G = [ 50 ; 40 , 30 , 20 , 10 ] . The circled number (player) denotes the pivot player.
Figure 1. Injective maps f 2 , f 3 , f 4 induced by G = [ 50 ; 40 , 30 , 20 , 10 ] . The circled number (player) denotes the pivot player.
Games 13 00044 g001
Figure 2. EU Council.
Figure 2. EU Council.
Games 13 00044 g002
Figure 3. United States.
Figure 3. United States.
Games 13 00044 g003
Figure 4. Computational time.
Figure 4. Computational time.
Games 13 00044 g004
Table 1. Required Number of Samples.
Table 1. Required Number of Samples.
Required Number of Samples
PropertyAlgorithm 1Algorithm 2
(Naive Algorithm)(Our Algorithm)
Pr φ i A φ i < ε 1 δ ln 2 + ln ( 1 / δ ) 2 ε 2 ln 2 + ln ( 1 / δ ) 2 ε 2 1 i 2
[25](assume w 1 w n )
Pr i N , φ i A φ i < ε 1 δ ln 2 + ln ( 1 / δ ) + ln n 2 ε 2 ln 2 + ln ( 1 / δ ) + ln 1.129 2 ε 2
Pr 1 2 i N φ i A φ i < ε 1 δ n ln 2 + ln ( 1 / δ ) 2 ε 2 n ln 2 + ln ( 1 / δ ) 2 ε 2
An integer n″ denotes the size of a maximal player subset with mutually different weights.
Table 2. Comparison of Algorithms 1 and 2.
Table 2. Comparison of Algorithms 1 and 2.
EU Council α
Algorithm 1Algorithm 2ratio
Player 10.05570.002225.318
Player 130.0199 4.1615 × 10 4 47.819
Player 270.0049 1.3987 × 10 4 35.033
United States α
Algorithm 1Algorithm 2ratio
Player 10.04890.01812.7017
Player 260.0088 1.2837 × 10 4 68.552
Player 510.0032 4.8911 × 10 5 65.424
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ushioda, Y.; Tanaka, M.; Matsui, T. Monte Carlo Methods for the Shapley–Shubik Power Index. Games 2022, 13, 44. https://doi.org/10.3390/g13030044

AMA Style

Ushioda Y, Tanaka M, Matsui T. Monte Carlo Methods for the Shapley–Shubik Power Index. Games. 2022; 13(3):44. https://doi.org/10.3390/g13030044

Chicago/Turabian Style

Ushioda, Yuto, Masato Tanaka, and Tomomi Matsui. 2022. "Monte Carlo Methods for the Shapley–Shubik Power Index" Games 13, no. 3: 44. https://doi.org/10.3390/g13030044

APA Style

Ushioda, Y., Tanaka, M., & Matsui, T. (2022). Monte Carlo Methods for the Shapley–Shubik Power Index. Games, 13(3), 44. https://doi.org/10.3390/g13030044

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop