This Project contains a visualization of Benford's Law. I have taken stock market data of Adani enterprises for the year 2022 to compare it with Benford's law graph.
Benford's law, also known as the first-digit law, is a statistical principle that states that in many naturally occurring datasets, the first digit of a number is more likely to be small than large. Specifically, the law predicts that the digit 1 will appear as the first digit about 30% of the time, while the digit 9 will appear as the first digit less than 5% of the time.
One interesting application of Benford's law is in fraud detection. If a dataset deviates significantly from the expected distribution of first digits, it may be an indication that the data has been manipulated or fabricated. For example, if a company's financial statements show an unusually high proportion of numbers starting with the digit 9, it could be a red flag for fraudulent activity.
The above graph shows the percentage deviation from the Benfod's law. I have taken only two columns from the dataset and those are: the no. of shares and the deliverable quantity. No. of shares refers to the volume of trade on a perticular day and deliverable quantity is the total no. of shares delivered to the investors.
When in the same example you have three players A, B, C
Transaction 1: A buys 100 shares, B sells 100 shares
Volume = 100
Transaction 2 = A sells 70 shares, C buys 70 shares
Volume = 70
Total day transaction = 100 + 70 = 170
A buys 30 shares in delivery (100-70)
B sells 100 shares in delivery and C buys 70 shares in delivery
So A and C buys 100 (30+70) in delivery, B sells 100 shares in delivery