Skip to content

srivmutk/benford.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

benford.py

Benford's Law in Python

What is Benford's Law?

https://www.youtube.com/watch?v=XXjlR2OK1kM

Organization

In the file root, there is population.py, s&p500.py, and russell2000.py

These are the files used to generate the plots in the plots folder.

You can access some of the data used to generate these plots in the data folder

Installation

To start: Install Pipenv and run pipenv install

After that run one of the afformentioned files in the root for whatever projection you want.

For example, if you want a plot of Benford's law in world population data run python3 population.py and check the generated graph in plots/population.png

Libraries Used

  • yfinance
  • matplotlib
  • pandas
  • numpy

Plots

About

Benford's Law in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages