Lucas Kent e39465ad2f Changes to be committed:
new file:   Files/flashplayer_32_sa.exe
	new file:   favicon.ico
	new file:   globe.gif
	new file:   imgs/download.png
	new file:   imgs/zuck.jpg
	new file:   index.html
	new file:   other.ico
	new file:   script.js
	new file:   site.webmanifest
	new file:   sitemap.html
	new file:   styles/backround.css
	new file:   styles/border.css
	new file:   styles/fonts/Titillium_Web/OFL.txt
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf
	new file:   styles/fonts/webfontkit-20221027-163353/generator_config.txt
	new file:   styles/fonts/webfontkit-20221027-163353/specimen_files/grid_12-825-55-15.css
	new file:   styles/fonts/webfontkit-20221027-163353/specimen_files/specimen_stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-163353/stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-demo.html
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff2
	new file:   styles/fonts/webfontkit-20221027-165950/generator_config.txt
	new file:   styles/fonts/webfontkit-20221027-165950/specimen_files/grid_12-825-55-15.css
	new file:   styles/fonts/webfontkit-20221027-165950/specimen_files/specimen_stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-165950/stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-demo.html
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff2
	new file:   styles/style.css
	new file:   tools/2048/.gitignore
	new file:   tools/2048/.jshintrc
	new file:   tools/2048/CONTRIBUTING.md
	new file:   tools/2048/LICENSE.txt
	new file:   tools/2048/README.md
	new file:   tools/2048/Rakefile
	new file:   tools/2048/favicon.ico
	new file:   tools/2048/index.html
	new file:   tools/2048/js/animframe_polyfill.js
	new file:   tools/2048/js/application.js
	new file:   tools/2048/js/bind_polyfill.js
	new file:   tools/2048/js/classlist_polyfill.js
	new file:   tools/2048/js/game_manager.js
	new file:   tools/2048/js/grid.js
	new file:   tools/2048/js/html_actuator.js
	new file:   tools/2048/js/keyboard_input_manager.js
	new file:   tools/2048/js/local_storage_manager.js
	new file:   tools/2048/js/tile.js
    new file:   tools/2048/meta/apple-touch-icon.png
	new file:   tools/webretro/cores/neocd_libretro.js
	new file:   tools/webretro/cores/neocd_libretro.wasm
	new file:   tools/webretro/cores/nestopia_libretro.js
	new file:   tools/webretro/cores/nestopia_libretro.wasm
	new file:   tools/webretro/cores/o2em_libretro.js
	new file:   tools/webretro/cores/o2em_libretro.wasm
	new file:   tools/webretro/cores/opera_libretro.js
	new file:   tools/webretro/cores/opera_libretro.wasm
2022-11-02 08:40:01 -04:00

326 lines
14 KiB
HTML

<!doctype html>
<html lang="en"><!-- #BeginTemplate "../Templates/Main.dwt" --><!-- DW6 -->
<!-- Mirrored from www.mathsisfun.com/numbers/benfords-law.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:45:40 GMT -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>First Digits Rule! (Benford's Law)</title>
<meta name="Description" content="Math explained in easy language, plus puzzles, games, quizzes, worksheets and a forum. For K-12 kids, teachers and parents." />
<!-- #EndEditable -->
<meta name="keywords" content="math, maths, mathematics, school, homework, education">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="HandheldFriendly" content="true">
<meta http-equiv="pics-label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.mathsisfun.com" r (SS~~000 1))'>
<link rel="stylesheet" type="text/css" href="../style3.css" />
<script src="../main3.js" type="text/javascript"></script>
</head>
<body id="bodybg">
<div class="bg">
<div id="stt"></div>
<div id="hdr"></div>
<div id="logo"><a href="../index.html"><img src="../images/style/logo.svg" alt="Math is Fun" /></a></div>
<div id="gtran"><script type="text/javascript">document.write(getTrans());</script></div>
<div id="gplus"><script type="text/javascript">document.write(getGPlus());</script></div>
<div id="adTopOuter" class="centerfull noprint">
<div id="adTop">
<script type="text/javascript">document.write(getAdTop());</script>
</div>
</div>
<div id="adHide">
<div id="showAds1"><a href="javascript:showAds()">Show Ads</a></div>
<div id="hideAds1"><a href="javascript:hideAds()">Hide Ads</a><br>
<a href="../about-ads.html">About Ads</a></div>
</div>
<div id="menuWide" class="menu">
<script type="text/javascript">document.write(getMenu(0));</script>
</div>
<div id="linkto">
<div id="linktort"><script type="text/javascript">document.write(getLinks());</script></div>
</div>
<div id="search" role="search"><script type="text/javascript">document.write(getSearch());</script></div>
<div id="menuSlim" class="menu">
<script type="text/javascript">document.write(getMenu(1));</script>
</div>
<div id="menuTiny" class="menu">
<script type="text/javascript">document.write(getMenu(2));</script>
</div>
<div id="extra"></div>
</div>
<div id="content" role="main"><!-- #BeginEditable "Body" -->
<h1 align="center">First Digits Rule!<br>
(Benford's Law)
</h1>
<p class="center larger">Don't cheat with numbers,
they can give you away.
<br>
So says <i>Benford's Law.</i><br>
<img src="images/number-smile.gif" width="177" height="98" alt="numbers smile" /></p>
<h2>First Digits</h2>
<p>How often would you expect a <b>&quot;1&quot;</b> to be the first digit in a set of numbers?</p>
<div class="example">
<h3>Example: you are looking at a list of expenses, with numbers like:</h3>
<ul>
<li>$65.20 (first digit is <b>6</b>)</li>
<li>$35.00 (first digit is <b>3</b>)</li>
<li>$7.50 (first digit is <b>7</b>)</li>
<li>$12.50 (first digit is <b>1</b>)</li>
</ul>
<p>Would there be as many <span class="larger"><b>1</b></span>'s as <span class="larger"><b>2</b></span>'s for the first digit?</p>
</div>
<p>Well <span class="larger"><b>1</b></span> is just a number like <span class="larger"><b>2</b></span> to <span class="larger"><b>9</b></span>, right? </p>
<p>So it seems like it <b>should</b> be the first digit <b>1 out of 9 times (about 11%)</b>:</p>
<table border="0" align="center">
<tr align="center">
<td width="45">1</td>
<td width="45">2</td>
<td width="45">3</td>
<td width="45">4</td>
<td width="45">5</td>
<td width="45">6</td>
<td width="45">7</td>
<td width="45">8</td>
<td width="45">9</td>
</tr>
<tr align="center">
<td width="45">11%</td>
<td width="45">11%</td>
<td width="45">11%</td>
<td width="45">11%</td>
<td width="45">11%</td>
<td width="45">11%</td>
<td width="45">11%</td>
<td width="45">11%</td>
<td width="45">11%</td>
</tr>
</table>
<p class="large"><b>But no!</b> </p>
<p>A man called Dr. Frank Benford discovered that in many cases, the number <span class="larger"><b>1</b></span> is the first digit <b>about 30% of the time</b>. </p>
<p>And the poor old number <span class="larger"><b>9</b></span> is the first digit <b>only 5%</b> of the time.</p>
<div class="fun">
<p style="float:right; margin: 0 0 5px 10px;"><img src="../algebra/images/logarithm-book.jpg" width="91" height="90" alt="logarithm book" /></p>
<p>The story is that a man called Simon Newcomb noticed a book of <a href="../algebra/logarithms.html">logarithms</a> was <b>very worn at the start</b> but not at the end. </p>
<p><i>&quot;Why are people more interested in 1's and 2's than 8's and 9's?&quot;</i> </p>
<p>He decided to investigate! (Would you investigate something odd?)</p>
</div> <p>Dr. Benford found this amazing thing also happened with baseball statistics, areas of rivers, population sizes, street addresses and many more cases.</p>
<h2>Why is this?</h2>
<p>Well, let's think about street addresses:</p>
<div class="example">
<h3>What are the first digits of house numbers?</h3>
<ul>
<li>some streets are short: 1,2,3,4,5,6 </li>
<li>some streets are longer: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 (notice how many, have 1 as the first digit?).</li>
<li>other streets are a bit longer, with numbers from 1 to 30 (many &quot;1&quot;s and &quot;2&quot;s)</li>
<li>And when the streets are very long we have lots of them starting at 100.</li>
</ul>
<p>The result is that numbers starting with 1 are more common, 2 is also fairly common and 9 least of all.</p>
</div>
<div class="example">
<h3> Example: Stock Prices</h3>
<p>Let us say a price starts at 1.00, and goes up 10% each time:</p>
<table border="0" align="center">
<tr align="center">
<th width="100">Price</th>
<th width="100">First Digit</th>
</tr>
<tr align="center"> <td>1.00</td> <td>1</td> </tr>
<tr align="center"> <td>1.10</td> <td>1</td> </tr>
<tr align="center"> <td>1.21</td> <td>1</td> </tr>
<tr align="center"> <td>1.33</td> <td>1</td> </tr>
<tr align="center"> <td>1.46</td> <td>1</td> </tr>
<tr align="center"> <td>1.61</td> <td>1</td> </tr>
<tr align="center"> <td>1.77</td> <td>1</td> </tr>
<tr align="center"> <td>1.95</td> <td>1</td> </tr>
<tr align="center"> <td>2.14</td> <td>2</td> </tr>
<tr align="center"> <td>2.36</td> <td>2</td> </tr>
<tr align="center"> <td>2.59</td> <td>2</td> </tr>
<tr align="center"> <td>2.85</td> <td>2</td> </tr>
<tr align="center"> <td>3.14</td> <td>3</td> </tr>
<tr align="center"> <td>3.45</td> <td>3</td> </tr>
<tr align="center"> <td>3.80</td> <td>3</td> </tr>
<tr align="center"> <td>4.18</td> <td>4</td> </tr>
<tr align="center"> <td>4.59</td> <td>4</td> </tr>
<tr align="center"> <td>5.05</td> <td>5</td> </tr>
<tr align="center"> <td>5.56</td> <td>5</td> </tr>
<tr align="center"> <td>6.12</td> <td>6</td> </tr>
<tr align="center"> <td>6.73</td> <td>6</td> </tr>
<tr align="center"> <td>7.40</td> <td>7</td> </tr>
<tr align="center"> <td>8.14</td> <td>8</td> </tr>
<tr align="center"> <td>8.95</td> <td>8</td> </tr>
<tr align="center"> <td>9.85</td> <td>9</td> </tr>
</table>
<p>Lots of <b>1</b>'s, quite a few <b>2</b>'s, less <b>3</b>'s, etc</p>
</div>
<h2>The Result</h2>
<p>In fact Benford figured that the probability of a first digit being <b>d</b> is:</p>
<p class="center large">P(d) = log<sub>10</sub>(1 + 1/d)</p>
<div class="example">
<h3>Example: the probability of a first digit of 2:</h3>
<div class="tbl">
<div class="row"><span class="left"><span class="center larger">P(2) </span></span><span class="right"><span class="center larger">= log<sub>10</sub>(1 + 1/2)</span></span></div>
<div class="row"><span class="left">&nbsp;</span><span class="right"><span class="center larger">= log<sub>10</sub>(1.5)</span></span></div>
<div class="row"><span class="left">&nbsp;</span><span class="right"><span class="center larger">= 0.17609...</span></span></div>
<div class="row"><span class="left">&nbsp;</span><span class="right"><span class="center larger">= 17.6% (rounded)</span></span></div>
</div>
</div>
<p>And these are the probabilities:</p>
<table border="0" align="center">
<tr align="center">
<td width="55">1</td>
<td width="55">2</td>
<td width="55">3</td>
<td width="55">4</td>
<td width="55">5</td>
<td width="55">6</td>
<td width="55">7</td>
<td width="55">8</td>
<td width="55">9</td>
</tr>
<tr align="center">
<td width="55">30.1%</td>
<td width="55">17.6%</td>
<td width="55">12.5%</td>
<td width="55">9.7%</td>
<td width="55">7.9%</td>
<td width="55">6.7%</td>
<td width="55">5.8%</td>
<td width="55">5.1%</td>
<td width="55">4.6%</td>
</tr>
</table>
<div class="example">
<h3>Example: Sam went through a list of 100 work expenses for the year.</h3>
<p>There was $1.95 for a pen, $4.95 for a marker, etc. Here are the counts of the <b>first digits</b>:</p>
<table border="0" align="center">
<tr>
<td align="right">First Digit:</td>
<td width="35" align="right">1</td>
<td width="35" align="right">2</td>
<td width="35" align="right">3</td>
<td width="35" align="right">4</td>
<td width="35" align="right">5</td>
<td width="35" align="right">6</td>
<td width="35" align="right">7</td>
<td width="35" align="right">8</td>
<td width="35" align="right">9</td>
</tr>
<tr>
<td align="right">Count:</td>
<td width="35" align="right">26</td>
<td width="35" align="right">19</td>
<td width="35" align="right">10</td>
<td width="35" align="right">11</td>
<td width="35" align="right">9</td>
<td width="35" align="right">15</td>
<td width="35" align="right">2</td>
<td width="35" align="right">5</td>
<td width="35" align="right">4</td>
</tr>
</table>
<p>It follows Benford's Law pretty well. </p>
<p>Except there are a lot of &quot;6&quot;s, because printer paper costs $6 and they buy a lot of it.</p>
</div>
<h2>Lotteries</h2>
<p style="float:right; margin: 0 0 5px 10px;"><img src="../data/images/lottery-ticket.jpg" width="200" height="82" alt="lottery ticket" /></p>
<p><a href="../data/lottery.html">Lottery</a> numbers <b>don't</b> follow this rule, because they aren't the size or amount of anything, they are really just symbols (and a lottery would work as well using letters or pictures).</p>
<h2>Finding Cheaters</h2>
<p style="float:left; margin: 0 10px 5px 0;"><img src="images/number-surprise.gif" width="80" height="118" alt="number surprise" /></p> <p>When people try to fake numbers they often choose the first digit randomly and end up with as many &quot;9&quot;s as &quot;1&quot;s.</p>
<p>But a computer program can go through all the numbers and count first digits to see how often a &quot;1&quot; appears compared to a &quot;5&quot; or &quot;9&quot;. If it looks suspicious ... watch out!</p>
<p>This can help uncover tax cheats, election rigging and more.</p>
<p>&nbsp;</p>
<div class="fun">
<h3>Your Turn</h3>
<p>Gather a list of 100 numbers from a category of your choosing. Make sure the numbers count or measure something (and aren't just symbols). </p>
<p>Here are some suggestions:</p>
<ul>
<li>House Numbers</li>
<li>City populations</li>
<li>Supermarket prices</li>
<li>Used car prices</li>
</ul>
<p>Find their first digits and complete&nbsp;this table:</p>
<table border="2" align="center">
<tr>
<td height="40" align="right"><b>First Digit:</b></td>
<td width="35" align="right"><b>1</b></td>
<td width="35" align="right"><b>2</b></td>
<td width="35" align="right"><b>3</b></td>
<td width="35" align="right"><b>4</b></td>
<td width="35" align="right"><b>5</b></td>
<td width="35" align="right"><b>6</b></td>
<td width="35" align="right"><b>7</b></td>
<td width="35" align="right"><b>8</b></td>
<td width="35" align="right"><b>9</b></td>
</tr>
<tr>
<td height="40" align="right"><b>Count:</b></td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
</tr>
</table>
<p>What did you find?</p>
<p>&nbsp;</p>
<h3>Bonus Activity</h3>
<p>Get some friends to make up pretend shopping lists with how much each item costs. Find the first digits and put them in a table:</p>
<table border="2" align="center">
<tr>
<td height="40" align="right"><b>First Digit:</b></td>
<td width="35" align="right"><b>1</b></td>
<td width="35" align="right"><b>2</b></td>
<td width="35" align="right"><b>3</b></td>
<td width="35" align="right"><b>4</b></td>
<td width="35" align="right"><b>5</b></td>
<td width="35" align="right"><b>6</b></td>
<td width="35" align="right"><b>7</b></td>
<td width="35" align="right"><b>8</b></td>
<td width="35" align="right"><b>9</b></td>
</tr>
<tr>
<td height="40" align="right"><b>Count:</b></td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
<td width="35" align="right">&nbsp;</td>
</tr>
</table>
<p>What did you find?</p>
</div>
<p>&nbsp;</p>
<div class="related"><a href="../activity/index.html">Activities Index</a> <a href="index.html">Numbers Index</a></div>
<!-- #EndEditable --></div>
<div id="adend" class="centerfull noprint">
<script type="text/javascript">document.write(getAdEnd());</script>
</div>
<div id="footer" class="centerfull noprint">
<script type="text/javascript">document.write(getFooter());</script>
</div>
<div id="copyrt">
Copyright &copy; 2017 MathsIsFun.com
</div>
<script type="text/javascript">document.write(getBodyEnd());</script>
</body>
<!-- #EndTemplate -->
<!-- Mirrored from www.mathsisfun.com/numbers/benfords-law.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:45:41 GMT -->
</html>