Kirix Strata Extensions

Benford’s Law and Fraud Detection Analysis

ScreenshotInstall Now

by Jeff Engel |

The Benford’s Law and Fraud Detection Analysis enables you to graph a data set against a Benford’s law curve to find abnormalities within the data.  This enables you to quickly ascertain the accuracy of the data, which is particularly helpful for detecting fraud in various business data such as check payment amounts.  For further information, you can see a video of this extension here.

Overview

Benford’s law, sometimes called the first-digit law, states that the first digit in many types of data sets are distributed in a non-uniform way.  In fact, this law says that the number 1 will appear as the first digit about 30% of the time and the number 2 will appear as the first digit about 18% of the time, whereas the number 9 will only appear first about 5% of the time.  This law applies to a wide variety of data sets, such as stock prices, street addresses, census data, lengths of rivers, etc.

Image - Benford’s Law Graph

Benford’s law also has applications within fraud detection.  Those who commit fraud may create fake payment amounts that “look” real.  However, unless the perpetrator knows of the Benford’s law distribution, the made-up numbers will not follow the proper curve, making the potential fraud easy to spot when the curves are shown together.  A Benford’s law test may also notice user-manipulated, though not fraudulent, data.  For instance, there may be an unexpected number of $24 payments because employees are trying to avoid the bother of supervisor sign-offs for expenses of $25 or more.

Benford’s law will apply to almost any natural data set (e.g., payment amounts), but not to a limited-by-definition category (e.g., payment amounts between $50 and $100) or to predetermined data sets (e.g., customer number or social security number).

Instructions

  1. After installing the extension, select “Benford Analysis” from the Tools menu to open up the tool.  A line graph will appear that shows the typical Benford’s Law distribution curve in yellow.
  2. Source Table.  Click on the Browse button to view your project and select the table you wish to analyze.
  3. Column.  Once a table has been selected, choose a column name from the drop-down menu.  The data in this column will be analyzed to determine the first-digit distribution.
  4. Digits.  By default, this extension will only analyze the first digit of the number.  However, if you would like better resolution, you may increase the number of digits to analyze.  For instance, if you select 2 digits, the numbers will be analyzed from 10 to 99, instead of 1 to 9 for single-digit analysis.
  5. Graph.  When you have selected each of your parameters, simply click the Graph button and your graph will be processed.  The results of your data will show up as a blue line graph next to the yellow Benford’s law distribution.

Further information along with a video showing the extension in action can be found here.

Update 07/21/2008: Fixed a bug in the graph when 2-digits or more were analyzed.

Update 07/31/2008: Fixed a bug with spaces in table names; note that this version requires an upgrade to 4.1.1 or higher to run.

Update 11/20/2008: Fixed a bug with international number formatting.

Update 12/17/2008: Added functionality to work with numbers in a character field, changed dialog dimensions and color.

Version 1.1.772; Dec 17, 2008

32 Responses to “Benford’s Law and Fraud Detection Analysis”

  1. Fun (and Fraud Detection) with Benford’s Law | Data and the Web says:

    […] law in action with data sets from the web.  If you’d like to play with it yourself, just install the Benford’s Law extension for Kirix Strata and have […]

  2. Martyn says:

    I keep getting a runtime error whenever I try to use the Benford Analysis.

    Script Runtime Error
    Term ‘result.next’ does not evaluate to a function

    What am I doing wrong?

  3. Steve Mathis says:

    This looks like an excel extension but the downloaded file has a .kxt extension. What is the native program?

  4. Ken Kaczmarek says:

    Hi Martyn,

    We’ve run into this before and the problem was related to spaces in either a table name. So, try this — if your table is called “my table”, rename it to “mytable”. You can do this by just right-clicking the table name in the project panel (ctrl+b) and selecting “Rename”.

    Also, it looks like you may have to restart strata and re-run the benford’s analysis. After you get that syntax error, it appears not to want to re-run. We’ll have to fix this for the next version of the extension.

    Lemme know if that does the trick.

    Thanks!
    ken

  5. Ken Kaczmarek says:

    Hi Steve, thanks for writing in.

    The Benford’s Law Plug-in is for Kirix Strata, not Excel. The .kxt file is the naming extension for Kirix Strata plug-ins — it is used to package the javascript together to make the plug-ins easy to install.

    You can download a copy of Strata here: http://www.kirix.com/download.html

    To install the extension, you can just open up Strata, navigate to this web page and click the “Install Now” button.

  6. Martyn says:

    Thanks Ken, it works perfectly now.

  7. Kirix Strata 4.1.1 Maintenance Release | Data and the Web says:

    […] In addition, please note that if you are using the Benford’s Analysis extension we mentioned in the previous post, it too has been upgraded to deal with a pesky field naming bug.  It is backwards compatible with 4.1, but the old extension will not work with 4.1.1.  You can install the upgraded extension from here. […]

  8. irene says:

    where did you get fraud dataset for the video?

  9. Ken Kaczmarek says:

    Hi Irene,

    It wasn’t available as a table, so I ended up having to input it manually. The source material is from the following article (definitely worth a read if you’re interested in Benford’s and fraud): http://www.aicpa.org/pubs/jofa/may1999/nigrini.htm

  10. Mike says:

    Great tool, but I do have a major problem.
    After importing a table, saving it and opening the benford tool there is no line graph showing the typical Benford’s Law distribution curve. After a klick on graph nothing happens…
    Have I made something wrong?
    Thanks!
    Mike

  11. Ken Kaczmarek says:

    Hi Mike,

    Sorry about that. We’ve had this problem in the past and I thought it was fixed, but I guess we’ll have to have another look…

    My guess is that you are experiencing is due to a language encoding issue with this extension. As a workaround, if you change your regional settings in Windows to “English (United States)”, the Benford’s module should work as expected.

    Can you let me know what the native language for your system is and we’ll have a look and see if we can replicate the problem here. Thanks very much!

  12. Mike says:

    Hi Ken!
    That was one quick reply, thanks!
    The change of my regional settings did it. My native language setting is German.
    Again, thank you for that quick solution. Hope you can fix the language encoding problem.
    Take care
    mike

  13. Ken Kaczmarek says:

    Happy to help!

  14. Molly says:

    So when try to open the extension after it is downloaded, the computer says that it cannot open because it doesn’t know who made the program. Is there anyway to fix this?

  15. Ken Kaczmarek says:

    Hi Molly,

    The Benford extension is a plug in for the Kirix Strata analysis tool (http://www.kirix.com/download/download-a-free-trial.html). Once you install Strata, go to Tools > Extensions and you can click the “Add Extension” button to install the Benford plug-in. If you’re still running into problems, please let me know.

  16. Anthony says:

    I’m installing Kirix Strata now and plan to use the Benford extension. I just wanted to say that based on what I see here, your customer service is excellent. Keep up the good work!

    Anthony K.

  17. Ken Kaczmarek says:

    Happy to help. :) if you need any help with Strata, just shoot us a note on our support forums: http://www.kirix.com/forums/

  18. Billye Yekel says:

    I love to come across sites that serve a purpose and are topic specific. I have a site of my own and I focus it on the topic of home alarm systems and my passion for home security. Cheers.

  19. google says:

    Thank you to all our readers who helped us reach 10,000. We couldn’t have done it without you and your input.

  20. Tommye Dunt says:

    A lot of thanks for your entire effort on this site. Betty take interest in carrying out investigation and it’s really easy to see why. I notice all relating to the dynamic form you render priceless secrets through this web blog and as well as invigorate contribution from some other people about this subject plus our girl is undoubtedly starting to learn a whole lot. Enjoy the rest of the new year. You are always doing a terrific job.

  21. The Grafikkarte says:

    Hey, i think that i saw you visited my blog so i came to “return the favor”.I’m attempting to find things to improve my website!I suppose its ok to use some of your ideas!!

  22. Sampopankki says:

    The majority of of the comments on this particular blog page dont make sense.

  23. Free lesbian movies can be found here. It`s legal says:

    Great work! This is the kind of information that are supposed to be shared around the web. Shame on Google for not positioning this post higher! Come on over and seek advice from my web site . Thank you =)

  24. Wanda at Classicalfitness.com says:

    It appears to me that this website doesnt load up on a Motorola Droid. Are other folks getting the same problem? I like this website and dont want to have to miss it whenever Im away from my computer.

  25. Zachary Dominic says:

    Miss. W (activity 2)
    I join the blogging because I thought it would be a experence and I would be able to blog to new people and start conversation all over the world.
    This is my first year being a blogger and also doing the blogging challenge so I really do not know what to expect.
    I hope that I would have learned a lot more about being blogger and have been able to talk to heaps of people from all over the world and even the blogging challenge is over still have conversation with a few.
    Lily

  26. MCSA exam says:

    Can I simply say what a reduction to find somebody who really knows what theyre speaking about on the internet. You definitely know the right way to bring an issue to gentle and make it important. Extra individuals need to learn this and perceive this facet of the story. I cant consider youre not more fashionable since you definitely have the gift.

  27. Krakow Poland says:

    You made another terrific write-up i have to confess. Competently shown resources in this field, I appreciate to read this kind of things. The quality of content is exceptional and also the conclusion is superb.

  28. Facebooksmiles.Facebook-Smiles.com says:

    It is amazing! On the one hand modern fantasy bloggers vyhodt beyond all limits, but at the same time, more and more addictive it all. Already and can not live a day in order not to visit their friends in blogging. You like! ;)

  29. SWTOR Leveling Guide – Fastest Way to Reach Level 50 | Gaming Stuff says:

    […] fast leveling and where to find a fast SWTOR leveling guide. Tags: | web games | xbox 360 and | game world | gaming news ← Connecting Your Xbox Using An Optical Audio Cable Comments are […]

  30. Keenan Shehee says:

    I love gaming and reading all about it so I was in heaven when I found your posts keep up the hard work and don’t worry I’ll be telling all my gaming buddies about you.

  31. Checks Phone says:

    Accept checks by telephone and via the web or internet payment gateway form. Ach check processing and electronic check processing or checksbyphone are just some of the ways to accept electronic payments from your online and offline customers. Capturing customers check information with our online payment gateway or integrated into your shopping cart with our secure API and converting it into an electronic transaction can save you both time and money as opposed to paper drafts and paper deposits. High Risk ACH Processing is available for all any business types including but not limited to High Risk Merchants and Low Risk Merchants as well as businesses that have not been able to be approved for credit card processing because of their business type or location. Visit our site and apply securely online now for checks by phone, check processing online, or a virtual terminal.

  32. offshore merchant accounts says:

    I do believe all the concepts you have offered in your post. They are really convincing and can certainly work. Still, the posts are very quick for novices. May you please prolong them a little from subsequent time? Thank you for the post.

Leave a Reply

About Strata Extensions

Kirix Strata enables you to create plug-ins that extend the functionality of the software. This section is dedicated to showing off the extensions people have created. Feel free to download any of them and try them out. If you have one you'd like to list, please let us know.

Get the Latest and Greatest

We'll be continuously adding extensions to this list -- both our own creations as well as those submitted by the community. You can stay up-to-date with the latest by subscribing to the extension blog feed:

Get the Extension RSS Feed here.