Skip to content

Add ACT Legislative Assembly 2008-2024 preference profiles - #36

Open
fsargent wants to merge 1 commit into
PrefLib:mainfrom
fsargent:add-act-hare-clark-data
Open

fsargent wants to merge 1 commit into
PrefLib:mainfrom
fsargent:add-act-hare-clark-data

Conversation

@fsargent

@fsargent fsargent commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Adds 21 ranked-ballot profiles from the Australian Capital Territory Legislative Assembly elections of 2008, 2012, 2016, 2020 and 2024: one per electorate contest, 1,220,223 ballots. The Assembly is elected by Hare-Clark STV, with five seats per electorate (seven in Molonglo in 2008 and 2012).

The source is Elections ACT's ballot paper preference data, which records the preferences on every formal paper from its electronic counting system. The current Elections ACT site links only the 2024 files. The 2008–2020 files were retrieved byte for byte from Internet Archive captures of the official URLs. scripts/act/sources.json gives each election's page and the SHA-256 of every file used. Interactive reports for every contest are on stv.vote, and the crosswalk links each profile to its report.

Each paper's preferences stop at the first missing number, at a number given to two candidates, or at a candidate numbered twice, as in a Hare-Clark count. Identical rankings keep their exact frequencies, and no preferences or bottom ties are added. Candidate labels are the source names with their party group. A CSV-formatted .dat crosswalk records seats, ballot and paper counts, source files, checksums and report links.

Validation:

  • Every source file matches its recorded SHA-256.
  • Every PrefLib profile, parsed with PrefLib-Tools, matches stv.vote's separate TypeScript conversion of the same files exactly: all 679,039 distinct rankings and their frequencies.
  • stv.vote's count of these profiles elects the official members in all 21 contests.
  • PrefLib-Tools 2.0.33 and repository sanity checks pass with warnings escalated. Standard metadata.csv is generated with the repository's script.

One thing to know about metadata.csv: preflibtools' has_condorcet counts a head-to-head only when a ballot ranks both candidates. If a ranked candidate counts as beating an unranked one, 2020 Yerrabi has no Condorcet winner (Coe, Orr and Pettersson form a cycle), yet hasCondorcet says True.

Proposed series 00079 (after Scotland's 00078 in #34); publication date left blank for maintainers. A standalone contribution based directly on upstream main.

21 Hare-Clark STV electorate contests, 1,220,223 ballots, converted from
Elections ACT ballot paper preference data. Validated against stv.vote's
independent conversion of the same files.
@fsargent
fsargent force-pushed the add-act-hare-clark-data branch from a712b1d to 9cf6bee Compare November 22, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant