A digit doctoring detection package
Project description
DrDigit
DrDigit is a digit doctoring detection package at an early stage. Interested in contributing? Please feel free to contact me, e.g. by commenting on the issue "Contributors welcome!" at https://github.com/brezniczky/drdigit/issues/1.
Requirements
DrDigit requires Python 3.5 or later.
Concept
The tests are based on the statistics of digits which are assumed to have a uniform distribution. Near-uniform distributions can be obtained by looking at the last digits of sufficiently large values - such as vote counts (possibly above 100).
On a smaller scale, you can query for the probablity of a digit sequence using probability mass functions represented by Python functions.
There are larger scale tests for a sequence of digit groups. This is so to support situations where different groups are expected to be doctored by different people - testing for an overarching, consistent anomaly could be too strict in such cases.
Based on the current features (entropy, digit repetition, coincident digits in parallel sequences), it is possible to sort a data frame containing digit groups by probability, so then it is possible to inspect if there is any apparent sanity behind the doctoring.
A couple of advice
- Handle results with care, there is always some uncertainity
- Try to focus on interesting groups, this should yield much sharper results
Quick start
DrDigit can be installed using pip:
$ pip install drdigit-brezniczky
More to come ...
Tests
Coming soon ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for drdigit_brezniczky-0.0.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5263606f6786173b5380fcb38aced869370da879caad6ed60f7e67247e3b7968 |
|
MD5 | e237b41042a0f9b771b10c6e8019223d |
|
BLAKE2b-256 | 049d570f01e1d3a6838b2d7e938b30ae7752412beaa55c0106cf1603844b2e3d |