Definite Majority Choice: Difference between revisions

HTML to wiki table using https://tools.wmflabs.org/magnustools/html2wiki.php
(→‎Simple ballot example: experiment with box-drawing characters and black circle)
(HTML to wiki table using https://tools.wmflabs.org/magnustools/html2wiki.php)
Line 95:
 
The pairwise matrix, with the victorious and approval scores highlighted:
<table{| class="wikitable" cellpadding="3" border="">
|- align="center"
<tr align="center"><td colspan=2 rowspan=2></td><th colspan=5>against</th></tr>
| colspan=2 rowspan=2 |
<tr align="center"><th class="against"><span class="cand">Abby</span></th><th class="against"><span class="cand">Brad</span></th><th class="against"><span class="cand">Cora</span></th><th class="against"><span class="cand">Dave</span></th><th class="against"><span class="cand">Erin</span></th></tr>
! colspan=5 | against
<tr align="center">
|- align="center"
<th rowspan=5>for</th>
<th! class="foragainst"> | <span class="cand">Abby</span></th>
! class="against" | <span class="cand">Brad</span>
<td bgcolor="yellow">645</td>
! class="against" | <tdspan class="losscand">458Cora</tdspan>
! class="against" | <span class="cand">Dave</span>
<td bgcolor="yellow">461</td>
! class="against" | <span class="cand">Erin</span>
<td bgcolor="yellow">485</td>
|- align="center"
<td bgcolor="yellow">511</td>
! rowspan=5 | for
</tr>
! class="for" | <span class="cand">Abby</span>
<tr align="center">
| bgcolor="yellow" | 645
<th class="for"><span class="cand">Brad</span></th>
| class="loss" | 458
<td bgcolor="yellow">463</td>
<td| bgcolor="yellow">410</td> | 461
<td| bgcolor="yellow">461</td> | 485
| bgcolor="yellow" | 511
<td class="loss">312</td>
|- align="center"
<td bgcolor="yellow">623</td>
! class="for" | <span class="cand">Brad</span>
</tr>
| bgcolor="yellow" | 463
<tr align="center">
| bgcolor="yellow" | 410
<th class="for"><span class="cand">Cora</span></th>
| bgcolor="yellow" | 461
<td class="loss">460</td>
<td| class="loss">460</td> | 312
<td| bgcolor="yellow">460</td> | 623
|- align="center"
<td class="loss">460</td>
! class="for" | <tdspan class="losscand">460Cora</tdspan>
| class="loss" | 460
</tr>
| class="loss" | 460
<tr align="center">
| bgcolor="yellow" | 460
<th class="for"><span class="cand">Dave</span></th>
<td| class="loss">436</td> | 460
| class="loss" | 460
<td bgcolor="yellow">609</td>
|- align="center"
<td bgcolor="yellow">461</td>
! class="for" | <span class="cand">Dave</span>
<td bgcolor="yellow">311</td>
<td| class="loss">311</td> | 436
| bgcolor="yellow" | 609
</tr>
| bgcolor="yellow" | 461
<tr align="center">
| bgcolor="yellow" | 311
<th class="for"><span class="cand">Erin</span></th>
<td| class="loss">410</td> | 311
|- align="center"
<td class="loss">298</td>
! class="for" | <span class="cand">Erin</span>
<td bgcolor="yellow">461</td>
| class="loss" | 410
<td bgcolor="yellow">610</td>
| class="loss" | 298
<td bgcolor="yellow">708</td>
| bgcolor="yellow" | 461
</tr>
| bgcolor="yellow" | 610
</table>
| bgcolor="yellow" | 708
|}
 
The candidates in descending order of approval are Erin, Abby, Cora, Brad, Dave.
Line 145 ⟶ 147:
After reordering the pairwise matrix, it looks like this:
 
<table{| class="wikitable" cellpadding="3" border="">
|- align="center"
<tr align="center"><td colspan=2 rowspan=2></td><th colspan=5>against</th></tr>
| colspan=2 rowspan=2 |
<tr align="center">
! colspan=5 | against
<th class="against"><span class="cand">Erin</span></th>
|- align="center"
<th class="against"><span class="cand">Abby</span></th>
<th! class="against"> | <span class="cand">CoraErin</span></th>
<th! class="against"> | <span class="cand">BradAbby</span></th>
<th! class="against"> | <span class="cand">DaveCora</span></th>
! class="against" | <span class="cand">Brad</span>
</tr>
! class="against" | <span class="cand">Dave</span>
<tr align="center">
|- align="center"
<th rowspan=5>for</th>
! rowspan=5 | for
<th class="for"><span class="cand">Erin</span></th>
! class="for" | <span class="cand">Erin</span>
<td bgcolor="yellow">708</td>
| bgcolor="yellow" | 708
<td class="loss">410</td>
| class="loss" | 410
<td bgcolor="yellow">461</td>
| bgcolor="yellow" | 461
<td class="loss">298</td>
| class="loss" | 298
<td bgcolor="yellow">610</td>
| bgcolor="yellow" | 610
</tr>
<tr|- align="center">
<th! class="for"> | <span class="cand">Abby</span></th>
<td| bgcolor="yellow"> | 511</td>
<td| bgcolor="yellow"> | 645</td>
<td| bgcolor="yellow"> | 461</td>
<td| class="loss"> | 458</td>
<td| bgcolor="yellow"> | 485</td>
|- align="center"
</tr>
! class="for" | <span class="cand">Cora</span>
<tr align="center">
| class="loss" | 460
<th class="for"><span class="cand">Cora</span></th>
<td| class="loss"> | 460</td>
<td| classbgcolor="lossyellow"> | 460</td>
<td| bgcolorclass="yellowloss"> | 460</td>
<td| class="loss"> | 460</td>
|- align="center"
<td class="loss">460</td>
! class="for" | <span class="cand">Brad</span>
</tr>
| bgcolor="yellow" | 623
<tr align="center">
| bgcolor="yellow" | 463
<th class="for"><span class="cand">Brad</span></th>
<td| bgcolor="yellow">623</td> | 461
<td| bgcolor="yellow">463</td> | 410
| class="loss" | 312
<td bgcolor="yellow">461</td>
|- align="center"
<td bgcolor="yellow">410</td>
! class="for" | <tdspan class="losscand">312Dave</tdspan>
| class="loss" | 311
</tr>
| class="loss" | 436
<tr align="center">
| bgcolor="yellow" | 461
<th class="for"><span class="cand">Dave</span></th>
| bgcolor="yellow" | 609
<td class="loss">311</td>
| bgcolor="yellow" | 311
<td class="loss">436</td>
|}
<td bgcolor="yellow">461</td>
<td bgcolor="yellow">609</td>
<td bgcolor="yellow">311</td>
</tr>
</table>
 
To find the winner,