<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Endeavour</title>
	
	<link>http://www.johndcook.com/blog</link>
	<description>The blog of John D. Cook</description>
	<lastBuildDate>Thu, 18 Mar 2010 14:12:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheEndeavour" /><feedburner:info uri="theendeavour" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Four mechanical devices better than their newer counterparts</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/O1ewYmYiuYM/</link>
		<comments>http://www.johndcook.com/blog/2010/03/18/four-mechanical-devices-better-than-newer-counterparts/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 13:50:39 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Simplicity]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4853</guid>
		<description><![CDATA[Here are four mechanical devices I prefer to their modern counterparts.
French press. It makes better coffee than a typical coffee machine. Also, a French press work without electricity. Next time a hurricane comes through Houston and knocks out our power, I can still make my coffee.
Reel mower. I had gasoline powered lawn mowers until last [...]]]></description>
			<content:encoded><![CDATA[<p>Here are four mechanical devices I prefer to their modern counterparts.</p>
<p><strong>French press</strong>. It makes better coffee than a typical coffee machine. Also, a French press work without electricity. Next time a <a href="http://www.johndcook.com/blog/2008/09/17/desktop-applications-cloud-computing-and-hurricanes/">hurricane</a> comes through Houston and <a href="http://www.johndcook.com/blog/2008/09/24/houston-power-outage-and-the-80-20-rule/">knocks out our power</a>, I can still make my coffee.</p>
<p><strong>Reel mower</strong>. I had gasoline powered lawn mowers until last year. Sometimes they&#8217;d start, sometimes they wouldn&#8217;t. My reel mower always starts. And it&#8217;s quiet.</p>
<p><strong>Rake</strong>.<strong> </strong>I had a leaf blower once. It was obnoxiously loud and a nuisance to my neighbors. I much prefer raking leaves even though it takes longer.</p>
<p><strong>Pencil sharpener</strong>. With four children, we sharpen a fair number of pencils. We have owned a couple electric pencil sharpeners. They were noisy, hard to use, and soon wore out. Our mechanical pencil sharpener is cheaper and far more reliable.</p>
<p>I&#8217;m no Luddite, but I firmly believe that newer isn&#8217;t necessarily better.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2008/01/21/selective-use-of-technology/">Selective use of technology</a><br />
<a href="http://www.johndcook.com/blog/2009/04/21/tim-brays-high-tech-monastic-cell/">Tim Bray&#8217;s high-tech monastic cell</a><br />
<a href="http://www.johndcook.com/blog/2008/01/09/moores-law-and-software-bloat/">Software bloat</a><br />
<a href="http://www.johndcook.com/blog/2008/07/08/whats-wrong-with-paper/">What&#8217;s wrong with paper?</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/O1ewYmYiuYM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/18/four-mechanical-devices-better-than-newer-counterparts/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/18/four-mechanical-devices-better-than-newer-counterparts/</feedburner:origLink></item>
		<item>
		<title>Kiss me, I might be Irish</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/5geK9v7EIBU/</link>
		<comments>http://www.johndcook.com/blog/2010/03/17/kiss-me-i-might-be-irish/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 11:22:34 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4844</guid>
		<description><![CDATA[Happy St. Patrick&#8217;s Day everyone.
They say everyone&#8217;s Irish on St. Patrick&#8217;s Day. I&#8217;ve heard that I actually am part Irish (as well as Scottish, German, Cherokee, &#8230;) In any case, it&#8217;s nice of the Irish to share their holiday with the rest of the world.

St. Patrick&#8217;s Day 2007 in Seoul, Korea. Image credit: here via [...]]]></description>
			<content:encoded><![CDATA[<p>Happy St. Patrick&#8217;s Day everyone.</p>
<p>They say everyone&#8217;s Irish on St. Patrick&#8217;s Day. I&#8217;ve heard that I actually am part Irish (as well as Scottish, German, Cherokee, &#8230;) In any case, it&#8217;s nice of the Irish to share their holiday with the rest of the world.</p>
<p><img class="alignnone" src="http://www.johndcook.com/st_patrick_seoul.jpeg" alt="" width="360" height="267" /></p>
<p>St. Patrick&#8217;s Day 2007 in Seoul, Korea. Image credit: <a href="http://cafe.naver.com/kd9040.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=237">here</a> via <a href="http://en.wikipedia.org/wiki/File:2007_st_pat.JPG">Wikipedia</a></p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2008/06/27/wine-beer-and-statistics/">Guinness beer</a><br />
<a href="http://www.johndcook.com/blog/2008/01/28/why-mr-scott-is-scottish/">Why Mr. Scott is Scottish</a><br />
<a href="http://www.johndcook.com/blog/2009/10/06/mathematical-genealogy/">Mathematical genealogy</a><br />
<a href="http://www.johndcook.com/blog/2008/02/15/honeybee-geneology/">Honey bee genealogy</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/5geK9v7EIBU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/17/kiss-me-i-might-be-irish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/17/kiss-me-i-might-be-irish/</feedburner:origLink></item>
		<item>
		<title>Emacs</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/ywjHLB7QIaw/</link>
		<comments>http://www.johndcook.com/blog/2010/03/16/emacs/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 15:35:24 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4834</guid>
		<description><![CDATA[Emacs is a text editor with ambitions to be an operating system. I do not use Emacs, though I once did, and I still find it intriguing. I&#8217;d like to find something similar that acts more like a Windows program.
GNU Emacs began in 1984 and has been in constant development ever since. The current version [...]]]></description>
			<content:encoded><![CDATA[<p>Emacs is a text editor with ambitions to be an operating system. I do not use Emacs, though I once did, and I still find it intriguing. I&#8217;d like to find something similar that acts more like a Windows program.</p>
<p>GNU Emacs began in 1984 and has been in constant development ever since. The current version is 23.1. How many applications from 1984 are still in widespread use today? The only other one that comes to mind is TeX.</p>
<p>I used Emacs in graduate school and for a few years after that. I was fairly fluent with Emacs, though I never customized it much. I intended to learn Emacs Lisp and all that, but it never happened.</p>
<p>When I started developing Windows software I used Emacs at first, but the benefits of Visual Studio soon persuaded me give up my old editor. It was much easier to go with the flow.</p>
<p>I&#8217;ve revisited Emacs a couple times over the years. I still have some of the keystrokes burned into my memory. I use it on Linux now and then, but I mostly work on Windows, and my experience using Emacs on Windows has been frustrating to say the least. Tasks that are trivial in any Windows application, such as printing and spell checking, are surprisingly difficult to set up in Emacs. I&#8217;m sure it is possible to resolve these problems, though I never did.</p>
<p>The problems with printing and spell checking are part of the larger issue that Emacs is so idiosyncratic. It behaves nothing like a typical Windows program. Some people may say that&#8217;s a good thing. But it makes life more complicated if you switch between Emacs and more conventional Windows software.</p>
<p>Emacs is no more a typical Mac application than it is a typical Windows application. And yet my impression is that this is less of a problem for Mac users. I&#8217;d like to understand whether this is true and if so why.</p>
<p>One of the things I liked about Emacs was the way you could &#8220;live&#8221; there. An expert Emacs user might work inside Emacs all day, using it as an editor, debugger, shell, file system explorer, email program, etc. Steve Yegge is such an expert. When he <a href="http://steve-yegge.blogspot.com/2008/04/settling-osx-focus-follows-mouse-debate.html">blogged</a> about his move from Windows to Mac,  he said the main  reason for the switch was that he prefers the appearance of the fonts on  a Mac. Changing operating systems was not a big deal for Yegge because  he didn’t really live in Windows before, nor does he live in OS X now.  He lives in Emacs. He concluded his essay by saying</p>
<blockquote><p>So I’ll keep using my Macs. They’re all just plumbing for  Emacs, anyway. And now my plumbing has nicer fonts.</p></blockquote>
<p>Living inside Emacs comes at a price. Part of that price is writing lots of Emacs Lisp to glue things together. Another part of that price is the commitment to practicing using Emacs. As Yegge says <a href="http://steve.yegge.googlepages.com/effective-emacs">elsewhere</a></p>
<blockquote><p>&#8230; you need to make a serious, lifelong commitment to Emacs in order to master it. &#8230; So it&#8217;s not an editor for the faint of heart &#8230;</p></blockquote>
<p>Yikes! I&#8217;m not ready to make a serious, lifelong commitment to a piece of software. To my wife? Yes. To my text editor? No.</p>
<p>One of the best features of Emacs is that it has custom &#8220;modes&#8221; for  various kinds of files. Instead of using a separate program for editing every kind of file, Emacs users use one program with different modes. As soon as a new file type comes out, say for a new programming language, someone will post an Emacs mode for that new language.</p>
<p>I&#8217;d like to find an editor on Windows that is analogous to Emacs. By  that I mostly have in mind a powerful, highly configurable editor with  support for many file types. I&#8217;d want it to behave like a Windows application, not a foreign transplant, and integrate well with .NET.</p>
<p>There was a project to create such an editor, nicknamed <a href="http://members.microsoft.com/careers/search/details.aspx?JobID=F43756E9-DFE3-4DB0-8DE1-C2DD1CEE4CAF">Emacs.NET</a>. It was announced in late 2007. It sounds like the project is <a href="http://www.douglaspurdy.com/2010/02/10/emacs-net-2010/">still alive</a>, but it doesn&#8217;t seem all that promising.</p>
<p>I&#8217;ve looked at a few Windows editors that claim to be highly configurable but are not well documented. So if such an editor is configurable, it&#8217;s configurable for the person who wrote it or possibly for anyone else willing to study the source code.</p>
<p>Any suggestions for a general purpose Windows editor? For starters, I&#8217;d be pleased to find something that&#8217;s good at editing LaTeX and HTML.</p>
<p><strong>Related posts</strong>:</p>
<p>This post started out as an update to my earlier post <a href="http://www.johndcook.com/blog/2008/04/27/one-program-to-rule-them-all/">One program to rule them all</a>.</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/ywjHLB7QIaw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/16/emacs/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/16/emacs/</feedburner:origLink></item>
		<item>
		<title>Adding simplicity</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/BAnpAT1PZLg/</link>
		<comments>http://www.johndcook.com/blog/2010/03/15/adding-simplicity/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 16:01:06 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Creativity]]></category>
		<category><![CDATA[Simplicity]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4813</guid>
		<description><![CDATA[Simplicity is costly. You have to give up something to achieve it. You can&#8217;t just add it on top. William Bridges illustrates this in his book The Way of Transition where he describes his moving out to the country.
&#8230; I had been infatuated with Thoreau&#8217;s Walden and its story of living a basic life, close [...]]]></description>
			<content:encoded><![CDATA[<p>Simplicity is costly. You have to give up something to achieve it. You can&#8217;t just add it on top. William Bridges illustrates this in his book <a href="http://www.amazon.com/gp/product/073820529X?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=073820529X">The Way of Transition</a> where he describes his moving out to the country.</p>
<blockquote><p>&#8230; I had been infatuated with Thoreau&#8217;s <em>Walden</em> and its story of living a basic life, close to nature. The heart of that undertaking, he had written, was to simplify your life. &#8230; In retrospect, I can see that although I thought that this was what I was doing, I was really just trying to <em>add simplicity to my life.</em> In addition to all the old things I had been doing &#8230; Of course, my life grew more and more complicated in the process.</p></blockquote>
<p>A simplification has to remove or replace something else. You can&#8217;t just add on simplicity.</p>
<p>There may be an exception to this. Sometimes you can add a few missing pieces to make something more symmetric. In that case, the additions simplify the whole. (Mendeleev did something like this when he drew his periodic table.) Even then, I suppose you could say you&#8217;re removing the asymmetry. In any case, achieving simplicity usually requires more subtraction than addition.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2009/05/20/simplicity-quote/">Simplicity in old age</a><br />
<a href="http://www.johndcook.com/blog/2008/10/15/simple-legacy/">Simple legacy</a><br />
<a href="http://www.johndcook.com/blog/2008/04/09/a-little-simplicity-goes-a-long-way/">A little simplicity goes a long way</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/BAnpAT1PZLg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/15/adding-simplicity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/15/adding-simplicity/</feedburner:origLink></item>
		<item>
		<title>A sort of command line for your browser</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/RVXB7ngKxF4/</link>
		<comments>http://www.johndcook.com/blog/2010/03/14/quix/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 00:59:29 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4819</guid>
		<description><![CDATA[Quix is a sort of command line for web browsers. It&#8217;s a bookmarklet, a piece of JavaScript you save like a bookmark. When you launch Quix, it opens a small dialog that lets you enter brief commands for common browser tasks. For example the gs command does a Google search within the domain of the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://quixapp.com/">Quix</a> is a sort of command line for web browsers. It&#8217;s a bookmarklet, a piece of JavaScript you save like a bookmark. When you launch Quix, it opens a small dialog that lets you enter brief commands for common browser tasks. For example the <code>gs</code> command does a Google search within the domain of the current page.</p>
<p>You can install Quix by dragging it to your bookmark menu. However, if you want to use Quix to make it easier to use your browser without a mouse, you don&#8217;t want to have to click the Quix bookmark to get started. You can <a href="http://quixapp.com/browsers/">integrate Quix</a> with your browser to be able to launch Quix from the keyboard.</p>
<p>For example, if you&#8217;re using Firefox on Windows, you can drag the Quix bookmarklet to your bookmarks toolbar. Next right-click on the bookmarklet, select &#8220;Properties&#8221;, and set &#8220;q&#8221; as the keyword. Then you can launch Quix by typing Ctrl-L q.</p>
<p>You can find directions <a href="http://quixapp.com/browsers/">here</a> for integrating Quix with Chrome, IE, Firefox, Opera, and Safari.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2009/11/09/using-windows-without-a-mouse/">Using Windows without a mouse</a><br />
<a href="http://www.johndcook.com/blog/2009/11/05/patterns-windows-keyboard-shortcuts/">Four patterns in Windows shortcuts</a><br />
<a href="http://twitter.com/sansmouse">@SansMouse</a> &#8212; daily tips on using Windows without a mouse</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/RVXB7ngKxF4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/14/quix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/14/quix/</feedburner:origLink></item>
		<item>
		<title>Weekend miscellany</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/F2ygxIyQohY/</link>
		<comments>http://www.johndcook.com/blog/2010/03/13/weekend-miscellany-28/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 11:40:39 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4806</guid>
		<description><![CDATA[
Frozen  baby woolly mammoth
Top 200 blogs for developers
Greece&#8217;s debt
Code is expendable; developers are not
Wanting it both ways
Code bubbles
Psychological disorder quiz
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://www.johndcook.com/snowsunset.jpeg" alt="" width="360" height="240" /></p>
<p><a href="http://www.washingtonpost.com/wp-dyn/content/article/2010/03/08/AR2010030803850.html">Frozen  baby woolly mammoth</a><br />
<a href="http://www.noop.nl/2009/09/top-200-blogs-for-developers-q3-2009.html">Top 200 blogs for developers</a><br />
<a href="http://www.marginalrevolution.com/marginalrevolution/2010/03/facts-and-figures-about-greece.html">Greece&#8217;s debt</a><br />
<a href="http://www.infoworld.com/d/developer-world/lessons-lost-decade-developing-disposable-web-241?page=0,0&amp;source=IFWNLE_nlt_daily_2010-03-11">Code is expendable; developers are not</a><br />
<a href="http://www.geneveith.com/wanting-it-both-ways/_4996/">Wanting it both ways</a><br />
<a href="http://www.youtube.com/watch?v=PsPX0nElJ0k&amp;feature=player_embedded">Code bubbles</a><br />
<a href="http://hardsci.wordpress.com/2010/03/01/take-the-dsm-5-disorder-quiz/">Psychological disorder quiz</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/F2ygxIyQohY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/13/weekend-miscellany-28/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/13/weekend-miscellany-28/</feedburner:origLink></item>
		<item>
		<title>Does gaining weight make you taller?</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/LdafzS7gmA4/</link>
		<comments>http://www.johndcook.com/blog/2010/03/12/does-gaining-weight-make-you-taller/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 13:37:18 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Probability and Statistics]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4795</guid>
		<description><![CDATA[In his autobiography, The Pleasures of Statistics, Frederick Mosteller gives an amusing example of why observational studies are no substitute for doing experiments.
We are all familiar with the idea that we can estimate height in male adults from their weight. &#8230; But not one of us believes that adding 20 pounds by eating and minimizing [...]]]></description>
			<content:encoded><![CDATA[<p>In his autobiography, <a href="http://www.amazon.com/gp/product/0387779558?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0387779558">The Pleasures of Statistics</a>, Frederick Mosteller gives an amusing example of why observational studies are no substitute for doing experiments.</p>
<blockquote><p>We are all familiar with the idea that we can estimate height in male adults from their weight. &#8230; But not one of us believes that adding 20 pounds by eating and minimizing exercise will add an inch to our height.</p></blockquote>
<p>The problem is not simply that the direction of causality backward, it&#8217;s that we cannot use a static description to predict what will happen if we change something.</p>
<blockquote><p>Although regression situations may give one the illusion of finding out what would happen if we changed something, in the absence of an experiment they offer merely offer guesses.</p></blockquote>
<p>He summarizes his point by quoting George Box:</p>
<blockquote><p>To find out what happens to a system when you interfere with it, you have to interfere with it (and not just passively observe it).</p></blockquote>
<p>Remember this next time you hear claims such as every dollar spent on X saves so many dollars spent on Y. Or every minute spent exercising increases your life expectancy by so many minutes. Or every time you do some activity you increase or decrease your risk of cancer by so much. First of all, these kinds of statements are linear extrapolations on situations that are not linear. Second, they may be observations that do not describe what will happen when you change something. They may be no more true than the idea that gaining weight makes you taller.</p>
<p>Here&#8217;s an example of how observation and intervention differ. Lottery winners often go bankrupt within a couple years of receiving their prize. <span><span>If you suddenly make someone a millionaire, they&#8217;re not a typical millionaire.<br />
</span></span></p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2010/03/11/numerator-only-data/">Numerator-only data</a><br />
<a href="http://www.johndcook.com/blog/2008/04/01/randomized-trials-of-parachute-use/">Randomized trials of parachute use</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/LdafzS7gmA4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/12/does-gaining-weight-make-you-taller/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/12/does-gaining-weight-make-you-taller/</feedburner:origLink></item>
		<item>
		<title>Numerator-only data</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/kMZXKR4GAxg/</link>
		<comments>http://www.johndcook.com/blog/2010/03/11/numerator-only-data/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 00:38:37 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Probability and Statistics]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4784</guid>
		<description><![CDATA[I learned a useful new phrase today: numerator-only data. This is data without anything to compare it to, no denominator. I ran across the term in Frederick Mosteller&#8217;s autobiography. He illustrates the problem with the following old joke.
&#8220;Why do the white horses eat more than the black horses?&#8221;
&#8220;Don&#8217;t know. Why?&#8221;
&#8220;Because we have ten times as [...]]]></description>
			<content:encoded><![CDATA[<p>I learned a useful new phrase today: <strong>numerator-only data</strong>. This is data without anything to compare it to, no denominator. I ran across the term in Frederick Mosteller&#8217;s <a href="http://www.amazon.com/gp/product/0387779558?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0387779558">autobiography</a>. He illustrates the problem with the following old joke.</p>
<blockquote><p>&#8220;Why do the white horses eat more than the black horses?&#8221;<br />
&#8220;Don&#8217;t know. Why?&#8221;<br />
&#8220;Because we have ten times as many white horses and black horses.&#8221;</p></blockquote>
<p>Numerator-only data is data that leaves you asking &#8220;compared to what?&#8221; If I tell you the NASDAQ stock index closed at 2368 today, is that good or bad? The number by itself means nothing. Is that up or down compared to last week? Last year? If I tell you, for example, that the record high value was 5047, that gives you a denominator to compare it to.</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/kMZXKR4GAxg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/11/numerator-only-data/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/11/numerator-only-data/</feedburner:origLink></item>
		<item>
		<title>Yahoo translation fail</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/c09KrIOO3mo/</link>
		<comments>http://www.johndcook.com/blog/2010/03/10/yahoo-translation-fail/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 01:46:00 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4779</guid>
		<description><![CDATA[Allen from the Wave Behind blog translated my blog post Just in case versus just in time into Chinese. I appreciate that Allen went to the trouble of doing the translation. I can&#8217;t read Chinese, but people who can told me he did a good job.
Mark Biek pointed out the quality of the Google and [...]]]></description>
			<content:encoded><![CDATA[<p>Allen from the <a href="http://wavebehind.org/">Wave Behind</a> blog translated my blog post <a href="http://www.johndcook.com/blog/2010/03/03/just-in-case-versus-just-in-time/">Just in case versus just in time</a> into <a href="http://wavebehind.org/2010/03/just-in-case-vs-just-in-time.html">Chinese</a>. I appreciate that Allen went to the trouble of doing the translation. I can&#8217;t read Chinese, but people who can told me he did a good job.</p>
<p><a href="http://twitter.com/antelopelovefan">Mark Biek</a> pointed out the quality of the <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http%3A%2F%2Fwavebehind.org%2F2010%2F03%2Fjust-in-case-vs-just-in-time.html&amp;sl=zh-CN&amp;tl=en">Google</a> and <a href="http://babelfish.yahoo.com/translate_url?doit=done&amp;tt=url&amp;intl=1&amp;fr=bf-home&amp;trurl=http%3A%2F%2Fwavebehind.org%2F2010%2F03%2Fjust-in-case-vs-just-in-time.html&amp;lp=zt_en&amp;btnTrUrl=Translate">Yahoo</a> translations from Chinese back into English. The Google translation is awkward but understandable. The Yahoo translation, however, is a total failure. First of all, the translation is illegible in Firefox:</p>
<p style="text-align: center;"><img src="http://www.johndcook.com/yahoo_chinese_firefox.png" alt="" width="302" height="156" /></p>
<p>Using Internet Explorer 8, the text is legible, but it doesn&#8217;t make sense:</p>
<p style="text-align: center;"><img  src="http://www.johndcook.com/yahoo_chinese_ie8.png" alt="" width="311" height="148" /></p>
<p style="text-align: left;">The two screen shots focus on different parts of the text. I chose a swatch near the top of the Firefox version where the text was most illegible. I chose the IE8 swatch to showcase the phrase &#8220;the smelly spicy jiao raccoon dog&#8221; that Mark had pointed out.</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/c09KrIOO3mo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/10/yahoo-translation-fail/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/10/yahoo-translation-fail/</feedburner:origLink></item>
		<item>
		<title>A childhood question about heat</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/OlvbZ3Ai9rE/</link>
		<comments>http://www.johndcook.com/blog/2010/03/10/cooling/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 01:23:04 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Differential equations]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4758</guid>
		<description><![CDATA[When I was a little kid, I asked some adults the following question.
If hot things cool, and cool things warm up, could something hot cool down and warm back up?
The people I asked didn&#8217;t understand my question and just laughed. I have no idea how old I was, but I wasn&#8217;t old enough to articulate [...]]]></description>
			<content:encoded><![CDATA[<p>When I was a little kid, I asked some adults the following question.</p>
<blockquote><p>If hot things cool, and cool things warm up, could something hot cool down and warm back up?</p></blockquote>
<p>The people I asked didn&#8217;t understand my question and just laughed. I have no idea how old I was, but I wasn&#8217;t old enough to articulate what I was thinking.</p>
<p>Here&#8217;s what I had in mind. I knew that hot things like a cup of coffee grew cold. And I knew that cold things, say a glass of milk, get warm. Well, could the coffee get so cold that it becomes a cold thing and start to warm back up?</p>
<p>Could the coffee become as cold as the glass of milk? Common sense suggests that can&#8217;t happen. When we say coffee grows cold, we mean that it becomes relatively colder, closer to room temperature. And when we say the milk is getting warm, we also mean it is getting closer to room temperature. We&#8217;ve never left a hot cup of coffee on a table and come back later to find that it has cooled off so much that it is colder than room temperature. But could there be small fluctuations?</p>
<p>As the coffee and milk head toward room temperature, could they overshoot the target, just by a little bit? Say room temperature is 70 °F, the coffee starts out at 150 °F, and the milk starts out at 40 °F. We don&#8217;t expect the coffee to cool down to 40 °F or the milk to warm up to 150 °F. But could the coffee cool down to 69.5 °F and then go back up to 70 °F? Could the milk warm up to 70.5 °F and then cool back down to 70 °F?</p>
<p>I didn&#8217;t get a satisfactory answer to my childhood question until I was in college. Then I found out about <a href="http://en.wikipedia.org/wiki/Newton%27s_law_of_cooling#Newton.27s_law_of_cooling">Newton&#8217;s law of cooling</a>. It says that the rate at which a warm body cools is proportional to the difference between its current temperature and the ambient temperature. This law can be written as a differential equation whose solution shows that the temperature of a warm body decreases exponentially to the ambient temperature. The temperature curve always slopes downward. It doesn&#8217;t wiggle even a little on its journey to room temperature. Cold bodies warm up the opposite way, exponentially approaching room temperature but never exceeding it.</p>
<p>In case it this seems obvious, think about thermostats. They don&#8217;t work this way. Say the temperature in a room is 85 °F and you&#8217;d like it to be 72 °F, so you turn on the air conditioning. Will the temperature steadily lower to 72 °F? Not exactly. If you were to plot the temperature in the room over time and look at the graph from far enough away, it would look like it is steadily going down to the desired temperature. But if you look at the graph more closely, you&#8217;ll see wiggles. The AC may cool the room to a little below 72 °F, maybe to 70 °F. The AC would cut off and the temperature would rise to 72 °F. Unlike the cup of hot coffee, the AC will often overshoot its target, though not by too much. The temperature may feel constant, but it is not. It oscillates around the desired temperature.</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/OlvbZ3Ai9rE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/10/cooling/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/10/cooling/</feedburner:origLink></item>
		<item>
		<title>A note to new subscribers</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/QoyInV_IiqA/</link>
		<comments>http://www.johndcook.com/blog/2010/03/09/a-note-to-new-subscribers-2/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 17:37:33 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4755</guid>
		<description><![CDATA[Thank you for subscribing to my blog. I wanted to say a little about the blog for those of you who have just subscribed recently.
I post a little more than one article a day on average on a variety of topics. Here’s a list of some of the most popular posts by category.
This blog is [...]]]></description>
			<content:encoded><![CDATA[<p>Thank you for subscribing to my blog. I wanted to say a little about the blog for those of you who have just subscribed recently.</p>
<p>I post a little more than one article a day on average on a variety of topics. Here’s a list of some of the <a href="http://www.johndcook.com/blog/most-popular/">most popular posts</a> by category.</p>
<p>This blog is also available as a <a href="http://www.johndcook.com/blog/2009/06/20/endeavour-podcast/">podcast</a>. The audio is automatically generated. The quality is good for ordinary prose but not as good for other content.</p>
<p>Here’s my <a href="http://www.johndcook.com/contact.html">contact info</a>. If you submit a comment that never appears, please send me a note. I get thousands of spam comments, and so I filter spam aggressively. Sometimes a legitimate comment gets blocked. I enjoy hearing from you. I learn a lot from the comments.</p>
<p>I have several <a href="http://www.johndcook.com/twitter/">Twitter accounts</a>, one personal account and six daily tip accounts. I keep the volume low on the daily tip accounts: one scheduled tip per day plus an occasional unscheduled tweet.</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/QoyInV_IiqA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/09/a-note-to-new-subscribers-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/09/a-note-to-new-subscribers-2/</feedburner:origLink></item>
		<item>
		<title>Interview with Clojure author</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/Bs1mf3VKw4M/</link>
		<comments>http://www.johndcook.com/blog/2010/03/08/interview-with-clojure-author/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 17:04:40 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Clojure]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4740</guid>
		<description><![CDATA[Simple-talk has an interview with Rich Hickey, author of the programming language Clojure (pronounced &#8220;closure&#8221;). Clojure is a dialect of Lisp designed to run on top of the Java Virtual Machine. The language is also being ported to the .NET framework as Clojure CLR.
Two things stood out to me in the interview: a comparison of [...]]]></description>
			<content:encoded><![CDATA[<p>Simple-talk has an <a href="http://www.simple-talk.com/opinion/geek-of-the-week/rich-hickey-geek-of-the-week/">interview</a> with Rich Hickey, author of the programming language Clojure (pronounced &#8220;closure&#8221;). Clojure is a dialect of Lisp designed to run on top of the Java Virtual Machine. The language is also being ported to the .NET framework as Clojure CLR.</p>
<p>Two things stood out to me in the interview: a comparison of Lisp with C++, and a discussion of complexity.</p>
<p>You&#8217;ll often hear a programmer argue that language X is better than language Y.  To support their argument, they&#8217;ll say they wrote a program in Y, then wrote it in X in less time. For example, someone might argue that Ruby is better than Python because they were able to rewrite their web site using Ruby in half the time it took to write the original Python version. Such arguments are weak because you can write anything faster the second time. The first implementation required analysis and design that the second implementation can reuse entirely or at least learn from.</p>
<p>Rich Hickey argues that he can develop programs in Lisp faster than in C++. He offers as support that he first wrote something in Lisp and then took three times longer to rewrite it in C++. This is just a personal anecdote, not a scientific study, but it carries more weight than the usual anecdote because he&#8217;s claiming the first language was more efficient than the second.</p>
<p>In his discussion of incidental complexity, complexity coming from ones tools rather than from the intrinsic complexity of the problem being solved, Hickey says</p>
<blockquote><p>I think programmers have become inured to incidental complexity, in particular by confusing familiar or concise with simple. And when they encounter complexity, they consider it a challenge to overcome, rather than an obstacle to remove. Overcoming complexity isn&#8217;t work, it&#8217;s waste.</p></blockquote>
<p>The phrase &#8220;confusing familiar or concise with simple&#8221; is insightful. I never appreciated the arguments about the complexity of C++ until I got a little distance from the language; C++ was so familiar I didn&#8217;t appreciate how complex it is until I had a break from writing it. Also, simple solutions are usually concise, but concise solutions may not be simple. I chuckle whenever I hear someone say a problem was simple to solve because they were able to solve it in one line — one long stream of entirely mysterious commands.</p>
<p>Thanks to <a href="http://twitter.com/omargomez">Omar Gomez</a> for pointing out the interview article.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2008/04/09/a-little-simplicity-goes-a-long-way/">A little simplicity goes a long way</a><br />
<a href="http://www.johndcook.com/blog/2009/09/15/linus-torvalds-cpp/">I disagree with Torvalds about C++</a><br />
<a href="http://www.johndcook.com/blog/2009/07/27/baklav-code/">Baklava code</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/Bs1mf3VKw4M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/08/interview-with-clojure-author/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/08/interview-with-clojure-author/</feedburner:origLink></item>
		<item>
		<title>Edward Tufte, Ron Howard, and government consulting</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/qQxHtxK4Hrk/</link>
		<comments>http://www.johndcook.com/blog/2010/03/08/edward-tufte-appointment/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 16:32:51 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4742</guid>
		<description><![CDATA[Edward Tufte fans are understandably excited about President Obama&#8217;s announcement last Friday that Tufte has been asked to serve on the Recovery Independent Advisory Panel.
Tufte is a widely respected expert in data visualization. I attended one of his seminars years ago and thoroughly enjoyed it. I wish him well. I&#8217;m sure he will do a [...]]]></description>
			<content:encoded><![CDATA[<p>Edward Tufte fans are understandably excited about President Obama&#8217;s <a href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003e0&amp;topic_id=1&amp;topic=">announcement</a> last Friday that Tufte has been asked to serve on the Recovery Independent Advisory Panel.</p>
<p>Tufte is a widely respected expert in data visualization. I attended one of his <a href="http://www.edwardtufte.com/tufte/courses">seminars</a> years ago and thoroughly enjoyed it. I wish him well. I&#8217;m sure he will do a good job. However, there are limits on any statistician working for politicians.</p>
<p>I recommend listening to Ron Howard&#8217;s explanation for why he no longer consults for government. (<a href="http://soe.stanford.edu/research/layoutMSnE.php?sunetid=rhoward">Ron Howard</a> the Stanford University professor, not Ron Howard the actor/director.) Howard  produced  a decision analysis of nuclear fuel reprocessing for the Carter administration, but his hands were tied for political reasons. He concludes</p>
<blockquote><p>If this were the only case where I had this dispiriting result &#8230; perhaps I could treat it as an exception. But what I&#8217;ve found is every time I did a study like this &#8230; there was nobody home in terms of really wanting to know the result.</p></blockquote>
<p>Howard&#8217;s interview is available from the <a href="http://www.scienceofbetter.org/podcast/howard.html">here</a>. The remarks above run from 5:00 to 8:15.</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/qQxHtxK4Hrk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/08/edward-tufte-appointment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/08/edward-tufte-appointment/</feedburner:origLink></item>
		<item>
		<title>Weekend miscellany</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/dTzqR6s1IQY/</link>
		<comments>http://www.johndcook.com/blog/2010/03/06/weekend-miscellany-27/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 12:55:45 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4726</guid>
		<description><![CDATA[Software development
Brilliant bipolar minds
Internet law on .NET Rocks
Whatever happened to programming?
PowerShell survival guide
Business and economics
Drawing the line between free and paid
Federal worker compensation
Math
Nicomachus&#8217;s theorem
63rd Carnival of Mathematics
Miscellaneous
Why heroes use checklists
Free online OCR (haven&#8217;t tried it, but it looks interesting)
Parody

]]></description>
			<content:encoded><![CDATA[<p><strong>Software development</strong></p>
<p><a href="http://www.lambdassociates.org/blog/bipolar.htm">Brilliant bipolar minds</a><br />
<a href="http://www.dotnetrocks.com/default.aspx?showNum=530">Internet law on .NET Rocks</a><br />
<a href="http://reprog.wordpress.com/2010/03/03/whatever-happened-to-programming/">Whatever happened to programming?</a><br />
<a href="http://social.technet.microsoft.com/wiki/contents/articles/windows-powershell-survival-guide.aspx">PowerShell survival guide</a></p>
<p><strong>Business and economics</strong></p>
<p><a href="http://www.startupdaddy.com/stop-apologizing-for-being-in-business">Drawing the line between free and paid</a><br />
<a href="http://www.marginalrevolution.com/marginalrevolution/2010/03/department-of-yikes.html">Federal worker compensation</a></p>
<p><strong>Math</strong></p>
<p><a href="http://blogs.mathworks.com/loren/2010/03/04/nichomachuss-theorem/">Nicomachus&#8217;s theorem</a><br />
<a href="http://mathrecreation.blogspot.com/2010/03/carnival-of-mathematics-63.html">63rd Carnival of Mathematics</a></p>
<p><strong>Miscellaneous</strong></p>
<p><a href="http://blog.jonudell.net/2010/03/04/atul-gawande-on-why-heroes-use-checklists/">Why heroes use checklists</a><br />
<a href="http://www.free-ocr.com/">Free online OCR</a> (haven&#8217;t tried it, but it looks interesting)</p>
<p><strong>Parody</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/WbJ-y6BWfUc&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="295" src="http://www.youtube.com/v/WbJ-y6BWfUc&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/dTzqR6s1IQY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/06/weekend-miscellany-27/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/06/weekend-miscellany-27/</feedburner:origLink></item>
		<item>
		<title>Does lightning prefer metal or wood?</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/cMT78zqyT1w/</link>
		<comments>http://www.johndcook.com/blog/2010/03/05/lightening-metal-wood/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 13:20:37 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Probability and Statistics]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4718</guid>
		<description><![CDATA[The video below features a demonstration that lightning is as likely to strike wood as metal.

I want to focus on one line from the video. After showing simulated lightning strikes that hit a wooden rod five times and a copper rod five times, the narrator says
It&#8217;s five all, proof that metal does not attract lightning.
No, [...]]]></description>
			<content:encoded><![CDATA[<p>The video below features a demonstration that lightning is as likely to strike wood as metal.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/1lApkV49wEs&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/1lApkV49wEs&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>I want to focus on one line from the video. After showing simulated lightning strikes that hit a wooden rod five times and a copper rod five times, the narrator says</p>
<blockquote><p>It&#8217;s five all, proof that metal does not attract lightning.</p></blockquote>
<p>No, such an experiment would prove no such thing. I imagine the researchers conducted a much larger experiment and selected a representative sample. And I&#8217;m willing to accept their conclusion that metal does not attract lightning. But I would not accept such a conclusion from an experiment with 10 samples. What the experiment proves is that, under their experimental conditions, lightning will sometimes strike wood even a metal rod is nearby.</p>
<p>I have two complementary criticisms of this made-for-video science.</p>
<ol>
<li>The results could easily happen if their conclusion were not true.</li>
<li>The results could easily not have happened if there conclusion were true.</li>
</ol>
<p>Suppose in reality, lightning will not always strike the metal rod, but will prefer the metal. Suppose in the long run, lightning will strike the metal rod 60% of the time. It would not be unusual in that case to do an experiment with 10 strikes and find that half or more of the strikes hit wood.</p>
<p>Now suppose the researchers are exactly correct. In the long run, lightning has no preference for one rod or the other. What would viewers have thought if they showed a clip of 10 strikes, of which 6 hit metal and 4 hit wood? Many would have howled in protest. If lightning really had no preference for metal, the result should have been an even split, right? This is an example of the <a href="../2008/01/24/the-law-of-small-numbers/">Law of Small Numbers</a>. People underestimate the variability of small samples.</p>
<p>If the probability of lightning striking each rod is 50%, then in a sequence of experiments each containing 10 strikes, most will not have an exact 5-5 split. If you flip 10 fair coins, the most likely outcome is a 5-5 split, but this will happen only about 1/4 of the time. It&#8217;s more likely that you&#8217;ll get <em>near</em> a 5-5 split, sometimes with more heads and sometimes with more tails.</p>
<p>The exact 5-5 split in the video is good showmanship, but it&#8217;s misleading science.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2008/01/24/the-law-of-small-numbers/">Law of small numbers</a><br />
<a href="http://www.johndcook.com/blog/2008/01/25/example-of-the-law-of-small-numbers/">Example of the law of small numbers</a><br />
<a href="http://www.johndcook.com/blog/2010/02/25/the-law-of-medium-numbers/">Law of medium numbers</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/cMT78zqyT1w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/05/lightening-metal-wood/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/05/lightening-metal-wood/</feedburner:origLink></item>
		<item>
		<title>“Just in case” versus “just in time”</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/MqQ0TrR4CMc/</link>
		<comments>http://www.johndcook.com/blog/2010/03/03/just-in-case-versus-just-in-time/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 19:59:23 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4708</guid>
		<description><![CDATA[What do you learn just in case you&#8217;ll need it in the future, and what do you learn just in time when you do need it?
In general, you learn things in school just in case you&#8217;ll need them later. Then once you get a job, you learn more things just in time when you need [...]]]></description>
			<content:encoded><![CDATA[<p>What do you learn just in case you&#8217;ll need it in the future, and what do you learn just in time when you do need it?</p>
<p>In general, you learn things in school just in case you&#8217;ll need them later. Then once you get a job, you learn more things just in time when you need them.</p>
<p>When you learn just in time, you&#8217;re highly motivated. There&#8217;s no need to imagine whether you might apply what you&#8217;re learning since the application came first. But you can&#8217;t learn everything just in time. You have to learn some things before you can imagine using them. You need to have certain patterns in your head before you can recognize them in the wild.</p>
<p>Years ago someone told me that he never learned algebra and has never had a need for it. But I&#8217;ve learned algebra and use it constantly. It&#8217;s a lucky thing I was the one who learned algebra since I ended up needing it. But of course it&#8217;s not lucky. I would not have had any use for it either if I&#8217;d not learned it.</p>
<p>The difference between just-in-case and just-in-time is like the difference between training and trying. You can&#8217;t run a marathon by trying hard. The first person who tried that died. You have to train for it. You can&#8217;t just say that you&#8217;ll run 26 miles when you need to and do nothing until then.</p>
<p>Software developers prefer just in time learning. There&#8217;s so much out there that <a href="http://www.johndcook.com/blog/2009/10/05/yangi/">you aren&#8217;t going to need</a>. You can&#8217;t learn every detail of every operating system, every programming language, every library etc. before you do any real work. You can only remember so much arbitrary information without a specific need for it. Even if you could learn it all in the abstract, you&#8217;d be decades into your career without having produced anything. On top of that, technological information has a short shelf life, so it&#8217;s not worthwhile to learn too much that you&#8217;re not sure you have a need for.</p>
<p>On the other hand, you need to know what&#8217;s available, even if you&#8217;re only going to learn the details just in time. You can&#8217;t say &#8220;I need to learn about version control system now&#8221; if you don&#8217;t even know what version control is. You need to have a survey knowledge of technology just in case. You can learn APIs just in time. But there&#8217;s a big gray area in between where it&#8217;s hard to know what is worthwhile to learn and when.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2009/07/31/software-that-gets-used/">Software that gets used</a><br />
<a href="http://www.johndcook.com/blog/2009/10/05/yangi/">Why programmers write unneeded code</a><br />
<a href="http://www.johndcook.com/blog/2009/05/17/dont-standardize-education-personalize-it/">Don&#8217;t standardize education, personalize it</a><br />
<a href="http://www.johndcook.com/blog/2009/10/20/worthless-technical-books/">Worthless technical books</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/MqQ0TrR4CMc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/03/just-in-case-versus-just-in-time/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/03/just-in-case-versus-just-in-time/</feedburner:origLink></item>
		<item>
		<title>p-values are inconsistent</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/dJYf8-4An9w/</link>
		<comments>http://www.johndcook.com/blog/2010/03/03/p-values-are-inconsistent/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 19:51:18 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Probability and Statistics]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4701</guid>
		<description><![CDATA[If there&#8217;s evidence that an animal is a bear, you&#8217;d think there&#8217;s even more evidence that it&#8217;s a mammal. It turns out that p-values fail this common sense criterion as a measure of evidence.
I just ran across a paper of Mark Schervish1 that contains a criticism of p-values I had not seen before. p-values are [...]]]></description>
			<content:encoded><![CDATA[<p>If there&#8217;s evidence that an animal is a bear, you&#8217;d think there&#8217;s even more evidence that it&#8217;s a mammal. It turns out that <em>p</em>-values fail this common sense criterion as a measure of evidence.</p>
<p>I just ran across a paper of Mark Schervish<sup>1</sup> that contains a criticism of <em>p</em>-values I had not seen before. <em>p</em>-values are commonly used as measures of evidence despite the protests of many statisticians. It seems reasonable that a measure of evidence would have the following property. If a hypothesis H implies another hypothesis H&#8217;, then evidence in favor of H&#8217; should be at least as great as evidence in favor of H.</p>
<p>Here&#8217;s one of the examples from Schervish&#8217;s paper. Suppose data come from a normal distribution with variance 1 and unknown mean μ. Let H be the hypothesis that μ is contained in the interval (-0.5, 0.5). Let H&#8217; be the hypothesis that μ is contained in the interval (-0.82, 0.52). Then suppose you observe <em>x</em> = 2.18. The <em>p</em>-value for H is 0.0502 and the <em>p</em>-value for H&#8217; is 0.0498. This says there is more evidence to support the hypothesis H that μ is in the smaller interval than there is to support the hypothesis H&#8217; that μ is in the larger interval. If we adopt α = 0.05 as the cutoff for significance, we would reject the hypothesis that -0.82 &lt; μ &lt; 0.52 but accept the hypothesis that -0.5 &lt;  μ &lt; 0.5. We&#8217;re willing to accept that we&#8217;ve found a bear, but doubtful that we&#8217;ve found a mammal.</p>
<p><sup>1</sup> Mark J. Schervish. &#8220;P values: What They Are and What They Are Not.&#8221; The American Statistician, August 1996, Vol. 50, No. 3.</p>
<p><strong>Update</strong>: I added the details of the <em>p</em>-value calculation <a href="http://www.johndcook.com/schervish_footnote.pdf">here</a>.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2008/03/11/how-loud-is-the-evidence/">How loud is the evidence</a><br />
<a href="http://www.johndcook.com/blog/2008/12/03/the-cult-of-significance-testing/">The cult of significance testing</a><br />
<a href="http://www.johndcook.com/blog/2008/02/07/most-published-research-results-are-false/">Most published research results are false</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/dJYf8-4An9w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/03/p-values-are-inconsistent/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/03/p-values-are-inconsistent/</feedburner:origLink></item>
		<item>
		<title>The world has changed. Do work that matters.</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/j7o8hent3Xg/</link>
		<comments>http://www.johndcook.com/blog/2010/03/01/the-world-has-changed-do-work-that-matters/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 13:23:18 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Creativity]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4688</guid>
		<description><![CDATA[The latest episode of the Startup Success Podcast features Seth Godin talking about his new book Linchpin.
Bob Walsh: What&#8217;s next for Seth Godin?
Seth Godin: This. This is my life&#8217;s work. This is what I didn&#8217;t realize I was working on for the last ten years but I am. There&#8217;s no new book in the works. [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://startuppodcast.wordpress.com/2010/02/25/show-57-seth-godin-on-linchpins-and-startups/">latest episode</a> of the Startup Success Podcast features Seth Godin talking about his new book <a href="http://www.amazon.com/gp/product/1591843162?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1591843162">Linchpin</a>.</p>
<blockquote><p><strong>Bob Walsh</strong>: What&#8217;s next for Seth Godin?</p>
<p><strong>Seth Godin</strong>: This. This is my life&#8217;s work. This is what I didn&#8217;t realize I was working on for the last ten years but I am. There&#8217;s no new book in the works. There&#8217;s just this mission to help people see how the world just changed really violently and to encourage them to do work that matters.</p></blockquote>
<p>Seth Godin has always been passionate about his projects, but this one is different. His clarity and intensity are remarkable.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2008/02/12/how-to-avoid-being-outsourced-or-open-sourced/">How to avoid being outsourced</a><br />
<a href="http://www.johndcook.com/blog/2010/02/17/self-sufficiency-is-the-road-to-poverty/">Self-sufficiency is the road to poverty</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/j7o8hent3Xg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/03/01/the-world-has-changed-do-work-that-matters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/03/01/the-world-has-changed-do-work-that-matters/</feedburner:origLink></item>
		<item>
		<title>Weekend miscellany</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/QJ1XCzLQRLo/</link>
		<comments>http://www.johndcook.com/blog/2010/02/26/weekend-miscellany-26/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 22:32:58 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4644</guid>
		<description><![CDATA[
International
Israeli web design
North Korean propaganda
Computing
What really happens when you navigate a URL
Seven deadly sins of JavaScript implementation
Gallery of processor cache effects
The R type system
Math
Math symbols in HTML
How to solve quadratic congruences
(Thanks to Nemo for filling in a gap.)
Productivity and expertise
The myth of efficiency
Don&#8217;t become an expert
Miscellaneous
Linguistic pet peeves
The dentist and the statistician
Punching a friend in [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://www.johndcook.com/pier.jpeg" alt="" width="324" height="215" /></p>
<p><strong>International</strong></p>
<p><a href="http://www.smashingmagazine.com/2010/02/23/shalom-showcase-of-web-design-in-israel/">Israeli web design</a><br />
<a href="http://colinmarshall.libsyn.com/index.php?post_id=583917#">North Korean propaganda</a></p>
<p><strong>Computing</strong></p>
<p><a href="http://igoro.com/archive/what-really-happens-when-you-navigate-to-a-url/">What really happens when you navigate a URL</a><br />
<a href="http://www.smashingmagazine.com/2010/02/22/the-seven-deadly-sins-of-javascript-implementation/">Seven deadly sins of JavaScript implementation</a><br />
<a href="http://igoro.com/archive/gallery-of-processor-cache-effects/">Gallery of processor cache effects</a><br />
<a href="http://digitheadslabnotebook.blogspot.com/2010/01/r-type-system.html">The R type system</a></p>
<p><strong>Math</strong></p>
<p><a href="http://www.johndcook.com/math_symbols.html">Math symbols in HTML</a><br />
<a href="http://www.johndcook.com/quadratic_congruences.html">How to solve quadratic congruences</a><br />
(Thanks to <a href="https://self-evident.org/">Nemo</a> for filling in a gap.)</p>
<p><strong>Productivity and expertise</strong></p>
<p><a href="http://baselinescenario.com/2010/02/11/the-myth-of-efficiency/">The myth of efficiency</a><br />
<a href="http://blog.asmartbear.com/expert-distraction.html">Don&#8217;t become an expert</a></p>
<p><strong>Miscellaneous</strong></p>
<p><a href="http://www.npr.org/templates/story/story.php?storyId=124001415&amp;sc=fb&amp;cc=fp">Linguistic pet peeves</a><br />
<a href="http://www.stat.columbia.edu/~cook/movabletype/archives/2010/02/the_dentist_and.html">The dentist and the statistician</a><br />
<a href="http://downhillbothways.com/2010/02/24/swinging-knives-from-light-fixtures-also-true-love/">Punching a friend in the face</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/QJ1XCzLQRLo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/26/weekend-miscellany-26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/26/weekend-miscellany-26/</feedburner:origLink></item>
		<item>
		<title>The Law of Medium Numbers</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/1oUS7Fg7qB4/</link>
		<comments>http://www.johndcook.com/blog/2010/02/25/the-law-of-medium-numbers/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 01:19:47 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4668</guid>
		<description><![CDATA[There&#8217;s a law of large numbers, a law of small numbers, and a law of medium numbers in between.
The law of large numbers is a mathematical theorem. It describes what happens as you average more and more random variables.
The law of small numbers is a semi-serious statement about about how people underestimate the variability of [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a <a href="http://en.wikipedia.org/wiki/Law_of_large_numbers">law of large numbers</a>, a <a href="http://www.johndcook.com/blog/2008/01/24/the-law-of-small-numbers/">law of small numbers</a>, and a <strong>law of medium numbers</strong> in between.</p>
<p>The law of <strong>large </strong>numbers is a mathematical theorem. It describes what happens as you average more and more random variables.</p>
<p>The law of <strong>small </strong>numbers is a semi-serious statement about about how people underestimate the variability of the average of a small number of random variables.</p>
<p>The law of <strong>medium</strong> numbers is a term coined by Gerald Weinberg in his book <a href="http://www.amazon.com/gp/product/0932633498?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0932633498">An Introduction to General Systems Thinking</a>. He states the law as follows.</p>
<blockquote><p>For medium number systems, we can expect that large fluctuations, irregularities, and discrepancy with any theory will occur more or less regularly.</p></blockquote>
<p>The law of medium numbers applies to systems too large to study exactly and too small to study statistically. For example, it may be easier to understand the behavior of an individual or a nation than the dynamics of a small community. Atoms are simple, and so are stars, but medium-sized things like birds are complicated. Medium-sized systems are where you see chaos.</p>
<p>Weinberg warns that medium-sized systems challenge science because scientific disciplines define their boundaries by the set of problems they can handle. He says, for example, that</p>
<blockquote><p>Mechanics, then, is the study of those systems for which the approximations of mechanics work successfully.</p></blockquote>
<p>He warns that we should not be mislead by a discipline&#8217;s &#8220;success with systems of its own choosing.&#8221;</p>
<p>Weinberg&#8217;s book was written in 1975. Since that time there has been much more interest in the emergent properties of medium-sized systems that are not explained by more basic sciences. We may not understand these systems well, but we may appreciate the limits of our understanding better than we did a few decades ago.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="../2008/01/24/laws-of-large-numbers-and-small-numbers/">Laws of large numbers and small numbers</a><br />
<a href="http://www.johndcook.com/blog/2009/02/16/gerald-weinbergs-law-of-twins/">Gerald Weinberg&#8217;s law of twins</a><br />
<a href="http://www.johndcook.com/blog/2009/11/17/subnatural-and-supernatural/">Subnatural and supernatural</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/1oUS7Fg7qB4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/25/the-law-of-medium-numbers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/25/the-law-of-medium-numbers/</feedburner:origLink></item>
		<item>
		<title>Underwhelmed with progress</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/tg-ukWY0b6k/</link>
		<comments>http://www.johndcook.com/blog/2010/02/24/underwhelmed-with-progress/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 22:54:25 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4478</guid>
		<description><![CDATA[Virtual reality pioneer Jaron Lanier writes in his book You Are Not a Gadget about the lack of creativity in our use of computing power.
Let&#8217;s suppose that back in the 1980s I had said, &#8220;In a quarter century, when the digital revolution has made great progress and computer chips are millions of times faster than [...]]]></description>
			<content:encoded><![CDATA[<p>Virtual reality pioneer Jaron Lanier writes in his book <a href="http://www.amazon.com/gp/product/0307269647?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0307269647">You Are Not a Gadget</a> about the lack of creativity in our use of computing power.</p>
<blockquote><p>Let&#8217;s suppose that back in the 1980s I had said, &#8220;In a quarter century, when the digital revolution has made great progress and computer chips are <em>millions</em> of times faster than they are now, humanity will finally win the prize of being able to write a new encyclopedia and a new version of UNIX!&#8221; It would have sounded utterly pathetic.</p></blockquote>
<p>The quote specifically alludes to Wikipedia and Linux, but Lanier is critical of web culture in general. I&#8217;m not sure what I think about his position, but at a minimum he provides a counterbalance to the people who speak about the web in messianic tones.</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/tg-ukWY0b6k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/24/underwhelmed-with-progress/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/24/underwhelmed-with-progress/</feedburner:origLink></item>
		<item>
		<title>Something like a random sequence but …</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/pQ17zBdEXyc/</link>
		<comments>http://www.johndcook.com/blog/2010/02/24/random-sequence/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 12:33:37 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Clinical trials]]></category>
		<category><![CDATA[Probability and Statistics]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4655</guid>
		<description><![CDATA[When people ask for a random sequence, they&#8217;re often disappointed with what they get.
Random sequences clump more than most folks expect. For graphical applications, quasi-random sequence may be more appropriate.These sequences are &#8220;more random than random&#8221; in the sense that they behave more like what some folks expect from randomness. They jitter around like a [...]]]></description>
			<content:encoded><![CDATA[<p>When people ask for a random sequence, they&#8217;re often disappointed with what they get.</p>
<p>Random sequences clump more than most folks expect. For graphical applications, <a href="http://www.johndcook.com/blog/2009/03/16/quasi-random-sequences-in-art-and-integration/">quasi-random sequence</a> may be more appropriate.These sequences are &#8220;more random than random&#8221; in the sense that they behave more like what some folks expect from randomness. They jitter around like a random sequence, but they don&#8217;t clump as much.</p>
<p>Researchers conducting clinical trials are dismayed when a randomized trial puts several patients in a row on the same treatment. They want to assign patients one at a time to one of two treatments with equal probability, but they also want the allocation to work out evenly. This is like saying you want to flip a coin 100 times, and you also want to get exactly 50 heads and 50 tails. You can&#8217;t guarantee both, but there are effective compromises.</p>
<p>One approach is to randomize in blocks. For example, you could randomize in blocks of 10 patients by taking a sequence of 5 A&#8217;s and 5 B&#8217;s and randomly permuting the 10 letters. This guarantees that the allocations will be balanced, but some outcomes will be predictable. At a minimum, the last assignment in each block is always predictable: you assign whatever is left. Assignments could be even more predictable: if you give n A&#8217;s in a row in a block of 2n, you know the last n assignments will be all B&#8217;s.</p>
<p>Another approach is to &#8220;encourage&#8221; balance rather than enforce it. When you&#8217;ve given more A&#8217;s than B&#8217;s you could increase the probability of assigning a B. The greater the imbalance, the more heavily you bias the randomization probability in favor of the treatment that has been assigned less. This is a sort of compromise between equal randomization and block randomization. All assignments are random, though some assignments may be more predictable than others. Large imbalances are less likely than with equal randomization, but more likely than with block randomization. You can tune how aggressively the method responds to imbalances in order to make the method more like equal randomization or more like block randomization.</p>
<p>No approach to randomization will satisfy everyone because there are conflicting requirements. Randomization is a <a href="http://www.johndcook.com/blog/2008/04/22/problems-versus-dilemmas/">dilemma</a> to be managed rather than a problem to be solved.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2009/03/16/quasi-random-sequences-in-art-and-integration/">Quasi-random sequences in art and integration</a><br />
<a href="http://www.johndcook.com/blog/2008/07/22/three-ways-of-tuning-an-adaptively-randomized-trial/">Three ways of tuning an adaptively randomized trial</a><br />
<a href="http://www.johndcook.com/blog/2008/02/01/population-drift/">Population drift</a><br />
<a href="http://www.johndcook.com/blog/2008/04/15/galen-and-clinical-trials/">Galen and clinical trials</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/pQ17zBdEXyc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/24/random-sequence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/24/random-sequence/</feedburner:origLink></item>
		<item>
		<title>Random improvisation subjects</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/ktr577gDBrQ/</link>
		<comments>http://www.johndcook.com/blog/2010/02/23/random-improvisation-subjects/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 13:47:55 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Creativity]]></category>
		<category><![CDATA[Probability and Statistics]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4647</guid>
		<description><![CDATA[Destination ImagiNation is a non-profit organization that encourages student creativity. This is my family&#8217;s first year to participate in DI and it has been a lot of fun. One of the things that impresses me most about DI is that they have strict rules limiting adult input.
This weekend I was an appraiser at a  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://web.idodi.org/">Destination ImagiNation</a> is a non-profit organization that encourages student creativity. This is my family&#8217;s first year to participate in DI and it has been a lot of fun. One of the things that impresses me most about DI is that they have strict rules limiting adult input.</p>
<p>This weekend I was an appraiser at a  DI competition for an improvisation challenge. Teams could prepare for the overall format of the challenge, but some elements of the challenge were randomly selected on the day of the competition. This year the improvisations centered around endangered things. Teams were given a list of 10 endangered things ahead of time, but they wouldn&#8217;t know which thing would be theirs until just before they had to perform. Some of the things on the list were endangered animals, such as the giant panda. There were also other things in danger of disappearing, such as the VHS tape. The students also had to use a randomly chosen stock character and had to include a character with a randomly chosen &#8220;unimpressive superpower.&#8221;</p>
<p>There were 13 teams in the elementary division.<strong> What would you expect from 13 teams randomly selecting 10 endangered things</strong>? Obviously some endangered thing has to be chosen at least twice. Would you expect every item on the list to be chosen at least once? How often do you expect the most common item would be chosen?</p>
<p>In our case, three teams were assigned &#8220;glaciers&#8221; and five were assigned &#8220;the landline telephone.&#8221; The other items were assigned once or not at all. (No one was assigned &#8220;the Yiddish language&#8221;. Too bad. I really wanted to see what the students would do with that one.)</p>
<p><strong>Is there reason to suspect that the assignments were not random</strong>? How likely is it that in a competition of 13 teams that five or more teams would be given the same subject?  How likely is it that every subject would be used at least once? See an explanation <a href="http://www.johndcook.com/endangered.html">here</a>. Make a guess before looking at my answer.</p>
<p>Here&#8217;s some Python code you could use to simulate the selection of endangered things.</p>
<pre class="brush: python;">
from random import random

num_reps     = 100000 # number of simulation repetitions
num_subjects = 10     # number of endangered things
num_teams    = 13     # number of teams competing

def maxperday():
    tally = [0] * num_subjects
    for i in range(num_teams):
        subject = int(random()*num_subjects)
        tally[subject] += 1
    return max(tally)

total = 0
for rep in range(num_reps):
    if maxperday() &amp;gt;= 5:
        total += 1
print float(total)/num_reps
</pre>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/ktr577gDBrQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/23/random-improvisation-subjects/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/23/random-improvisation-subjects/</feedburner:origLink></item>
		<item>
		<title>Weekend miscellany</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/k3HNjlN-qiE/</link>
		<comments>http://www.johndcook.com/blog/2010/02/19/weekend-miscellany-25/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 18:58:39 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4610</guid>
		<description><![CDATA[Music
The night I met Einstein
Copyright
Copyright reform act
Computing
Code Myopia
Probability distributions in Excel
Top 25 most dangerous programming errors
When open source is no longer the underdog
What does functional programming mean?
Math
Why sin(11) is approximately -1
Math teachers at play carnival#23
Calculator trick
Psychology
Suckers for irrelevancy
What happens when you get drunk?

]]></description>
			<content:encoded><![CDATA[<p><strong>Music</strong></p>
<p><a href="http://sivers.org/weidman">The night I met Einstein</a></p>
<p><strong>Copyright</strong></p>
<p><a href="http://arstechnica.com/tech-policy/news/2010/02/fixing-fair-use-with-seven-little-words.ars">Copyright reform act</a></p>
<p><strong>Computing</strong></p>
<p><a href="http://clabs.org/blogki/index.cgi?page=/ComputersAndTechnology/CodeMyopia">Code Myopia<br />
</a><a href="http://www.johndcook.com/distributions_Excel.html">Probability distributions in Excel</a><a href="http://clabs.org/blogki/index.cgi?page=/ComputersAndTechnology/CodeMyopia"></a><br />
<a href="http://cwe.mitre.org/top25/#Listing">Top 25 most dangerous programming errors</a><br />
<a href="http://blogs.zdnet.com/open-source/?p=5893&amp;tag=wrapper;col1">When open source is no longer the underdog</a><br />
<a href="http://projects.tmorris.net/public/what-does-fp-mean/artifacts/0.3/chunk-html/index.html">What does functional programming mean?</a></p>
<p><strong>Math</strong></p>
<p><a href="http://divisbyzero.com/2010/02/16/interesting-approximations-using-trigonometry/">Why sin(11) is approximately -1</a><br />
<a href="http://mathrecreation.blogspot.com/2010/02/math-teachers-at-play-23.html">Math teachers at play carnival#23</a><br />
<a href="http://divisbyzero.com/2010/02/17/the-math-behind-a-neat-calculator-trick/">Calculator trick</a></p>
<p><strong>Psychology</strong></p>
<p><a href="http://heathbrothers.com/2010/02/underachieving-multitaskers/">Suckers for irrelevancy</a><br />
<a href="http://www.marginalrevolution.com/marginalrevolution/2010/02/what-does-it-mean-to-get-drunk.html">What happens when you get drunk?</a></p>
<p><img src="http://www.johndcook.com/PuertoRico2005_015.jpg" alt="Photo from Puerto Rico via morgueFile" width="324" height="243" /></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/k3HNjlN-qiE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/19/weekend-miscellany-25/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/19/weekend-miscellany-25/</feedburner:origLink></item>
		<item>
		<title>Popular research areas produce more false results</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/PfhPUjPZ-bs/</link>
		<comments>http://www.johndcook.com/blog/2010/02/19/popular-research-areas-produce-more-false-results/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 17:00:46 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Probability and Statistics]]></category>
		<category><![CDATA[Reproducibility]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4629</guid>
		<description><![CDATA[The more active a research area is, the less reliable its results are.
John Ioannidis suggested popular areas of research publish a greater proportion of false results in his paper Why most published research findings are false. Of course popular areas produce more results, and so they will naturally produce more false results. But Ioannidis is [...]]]></description>
			<content:encoded><![CDATA[<p>The more active a research area is, the less reliable its results are.</p>
<p>John Ioannidis suggested popular areas of research publish a greater proportion of false results in his paper <a href="http://www.johndcook.com/blog/2008/02/07/most-published-research-results-are-false/">Why most published research findings are false</a>. Of course popular areas produce more results, and so they will naturally produce more false results. But Ioannidis is saying that they also produce a greater <em>proportion</em> of false results.</p>
<p>Now Thomas Pfeiffer and Robert Hoffmann have produced empirical support for Ioannidis&#8217;s theory in the paper <a href="http://www.plosone.org/article/info:doi/10.1371/journal.pone.0005996">Large-Scale Assessment of the Effect of Popularity on the Reliability of Research</a>. Pfeiffer and Hoffmann review two reasons why popular areas have more false results.</p>
<blockquote><p>First, in highly competitive fields there might be stronger incentives to ‘‘manufacture’’ positive results by, for example, modifying data or statistical tests until formal statistical significance is obtained. This leads to inflated error rates for individual findings: actual error probabilities are larger than those given in the publications. &#8230; The second effect results from multiple independent testing of the same hypotheses by competing research groups. The more often a hypothesis is tested, the more likely a positive result is obtained and published even if the hypothesis is false.</p></blockquote>
<p>In other words,</p>
<ol>
<li>In a popular area there&#8217;s more temptation to fiddle with the data or analysis until you get what you expect.</li>
<li>The more people who test an idea, the more likely someone is going to find data in support of it by chance.</li>
</ol>
<p>The authors produce evidence of the two effects above in the context of papers written about protein interactions in yeast. They conclude that &#8220;The second effect is about 10 times larger than the first one.&#8221;</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2008/12/06/why-microarray-studies-are-often-wrong/">Why microarray conclusions are so often wrong</a><br />
<a href="http://www.johndcook.com/blog/2008/06/07/using-photoshop-on-experimental-results/">Using Photoshop on experimental results</a><br />
<a href="http://www.johndcook.com/blog/2008/01/15/irreproducible-analysis/">Irreproducible analysis</a><br />
<a href="http://www.johndcook.com/blog/2009/09/18/make-up-your-own-rules-of-probability/">Make up your own rules of probability</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/PfhPUjPZ-bs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/19/popular-research-areas-produce-more-false-results/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/19/popular-research-areas-produce-more-false-results/</feedburner:origLink></item>
		<item>
		<title>“Noncommercial” is fuzzy</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/iGe6OYgS-AE/</link>
		<comments>http://www.johndcook.com/blog/2010/02/18/noncommercial-is-fuzzy/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:29:49 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Economics]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4624</guid>
		<description><![CDATA[It is common for software, photos, and other creative works to be free for noncommercial use. I appreciate the generosity of those who want to give away their creations, and I appreciate the business savvy of those who see giving some things away as a way to make more money elsewhere. But &#8220;noncommercial&#8221; is a [...]]]></description>
			<content:encoded><![CDATA[<p>It is common for software, photos, and other creative works to be free for noncommercial use. I appreciate the generosity of those who want to give away their creations, and I appreciate the business savvy of those who see giving some things away as a way to make more money elsewhere. But &#8220;noncommercial&#8221; is a fuzzy term.</p>
<p>What exactly is noncommercial use? If I include a photo in software that I&#8217;m give away, is that noncommercial use? What if someone includes the photo in  iTunes? That&#8217;s software that is freely given away, although it&#8217;s clearly a distribution channel for Apple music sales. What about Internet Explorer? Microsoft gives away IE, and it&#8217;s not an obvious distribution channel for Microsoft, but most people would call IE commercial software. Is it the nature of the organization rather than the nature of the product that determines whether something is non-commercial?</p>
<p>Sometimes &#8220;noncommercial&#8221; is used as an opposite of &#8220;professional.&#8221; But what about employees of charitable organizations such as the American Red Cross? Is a Red Cross relief worker in Haiti doing noncommercial work? What about a lawyer working at Red Cross headquarters? Would it change anything if the lawyer were a volunteer?</p>
<p>Sometimes &#8220;educational&#8221; is used as a synonym for noncommercial. But if your profession is education, is your work professional or educational? Does it matter whether a school is public or private? Most people would agree that a student doing a homework assignment is engaged in noncommercial activity. What if the student is a teaching assistant receiving a small salary? In that case is it noncommercial use when the student is doing his own homework but commercial use when he&#8217;s preparing to teach a class? Isn&#8217;t education almost always a commercial activity? After all, why are students in school? They&#8217;re preparing to make a living at something. They may have blatant commercial motives for doing their homework.</p>
<p>Not only can you argue that educational use is commercial, you can argue that commercial use is educational. If an accountant looks up a tax regulation, they&#8217;re trying to learn something. Isn&#8217;t that educational? Is it educational use when a student looks up a tax regulation but commercial use when an accountant looks up the same regulation?</p>
<p>Individuals and organizations are free to define &#8220;commercial&#8221; or &#8220;noncommercial&#8221; use however they please. Personally, I&#8217;d rather either sell something or give it away without regard for how it&#8217;s going to be used.</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/iGe6OYgS-AE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/18/noncommercial-is-fuzzy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/18/noncommercial-is-fuzzy/</feedburner:origLink></item>
		<item>
		<title>Economizing approximations</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/5ks6DpUsads/</link>
		<comments>http://www.johndcook.com/blog/2010/02/18/economizing-approximations/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 13:47:31 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4600</guid>
		<description><![CDATA[The most obvious approximation may not be the best. But sometimes a small change to an obvious approximation can make it better approximation. This post gives an example illustrating this point.
The easiest, most obvious way to obtain a polynomial approximation is to use a truncated Taylor series. But such a polynomial may not be the [...]]]></description>
			<content:encoded><![CDATA[<p>The most obvious approximation may not be the best. But sometimes a small change to an obvious approximation can make it better approximation. This post gives an example illustrating this point.<span id="more-4600"></span></p>
<p>The easiest, most obvious way to obtain a polynomial approximation is to use a truncated Taylor series. But such a polynomial may not be the most efficient approximation. Forman Acton gives the example of approximating cos(π x) on the interval [-1, 1] in his classic book <a href="http://www.amazon.com/gp/product/0883854503?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0883854503">Numerical Methods that Work</a>. The point of this example is not the usefulness of the final result; a footnote below explains that this isn&#8217;t how cosines are computed in practice. The point is that you can sometimes improve a convenient but suboptimal approximation with a small change.</p>
<p>The goal in Acton&#8217;s example is to approximate cos(π x) with a maximum error of less than 10<sup>-6</sup> across the interval. The Taylor polynomial</p>
<p style="text-align:center"><img src="http://www.johndcook.com/cosinetaylor.gif" alt="\cos \pi x = 1 - \frac{\pi^2}{2!}x^2 + \frac{\pi^4}{4!}x^4 - \cdots + \frac{\pi^{16}}{16!}x^{16}" width="303" height="37" /></p>
<p>is accurate to within about 10<sup>-7</sup> and so is certainly good enough. However the last term of the series, the x<sup>16</sup> term, contributes less than the other terms to the accuracy of the approximation. On the other hand, this term cannot simply be discarded because without it the error rises to 10<sup>-5</sup>. The clever idea is to replace the x<sup>16</sup> term with a linear combination of the other terms. After all, x<sup>16</sup> doesn&#8217;t look that different from x<sup>14</sup> or x<sup>12</sup>. Acton uses the 16th <a href="http://www.johndcook.com/ChebyshevPolynomials.pdf">Chebyshev polynomial</a> to approximate x<sup>16</sup> by a combination of smaller even powers of x. This new approximation is almost as accurate as the original Taylor polynomial with an error that remains below the desire threshold. Acton calls this process economizing an approximation.</p>
<p>This process could be repeated to see whether the x<sup>14</sup> term could be eliminated. Or you could directly find a Chebyshev series approximation to cos(π x) from the beginning. Acton did not have a symbolic computation package like Mathematica when he wrote his book in 1970 and so he was computing his approximations by hand. Directly computing a Chebyshev approximation would have been a lot of work. By just replacing the highest order term, he achieved nearly the same effect but with less effort.</p>
<p>Computing power has improved several orders of magnitude since Acton wrote his book, and some of his examples now seem quaint. However, I don&#8217;t know of a better book for teaching how to think about numerical analysis than <a href="http://www.amazon.com/gp/product/0883854503?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0883854503">Numerical Methods that Work</a>. Acton has another good book that is harder to find, <a href="http://www.amazon.com/gp/product/B001KV5LDY?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B001KV5LDY">Real Computing Made Real: Preventing Errors in Scientific and Engineering Calculations</a>.</p>
<p><strong>Footnote 1: evaluating polynomials</strong></p>
<p>Suppose you want to write code to evaluate the polynomial</p>
<p style="padding-left: 30px;">P(x) = a<sub>0</sub> + a<sub>2</sub>x<sup>2</sup> + a<sub>4</sub>x<sup>4</sup> + &#8230; + a<sub>14</sub>x<sup>14</sup>.</p>
<p>The first step would be to reduce this to a 7th degree polynomial in y = x<sup>2</sup>.</p>
<p style="padding-left: 30px;">Q(y) = a<sub>0</sub> + a<sub>1</sub>y + a<sub>2</sub>y<sup>2</sup> + &#8230; + a<sub>7</sub>y<sup>7</sup>.</p>
<p>Directly evaluating Q(y) would take 1 + 2 + 3 + &#8230; + 7 = 28 multiplications, computing every power of y directly. For example, computing y<sup>5</sup> as y*y*y*y*y. Factoring the polynomial is much more efficient:</p>
<p>((((((a<sub>7</sub>y + a<sub>6</sub>)y + a<sub>5</sub>)y + a<sub>4</sub>)y + a<sub>3</sub>)y + a<sub>2</sub>)y + a<sub>1</sub>)y + a<sub>0</sub></p>
<p><strong>Footnote 2: computing sine and cosine<br />
</strong></p>
<p>The point of Acton&#8217;s example was to improve on a Taylor polynomial evaluated a moderate distance from the point where the Taylor series is centered. It does not illustrate how cosines are actually computed. See this answer on StackOverflow for an outline of <a href="http://stackoverflow.com/questions/345085/how-do-trigonometric-functions-work/345117#345117">how trig functions are computed</a> in practice.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2009/02/14/old-math-books/">Old math books</a><br />
<a href="http://www.johndcook.com/ChebyshevPolynomials.pdf">Chebyshev polynomials</a><br />
<a href="http://www.johndcook.com/OrthogonalPolynomials.pdf">Orthogonal polynomials</a><br />
<a href="http://www.johndcook.com/blog/2009/04/01/polynomial-interpolation-errors/">Interpolation errors</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/5ks6DpUsads" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/18/economizing-approximations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/18/economizing-approximations/</feedburner:origLink></item>
		<item>
		<title>Self-sufficiency is the road to poverty</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/7RiuyPlzsBI/</link>
		<comments>http://www.johndcook.com/blog/2010/02/17/self-sufficiency-is-the-road-to-poverty/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:33:01 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Economics]]></category>
		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4567</guid>
		<description><![CDATA[In his podcast Roberts on Smith, Ricardo, and Trade, Russ Roberts states that self-sufficiency is the road to poverty. Roberts elaborates on the economic theories of Adam Smith and David Ricardo to explain how specialization and trade create wealth and how how radical self-sufficiency leads to poverty.
Suppose you decide to grow your own food. Are [...]]]></description>
			<content:encoded><![CDATA[<p>In his podcast <a href="http://www.econtalk.org/archives/2010/02/roberts_on_smit.html">Roberts on Smith, Ricardo, and Trade</a>, Russ Roberts states that <strong>self-sufficiency is the road to poverty</strong>. Roberts elaborates on the economic theories of Adam Smith and David Ricardo to explain how specialization and trade create wealth and how how radical self-sufficiency leads to poverty.</p>
<p>Suppose you decide to grow your own food. Are you going to buy your gardening tools from Ace Hardware? If you really want to be self-reliant, you should make your own tools. Are you going to take your chances with what water happens to fall on your property, or are you going to rely on municipal water? Are you going to forgo fertilizer or rely on someone else to sell it to you? Carried to extremes, self-reliance ends in a Robinson Crusoe-like existence.</p>
<p>People in poor countries are often poor because they are self-reliant in the sense that they must do many things for themselves. They do not have the opportunities for specialization and trade that are available to those who live in more prosperous countries.</p>
<p>Some degree of self-reliance makes economic sense. <a href="http://www.johndcook.com/blog/2009/11/15/transaction-costs/">Transaction costs</a>, for example, make it impractical to outsource small tasks. It also makes sense to do some things that are not economically feasible. For example, an orthodontist may choose to make some of her own clothing or keep a garden for the pleasure of doing so, not because these activities are worth her time. In general, however, specialization and large trading communities are the road to prosperity. Without a large economic community, no one can become an orthodontist (or an accountant, barrista, electrician, &#8230;)</p>
<p>Why do we so often value self-sufficiency more than specialization and trade? Here are a three reasons that come to mind.</p>
<ol>
<li>In America, self-sufficiency is deeply rooted in our culture. We admire the pioneer spirit, and this leads to seeing as virtues actions that were once a necessity.</li>
<li>Self-sufficient people are generally well liked, especially if they&#8217;re not too prosperous.  Conversely, those who create wealth by leveraging the labor of others are often treated with suspicion and jealously.</li>
<li>Our school system encourages &#8220;well roundedness&#8221; rather than excellence. The way to succeed is to be moderately good at everything, even if you&#8217;re not outstanding at anything. (More on this idea <a href="http://www.johndcook.com/blog/2009/03/03/evaluate-people-at-their-best/">here</a>.)</li>
</ol>
<p><strong>Update</strong>: After writing this post, I read Russ Robert&#8217;s book <a href="http://www.amazon.com/gp/product/0131433547?ie=UTF8&amp;tag=theende-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0131433547">The Choice: A Fable of Free Trade and Protectionism</a>. I discovered one of the later chapters is entitled &#8220;Self-Sufficiency Is the Road to Poverty.&#8221; Excellent book.</p>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2009/03/03/evaluate-people-at-their-best/">Evaluate people at their best or at their worst?</a><br />
<a href="http://www.johndcook.com/blog/2010/01/22/make-something-and-sell-it/">Make something and sell it</a><br />
<a href="http://www.johndcook.com/blog/2010/01/09/do-something-dull/">Do something dull</a><br />
<a href="http://www.johndcook.com/blog/2009/11/15/transaction-costs/">Transaction costs</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/7RiuyPlzsBI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/17/self-sufficiency-is-the-road-to-poverty/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/17/self-sufficiency-is-the-road-to-poverty/</feedburner:origLink></item>
		<item>
		<title>Statistical functions in Excel</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/8z8k3L-Xmb8/</link>
		<comments>http://www.johndcook.com/blog/2010/02/17/statistical-functions-in-excel/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:03:15 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Probability and Statistics]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=4616</guid>
		<description><![CDATA[Depending on your expectations, you may have different reactions to the statistical function support in Excel. If you expect anything similar to a statistical package, you&#8217;ll be sorely disappointed. But if you think of Excel as a spreadsheet for everybody that sometimes lets you do statistical tasks right there without having to open up a [...]]]></description>
			<content:encoded><![CDATA[<p>Depending on your expectations, you may have different reactions to the statistical function support in Excel. If you expect anything similar to a statistical package, you&#8217;ll be sorely disappointed. But if you think of Excel as a spreadsheet for everybody that sometimes lets you do statistical tasks right there without having to open up a statistical package, you&#8217;ll be pleased.</p>
<p>I was looking into the functions in Excel 2007 while preparing for a class I taught yesterday. I wanted to emphasize that certain functions are everywhere, not only in mathematical packages like <a href="http://www.johndcook.com/distributions_Mathematica.html">Mathematica</a> and <a href="http://www.johndcook.com/distributions_R_SPLUS.html">R</a>, but also in <a href="http://www.johndcook.com/distributions_scipy.html">Python</a> and even <a href="http://www.johndcook.com/distributions_Excel.html">Excel</a>.</p>
<p>Excel&#8217;s set of functions is inconsistent, both in the functionality provided and in the names it uses. Having an <a href="http://www.johndcook.com/blog/2008/10/14/api-symmetry/">asymmetric API</a> makes it harder to remember what is available and how to use it. On the other hand, the most commonly needed functions are available. The functions are individually reasonable even though they do not fit together into a simple pattern.</p>
<p>For details, see my notes <a href="http://www.johndcook.com/distributions_Excel.html">Probability distributions in Excel 2007</a>.</p>
<p>I discovered along the way that Excel has a <code>GAMMALN</code> function to compute the logarithm of the Gamma function Γ(x). This is a very useful function to have, even more useful than the Gamma function itself for reasons explained <a href="http://www.johndcook.com/blog/2008/04/24/how-to-calculate-binomial-probabilities/">here</a>.</p>
<p><strong>Related links</strong>:</p>
<p><a href="http://anyall.org/blog/2009/02/comparison-of-data-analysis-packages-r-matlab-scipy-excel-sas-spss-stata/">Comparison of data analysis packages</a> from Brendan O&#8217;Connor</p>
<p><a href="../2008/10/28/r-excel-windows-clipboard/">R, Excel, and the Windows clipboard</a> (good tips in the comments)</p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/8z8k3L-Xmb8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/17/statistical-functions-in-excel/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/17/statistical-functions-in-excel/</feedburner:origLink></item>
		<item>
		<title>Top four LaTeX mistakes</title>
		<link>http://feedproxy.google.com/~r/TheEndeavour/~3/TGeEsPTQL8c/</link>
		<comments>http://www.johndcook.com/blog/2010/02/15/top-latex-mistakes/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 13:52:13 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Typography]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=3169</guid>
		<description><![CDATA[Here are four of the most common typesetting errors I see in books and articles created with LaTeX.
1) Quotes
Quotation marks in LaTeX files begin with two back ticks, ``, and end with two single quotes, ''.

The first &#8220;Yes&#8221; was written as
``Yes.''
in LaTeX while the one with the backward opening quote was written as
"Yes."
2) Differentials
Differentials, most [...]]]></description>
			<content:encoded><![CDATA[<p>Here are four of the most common typesetting errors I see in books and articles created with LaTeX.</p>
<p><strong>1) Quotes</strong></p>
<p>Quotation marks in LaTeX files begin with two back ticks, <code>``</code>, and end with two single quotes, <code>''</code>.</p>
<p><img class="alignnone" src="http://www.johndcook.com/latexmistake1.png" alt="" width="82" height="81" /></p>
<p>The first &#8220;Yes&#8221; was written as</p>
<pre>``Yes.''</pre>
<p>in LaTeX while the one with the backward opening quote was written as</p>
<pre>"Yes."</pre>
<p><strong>2) Differentials</strong></p>
<p>Differentials, most commonly the dx at the end of an integer, should have a little space separating them from other elements. The &#8220;dx&#8221; is a unit and so it needs a little space to keep from looking like the product of &#8220;d&#8221; and &#8220;x.&#8221; You can do this in LaTeX by inserting <code>\,</code> before and between differentials.</p>
<p><img class="alignnone" src="http://www.johndcook.com/latexmistake2a.png" alt="" width="126" height="131" /></p>
<p>The first integral was written as</p>
<pre> \int_0^1 f(x) \, dx</pre>
<p>while the second forgot the <code>\,</code> and was written as</p>
<pre> \int_0^1 f(x)  dx</pre>
<p>The need for a little extra space around differentials becomes more obvious in multiple integrals.</p>
<p><img class="alignnone" src="http://www.johndcook.com/latexmistake2b.png" alt="" width="156" height="77" /></p>
<p>The first was written as</p>
<pre>dx \, dy = r \, dr \, d\theta</pre>
<p>while the second was written as</p>
<pre>dx  dy = r  dr  d\theta</pre>
<p><strong>3) Multi-letter function names</strong></p>
<p>The LaTeX commands for typesetting functions like sin, cos, log, max, etc. begin with a backslash. The command <code>\log</code> keeps &#8220;log,&#8221; for example, from looking like the product of variables &#8220;l&#8221;, &#8220;o&#8221;, and &#8220;g.&#8221;</p>
<p><img class="alignnone" src="http://www.johndcook.com/latexmistake3a.png" alt="" width="115" height="79" /></p>
<p>The first example above was written as</p>
<pre>\log e^x = x</pre>
<p>and the second as</p>
<pre>log e^x = x</pre>
<p>The double angle identity for sine is readable when properly typeset and a jumbled mess when the necessary backslashes are left out.</p>
<p><img class="alignnone" src="http://www.johndcook.com/latexmistake3b.png" alt="" width="184" height="71" /></p>
<p>The first example was written</p>
<pre>\sin 2u = 2 \sin u \cos u</pre>
<p>and the second as</p>
<pre>sin 2u = 2 sin u cos u</pre>
<p><strong>4) Failure to use math mode</strong></p>
<p>LaTeX uses math mode to distinguish variables from ordinary letters. Variables are typeset in math italic, a special style that is not the same as ordinary italic prose.</p>
<p><img class="alignnone" src="http://www.johndcook.com/latexmistake4.png" alt="" width="404" height="74" /></p>
<p>The first sentence was written as</p>
<pre>Given a matrix $A$ and vector $b$, solve $Ax = b$.</pre>
<p>and the second as</p>
<pre>Given a matrix A and vector b, solve Ax = b.</pre>
<p><strong>Related posts</strong>:</p>
<p><a href="http://www.johndcook.com/blog/2009/07/15/microsoft-word-equation-editor/">Microsoft equation editor</a><br />
<a href="http://www.johndcook.com/blog/2008/09/16/four-ways-to-convert-excel-tables-to-latex/">Converting Excel tables to LaTeX</a><br />
<a href="http://www.johndcook.com/blog/2009/03/15/typesetting-music-in-latex-and-lilypond/">Typesetting music in LaTeX</a><br />
<a href="http://www.johndcook.com/blog/2008/04/03/microsoft-word-and-latex/">Contrasting Word and LaTeX</a><br />
<a href="http://www.johndcook.com/blog/2008/12/15/fonts-translations-python/">Things that work best when you don&#8217;t notice them</a></p>
<img src="http://feeds.feedburner.com/~r/TheEndeavour/~4/TGeEsPTQL8c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.johndcook.com/blog/2010/02/15/top-latex-mistakes/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://www.johndcook.com/blog/2010/02/15/top-latex-mistakes/</feedburner:origLink></item>
	</channel>
</rss>
