<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx</link><description>While I was poking through my old numeric analysis textbooks to refresh my memory for this series on floating point arithmetic, I came across one of my favourite weird facts about math. A nonzero base-ten integer starts with some digit other than zero.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351712</link><pubDate>Wed, 12 Jan 2005 20:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351712</guid><dc:creator>Alex Papadimoulis</dc:creator><description>Thanks, Eric. Great educational post!</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351746</link><pubDate>Wed, 12 Jan 2005 21:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351746</guid><dc:creator>G. Man</dc:creator><description>Heh, you going to put this on the daily WTF? I was with Eric until the last paragraph and then I was going &amp;quot;WTF&amp;quot;!&lt;br&gt;</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351758</link><pubDate>Wed, 12 Jan 2005 21:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351758</guid><dc:creator>Jon Galloway</dc:creator><description>Thanks for taking the time to write this up. Really interesting!</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351774</link><pubDate>Wed, 12 Jan 2005 22:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351774</guid><dc:creator>Marcus</dc:creator><description>How odd, I was just discussing Benford with a mate over a pizza the other day, and we sort of touched upon most of this.&lt;br&gt;&lt;br&gt;Great post, as always though.</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351779</link><pubDate>Wed, 12 Jan 2005 22:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351779</guid><dc:creator>Gabe Halsmer</dc:creator><description>&lt;br&gt;Subtle indeed.  What does the leading digit have to do with errors in representation?&lt;br&gt;</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351794</link><pubDate>Wed, 12 Jan 2005 22:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351794</guid><dc:creator>Adi Oltean</dc:creator><description>I remember that the guy who discovered this noticed that the a used book containing the logaritmic tables was worn more around the numbers starting with the &amp;quot;1&amp;quot; digit, and less and less going to higher digits...  </description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351833</link><pubDate>Thu, 13 Jan 2005 00:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351833</guid><dc:creator>James</dc:creator><description>Interesting, but I'm sure if you gave a bunch of people in the financial industry the option of working with floating point in base ten, they would jump at the chance of an order-of-magnitude speed improvement. Their error bounds are defined in base 10 anyway.</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351849</link><pubDate>Thu, 13 Jan 2005 00:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351849</guid><dc:creator>Norman Diamond</dc:creator><description>1/12/2005 2:50 PM Adi Oltean&lt;br&gt;&lt;br&gt;&amp;gt; a used book containing the logaritmic tables&lt;br&gt;&amp;gt; was worn more around the numbers starting&lt;br&gt;&amp;gt; with the &amp;quot;1&amp;quot; digit,&lt;br&gt;&lt;br&gt;Yes, I think Martin Gardner published that story (though was he first or second to do so?).  Anyway, it made me think that the opposite book, containing exponential tables, would be uniformly worn.  The contents of such a book would be uniformly distributed on the value of the argument (say x) but skewed on the value of the exponential (e**x), and most of the values found in it would be where the numeral for the e**x value starts with a relatively low digit.&lt;br&gt;&lt;br&gt;1/12/2005 4:10 PM James&lt;br&gt;&lt;br&gt;&amp;gt; Interesting, but I'm sure if you gave a&lt;br&gt;&amp;gt; bunch of people in the financial industry&lt;br&gt;&amp;gt; the option of working with floating point in&lt;br&gt;&amp;gt; base ten, they would jump at the chance of&lt;br&gt;&amp;gt; an order-of-magnitude speed improvement.&lt;br&gt;&lt;br&gt;What speed improvement?  Hardware to do base 10 arithmetic is grossly slower than hardware to do base 2 arithmetic, and making it floating instead of fixed would not lessen that slowness.&lt;br&gt;&lt;br&gt;&amp;gt; Their error bounds are defined in base 10&lt;br&gt;&amp;gt; anyway.&lt;br&gt;&lt;br&gt;Sure.  Do you mean that financial programmers would find an order-of-magnitude speed improvement by doing programming using base 10 floating instead of either base 10 fixed or binary floating?  I doubt that very much.&lt;br&gt;&lt;br&gt;'Course, financial programmers will always have it easier than programmers for space ships or even cars.  Accuracy equivalent to twenty decimal digits can be done by using twenty decimal digits, but that's nowhere near accurate enough for some kinds of physical operations.</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351859</link><pubDate>Thu, 13 Jan 2005 01:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351859</guid><dc:creator>James</dc:creator><description>Norman Diamond, Mike Cowlishaw's presentation to the C committee from before Kona contains some interesting figures (I missed it, being C++):&lt;br&gt;&lt;a target="_new" href="http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1037.pdf"&gt;http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1037.pdf&lt;/a&gt;</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#351874</link><pubDate>Thu, 13 Jan 2005 01:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:351874</guid><dc:creator>pete23</dc:creator><description>top post. great exposition (i'd encountered this before, but hadn't realised it wasn't benford's)</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#352058</link><pubDate>Thu, 13 Jan 2005 10:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:352058</guid><dc:creator>thomas woelfer</dc:creator><description>Eric,&lt;br&gt;&lt;br&gt;thanks - that was fun.&lt;br&gt;&lt;br&gt;WM_THX&lt;br&gt;thomas woelfer</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#352139</link><pubDate>Thu, 13 Jan 2005 14:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:352139</guid><dc:creator>Marcus Tucker</dc:creator><description>Cheers for another fascinating post, Eric!</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#352291</link><pubDate>Thu, 13 Jan 2005 18:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:352291</guid><dc:creator>Eric Wallace</dc:creator><description>Reminds me of a favorite Dilbert cartoon, in which he gets a tour of the accounting dungeon... The tour guide says, &amp;quot;Over here we have our Random Number Generator...&amp;quot; as they pass a troll spouting the words &amp;quot;NINE NINE NINE NINE NINE NINE NINE NINE&amp;quot;. Dilbert asks, &amp;quot;Are you sure that's random?&amp;quot;&lt;br&gt;&lt;br&gt;The response--&amp;quot;That's the problem with randomness: you can never be sure.&amp;quot; Heh.&lt;br&gt;&lt;br&gt;Oh, and thanks for the tax tips!&lt;br&gt;&lt;br&gt;      ~ewall</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#352442</link><pubDate>Thu, 13 Jan 2005 21:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:352442</guid><dc:creator>Todd</dc:creator><description>Awsome post.</description></item><item><title>Check Out The Big Brain on Eric</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#353201</link><pubDate>Fri, 14 Jan 2005 23:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:353201</guid><dc:creator>Stack Of Toast</dc:creator><description /></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#355458</link><pubDate>Tue, 18 Jan 2005 21:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:355458</guid><dc:creator>Dave Bacher</dc:creator><description>Just as a comment...&lt;br&gt;&lt;br&gt;The advantage to decimal over the current format is that most readings taken &amp;quot;in the real world&amp;quot; by &amp;quot;real people&amp;quot; of anything of scientific or financial intrest aren't in base 2, and therefore anything that better represents things of interest to most people in the real world in the manner in which they are measured is likely to be better accepted.&lt;br&gt;&lt;br&gt;It's slower, and optimizing hardware for it is more difficult, but if given a choice between being able to represent a .1 interval precisely as it is measured or not being able to measure it precisely as it is measured, I think most people would pick slow and precise over fast and inaccurate for their simulations, etc.&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#355475</link><pubDate>Tue, 18 Jan 2005 21:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:355475</guid><dc:creator>Eric Lippert</dc:creator><description>Hence the &amp;quot;decimal&amp;quot; type in C#, VB6 and VB.NET. A decimal is a 96 bit integer scaled by a power of ten.  The power can be any exponent from 0 to -28, which means that 0.1 can be represented exactly.&lt;br&gt;&lt;br&gt;Similarly, the Currency type in VBScript is a 64 bit integer with a fixed exponent of 10^-4.  That can also represent 0.1 exactly.&lt;br&gt;&lt;br&gt;Both systems trade execution speed for decimal precision.  I don't know why more people don't use them.&lt;br&gt;</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#415248</link><pubDate>Sat, 07 May 2005 02:13:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:415248</guid><dc:creator>Ken Warren</dc:creator><description>Multiplications explain the tendency for financial data to follow Benson's, but what about data from nature? River lengths show it for instance, irrespective of the units (miles, kilometres - even inches) used.</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#415368</link><pubDate>Sat, 07 May 2005 15:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:415368</guid><dc:creator>Eric Lippert</dc:creator><description>Look at it this way:  take a set of river lengths.  Pick Measuring System #1, and determine the distribution of first digits.  Suppose it's &amp;quot;miles&amp;quot;&lt;br&gt;&lt;br&gt;Now pick a random number, say 12.3.  Say a &amp;quot;frob&amp;quot; is 1/12.3 miles.  Multiply every length by that number, so that you've now got a set of measurements in frobs, not miles.&lt;br&gt;&lt;br&gt;Check out the new distribution.&lt;br&gt;&lt;br&gt;Would you expect the distributions of first digits to be roughly the same whether in miles or frobs?  Would you expect it to be the same given ANY choice of measuring unit?&lt;br&gt;&lt;br&gt;Such sets are &amp;quot;scale invariant&amp;quot;, and the only distribution which is scale invariant is the Benford's Law distribution.</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#421749</link><pubDate>Wed, 25 May 2005 19:24:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:421749</guid><dc:creator>Jerry</dc:creator><description>Very Interesting. Now I'm wondering if as a Fibonacci Series. In Elliot Wave Theory, the stock market moves up and down based on Fibonacci series. And This series can be found ad infinitum in long term and short term charts. So my question is, does Benfords law apply if let's say the Stock market hit 1000. Could you drop the first digit and apply benfords law to the 2nd digit as if it were the 1st. And so forth. Am I just blabbering or is there patterns within patterns using Benfords Law</description></item><item><title>re: Benford's Law and the Grocery Store Receipt Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#423922</link><pubDate>Wed, 01 Jun 2005 20:55:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:423922</guid><dc:creator>RICHARD PALMER</dc:creator><description>This is a &amp;quot;MSD&amp;quot; law (Most Significant Digit).  It is interesting to think about what an LSD law would look like.  Consider what I will call a &amp;quot;Grocery Store Receipt&amp;quot; law.  I am thinking about a receipt from a grocery store that shows quantities, prices, and total cost (Q*P).  Assume quantities are uniformly distributed (not true in reality) &amp;amp; that prices are uniformly distributed.  Then the distribution of the LSD of total costs is NOT uniformly distributed.</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#425061</link><pubDate>Sat, 04 Jun 2005 02:10:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:425061</guid><dc:creator>Johnny Sprada</dc:creator><description>Jerry -&lt;br&gt;Check out the graphic chart at this link:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.aicpa.org/pubs/jofa/may1999/nigrini.htm"&gt;http://www.aicpa.org/pubs/jofa/may1999/nigrini.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;I as per Mark Nigrini's web site, I made a list of the sizes of all the files on my C: drive (Window's machine) and applied Benford's Law to the list of numbers.  It was quite amazing to see that the law applied to the file sizes with two anomalies:  those beginning with the digits 5 and 7.. these happen to be font files and DLL's.  Applying Benford's to not only the first digit, but the first and second combination, first second and third, etc... can reveal all types of anomalies.</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#1462735</link><pubDate>Sun, 14 Jan 2007 01:01:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1462735</guid><dc:creator>Mike Blakley</dc:creator><description>&lt;p&gt;There are a wide variety of uses for the application of Benford's law - detection of tax fraud, voting (ballot box) fraud, &amp;quot;curb-stoning&amp;quot; in surveys, etc. &amp;nbsp;I have also posed an Excel workbook at &lt;a rel="nofollow" target="_new" href="http://www.ezrstats.com/EZSXL/Test_Benfords_law.xls"&gt;http://www.ezrstats.com/EZSXL/Test_Benfords_law.xls&lt;/a&gt; with all the formulae - first 1-3 digits, last 1-2 digits, second digit, etc.&lt;/p&gt;
</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#1508837</link><pubDate>Mon, 22 Jan 2007 20:10:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1508837</guid><dc:creator>Stephen Druley</dc:creator><description>&lt;p&gt;Eric,&lt;/p&gt;
&lt;p&gt;Do you have a vba code example that will help me understand your example?&lt;/p&gt;
&lt;p&gt;Could Benford's law be used to test the legitimacy of a gaussian time series?&lt;/p&gt;
</description></item><item><title>re: Benford's Law</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/12/benford-s-law.aspx#4164251</link><pubDate>Wed, 01 Aug 2007 12:06:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4164251</guid><dc:creator>John Morrow</dc:creator><description>&lt;p&gt;There is a free utility which will do Benford's law analysis on Comma Separated Value files here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.checkyourdata.com"&gt;http://www.checkyourdata.com&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>