The purpose of this project is to verify whether a given data set follows the distribution of Benford's Law
Benford's Law is an observation about the frequency distribution of the leading digits of a number from a table of physical constants or statistical data where the probability of digit `1` to occur is about 30.1% rather than 10% as one might expects if all digits were equally likely.
This implies that a number in a statistical data or a table of physical constants is more likely to begin with smaller digit than larger ones.
The project contains 4 files:
- Benford.java where the different methods are implemented for obtaining the data, and calculating the number of occurrence of first digits by reading a String line.
- Driver.java (main) to run the program with choice of data handling by the user and, finally will print a graph for the first digits occurrence (1 to 9), that can be compared with Benford's law.
- AAPL.csv with the daily adjusted returns of "Apple" stocks for 5 years.
- household_power_consumption.csv with individual household electric power consumption from UCI repository.
One of the best visualization effort for this law can be found at Testing Benford's Law
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
David Cicoria - Initial work - DavidCico
See also the list of contributors who participated in this project.