<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Cognitive Sandbox &#187; Politics</title> <atom:link href="http://cognitivesandbox.com/posts/tag/politics/feed/" rel="self" type="application/rss+xml" /><link>http://cognitivesandbox.com</link> <description>Vegan cooking, unix tidbits and other minor discoveries</description> <lastBuildDate>Sat, 03 Dec 2011 01:20:30 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Embeddable Schulze method elections</title><link>http://cognitivesandbox.com/posts/embeddable-schulze-method-elections/</link> <comments>http://cognitivesandbox.com/posts/embeddable-schulze-method-elections/#comments</comments> <pubDate>Tue, 01 Nov 2011 04:26:36 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://cognitivesandbox.com/?p=3228</guid> <description><![CDATA[With a little bit of tweaking, I have the new version of Modern Ballots easily embedding into iFrames. That might end up being useful to someone that wants one on their website. Vote page Results page Just include something like &#60;iframe &#8230; <a
href="http://cognitivesandbox.com/posts/embeddable-schulze-method-elections/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>With a little bit of tweaking, I have the new version of Modern Ballots easily embedding into iFrames. That might end up being useful to someone that wants one on their website.</p><h3>Vote page</h3><p><iframe
style="width: 100%; height: 400px;" src="https://modernballots.com/public/zombies/vote/" width="320" height="240"></iframe></p><h3>Results page</h3><p><iframe
style="width: 100%; height: 400px;" src="https://modernballots.com/public/zombies/" width="320" height="240"></iframe></p><p>Just include something like <code>&lt;iframe style="width: 100%; height: 400px;" src="https://modernballots.com/public/zombies/vote/"&gt;&lt;/iframe&gt;</code></p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/embeddable-schulze-method-elections/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Elections where the outcome results in no-shows</title><link>http://cognitivesandbox.com/posts/elections-where-the-outcome-results-in-no-shows/</link> <comments>http://cognitivesandbox.com/posts/elections-where-the-outcome-results-in-no-shows/#comments</comments> <pubDate>Fri, 07 Oct 2011 01:31:34 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://cognitivesandbox.com/?p=3225</guid> <description><![CDATA[Consider a scheduled movie night where 30 people vote on 10 different films to decide what they&#8217;ll watch. Presume for a moment that all movies can be placed on an axis with comedy at one end and tragedy at the &#8230; <a
href="http://cognitivesandbox.com/posts/elections-where-the-outcome-results-in-no-shows/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<ul><li>Consider a scheduled movie night where 30 people vote on 10 different films to decide what they&#8217;ll watch.</li><li>Presume for a moment that all movies can be placed on an axis with comedy at one end and tragedy at the other.</li><li>Assume that each voter&#8217;s preference falls somewhere on that axis.</li><li>Lastly, assume that the collective preference is bimodal, with some clustering around an 80/20 comedy/tragedy mix, the others a 20/80 mix.</li></ul><p>The election occurs, the results come in and a compromise 50/50 film is declared the winner. Well, by some peculiarity of preferences, this just doesn&#8217;t sit well with the comedy-lovers, so come movie night, most of them don&#8217;t show up.</p><p>Should the votes of those that didn&#8217;t even show up count? If we reuse the ballots of those that show up, we&#8217;re likely to reach a far more tragedy-heavy winner. Further, if this movie night is held monthly, do we favourably weigh the votes of those that didn&#8217;t show up?</p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/elections-where-the-outcome-results-in-no-shows/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Party and geographic proportional representation</title><link>http://cognitivesandbox.com/posts/party-and-geographic-proportional-representation/</link> <comments>http://cognitivesandbox.com/posts/party-and-geographic-proportional-representation/#comments</comments> <pubDate>Sun, 22 May 2011 00:15:31 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://cognitivesandbox.com/?p=3203</guid> <description><![CDATA[I&#8217;ve been trying to find a way to combine both geographic and proportional representation. First, consider allowing MPs to vote with varying strengths (e.g. if an MP represents 45k people, they vote in parliament with a strength of 45k). The &#8230; <a
href="http://cognitivesandbox.com/posts/party-and-geographic-proportional-representation/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve been trying to find a way to combine both geographic and proportional representation. First, consider allowing MPs to vote with varying strengths (e.g. <a
href="http://cognitivesandbox.com/posts/an-idea-for-proportional-representation/">if an MP represents 45k people, they vote in parliament with a strength of 45k</a>). The only trouble with this approach is that it isn&#8217;t proportional to the popular vote.</p><p>Instead, consider something akin to a federal MMP. If your chosen candidate doesn&#8217;t win, your vote is transferred to the party leader of your choice: a two-part ballot. In our current system, you aren&#8217;t represented unless you voted for the winning candidate of your riding.</p><p>To estimate the outcome of this new system, let&#8217;s assume that vast majority voting for a candidate support their party too. Each geographic seat would be the same as it is now. For example, Vancouver Centre&#8217;s Hedy Fry still represents the riding, but only at a power of 18k. The remaining 41k ballots are transferred to the appropriate parties.</p><p>Nationally, 2.17m ballots would be transferred to the Liberals from voters in ridings where they didn&#8217;t win, 2.13m to the NDP, 1.44m to the Conservatives, 818k to the Bloc, and 539k to the Green Party. The end result has the geographic representatives holding 7.42m geographically proportional votes and the party representatives holding 7.10m, resulting in a party proportional parliament.</p><ul><li><a
href="http://enr.elections.ca/DownloadResults.aspx">Elections result data</a></li><li><a
href='http://cognitivesandbox.com/wp-content/uploads/2011/05/script.txt'>Script used to calculate these results</a></li></ul><p>Gerrymandering in this system would be moot, although I gather voting fraud might rise. There&#8217;s also the question of who would hold the party seats. The party leaders seems like the most direct answer, but I&#8217;m not sure how I feel about any one representative wielding upwards to 15% of the total voting power in parliament.</p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/party-and-geographic-proportional-representation/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>House of Commons via Gapminder.org</title><link>http://cognitivesandbox.com/posts/house-of-commons-via-gapminder-org/</link> <comments>http://cognitivesandbox.com/posts/house-of-commons-via-gapminder-org/#comments</comments> <pubDate>Mon, 16 May 2011 03:01:23 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://cognitivesandbox.com/?p=3195</guid> <description><![CDATA[I wanted to visualize patterns of data related to the most recent election. For those of you familiar with Gapminder.org and Hans Rosling&#8217;s TED presentations, the following Google Doc will seem quite familiar.]]></description> <content:encoded><![CDATA[<p>I wanted to visualize patterns of data related to the most recent election. For those of you familiar with <a
href="http://gapminder.org">Gapminder.org</a> and <a
href="http://www.ted.com/speakers/hans_rosling.html">Hans Rosling&#8217;s TED presentations</a>, the following Google Doc will seem quite familiar.</p><p><a
href="https://spreadsheets2.google.com/spreadsheet/ccc?hl=en&#038;key=t-00TOcjJ8DX9L6pAFNKO7w"><img
src="http://cognitivesandbox.com/wp-content/uploads/2011/05/seats-per-pop-by-ballots-per-elector-425x344.png" alt="" title="seats-per-pop-by-ballots-per-elector" width="425" height="344" class="aligncenter size-medium wp-image-3196" /></a></p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/house-of-commons-via-gapminder-org/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Estimated Condorcet winners</title><link>http://cognitivesandbox.com/posts/estimated-condorcet-winners/</link> <comments>http://cognitivesandbox.com/posts/estimated-condorcet-winners/#comments</comments> <pubDate>Tue, 03 May 2011 16:05:40 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://cognitivesandbox.com/?p=3167</guid> <description><![CDATA[With the Canadian 2011 election at a close, I thought I&#8217;d take a minute to estimate the Condorcet winners per riding. The data&#8217;s available in preliminary form through Elections Canada. Let&#8217;s look at Scarborough Centre as an example for how &#8230; <a
href="http://cognitivesandbox.com/posts/estimated-condorcet-winners/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>With the Canadian 2011 election at a close, I thought I&#8217;d take a minute to estimate the Condorcet winners per riding. The data&#8217;s available in preliminary form through <a
href="http://enr.elections.ca/DownloadResults.aspx">Elections Canada</a>. Let&#8217;s look at Scarborough Centre as an example for <a
href="http://en.wikipedia.org/wiki/Plurality_voting_system#Disadvantages">how FPTP voting fails to elect a representative candidate</a></p><table><tr><th
colspan="2">Riding results for Scarborough Centre</th></tr><tr><th>Liberal</th><td>12075 (32.0%)</td></tr><tr><th>NDP</th><td>11273 (29.9%)</td></tr><tr><th>Conservative</th><td>13401 (35.5%)</td></tr><tr><th>Green</th><td>994 (2.6%)</td></tr></table><p>Using the CBC vote compass, we can approximate how these voters might have ranked each candidate if given the option for a more expressive ballot.</p><p><a
href="http://www.cbc.ca/news/politics/canadavotes2011/votecompass/"><img
src="http://cognitivesandbox.com/wp-content/uploads/2011/05/vote-compass-425x425.jpg" alt="" title="vote-compass" width="425" height="425" class="aligncenter size-medium wp-image-3171" /></a></p><table><tr><th
colspan="2">Estimated preference ballots for Scarborough Centre</th></tr><tr><td>3945</td><td>NDP, Green, Liberal</td></tr><tr><td>3945</td><td>NDP,  Liberal / Green</td></tr><tr><td>3381</td><td>NDP, Liberal, Green</td></tr><tr><td>994</td><td>Green, NDP, Liberal</td></tr><tr><td>10867</td><td>Liberal, NDP / Green</td></tr><tr><td>1207</td><td>Liberal, Conservative</td></tr><tr><td>13401</td><td>Conservative, Liberal</td></tr></table><p>Given these preferences (which I admit are a wild estimate; people vote tactically concealing their true preferences), the Condorcet winner would be the Liberal Party&#8217;s candidate. Indeed, the national breakdown would have produced results like so (<a
href='http://cognitivesandbox.com/wp-content/uploads/2011/05/estimated-condorcet-winners.csv'>full estimate attached</a>):</p><table><tr><th
colspan="2">Seats won per party under the Schulze Method</th></tr><tr><th>Liberal</th><td>111 (up 8 seats from 2008)</td></tr><tr><th>Conservative</th><td>110 (down 33 seats)</td></tr><tr><th>NDP</th><td>51 (up 22 seats)</td></tr><tr><th>Bloc</th><td>35 (down 14 seats)</td></tr><tr><th>Green</th><td>1 (up 1 seat)</td></tr></table><p>For the curious, the code used to generate the above is attached.</p><ul><li><a
href='http://enr.elections.ca/DownloadResults.aspx'>Elections Canada preliminary data</a></li><li><a
href='http://cognitivesandbox.com/wp-content/uploads/2011/05/schulze-results-2011.txt'>Sample source code</a></li><li><a
href="https://github.com/bradbeattie/python-vote-core">Python vote core</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/estimated-condorcet-winners/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>The problem of group allocation</title><link>http://cognitivesandbox.com/posts/the-problem-of-group-allocation/</link> <comments>http://cognitivesandbox.com/posts/the-problem-of-group-allocation/#comments</comments> <pubDate>Wed, 02 Mar 2011 10:36:22 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://cognitivesandbox.com/?p=3052</guid> <description><![CDATA[An example scenario Let&#8217;s say you run a summer camp. At the start of the summer, 100 campers arrive and learn that you offer 5 unique courses. These courses can&#8217;t have more than 25 campers each. The campers all submit &#8230; <a
href="http://cognitivesandbox.com/posts/the-problem-of-group-allocation/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h3>An example scenario</h3><p>Let&#8217;s say you run a summer camp. At the start of the summer, 100 campers arrive and learn that you offer 5 unique courses. These courses can&#8217;t have more than 25 campers each. The campers all submit ballots expressing their preferences for the courses. How do we maximize course allocation satisfaction?</p><h4>The general case</h4><ul><li>V voters that each submit a ballot of preferences</li><li>G groups, each with a maximum capacity (e.g. G<sub>1</sub><sup>cap</sup> = 25)</li><li>Maximize satisfaction (open to interpretation)</li></ul><h3>Algorithm sketches</h3><h4>A horrible algorithm</h4><pre><code>for group-x in groups:
    while group-x has remaining capacity:
        allocate any unallocated voter to group-x</code></pre><p>Clearly this isn&#8217;t going to cut it. Preferences aren&#8217;t being taken into account at all. We&#8217;re just dumping voters into groups.</p><h4>Linear optimization</h4><pre><code>convert each ballot into an allocation of points where
    all group preferences are in [0, 1]
    sum of group preferences = 1
system satisfaction = sum of voter satisfaction for all voters
linear optimization to maximize system satisfaction</code></pre><p>As an illustration of the principle, consider an example with voter V<sub>1</sub> that prefers G<sub>1</sub> and voter V<sub>2</sub> that prefers G<sub>2</sub>. Assigning the voters to their preferred groups optimizes the system satisfaction at 2, whereas switching them around produces a system satisfaction of 0. Okay, this is a step forward.</p><p>Possible problem case:<pre><code>5 groups, each with a capacity of 1
voter 1:  0.4  0.2  0.2  0.2  0.0
voter 2:  0.7  0.2  0.0  0.0  0.1
voter 3:  0.0  0.7  0.2  0.0  0.1
voter 4:  0.0  0.0  0.7  0.2  0.1
voter 5:  0.2  0.0  0.0  0.7  0.1
system optimizes with voter 1 in group 5
voter 1 allocated to their least preferred group
</code></pre><p>This algorithm provides a measure of preference debt that we can use in the iterative versions of this problem. Also, I&#8217;m not sure how much of an issue tactical misrepresentation is here.</p><h3>Additional problems</h3><p>Consider the additional problem where voters vote once per day for new sets of courses. This can vary on fixed or variable set of voters, on a fixed or variable set of groups. Consider further the constraint where groups have both a minimum and a maximum capacity. Or perhaps where C has preferences for G and G has preferences for C.</p><p>I don&#8217;t quite have the solutions to any of this just yet, but it&#8217;s an interesting problem space. Someone has to have studied this already. Pointers in the right direction?</p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/the-problem-of-group-allocation/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Three types of voting problems</title><link>http://cognitivesandbox.com/posts/three-types-of-voting-problems/</link> <comments>http://cognitivesandbox.com/posts/three-types-of-voting-problems/#comments</comments> <pubDate>Fri, 18 Feb 2011 18:44:02 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://cognitivesandbox.com/?p=2956</guid> <description><![CDATA[Consider an electorate divided solely on some linear issue X. Assume the breakdown is as follows: Wants more X Wants same X Wants less X 45% 20% 35% Assume also that each position has only two representatives. Pretend you&#8217;re a &#8230; <a
href="http://cognitivesandbox.com/posts/three-types-of-voting-problems/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Consider an electorate divided solely on some linear issue X. Assume the breakdown is as follows:</p><table><tr><th>Wants more X</th><th>Wants same X</th><th>Wants less X</th></tr><tr><td
style="text-align: center">45%</td><td
style="text-align: center">20%</td><td
style="text-align: center">35%</td></tr></table><p>Assume also that each position has only two representatives. Pretend you&#8217;re a voting system and imagine the ballots these people submit to you. How do you aggregate these votes to best represent the electorate? I&#8217;d argue the following is fair:</p><table><tr><th></th><th>More</th><th>Same</th><th>Less</th></tr><tr><th>1 winner</th><td></td><td>1 winner</td><td></td></tr><tr><th>2 winners</th><td>1 winner</td><td></td><td>1 winner</td></tr><tr><th>3 winners</th><td>1 winner</td><td>1 winner</td><td>1 winner</td></tr><tr><th>4 winners</th><td>2 winners</td><td>1 winner</td><td>1 winner</td></tr><tr><th>5 winners</th><td>2 winners</td><td>1 winner</td><td>2 winners</td></tr><tr><th>6 winners</th><td>2 winners</td><td>2 winners</td><td>2 winners</td></tr></table><p>As an aside, note that the result at 6 winners isn&#8217;t really proportional to the popular vote, but that we were constrained by the number of running candidates. Had More X another candidate to run, More/More/More/Same/Less/Less would have been a fairer result.</p><p>More to the point though, notice the oscillation between the 1 and 2 winner scenarios. Although the electorate is best represented with a single Same X winner, More/Less better represents the electorate than Same/Same. While this holds true when the number of winners is known and fixed, our notion of fair changes when the number of winners is variable.</p><p>Consider the scenario where you have one representative, but occasionally need a second. Since the first representative is fixed, you choose your second proportional to the electorate. We&#8217;re looking at generating an ordered list of candidates.</p><table><tr><th
colspan="2">Proportional Ranking</th></tr><tr><th>First place</th><td>Same</td></tr><tr><th>Second place</th><td>More</td></tr><tr><th>Third place</th><td>Less</td></tr><tr><th>Fourth place</th><td>More</td></tr><tr><th>Fifth place</th><td>Less</td></tr><tr><th>Sixth place</th><td>Same</td></tr></table><p>Note the difference here between a fixed two-winner election (where we chose More/Less) and the proportional ranking (which starts off Same/More). In this different problem space, a fair outcome produces different results.</p><p>Lastly, consider the scenario where you only need one winner, but you need a runner up in case the first winner is unable to take the position.</p><table><tr><th
colspan="2">Non-proportional Ranking</th></tr><tr><th>First place</th><td>Same</td></tr><tr><th>Second place</th><td>Same</td></tr><tr><th>Third place</th><td>More</td></tr><tr><th>Fourth place</th><td>More</td></tr><tr><th>Fifth place</th><td>Less</td></tr><tr><th>Sixth place</th><td>Less</td></tr></table><p>Where in the first example we provided More/Less as a fairer alternative to Same/Same, the problem space for this third example would dictate Same/Same over More/Less. Again, different results for the same notion of fair.</p><p>These three scenarios have produced significantly different results, illustrating fixed-winner allocation, proportional ranking and non-proportional ranking. Hopefully this highlights the need to determine in advance the context in which you&#8217;re bringing things to a vote.</p><p>The one question I have in all of this is how to distinguish between these two problems:</p><ul><li>One winner every couple of years (e.g. federal elections) is likely best suited with fixed-winner allocation</li><li>One winner every hour (e.g. a board game marathon) is likely best suited with proportional ranking</li></ul><p>Is the salient difference here that preferences can change over time? That the voters themselves change over time? Or is it that you can opt to take a break during the next board game if you don&#8217;t like it, but you can&#8217;t quite opt out of being a citizen (at least, not with as much ease). I&#8217;m really not sure here.</p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/three-types-of-voting-problems/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Quickly voting using the Schulze Method</title><link>http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/</link> <comments>http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/#comments</comments> <pubDate>Sun, 06 Feb 2011 20:06:27 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://cognitivesandbox.com/?p=2909</guid> <description><![CDATA[When you&#8217;re in a group trying to reach a collective decision by voting, chances are it sounds a little like this. All those in favour of W? 2. All those in favour of X? 7. All those in favour of &#8230; <a
href="http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>When you&#8217;re in a group trying to reach a collective decision by voting, chances are it sounds a little like this.</p><table><tbody><tr><td>All those in favour of W?</td><td>2.</td></tr><tr><td>All those in favour of X?</td><td>7.</td></tr><tr><td>All those in favour of Y?</td><td>5.</td></tr><tr><td>All those in favour of Z?</td><td>6.</td></tr></tbody><tfoot><tr><th
colspan="2">X has the most votes. X wins.</th></tr></tfoot></table><p>The problem here is that the majority might not want X, which only got 35% of the vote.</p><h3>The Alternative</h3><p>Next time, try the following. It takes a little longer, but the results will be much fairer.</p><table><tbody><tr><th>W vs X.</th><td>Who prefers W?</td><td>13.</td><td>Who prefers X?</td><td>7.</td></tr><tr><th>W vs Y.</th><td>Who prefers W?</td><td>8.</td><td>Who prefers Y?</td><td>5.</td></tr><tr><th>W vs Z.</th><td>Who prefers W?</td><td>12.</td><td>Who prefers Z?</td><td>3.</td></tr></tbody><tfoot><tr><th
colspan="5">W never loses a pairing. W wins.</th></tr></tfoot></table><p>Bam. Done.</p><p>As an aside, you could also infer this information from a set of collected ballots.</p><p><hr
/><h3>The Edge Cases</h3><p><strong>Disclaimer</strong>: Edge cases are exceedingly rare in large elections. What follows is simply for completeness.</p><p>In the case where two or more candidates never lose a pairing, that&#8217;s a tie. Randomly choose between these candidates.</p><p>In the case that all candidates lose a pairing, that&#8217;s a Condorcet paradox. The chances of this occurring are asymptotically rare as the number of voters increases, but here&#8217;s how to handle it if it comes up.</p><table><tbody><tr><th>W vs X.</th><td>Who prefers W?</td><td>16.</td><td>Who prefers X?</td><td>14.</td></tr><tr><th>W vs Y.</th><td>Who prefers W?</td><td>17.</td><td>Who prefers Y?</td><td>13.</td></tr><tr><th>W vs Z.</th><td>Who prefers W?</td><td>12.</td><td>Who prefers Z?</td><td>18.</td></tr><tr><th>X vs Y.</th><td>Who prefers X?</td><td>19.</td><td>Who prefers Y?</td><td>11.</td></tr><tr><th>X vs Z.</th><td>Who prefers X?</td><td>9.</td><td>Who prefers Z?</td><td>21.</td></tr><tr><th>Y vs Z.</th><td>Who prefers Y?</td><td>20.</td><td>Who prefers Z?</td><td>10.</td></tr></tbody><tfoot><tr><th
colspan="5">Each candidate loses a pairing. Let&#8217;s draw it out.</th></tr></tfoot></table><p>The first image shows the tallies. The second shows the cycles that prevented us from finding a simple winner. All subsequent steps are simply removing the weakest edge and any loose candidates.</p> <a
href='http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/cycle-1/' title='cycle-1'><img
width="190" height="190" src="http://cognitivesandbox.com/wp-content/uploads/2011/02/cycle-1-190x190.png" class="attachment-thumbnail" alt="cycle-1" title="cycle-1" /></a> <a
href='http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/cycle-2/' title='cycle-2'><img
width="190" height="190" src="http://cognitivesandbox.com/wp-content/uploads/2011/02/cycle-2-190x190.png" class="attachment-thumbnail" alt="cycle-2" title="cycle-2" /></a> <a
href='http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/cycle-3/' title='cycle-3'><img
width="190" height="190" src="http://cognitivesandbox.com/wp-content/uploads/2011/02/cycle-3-190x190.png" class="attachment-thumbnail" alt="cycle-3" title="cycle-3" /></a> <a
href='http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/cycle-4/' title='cycle-4'><img
width="190" height="190" src="http://cognitivesandbox.com/wp-content/uploads/2011/02/cycle-4-190x190.png" class="attachment-thumbnail" alt="cycle-4" title="cycle-4" /></a> <a
href='http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/cycle-5/' title='cycle-5'><img
width="190" height="190" src="http://cognitivesandbox.com/wp-content/uploads/2011/02/cycle-5-190x190.png" class="attachment-thumbnail" alt="cycle-5" title="cycle-5" /></a> <a
href='http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/cycle-6/' title='cycle-6'><img
width="190" height="190" src="http://cognitivesandbox.com/wp-content/uploads/2011/02/cycle-6-190x190.png" class="attachment-thumbnail" alt="cycle-6" title="cycle-6" /></a> <a
href='http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/cycle-7/' title='cycle-7'><img
width="190" height="190" src="http://cognitivesandbox.com/wp-content/uploads/2011/02/cycle-7-190x190.png" class="attachment-thumbnail" alt="cycle-7" title="cycle-7" /></a><p>For more information, see <a
href="http://en.wikipedia.org/wiki/Schulze_method#Comparison_with_other_preferential_single-winner_election_methods">Wikipedia&#8217;s criteria analysis</a>. To see it in action, <a
href="http://modernballots.com/zombies">try this mock election out</a>.</p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/quickly-voting-using-the-schulze-method/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Misinterpreting problem spaces</title><link>http://cognitivesandbox.com/posts/misinterpreting-problem-spaces/</link> <comments>http://cognitivesandbox.com/posts/misinterpreting-problem-spaces/#comments</comments> <pubDate>Sun, 14 Feb 2010 04:41:31 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Math]]></category> <category><![CDATA[Musings]]></category> <category><![CDATA[Politics]]></category> <guid
isPermaLink="false">http://www.cognitivesandbox.com/?p=2419</guid> <description><![CDATA[Polls and elections aren&#8217;t the same type of thing. The former asks for descriptive data, the latter for prescriptive preferences. To illustrate the hazards of this common misunderstanding, let&#8217;s go over some other ways data can partitioned and the problems &#8230; <a
href="http://cognitivesandbox.com/posts/misinterpreting-problem-spaces/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Polls and elections aren&#8217;t the same type of thing. The former asks for descriptive data, the latter for prescriptive preferences. To illustrate the hazards of this common misunderstanding, let&#8217;s go over some other ways data can partitioned and the problems that arise from confusing them.</p><h3>Ordered data vs unordered data</h3><p>Ordered data has an innate linear ordering, whereas unordered data doesn&#8217;t.</p><dl><dt>Ordered</dt><dd>How many apples can you eat in one sitting? (0, 1, 2&hellip;)</dd><dt>Unordered</dt><dd>What was the last type of apple you ate? (Granny smith, red delicious&hellip;)</dd></dl><p>When unordered data is confused as ordered data, a relationship is erroneously implied between the items.</p><p><img
src="http://cognitivesandbox.com/wp-content/uploads/2010/02/unordered-as-ordered-425x303.jpg" alt="unordered-as-ordered" title="unordered-as-ordered" width="425" height="303" class="aligncenter size-medium wp-image-2545" /></p><p>When ordered data is confused as unordered, data trends are buried.</p><p><img
src="http://cognitivesandbox.com/wp-content/uploads/2010/02/ordered-as-unordered-425x303.jpg" alt="ordered-as-unordered" title="ordered-as-unordered" width="425" height="303" class="aligncenter size-medium wp-image-2544" /></p><h3>Ordered discrete vs ordered continuous</h3><p>With discrete data, there exist two values for which there is no valid value in between, whereas continuous data can always be broken down into more detail.</p><dl><dt>Discrete</dt><dd>How many thermostats do you have in your house? (0, 1, 2&hellip;)</dd><dt>Continuous</dt><dd>What is the average temperature in your house? (22.1°C, 20.3°C&hellip;)</dd></dl><p>When discrete data is confused as continuous, inappropriate conclusions can be reached (chances are you have 2.3 thermostats in your house).</p><p><img
src="http://cognitivesandbox.com/wp-content/uploads/2010/02/discrete-as-continuous-425x303.jpg" alt="discrete-as-continuous" title="discrete-as-continuous" width="425" height="303" class="aligncenter size-medium wp-image-2543" /></p><p>When continuous data is confused as discrete, granularity is lost. We can&#8217;t tell from the graph below whether there&#8217;s a large portion of 0.0km entries, if only odd decimal entries exist (0.1, 0.3, 0.5&hellip;), or any other detail hidden by these brackets.</p><p><img
src="http://cognitivesandbox.com/wp-content/uploads/2010/02/continuous-as-discrete-425x303.jpg" alt="continuous-as-discrete" title="continuous-as-discrete" width="425" height="303" class="aligncenter size-medium wp-image-2552" /></p><h3>Simple data vs compound data</h3><p>Compound data have multiple values that bear some relation to each other.</p><dl><dt>Simple</dt><dd>How big is your television diagonally (24&#8243;, 32&#8243;, 34&#8243;&hellip;)</dd><dt>Compound</dt><dd>What are the dimensions of your television (20&#8243;x18&#8243;, 24&#8243;x20&#8243;&hellip;)</dd></dl><p>Compound data can be misrepresented as multiple simple data axes by ignoring the coupling between the two values, whereby the conditional probabilities are lost. Worse, it can be restricted down to a single simple data axis, whereby relevant data is entirely discarded (e.g. do sampled televisions only exist at certain aspect ratios?).</p><p><img
src="http://cognitivesandbox.com/wp-content/uploads/2010/02/compound-as-simple-425x303.jpg" alt="compound-as-simple" title="compound-as-simple" width="425" height="303" class="aligncenter size-medium wp-image-2541" /></p><h3>Descriptive data vs prescriptive preferences</h3><dl><dt>Descriptive</dt><dd>What did you have for dinner last night?</dd><dt>Prescriptive</dt><dd>What should we have for dinner tonight?</dd></dl><p>The difference is subtle, but it&#8217;s there. With descriptive data, respondents have no incentive to tactically misrepresent their opinions. With prescriptive preferences, respondents (aka voters) are aware that their response will influence a future that likely affects them and will vote accordingly.</p><p>When prescriptive preferences are confused as descriptive data, a few things can happen:</p><ul><li>Continuous data can be filtered down into discrete data. Instead of allowing degrees of preference, ballots are restricted to binary expressions of support.</li><li>Compound data can be filtered down into simple data. Although multiple options exist, ballots restrict the voter to supporting a single candidate.</li></ul><p>Both confusions are present when Plurality voting is used in lieu of <a
href="http://cognitivesandbox.com/posts/a-brief-survey-of-ballot-types/">a more expressive ballot</a>, where in voters could express more than just a single binary preference for a single option. Maybe this comes from ignorance of alternative voting methods, technical restrictions from the online voting application used, or seeing everything as a nail when you&#8217;re holding a hammer; Take your pick.</p><p>When Plurality voting is used to obtain prescriptive preferences, the same type of analytical fallacy is being made as is detailed in the above examples, all of which lead to a poor understanding of the underlying reality the data represents.</p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/misinterpreting-problem-spaces/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Implementing Schulze STV</title><link>http://cognitivesandbox.com/posts/implementing-schulze-stv/</link> <comments>http://cognitivesandbox.com/posts/implementing-schulze-stv/#comments</comments> <pubDate>Tue, 26 Jan 2010 08:06:10 +0000</pubDate> <dc:creator>Brad Beattie</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Politics]]></category> <category><![CDATA[Software development]]></category> <guid
isPermaLink="false">http://www.cognitivesandbox.com/?p=2461</guid> <description><![CDATA[Thus far, my implementation of Schulze STV has worked fairly well. The downside I&#8217;ve recently run into is in simulating real world multiple winner elections. Take Vancouver&#8217;s 2008 municipal election as an example, in which 32 candidates ran for 10 &#8230; <a
href="http://cognitivesandbox.com/posts/implementing-schulze-stv/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Thus far, <a
href="http://github.com/bradbeattie/Election-Web-Service/blob/master/schulze_stv.py">my implementation of Schulze STV</a> has worked fairly well. The downside I&#8217;ve recently run into is in simulating real world multiple winner elections. Take Vancouver&#8217;s 2008 municipal election as an example, in which 32 candidates ran for 10 seats. The problem-space we&#8217;re looking at consists of <code>32 choose 10</code> nodes and <code>(32 choose 10) x 11</code> edges. For those unfamiliar with <a
href="http://en.wikipedia.org/wiki/Binomial_coefficient">binomial coefficients</a>, that&#8217;s roughly 64 million nodes and  709 million edges. <a
href="http://en.wikipedia.org/wiki/Computational_complexity_theory#Intractability">Exponential runtime is a bitch</a>.</p><p>For the purposes of heuristic development, let&#8217;s look at Tideman&#8217;s A03. It&#8217;s a set of 989 ballots to elect 7 winners from 15 candidates. Schulze STV computes the winning set as B/D/E/F/H/K/N by looking at 6435 nodes and 51480 edges. How do we best prune the number of candidates down so as to look at a smaller subset, yet still produce the same winning set in most cases? Well, what&#8217;s quickly available? We can easily calculate the sum of all votes, standard deviation, and whatnot.</p><p><img
src="http://cognitivesandbox.com/wp-content/uploads/2010/01/sort-by-sum.png" alt="" title="sort-by-sum" width="340" height="366" class="aligncenter size-full wp-image-2484" /></p><p>If we wanted to prune off the least preferred by sum (indicated by larger sums), we&#8217;d be cutting off one of a winner Schulze STV would want to elect. Alternatively, let&#8217;s look at the number of voters that mark each candidate in first place. If a voter marks two candidates in first place, split their vote between the two.</p><p><img
src="http://cognitivesandbox.com/wp-content/uploads/2010/01/sort-by-top-votes.png" alt="" title="sort-by-top-votes" width="405" height="366" class="aligncenter size-full wp-image-2501" /></p><p>That heuristic seems great at first as it didn&#8217;t accidentally eliminate winning candidates and it reduced the number of nodes to 120, a 98% reduction in problem space size. However, the winning set would now be computed by SchulzeSTV as A/B/D/E/G/L/N, which is significantly different. Furthermore, the heuristic is going to incentivize tactical voting. Sometimes there aren&#8217;t any easy shortcuts and the best thing to do is just optimize the implementation.</p> ]]></content:encoded> <wfw:commentRss>http://cognitivesandbox.com/posts/implementing-schulze-stv/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
