Closed benadida closed 2 years ago
For this calculator, total ballots, number of winners, and candidate vote totals will be useful. It would be very helpful if it's built so that information is entered and a user can then see sample sizes for all audit types without re-entry.
Follow-up issues:
Now that I've opened issues for follow-ups (above), I'm going to mark this base issue as done! We can prioritize the follow-ups as we see fit, many of which are prerequisites for a public Twitter post
Problem
Right now, in order to help states plan their audits, VotingWorks support runs audit scenarios by creating hypothetical audits and seeing where the numbers land. One of the main questions they're trying to answer is which audit type to use (since different audit types will require different amounts of work).
There are sample size calculators outside of Arlo that can be used for ballot polling and ballot comparison, but not for batch comparison.
Proposed Solution
Create an audit planner tool to compare different audit types without having to go through the whole flow to create an audit.
Requirements
Sample size to generate:
- ln(risk limit) / diluted margin + 2
, whererisk limit
is a decimal anddiluted margin = (winner - loser) / total ballots cast
for the smallestwinner - loser
margin among all the candidate pairs.Note that the unit for batch comparison is batches, not ballots.