A little Flash application provides a compelling example of Benford's Law, making it possible to see intuitively something that is otherwise quite abstract.

Yesterday, I blogged about Benford's Law, which predicts that in a set of numbers, numbers that begin with the numeral 1 will appear more often than other numbers. This can be used to catch cheats by checking to see if the data they give in their tax-returns, research data-sets or homework have more numbers that start with 1 than other numerals.

William Fawcett, who made the Flash app, sez, "A couple of years ago I attended an excellent lecture by Simon Singh - he writes popular science and maths books like Fermat's Last Theorem and Big Bang - and this was one of the mathematical curiosities he mentioned. I was intrigued but sceptical, so built a quick Flash app to test it."
Link
(*Thanks, William!*)

Update: Gary sez, " If you use a close approximation of PI (say 3.14159265) as a factor, you can avoid getting numbers that start with 1 at all. Using a factor of 3.14159265 and a start number of 3, you get no numbers starting with 1. Change the start number to 6, you get only numbers starting with 1, 4, or 5. I don't know how the modeler is coded, so I wonder whether this is a quirk in the modeler or an exception to the rule."

Update 2: Bob solves the mystery (also thanks to Bernardo for his explanation):

This result comes not because he used pi, but because pi is an approximation of the square root of 10. (3.16 is closer than 3.14.) If you use 3.16 as the multiplying factor (31.6 and 316 also work), the signifigant digit will always be one of two numbers (this works best if you use a single-digit number for the start number).
If you use 1 or 10 or 100 as the multiplying factor, of course all numbers will start with the same digit (the starting digit of the start number).

If you use the cube root of a power of 10 such as 2.154 (21.54, 215.4, and 2154 also work), all results will start with one of 3 digits. And so on.

The results using decimal approximations depend on the Flash app stopping when the 25th occurence is reached. Since an exact square or cube root of ten can't be expressed as a decimal, the distribution would eventually comply with Benford's Law if the 25th occurence limitation was removed.

report this ad

The Cobham catalog, exposed by The Intercept, features countless pages of surveillance gadgets sold to U.S. police to spy on American citizens: tiny black boxes with a big interest in you. In the creepily bland feature lists and nerdy product names is a whisper of a dark future; perhaps darker than anyone can imagine.

This image depicts the most commonly-found stylesheet colors on the web’s top sites—Paul Hebert did an amazing amount of analysis and this is just one of the intriguing visualizations he came up with. Most of these are obvious staples, especially HTML red and blue, though it’s interesting how far the blue “cluster” is from the […]

With the cacophony of an election year ablaze with unparalleled drama being fought on the front lines of Twitter, we find ourselves slowing down and staring at it like a bad accident. The need for escapist relief is perhaps more dire than usual right now. This fall, if it’s drama you crave, but the Hillary […]

With this comprehensive course in App & Game Development for iOS and Android, you’ll be able to take full advantage of this career opportunity without committing to going back to school full time. You’ll learn how to build immersive, interactive games and apps from start to finish using Python, C#, Unity, and HTML—some of the most in-demand programming […]

CloudPress is a responsive WordPress theme builder that allows you to create a whole site in less than 30 minutes. CloudPress comes with tools like pre-built headers, content blocks, and footers—all you have to do is pick what you like, and drag and drop. With your subscription, you get access to 13 professionally designed WordPress themes, over 80 […]

If you own a dog, you’ve most likely heard of BarkBox – the monthly subscription box for dogs. What started as a simple idea to try out the subscription model on pet owners has since developed a cult following of dog lovers. If you haven’t given it a try yet, this one month free deal is the […]

report this ad