Skip to content

Instantly share code, notes, and snippets.

@leehanchung
Created November 7, 2020 04:11
Show Gist options
  • Save leehanchung/2b62cc33791e5561b3f1a9a0d06afccf to your computer and use it in GitHub Desktop.
Save leehanchung/2b62cc33791e5561b3f1a9a0d06afccf to your computer and use it in GitHub Desktop.
def get_benfords() -> List[float]:
"""get list of expected discrete benford distribution values to be used
for chi square test
Returns:
List[float]: discrete benford's law distribution
"""
benfords = [log10(1 + 1/d) for d in range(1, 10)]
return benfords
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment