0
$\begingroup$

Say I have P number of political parties in an election that I'm trying to rig. My boss has decided what number of percentage of the votes it is best that each party should get. N number of votes have already been cast and it has already been publicly known what party they cast their votes. I have X votes remaining and I need to calculate how to cast them in an as "fair" way as possible. That is, if a party is supposed to get 25% of the votes and I can't make that happen with my remaining votes, my cheat votes should be distributed in a way that makes their share as close as possible to that number. But it is better if two parties suffer a 3% point deviation from their target rather than one suffering 6% point and the other 0%.

Also, to make the problem more interesting (if it is to easy) the acceptable deviation should be proportional to the size of the party target. It is better if a party that should have gotten 45% gets 40% rather than one that should have gotten 5% gets 1% because its absolute size is smaller so the deviation matters much more.

  • 0
    This isn't really [tag:voting-theory]...2012-05-10

1 Answers 1

2

So: you are given a vector $\bf v$ (the votes already cast) and a "target" vector $\bf u$ (the desired results) and you want to find a vector $\bf x$ satisfying constraints all $x_i \ge 0$, $\sum_i x_i = t$ (the number of votes you have available) to minimize some (incompletely specified) notion of distance between ${\bf x}+\bf v$ and $\bf u$. If you use the Euclidean distance $d({\bf x},{\bf y}) = \left(\sum_i (x_i-y_i)^2\right)^{1/2}$, this is a constrained least-squares problem. For other metrics, it's a convex programming problem. An obvious strategy (which I think provides the optimal solution at least in the least-squares case) is to take $x_i = \max(u_i - v_i - q, 0)$ where $q$ is chosen so that $\sum_i x_i = t$.

  • 0
    In that case, after sorting, ${\bf y} = [272,80,20,8]$. $S_0 = 0$, $S_1 = 272$, $S_2 = 352$, $S_3 = 372$, $S_4 = 380$. $g(272) = 272 - 272 = 0$, $g(80) = 352 - 2 \times 80 = 192$, $g(20) = 372 - 3 \times 20 = 312$, $g(8) = 380 - 4 \times 8 = 348$. Now we interpolate linearly between $(272,0)$ and $(80,192)$: $t = 180 = (1/16) 0 + (15/16) 192$ where $15/16 = \dfrac{180-0}{192-0}$ so $q = (1/16) \times 272 + (15/16) \times 80 = 92$.2012-05-15