Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

ipalongengi/BenfordLaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verification of Benford's Law in a Dataset

The purpose of this project is to verify whether a given data set follows the distribution of Benford's Law

Background

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.

Project Structure

This project consists of only one Java class called Benford that contains the Main() method and five additional methods that work together to determine whether the data in the dataset follows Benford's Law.

The dataset to be analyzed named data.txt is located in the same directory as Benford.java source code.

For more information about the class methods and fields, please go to the Wiki section of this project.

Note

One of the best visualization effort for this law can be found at Testing Benford's Law

About

Verify that the data in a given dataset follows Benford's Law - Soft. Design Lab project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages