{"items":["60214545e5937f001712e338","60214545e5937f001712e339"],"styles":{"galleryType":"Columns","groupSize":1,"showArrows":true,"cubeImages":true,"cubeType":"max","cubeRatio":1.7777777777777777,"isVertical":true,"gallerySize":30,"collageAmount":0,"collageDensity":0,"groupTypes":"1","oneRow":false,"imageMargin":5,"galleryMargin":0,"scatter":0,"rotatingScatter":"","chooseBestGroup":true,"smartCrop":false,"hasThumbnails":false,"enableScroll":true,"isGrid":true,"isSlider":false,"isColumns":false,"isSlideshow":false,"cropOnlyFill":false,"fixedColumns":0,"enableInfiniteScroll":true,"isRTL":false,"minItemSize":50,"rotatingGroupTypes":"","rotatingCropRatios":"","columnWidths":"","gallerySliderImageRatio":1.7777777777777777,"numberOfImagesPerRow":3,"numberOfImagesPerCol":1,"groupsPerStrip":0,"borderRadius":0,"boxShadow":0,"gridStyle":0,"mobilePanorama":false,"placeGroupsLtr":true,"viewMode":"preview","thumbnailSpacings":4,"galleryThumbnailsAlignment":"bottom","isMasonry":false,"isAutoSlideshow":false,"slideshowLoop":false,"autoSlideshowInterval":4,"bottomInfoHeight":0,"titlePlacement":["SHOW_ON_THE_RIGHT","SHOW_BELOW"],"galleryTextAlign":"center","scrollSnap":false,"itemClick":"nothing","fullscreen":true,"videoPlay":"hover","scrollAnimation":"NO_EFFECT","slideAnimation":"SCROLL","scrollDirection":0,"scrollDuration":400,"overlayAnimation":"FADE_IN","arrowsPosition":0,"arrowsSize":23,"watermarkOpacity":40,"watermarkSize":40,"useWatermark":true,"watermarkDock":{"top":"auto","left":"auto","right":0,"bottom":0,"transform":"translate3d(0,0,0)"},"loadMoreAmount":"all","defaultShowInfoExpand":1,"allowLinkExpand":true,"expandInfoPosition":0,"allowFullscreenExpand":true,"fullscreenLoop":false,"galleryAlignExpand":"left","addToCartBorderWidth":1,"addToCartButtonText":"","slideshowInfoSize":200,"playButtonForAutoSlideShow":false,"allowSlideshowCounter":false,"hoveringBehaviour":"NEVER_SHOW","thumbnailSize":120,"magicLayoutSeed":1,"imageHoverAnimation":"NO_EFFECT","imagePlacementAnimation":"NO_EFFECT","calculateTextBoxWidthMode":"PERCENT","textBoxHeight":26,"textBoxWidth":200,"textBoxWidthPercent":65,"textImageSpace":10,"textBoxBorderRadius":0,"textBoxBorderWidth":0,"loadMoreButtonText":"","loadMoreButtonBorderWidth":1,"loadMoreButtonBorderRadius":0,"imageInfoType":"ATTACHED_BACKGROUND","itemBorderWidth":0,"itemBorderRadius":0,"itemEnableShadow":false,"itemShadowBlur":20,"itemShadowDirection":135,"itemShadowSize":10,"imageLoadingMode":"BLUR","expandAnimation":"NO_EFFECT","imageQuality":90,"usmToggle":false,"usm_a":0,"usm_r":0,"usm_t":0,"videoSound":false,"videoSpeed":"1","videoLoop":true,"jsonStyleParams":"","gallerySizeType":"px","gallerySizePx":1000,"allowTitle":true,"allowContextMenu":true,"textsHorizontalPadding":-30,"itemBorderColor":{"themeName":"color_12","value":"rgba(164,204,244,0)"},"showVideoPlayButton":true,"galleryLayout":2,"calculateTextBoxHeightMode":"MANUAL","targetItemSize":1000,"selectedLayout":"2|bottom|1|max|true|0|true","layoutsVersion":2,"selectedLayoutV2":2,"isSlideshowFont":true,"externalInfoHeight":26,"externalInfoWidth":0.65},"container":{"width":300,"galleryWidth":305,"galleryHeight":0,"scrollBase":0,"height":null}}

# Use This Tool to Look for Fraud in Big Data

The April 2017 Journal of Accountancy had an interesting article regarding the use of Benford’s Law to spot fraud. I experimented with real-life data and determined that Benford's Law can be used to quickly scan huge datasets for potential fraud indicators. The underlying idea is that natural patterns are everywhere, even in data that might appear, at first blush, to be random.

**Benford’s Law**

In the 1930’s, engineer and physicist Frank Benford was looking at a book containing logarithmic tables and noticed that pages early in the book were more tattered than pages appearing later in the book. Over time, Benford studied many other datasets and observed the same pattern…that is, ‘1’ appeared most frequently and ‘9’ appeared least frequently when evaluating the first (left-most) digit of each number in a column. The first digit is generally distributed in a pattern that resembles a logarithmic scale.

According to Benford’s Law, the expected distribution of the first (left-most) digit of a number is shown below:

** How Can Benford’s Law Spot Potential Fraud?**

If a dataset is real (naturally generated), and if the dataset spans multiple orders of magnitude (e.g. – it is not a narrow range of numbers between, say, 1 and 5), then Benford’s Law will likely apply. It is a perfect tool to use on either Big Data, or on an organization’s smaller datasets. The process of evaluating a dataset is straight forward:

The first (left-most) non-zero digit of each number in a column (e.g. transaction amount) is stripped off and placed into a new column; the other digits in each number are discarded

Using the newly created column of numbers (each number is now only 1 digit), count each occurrence of 1, 2, 3, 4, 5, 6, 7, 8, and 9

Plot the results and compare them to Benford’s expected distribution

If the result is significantly different than Benford’s Law, then raise a red flag

It is unlikely that someone committing fraud will have the awareness, or make the effort, to ensure that manufactured data follows naturally occurring patterns.

**Example of Benford's Law Using Real Data**

Credit Card Transactions

I obtained a dataset containing 282,982 European credit card transactions from a two-day period in 2013 from Kaggle.com (personal information was not included in the dataset). The evaluation process outlined above was applied to purchase amount column of the dataset with the following result:

The real credit card transactions, illustrated above, closely resemble what would be expected according to Benford’s Law.

But, what if I manufacture data using Excel’s random number function to generate 282,982 credit card purchase amounts? Here is that result - fake data looks nothing like Benford's Law!

A red flag should be raised and the data should be reviewed with a skeptical eye.

Real-World Applications

This technique has many potential applications including:

Part of the validation process for automated data feeds

Analytical review large balance sheet accounts such as accounts receivable

Reviewing the trial balance of an acquisition target

Examining a database of insurance claims

Evaluating any number of Big Data metrics, including data that you may have bought for research or sales analysis

The list of applications is essentially endless. The technique applies to all industries and to both financial and operational metrics. It is important to use this tool carefully because false positives may occur, or certain datasets may not yield meaningful results. Add this to your toolbox and see what you can discover.

**Citations**

Collins, C., CPA. (April, 2017). Using Excel and Benford's Law to Detect Fraud. Journal of Accountancy, 44-50.

Dal Pozzolo, A., Caelen, O., Johnson, R., & Bontempi, G. (2015). Calibrating Probability with Undersampling for Unbalanced Classification. In Symposium on Computational Intelligence and Data Mining (CIDM). Retrieved June 08, 2017, from www.kaggle.com.