Skip to content

Analysis of Zipf's law, Benford distribution, Binomial and Hypergeometric distribution

License

Notifications You must be signed in to change notification settings

ILoveBacteria/probability-course-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Probability Course Exercise

Description

This GitHub repo contains a Jupyter Notebook that explores some interesting topics in probability and statistics.

The notebook compares the binomial and hypergeometric distributions, which are both discrete probability distributions that model the number of successes in a fixed number of trials.

The notebook also analyses Zipf's law, which is an empirical law that states that the frequency of a word in a text is inversely proportional to its rank. The notebook uses a sample text from a book to demonstrate Zipf's law and plot the frequency-rank distribution.

Furthermore, the notebook analyses Benford's law, which is another empirical law that states that the leading digits of many real-life numbers follow a certain distribution. The notebook uses SciPy constants and random networks to generate numbers that follow Benford's law and plot the digit distribution.

Finally, the notebook finds the best fits of Weibull, log-normal, and Pareto distributions to Benford's distribution.

About

Analysis of Zipf's law, Benford distribution, Binomial and Hypergeometric distribution

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published