This spring we have Rector Elections at Warsaw School of Economics. One of my collegues Tomasz Szapiro agreed to start in the elections. This induced me to write Shapley-Shubik Power Index calculation snippet in R.
Rector elections in Warsaw School of Economics are organized in eleven constituencies representing different communities of our school. Each constituency is represented by different number of electors. I have written a simple R code calculating relative power of electors representing those constituencies. To reduce the volume of calculations I have joined some constituencies (6 and 7, 8 and 9, 10 and 11).
Here is the code performing the Shapley-Shubik Power Index calculations:
The plot generated by the code shows relative power of constituency to number of its votes. Here it goes:
Interestingly relative power index of almost all constituencies is balanced. However, power index of constituency #2 is very low in comparison to the fraction of electors it possesses.