The electronic votes said he lost in a statistically impossible landslide, but the paper ballots said he won

If the Scantron system detects that the ballot is spoilt and returns it to the voter, there’s much less of a problem of ambiguous ballots - particularly if the Scantron is set to favour falsely rejecting ballots rather than permissively accepting them.

The other critical thing that’s needed is risk-limiting audits done routinely on all electoral contests.

3 Likes