<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Occasional Intelligence &#187; Data Geekery</title>
	<atom:link href="http://blog.garyhewitt.net/category/data-geekery/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.garyhewitt.net</link>
	<description>Thoughts, speculation - and sometimes lies - about things that probably interest me, and may interest you too</description>
	<lastBuildDate>Tue, 25 Jan 2011 02:44:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How Many Times Did You Wash That Dish?</title>
		<link>http://blog.garyhewitt.net/2011/01/how-many-times-did-you-wash-that-dish/</link>
		<comments>http://blog.garyhewitt.net/2011/01/how-many-times-did-you-wash-that-dish/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 20:50:22 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
				<category><![CDATA[Data Geekery]]></category>
		<category><![CDATA[Web Geekery]]></category>

		<guid isPermaLink="false">http://blog.garyhewitt.net/?p=141</guid>
		<description><![CDATA[form#inputs, div.modelcontainer, table#dishes {font-family: arial;} div.modelhead {font-size: 14pt; font-weight: bold;} td.dish {font-size: 11pt; font-weight: bold; color: #336699; width: 70px;} td.count {font-size: 11pt; color: #336699; width: 35px; border-left: solid 1px; #336699; padding-left: 6px;} div.washed {font-size: 12pt; color: #003366; font-weight: bold;} span.washes {font-weight: normal;} td.graph {border-left: solid 1px #999999;padding-left: 0px;} table#dishes thead td {font-weight: bold;} table#dishes {margin-top: [...]]]></description>
			<content:encoded><![CDATA[<p><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script><br />
<script type="text/javascript" src="/wp-content/uploads/2011/01/dishes.js"></script></p>
<style>
form#inputs, div.modelcontainer, table#dishes {font-family: arial;}
div.modelhead {font-size: 14pt; font-weight: bold;}
td.dish {font-size: 11pt; font-weight: bold; color: #336699; width: 70px;}
td.count {font-size: 11pt; color: #336699; width: 35px; border-left: solid 1px; #336699; padding-left: 6px;}
div.washed {font-size: 12pt; color: #003366; font-weight: bold;}
span.washes {font-weight: normal;}
td.graph {border-left: solid 1px #999999;padding-left: 0px;}
table#dishes thead td {font-weight: bold;}
table#dishes {margin-top: 10px;}
</style>
<p><b>Updated to compare the put clean dishes on bottom option!</b></p>
<p>I put dishes away a lot &#8211; every day, it seems. From time to time I wonder &#8211; should I put the clean dishes on the bottom, in order to make sure I use them evenly? Or does it really matter &#8211; I do use all of them from time to time, so maybe that mixes them up enough?</p>
<p>Since my math is far too poor to do this analytically, I built a simulation. And since my primary &#8220;language&#8221; appears to be web pages, I built it in javascript on a web page.</p>
<div class="modelcontainer" style="border: solid 1px #999999; padding: 12px; background-color: #EFEFEF;">
<p>This simulation models what happens when you use a random number of plates from the cupboard, wash them in your dishwasher, and put the clean ones back in the cupboard in random order. Do you end up using some more than others?</p>
<p>You can choose how many plates are in the stack, and determine whether the number of plates used each day is drawn from a uniform distribution (default), or from a normal distribution.</p>
<form id="inputs">
<p>
<input onclick="restart()" type="button" value="start" />
<input onclick="pause(this)" name="playpause" type="button" value="pause" /></p>
<table>
<tr>
<td width="40%" valign="top">
<input name="num" size="3" type="text" value="12" /> dishes in stack</td>
<td>
<input name="model" type="checkbox" value="normal" />Use normal distribution, with parameters: </p>
<input name="mean" size="3" type="text" value="5" /> mean,</p>
<input name="stdev" size="3" type="text" value="2" /> standard deviation</td>
</tr>
</table>
</form>
<p>The stack of dishes below represents the current stack in your cupboard, top to bottom, and the number represents the times the dish in that current position has been washed.</p>
<div id="washed">Times washed: <span id="washes"> </span></div>
<table id="dishes" cellspacing="0">
<thead>
<td></td>
<td colspan="2" align="right">CLEAN ON TOP</td>
<td colspan="2">CLEAN ON BOTTOM</td>
</thead>
<tbody>
<td></td>
<td></td>
<td></td>
<td></td>
</tbody>
<tfoot>
<td></td>
<td colspan="2" id="topfoot"></td>
<td colspan="2" id="bottomfoot"></td>
</tfoot>
</table>
<div style="font-size: 85%">Stdev is normalized</div>
</div>
<p>It appears from running a few variations of the parameters that you can end up with some relatively unused plates even after several years worth of wash cycles, especially if you model the dish usage on a normal distribution. Uniform distributions recycle things pretty efficiently after 100 days or so. As one would suspect, putting the clean ones on the bottom gives you almost perfect uniformity!</p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.garyhewitt.net%2F2011%2F01%2Fhow-many-times-did-you-wash-that-dish%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div><div class="fullcircle-linkshare"><a href="http://twitter.com/home?status=How+Many+Times+Did+You+Wash+That+Dish%3F + http%3A%2F%2Fblog.garyhewitt.net%2F2011%2F01%2Fhow-many-times-did-you-wash-that-dish%2F" class="twitter"  target="_blank" style="text-decoration:none;">Twitter</a></div><div class="fullcircle-linkshare"><a href="http://digg.com/submit?phase=2&url=http%3A%2F%2Fblog.garyhewitt.net%2F2011%2F01%2Fhow-many-times-did-you-wash-that-dish%2F" class="digg">DiggIt</a></div><div class="fullcircle-linkshare"><a href="http://technorati.com/cosmos/search.html?url=http%3A%2F%2Fblog.garyhewitt.net%2F2011%2F01%2Fhow-many-times-did-you-wash-that-dish%2F" class="technorati">Technorati</a></div><div class="fullcircle-linkshare"><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.garyhewitt.net%2F2011%2F01%2Fhow-many-times-did-you-wash-that-dish%2F&title=How+Many+Times+Did+You+Wash+That+Dish%3F" class="delicious">Del.icio.us</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://blog.garyhewitt.net/2011/01/how-many-times-did-you-wash-that-dish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thomas Jefferson &#8211; wow.</title>
		<link>http://blog.garyhewitt.net/2009/06/thomas-jefferson-wow/</link>
		<comments>http://blog.garyhewitt.net/2009/06/thomas-jefferson-wow/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 19:49:30 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
				<category><![CDATA[Data Geekery]]></category>
		<category><![CDATA[History Geekery]]></category>

		<guid isPermaLink="false">http://blog.garyhewitt.net/?p=108</guid>
		<description><![CDATA[Maira Kalman pulls out a beautiful work, again, for us in the Times. Jefferson is one 0f a kind &#8211; this example just stuck out for me as evidence for his, well, uniqueness. This chart of vegetable availability in Washington, DC, was evidently based on Jefferson&#8217;s observations over the eight years that he was president. [...]]]></description>
			<content:encoded><![CDATA[<p>Maira Kalman pulls out a beautiful work, again, for us in the <em>Times</em>. Jefferson is one 0f a kind &#8211; this example just stuck out for me as evidence for his, well, uniqueness. This chart of vegetable availability in Washington, DC, was evidently based on Jefferson&#8217;s observations over the <span style="text-decoration: underline;">eight years that he was president</span>. Imagine any of our modern presidents monitoring Eastern Market&#8217;s wares!</p>
<p style="text-align: center;"><a href="http://kalman.blogs.nytimes.com/2009/06/25/time-wastes-too-fast/?em"><img src="http://graphics8.nytimes.com/images/blogs/kalman/2009/06/12k.jpg" alt="" width="567" height="896" /></a></p>
<p><a href="http://kalman.blogs.nytimes.com/2009/06/25/time-wastes-too-fast/?em">Time Wastes Too Fast &#8211; And the Pursuit of Happiness Blog &#8211; NYTimes.com</a>.</p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F06%2Fthomas-jefferson-wow%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div><div class="fullcircle-linkshare"><a href="http://twitter.com/home?status=Thomas+Jefferson+%26%238211%3B+wow. + http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F06%2Fthomas-jefferson-wow%2F" class="twitter"  target="_blank" style="text-decoration:none;">Twitter</a></div><div class="fullcircle-linkshare"><a href="http://digg.com/submit?phase=2&url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F06%2Fthomas-jefferson-wow%2F" class="digg">DiggIt</a></div><div class="fullcircle-linkshare"><a href="http://technorati.com/cosmos/search.html?url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F06%2Fthomas-jefferson-wow%2F" class="technorati">Technorati</a></div><div class="fullcircle-linkshare"><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F06%2Fthomas-jefferson-wow%2F&title=Thomas+Jefferson+%26%238211%3B+wow." class="delicious">Del.icio.us</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://blog.garyhewitt.net/2009/06/thomas-jefferson-wow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A world of $40 plug-sized computers&#8230; warning: geekery</title>
		<link>http://blog.garyhewitt.net/2009/05/a-world-of-40-plug-sized-computers-warning-geekery/</link>
		<comments>http://blog.garyhewitt.net/2009/05/a-world-of-40-plug-sized-computers-warning-geekery/#comments</comments>
		<pubDate>Thu, 21 May 2009 14:46:39 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
				<category><![CDATA[Data Geekery]]></category>
		<category><![CDATA[Web Geekery]]></category>

		<guid isPermaLink="false">http://blog.garyhewitt.net/?p=84</guid>
		<description><![CDATA[NY Times poses an interesting question of the day: What would you do with a $40 Linux computer the size of a three-prong plug adapter? The article goes on to imagine what would happen if you had an array of little computers everywhere because they were so cheap. Some ideas: file servers, e-mail filtering/processing gateways, [...]]]></description>
			<content:encoded><![CDATA[<p>NY Times poses an interesting <a href="http://bits.blogs.nytimes.com/2009/05/21/plugging-in-to-the-uses-of-40-computers/">question of the day:<br />
</a></p>
<blockquote><p>What would you do with a $40 Linux computer the size of a three-prong plug adapter?</p></blockquote>
<p>The article goes on to imagine what would happen if you had an array of little computers everywhere because they were so cheap. Some ideas: file servers, e-mail filtering/processing gateways, in your TV, DVD, your digital photo frame, etc.</p>
<p>This misses the point. My problem isn&#8217;t that I don&#8217;t have enough computing power. I have a couple of laptops, a little NAS file server, a couple of media players (Roku Netflix box and Soundbridge), as well as the more special-purpose things in my DVD, Wii, etc.</p>
<p>My problem is that I have inconsistent and incoherent input/output devices. I have more remotes than I know what to do with, plus keyboards and mice, and I have screens everywhere &#8211; TV, computer monitors, that little fluorescent screen on the Roku Soundbridge &#8211; plus audio output in various speakers in various places. And I don&#8217;t even have that complex a setup (no home theater, no DVR). Mix in the storage issue (local hard drives, cloud storage, NAS storage, optical drives) and life sucks even a bit more.</p>
<p>A couple of observations. First is that many of the input devices are tied to a single device &#8211; the very nice 8 (9?) Netflix player remote, or the less nice credit-card sized DVD remote with 40 or so equally sized buttons). A lot of devices have single dedicated outputs as well &#8211; goes to the TV screen, or its own monitor. Efforts to make better remotes (ones with LCD screens, for instance) are heroic multi-node integration projects in the absence of standards (or are proprietary themselves).</p>
<p>My fantasy is a world in which input devices,  output devices, storage and computing power are all networked, but decoupled from one another. What is a computer, anyway? it&#8217;s computing power plus input device + screen + storage. Wouldn&#8217;t it be nice to &#8220;assemble&#8221; a computer dynamically in your home. Take your TV screen + a thumbwheel remote + some computing power and storage, put them together and surf the web. Oh, I want to blog on that? Put the keyboard in the mix. Now you&#8217;re watching a youtube, but need to go to the other room? Send the video to a different display &amp; carry the remote with you, and keep on working. The video decoding is taking place in one of those $40 computers somewhere.</p>
<p>From the ads, at least, it sounds like the DVR world is getting there with multiroom playback, but this misses a much larger universe. I don&#8217;t want another computer. I just want screens &amp; input devices that tap computing power somewhere.</p>
<p><a href="http://bits.blogs.nytimes.com/2009/05/21/plugging-in-to-the-uses-of-40-computers/">Plugging In $40 Computers &#8211; Bits Blog &#8211; NYTimes.com</a>.</p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F05%2Fa-world-of-40-plug-sized-computers-warning-geekery%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div><div class="fullcircle-linkshare"><a href="http://twitter.com/home?status=A+world+of+%2440+plug-sized+computers%26%238230%3B+warning%3A+geekery + http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F05%2Fa-world-of-40-plug-sized-computers-warning-geekery%2F" class="twitter"  target="_blank" style="text-decoration:none;">Twitter</a></div><div class="fullcircle-linkshare"><a href="http://digg.com/submit?phase=2&url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F05%2Fa-world-of-40-plug-sized-computers-warning-geekery%2F" class="digg">DiggIt</a></div><div class="fullcircle-linkshare"><a href="http://technorati.com/cosmos/search.html?url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F05%2Fa-world-of-40-plug-sized-computers-warning-geekery%2F" class="technorati">Technorati</a></div><div class="fullcircle-linkshare"><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F05%2Fa-world-of-40-plug-sized-computers-warning-geekery%2F&title=A+world+of+%2440+plug-sized+computers%26%238230%3B+warning%3A+geekery" class="delicious">Del.icio.us</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://blog.garyhewitt.net/2009/05/a-world-of-40-plug-sized-computers-warning-geekery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FiveThirtyEight: Politics Done Right: Will Iowans Uphold Gay Marriage?</title>
		<link>http://blog.garyhewitt.net/2009/04/fivethirtyeight-politics-done-right-will-iowans-uphold-gay-marriage/</link>
		<comments>http://blog.garyhewitt.net/2009/04/fivethirtyeight-politics-done-right-will-iowans-uphold-gay-marriage/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 21:44:33 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
				<category><![CDATA[Data Geekery]]></category>

		<guid isPermaLink="false">http://blog.garyhewitt.net/?p=33</guid>
		<description><![CDATA[More intriguing stuff from good old Nate Silver &#8230; this time, estimating when a state&#8217;s population might be ready for gay marriage, or at least ready not to ban it. Given the complexity of political processes in a lot of these places &#8211; rural domination, different constitutional structures, etc. &#8211; I wouldn&#8217;t venture to say [...]]]></description>
			<content:encoded><![CDATA[<p>More intriguing stuff from good old Nate Silver &#8230; this time, estimating when a state&#8217;s population might be ready for gay marriage, or at least ready not to ban it. Given the complexity of political processes in a lot of these places &#8211; rural domination, different constitutional structures, etc. &#8211; I wouldn&#8217;t venture to say that by 2012 we&#8217;ll really have a majority of states accepting gay marriage, but the snowball is definitely picking up speed.</p>
<blockquote><p>I then built a regression model that looked at a series of political and demographic variables in each of these states and attempted to predict the percentage of the vote that the marriage ban would receive.</p>
<p>It turns out that you can build a very effective model by including just three variables:</p>
<p>1. The year in which the amendment was voted upon;<br />
2. The percentage of adults in <a href="http://www.gallup.com/poll/114022/State-States-Importance-Religion.aspx">2008 Gallup tracking surveys</a> who said that religion was an important part of their daily lives;<br />
3. The percentage of white evangelicals in the state.</p>
<p><span id="fullpost">These variables collectively account for about three-quarters of the variance in the performance of marriage bans in different states. The model predicts, for example, that a marriage ban in California in 2008 would have passed with 52.1 percent of the vote, almost exactly the fraction actually received by Proposition 8.</p>
<p>Unsurprisingly, there is a very strong correspondence between the religiosity of a state and its propensity to ban gay marriage, with a particular &#8220;bonus&#8221; effect depending on the number of white evangelicals in the state.</p>
<p>Marriage bans, however, are losing ground at a rate of slightly less than 2 points per year. So, for example, we&#8217;d project that a state in which a marriage ban passed with 60 percent of the vote <span style="font-style: italic;">last</span> year would only have 58 percent of its voters approve the ban <span style="font-style: italic;">this</span> year.</p>
<p>All of the other variables that I looked at &#8212; race, education levels, party registration, etc. &#8212; either did not appear to matter at all, or became redundant once we accounted for religiosity. Nor does it appear to make a significant difference whether the ban affected marriage only, or both marriage and civil unions.</span></p></blockquote>
<p>It&#8217;s intriguing that education, race, and party aren&#8217;t particularly useful explanatory variables. I do get a little nervous when there&#8217;s a time variable introduced &#8211; there&#8217;s no mystical force pulling the political transformation along. And students of Roe v. Wade should recognize that these kinds of tides do turn, change course, etc.</p>
<p>via <a href="http://www.fivethirtyeight.com/2009/04/will-iowans-uphold-gay-marriage.html">FiveThirtyEight: Politics Done Right: Will Iowans Uphold Gay Marriage?</a></p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F04%2Ffivethirtyeight-politics-done-right-will-iowans-uphold-gay-marriage%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div><div class="fullcircle-linkshare"><a href="http://twitter.com/home?status=FiveThirtyEight%3A+Politics+Done+Right%3A+Will+Iowans+Uphold+Gay+Marriage%3F + http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F04%2Ffivethirtyeight-politics-done-right-will-iowans-uphold-gay-marriage%2F" class="twitter"  target="_blank" style="text-decoration:none;">Twitter</a></div><div class="fullcircle-linkshare"><a href="http://digg.com/submit?phase=2&url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F04%2Ffivethirtyeight-politics-done-right-will-iowans-uphold-gay-marriage%2F" class="digg">DiggIt</a></div><div class="fullcircle-linkshare"><a href="http://technorati.com/cosmos/search.html?url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F04%2Ffivethirtyeight-politics-done-right-will-iowans-uphold-gay-marriage%2F" class="technorati">Technorati</a></div><div class="fullcircle-linkshare"><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.garyhewitt.net%2F2009%2F04%2Ffivethirtyeight-politics-done-right-will-iowans-uphold-gay-marriage%2F&title=FiveThirtyEight%3A+Politics+Done+Right%3A+Will+Iowans+Uphold+Gay+Marriage%3F" class="delicious">Del.icio.us</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://blog.garyhewitt.net/2009/04/fivethirtyeight-politics-done-right-will-iowans-uphold-gay-marriage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

