Skip to content

Add 2025 Australian Senate preference profiles - #38

Open
fsargent wants to merge 2 commits into
PrefLib:mainfrom
fsargent:add-aec-senate-2025-data
Open

fsargent wants to merge 2 commits into
PrefLib:mainfrom
fsargent:add-aec-senate-2025-data

Conversation

@fsargent

@fsargent fsargent commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #35 (gzip-compressed storage for large files). This branch includes that commit, and the diff becomes dataset-only once #35 merges.

Adds 8 ranked-ballot profiles from the Australian Senate election of 3 May 2025, one per state and territory, with 15,871,189 ballots. Each state elected six senators by STV, and each territory two.

The source is the AEC's Senate formal preferences, which give the preferences on every formal ballot paper. Reports for every state are on stv.vote, and the crosswalk links each profile to its report.

Each paper is read as the Commonwealth Electoral Act counts it:

  • a below-the-line vote numbering at least six candidates is used;
  • otherwise the above-the-line vote is used, each group standing for its candidates in ballot order;
  • preferences stop at the first missing or repeated number;
  • a tick or cross counts as a 1.

Identical rankings keep their exact frequencies, and no preferences or bottom ties are added. Labels are the AEC candidate names with their group.

As plain SOI, the NSW, Victoria and Queensland profiles are 116, 106 and 96 MB, so they are stored as .soi.gz at 6–7 MB each. They are plain .soi in the release zip. A CSV-formatted .dat crosswalk records seats, ballot, paper and below-the-line counts, stored file names, source URLs, checksums and report links.

Validation:

  • Every source zip matches its recorded SHA-256.
  • Every profile, parsed with PrefLib-Tools, matches stv.vote's separate TypeScript conversion of the same zips exactly: all 4,998,791 distinct rankings and their frequencies.
  • stv.vote's count of these profiles elects all 40 senators the AEC declared and reproduces its quotas.
  • PrefLib-Tools 2.0.33 and the repository sanity checks pass with warnings escalated. Standard metadata.csv is generated with the repository's script, which reads the compressed files through Allow large data files to be stored gzip-compressed #35.

Proposed series 00080; publication date left blank for maintainers.

GitHub rejects files over 100 MB. A data file may now be stored as
<name>.gz; info.txt, metadata.csv and the release zips keep using the
plain name and contents. scripts/datafiles.py resolves and reads either
form for sanitychecks.py, compute_metadata.py and zipall.py.
Eight STV contests (six senators per state, two per territory),
15,871,189 ballots, converted from AEC formal preferences. The NSW,
Victoria and Queensland profiles are stored gzip-compressed. Validated
against stv.vote's independent conversion of the same files.
@fsargent
fsargent force-pushed the add-aec-senate-2025-data branch from 49a53c4 to af7657b Compare November 22, 2026 12:39
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