====================================================================== SOURCE FILE: BV_Library_approval_single_winner.yaml TABULATED FILE: BV_Library_approval_single_winner_tabulated.txt ====================================================================== election_title: "BV parity — Approval: most approvals wins (single winner)" scenario_description: |- Ported from BetterVoting's tabulator unit tests (Approval.test.ts :: "Single Winner Test"). Dave has the most approvals and wins. In the original two rows carried out-of-bounds marks (a 2 and a -1) that BetterVoting counts as 0/not-approved; here they are written as plain 0 so the file validates under this engine while preserving every approval total. num_winners: 1 voting_method: Approval ballots: |- Alice,Bob,Carol,Dave 1,1,1,1 0,1,1,1 0,1,1,1 0,0,1,1 0,0,1,1 0,0,1,1 0,0,0,1 -,-,-,- 0,0,0,0 0,0,0,0 expected_winners: - Dave # file: BV_Library_approval_single_winner.yaml ====================================================================== TABULATION RESULTS ====================================================================== --- Approval Voting (single winner) --- Tabulating 10 ballots (any non-zero score = approval). Abstentions: 3 of 10 ballots approved no one (7 ballots cast an approval). Ballots: columns = Alice, Bob, Carol, Dave (1 = approve; 0 = not approved) 1 × 1,1,1,1 2 × 0,1,1,1 3 × 0,0,1,1 1 × 0,0,0,1 3 × 0,0,0,0 [Legend] (these all count as not approved — the echo above shows them as 0) - Blank — no score / voter left the candidate blank Dave -- 7 (70%) -- Elected Carol -- 6 (60%) Bob -- 3 (30%) Alice -- 1 (10%) [Approval Distribution] (how many candidates each ballot approved) 17 approvals across 10 ballots — average 1.7 of 4 (range 0–4). approved none: 3 ballots approved 1: 1 ballot approved 2: 3 ballots approved 3: 2 ballots approved 4: 1 ballot [Co-Approval Matrix] Of the voters who approved the ROW candidate, the % who ALSO approved the COLUMN candidate. | Dave | Carol | Bob | Alice | -------------------------------------------- Dave | -- | 86% | 43% | 14% | Carol | 100% | -- | 50% | 17% | Bob | 100% | 100% | -- | 33% | Alice | 100% | 100% | 100% | -- | Winner — Approval Voting (single winner) Dave