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

<channel>
	<title>gmilburn.ca &#187; Geoff</title>
	<atom:link href="http://www.gmilburn.ca/author/geoff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gmilburn.ca</link>
	<description>Essays, Projects, and Distractions of Geoff Milburn</description>
	<lastBuildDate>Sun, 18 Jul 2010 01:52:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rumors of God</title>
		<link>http://www.gmilburn.ca/2010/07/16/rumors-of-god/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rumors-of-god</link>
		<comments>http://www.gmilburn.ca/2010/07/16/rumors-of-god/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 16:15:11 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[fermilab]]></category>
		<category><![CDATA[physics]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2486</guid>
		<description><![CDATA[TheHiggs boson is one of the most important, most abstract, and most interesting ideas in current physics. Dubbed the "god" particle after an editor disallowed one of the co-discoverers from calling it "that goddamn particle", it is the only remaining particle in the Standard Model that has not been directly observed by humans.]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://en.wikipedia.org/wiki/Higgs_boson">Higgs boson</a> is one of the most important, most abstract, and most interesting ideas in current physics. Dubbed the &#8220;god&#8221; particle after <a href="http://www.guardian.co.uk/science/2008/jun/30/higgs.boson.cern">an editor disallowed one of the co-discoverers from calling it &#8220;that goddamn particle&#8221;</a>, it is the only remaining particle in the <a href="http://en.wikipedia.org/wiki/Standard_model">Standard Model</a> that has not been directly observed by humans.</p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2010/07/standard-model.gif"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/07/standard-model-300x288.gif" alt="" title="standard-model" width="300" height="288" class="alignright size-medium wp-image-2487" /></a></p>
<p>The fact that we&#8217;ve never seen any evidence of its presence is a big deal. The <a href="http://en.wikipedia.org/wiki/Standard_model">Standard Model</a> is a shining jewel of modern physics, a mathematical model describing the most basic facets of the world using a <a href="http://en.wikipedia.org/wiki/Symmetry_group">symmetry group</a>. The predictions of this model have been confirmed so many times and in so many different ways that it&#8217;s almost become more exciting to think of what it would mean if the theory were broken by some strange event than to rejoice at yet another correct prediction. </p>
<p>So this is why the missing Higgs boson fascinates so many. But why is it missing at all? The answer comes from the Standard model itself and its mathematical foundations. Like the sides of a many-faceted jewel, a symmetry group has many parts, all reflecting some basic property of an underlying structure. Every single observation so far indicates a jewel of a certain shape, and we&#8217;ve seen every face except for one. There seems to be no other possible structure that would fit the observations and create a complete crystal to speak, so we&#8217;re left inevitably with the conclusion that one face remains in the dark.</p>
<h2>Broken Silence</h2>
<p>But now something very interesting has happened. Evidence of the Higgs boson may have been found! Not at the new and fancy <a href="http://en.wikipedia.org/wiki/Large_Hadron_Collider">Large Hadron Collider</a>, but the good old <a href="http://en.wikipedia.org/wiki/Tevatron">Tevatron</a>, home of <a href="http://www.gmilburn.ca/2008/05/17/fermilabs-strange-letter-progress/">Fermilab</a>. <a href="http://motls.blogspot.com/2010/07/detailed-rumor-gluonb-goes-to-bhiggs.html">Apparently a rather prominent physicist passed some rumours going around the physics world to a blogger.</a></p>
<blockquote><p>On a completely different issue, I&#8217;ve heard that there&#8217;s a rumor going around Aspen that the Tevatron will be announcing discovery of gluon + b → b + Higgs, which would then require large tan(beta), which would fit the MSSM. I guess we&#8217;ll find out in a couple of weeks.</p></blockquote>
<p>This is big news &#8211; the observations indicate a &#8220;light&#8221; Higgs boson, which is why the older Tevatron was able to find it when everyone thought the higher power Large Hadron Collider would be required. <a href="http://motls.blogspot.com/2010/07/what-light-higgs-would-mean-for.html">What does a light Higgs boson mean?</a> Something very inspiring &#8211; that particle physics isn&#8217;t quite done figuring out the world quite yet. </p>
<blockquote><p>&#8230;a light Higgs boson pretty much proves that there has to be new physics beyond the Standard Model well below the Planck scale. The new particles should be bosons and the only natural reasons why the Higgs, or the new bosons, should stay light is <a href="http://en.wikipedia.org/wiki/Supersymmetry">supersymmetry</a>.</p>
<p>The best fits based on this assumption imply that the squarks and slepton masses &#8211; and more generally, other superpartner masses &#8211; should be close to 500 GeV or so and they should be observable by the LHC, possibly by the end of 2011.</p></blockquote>
<p>But what does Fermilab, the apparent source of this grand discovery <a href="http://twitter.com/fermilabtoday/">have to say about it</a>?</p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2010/07/fermilab-denial.jpg"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/07/fermilab-denial-300x121.jpg" alt="" title="fermilab-denial" width="300" height="121" class="aligncenter size-medium wp-image-2498" /></a></p>
<p>I find it interesting that there is not an explicit denial, but a statement that these rumblings in the physics community are &#8220;just rumours&#8221;. Rumours can&#8217;t be published in scientific journals &#8211; so I suppose we&#8217;ll have to wait and see just what this all means.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/07/16/rumors-of-god/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Our Modular Minds</title>
		<link>http://www.gmilburn.ca/2010/07/10/our-modular-minds/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=our-modular-minds</link>
		<comments>http://www.gmilburn.ca/2010/07/10/our-modular-minds/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 20:57:24 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[consciousness]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2436</guid>
		<description><![CDATA[I believe that ultimately human consciousness can be described by a program. Now this doesn't mean we're all in the Matrix, simply that our mind is a giant seething logical machine with values that are manipulated by rules. ]]></description>
			<content:encoded><![CDATA[<p>I believe that ultimately human consciousness can be described by a program. Now this doesn&#8217;t mean we&#8217;re all in the Matrix, simply that our mind is a giant seething logical machine with values that are manipulated by rules. There is no strange new science in the sense of new specialties that must be discovered in order for the mind to be understood, but a progression in <a href="http://www.amazon.com/gp/product/1579550088?ie=UTF8&#038;tag=gmilburnca-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1579550088">a new kind of science as Wolfram dubbed it</a><img src="http://www.assoc-amazon.com/e/ir?t=gmilburnca-20&#038;l=as2&#038;o=1&#038;a=1579550088" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; the study of how complexity arises. </p>
<h2>A List of Rules</h2>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2010/07/turtlesq.jpg"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/07/turtlesq.jpg" alt="" title="turtlesq" width="250" height="192" class="alignright size-full wp-image-2447" /></a></p>
<p>When I first heard that you could program a computer as a child I was amazed. A strange wonder that I could only spend a few shared minutes with at school, something that could draw, add, and write far faster than I could ever dream of &#8211; and I could tell it what to do? I wasn&#8217;t quite sure how to inform it to bend to my every wish, so I started with Turtle (actually called LOGO I later found) upon my teacher&#8217;s recommendation. I fed Turtle long lists of instructions &#8211; move forward, draw a line, turn left, repeated in all and any ways I could think of. He would draw glowing green shapes across my screen, and never tired.</p>
<h2>The Need for Modularity</h2>
<p>The only problem was that while the Turtle seemed infallible, I certainly could not say the same. I was making the classic beginner&#8217;s mistake &#8211; I would write one giant chunk of code that was supposed to cause my turtle to dance in precisely the way I wanted. Any little mistake would send it widely off course and I would end up with a mess that barely looked like the original design at the best of times. I later learned that using a programming concept called &#8220;modules&#8221; could help me isolate these errors and make code more efficient and reusable. Just like a company could have a manufacturing and engineering division which could communicate with standardized blueprints, a program could have different modules that would exchange data in a standardized manner. A modular program is more stable since mistakes are typically limited in influence to the module they&#8217;re contained in, and each module can be modified by separate influences with only the understanding that they are supposed to behave and communicate in a certain manner.</p>
<h2>Damage as Evidence</h2>
<p>So is our mind modular? Well, if it wasn&#8217;t, we could assume that a brain injury affecting a certain part of the brain would have a consistent and general impact across all of our consciousness. The only problem is that we generally only see a nonspecific mental decline like this from a nonspecific trauma, say impact blows to the head over a long period of time. Injuries in specific areas seem to be correlated with deficits in certain mental abilities &#8211; while leaving others totally intact.</p>
<p>A <a href="http://en.wikipedia.org/wiki/Stroke">stroke</a> can basically be thought of as an incident where blood flow is drastically affected in a certain specific area of the brain. This subregion of the brain is unable to function due to lack of blood flow, and very strange things can occur.</p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2010/07/hands_wide.jpg"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/07/hands_wide-300x168.jpg" alt="" title="hands_wide" width="300" height="168" class="alignright size-medium wp-image-2449" /></a></p>
<p><a href="http://www.npr.org/templates/story/story.php?storyId=127745750">Howard Engel is a Canadian novelist who had a stroke</a>. Upon waking one morning, he found that the morning paper seemed to be written in some strange script, an alphabet he could not understand. Everything else appeared normal, except his visual cortex had been damaged in a specific area which prevented him from visually parsing letters and words. As a writer, he despaired &#8211; it seems that his livelihood had been lost. Soon he realized a critical distinction which gave him hope &#8211; he may be unable to read visually, but could he write? Howard sat down and traced these strange looking symbols, his pen gliding over the bizarre shapes over and over. And eventually, the concepts came back to him. In a strange sense, he could now read again. Years and years of writing had associated certain movements of his hand with letters and concepts. Instead of words in his head put to paper by hand movements and a pen, he had to move concepts in the opposite direction &#8211; moving his hand over shapes written previously by others, the concepts echoed back up his motor cortex.</p>
<p>And it worked. There was irreparable damage to his visual cortex, a critical module malfunctioning. So he hacked his brain, redistributing resources from his motor cortex which had been trained to recognized these same symbols and concepts necessary for reading by his constant writing. Howard now traces the shapes he sees on the inside of his front teeth with his tongue. His speed has steadily increased, and he says he can now read about half of the subtitles in a foreign film before they flash off the screen.</p>
<p>It doesn&#8217;t seem too strange to suggest that there are different localized modules in the brain for motor control, visual interpretation, and other concepts easily identifiable with different aspects of the physical world. But are there modules with finer distinctions, working on different parts of our mental experience rather than different parts of the physical world?</p>
<h2>The Wason Selection Task</h2>
<p>The <a href="http://www.psych.ucsb.edu/research/cep/socex/wason.htm">Wason selection task</a> is a very interesting experiment in the field of psychological reasoning. Before I spoil it for you by talking too much, let&#8217;s just do it right now. Look at the following cards.</p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2010/07/wason_1.png"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/07/wason_1-560x225.png" alt="" title="wason_1" width="560" height="225" class="aligncenter size-large wp-image-2457" /></a></p>
<p>Assume the cards have a number on one side, and a color on the other. What cards need to be flipped over to make sure that all even numbers have red backs? Make sure you&#8217;ve picked a card or cards.</p>
<p>Got it? Now a bit of unsettling but ego-salvaging news. When this experiment is done with undergraduates, only 10 to 20 percent get it right. The correct answer is to flip over two cards: the number 4 to make sure it has a red back, and the blue card to make sure that it doesn&#8217;t have an even number on the other side. Most people suggest flipping over the 4 and the red card &#8211; this is wrong, as it doesn&#8217;t matter if the red card has an odd number on the other side. </p>
<p>Now let&#8217;s mix it up a bit. Instead of numbers and colors, let&#8217;s try people and social activities. Assume the cards have a drink on one side, and a person of a certain age on the other. What cards need to be flipped over to make sure everyone drinking beer is old enough to do so?</p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2010/07/wason_2.png"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/07/wason_2-560x226.png" alt="" title="wason_2" width="560" height="226" class="aligncenter size-large wp-image-2460" /></a></p>
<p>Now the answer flows quickly and easily, and almost everyone gets it correct. We need to flip over the beer card to make sure that the person on the other side is old enough, and we need to flip over the card showing the underage drinker to make sure they&#8217;re playing by the rules.</p>
<p>The weird thing is that both examples are logically equivalent. Instead of numbers and colors, we&#8217;ve just used people and drinks. But something very important has occurred, and it happens time and time again as these tests are administered. It seems that people are fast and accurate at solving this task only if it is described as a test of social obligations. They both can be described identically with logic &#8211; but that doesn&#8217;t appear to matter to our mind. We appear to have a module dedicated to social reasoning and conflict, and can only solve these problems quickly if it involves determining if someone is cheating or breaking social conventions. This ancient module would hold significant survival value &#8211; a general logic verification module not quite so much.</p>
<h2>Modules Upon Modules</h2>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2010/07/Human_brain_in_a_vat.jpg"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/07/Human_brain_in_a_vat-237x300.jpg" alt="" title="Human_brain_in_a_vat" width="237" height="300" class="alignright size-medium wp-image-2469" /></a></p>
<p>There appears to be significant evidence for a modular mind, not just in terms of divisions between senses such as sight or hearing and other actions like movement but also more abstract modules that deal with concepts such as social rules. Stroke victims can literally rewire their brains, passing concepts upward into their consciousness through paths never intended to be used in such a strange manner, duplicating the work of other modules lost to injury. These modules live in a strange world of physical interaction and abstract mental space, a huge interconnected mass with no clear outline behind it. The big question now becomes: is a sufficiently complex system able to understand itself, and are we that system?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/07/10/our-modular-minds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quaternion Travels</title>
		<link>http://www.gmilburn.ca/2010/05/10/quaternion-travels/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=quaternion-travels</link>
		<comments>http://www.gmilburn.ca/2010/05/10/quaternion-travels/#comments</comments>
		<pubDate>Mon, 10 May 2010 17:27:47 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[fractal]]></category>
		<category><![CDATA[Julia]]></category>
		<category><![CDATA[mathematics]]></category>
		<category><![CDATA[quaternion]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2414</guid>
		<description><![CDATA[Relax to a slow flythrough of an interesting subset of the quaternion Julia fractals.]]></description>
			<content:encoded><![CDATA[<p>Relax to a slow flythrough of an interesting neighborhood of the quaternion Julia sets.</p>
<p><object width="571" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11622880&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11622880&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="571" height="321"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/05/10/quaternion-travels/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Monday Miscellany</title>
		<link>http://www.gmilburn.ca/2010/04/19/monday-miscellany-2/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=monday-miscellany-2</link>
		<comments>http://www.gmilburn.ca/2010/04/19/monday-miscellany-2/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 22:33:09 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2397</guid>
		<description><![CDATA[Solar flares, Chinese hobos, and undersea noises on deck for this Monday. Live in STEREO &#160; One of the largest solar flares in recent history was captured last week by STEREO, a pair of satellites staggered along Earth&#8217;s orbit to obtain a constant clear view. The flare was about half the width of the sun, [...]]]></description>
			<content:encoded><![CDATA[<p>Solar flares, Chinese hobos, and undersea noises on deck for this Monday.</p>
<h2>Live in STEREO</h2>
<p><center><br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/OyIxC1nJPQ0&#038;hl=en_US&#038;fs=1&#038;rel=0&#038;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/OyIxC1nJPQ0&#038;hl=en_US&#038;fs=1&#038;rel=0&#038;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br />
</center></p>
<p>&nbsp;</p>
<p>One of the largest solar flares in recent history was captured last week by <a href="http://stereo.gsfc.nasa.gov/">STEREO</a>, a pair of satellites staggered along Earth&#8217;s orbit to obtain a constant clear view. The flare was about half the width of the sun, or 800,000 km at its largest. Here&#8217;s another view from the <a href="http://sdo.gsfc.nasa.gov/">Solar Dynamics Observatory</a>.</p>
<p><center><br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/Lmm3J0WAres&#038;hl=en_GB&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Lmm3J0WAres&#038;hl=en_GB&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br />
</center></p>
<h2>Brother Sharp</h2>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/04/brother-sharp1.jpg" alt="" title="brother-sharp" width="300" height="380" class="alignright size-full wp-image-2402" /></p>
<p><a href="http://www.chinasmack.com/2010/pictures/chinese-beggar-becomes-famous-online.html">A homeless man with piercing looks and an oddly consistent sense of fashion was dubbed &#8220;The Ultimate Gorgeous #1 Passerby Handsome Guy&#8221; by Chinese bloggers</a>, or &#8220;Brother Sharp&#8221; when photos taken of him by a passerby appeared online. This led to a &#8220;人肉搜索 (Rénròu Sōusuǒ)&#8221;, or &#8220;human flesh search&#8221; as hundreds of people combed the streets to find him and his story. Unfortunately, it seems that Brother Sharp has some big issues and won&#8217;t be designing couture anytime soon. A local blogger spoke:</p>
<p>&#8220;Long ago in 2008 I encountered him. Most people who see him will avoid him, treating him as a beggar and the link, but actually this is not accurate. 乞丐 [qǐgài "beggar"] in our country’s ancient words first appeared as a monosyllabic word. The meaning of 乞 [qǐ] in the golden texts was “to beg”. But he does not beg, nor does he know how to beg, because he has psychological problems (in Ningbo they call it “great fog sickness”). They do not have an identity, they do not have family, they’ve even forgotten who they are. They are a group of people abandoned by society, and their final outcome is to die without anyone inquiring about them. They wander in the space between humans and animals. Help them a bit and they become humans, ignore them and they are animals.</p>
<p>He once said this to me: “Find a girl to love me.”</p>
<h2>Bloops and Bleeps</h2>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/04/Bloop.jpg" alt="" title="Bloop" width="316" height="203" class="alignright size-full wp-image-2404" /></p>
<p>The <a href="http://www.pmel.noaa.gov/vents/index.html">VENTS group</a> has a <a href="http://www.pmel.noaa.gov/vents/acoustics/sounds_mystery.html">collection of six unknown noises captured by undersea microphone arrays</a>, including the <a href="http://en.wikipedia.org/wiki/Bloop">infamous &#8220;Bloop&#8221; signal</a>. </p>
<p>The &#8220;Bloop&#8221; signal was detected repeatedly by the Equatorial Pacific Ocean autonomous hydrophone array, which uses U.S. Navy equipment originally designed to detect Soviet submarines. The signal was traced to somewhere around 50° S 100° W, a remote point in the south Pacific Ocean west of the southern tip of South America. </p>
<p>The noise rises rapidly in frequency over about one minute and was of sufficient amplitude to be heard on multiple sensors, at a range of over 5,000 km. The system ruled out any known man-made origin such as a submarine or bomb, or familiar geological sounds such as volcanoes or earthquakes. While the audio profile of the bloop does resemble that of a living creature, the system identified it as unknown because it was far too loud for that to have been the case: it was several times louder than the loudest known biological sound. If it was biological, it would have to be produced by an animal far larger than any currently known to science.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/04/19/monday-miscellany-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More of Wain&#8217;s Kaleideoscope Cats</title>
		<link>http://www.gmilburn.ca/2010/04/18/more-of-wains-kaleideoscope-cats/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=more-of-wains-kaleideoscope-cats</link>
		<comments>http://www.gmilburn.ca/2010/04/18/more-of-wains-kaleideoscope-cats/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 17:47:22 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[painting]]></category>
		<category><![CDATA[schizophrenia]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2332</guid>
		<description><![CDATA[Louis Wain was a popular English artist who drew thousands of pictures of cats. He was eventually committed to a mental hospital after displaying schizophrenic symptoms.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/04/wain2intro-300x210.jpg" alt="" title="wain2intro" width="300" height="210" class="alignright size-medium wp-image-2362" /></p>
<p>One of my most popular posts continues to be <a href="http://www.gmilburn.ca/2008/07/04/wains-kalideoscope-cats/">Wain&#8217;s Kaleidoscope Cats</a>, illustrating the strange transition of <a href="http://en.wikipedia.org/wiki/Louis_Wain">Louis Wain</a>. A popular artist in England in the late 1800s and early 1900s, he drew thousands of pictures of cats engaged in everyday activities which were widely published. He was eventually committed to a mental hospital after displaying schizophrenic symptoms. From Wikipedia:</p>
<p>&#8220;He had always been considered quite charming but odd, and often had difficulty in distinguishing between fact and fantasy. His behavior and personality changed, and he began to suffer from delusions with the onset of schizophrenia. Whereas he had been a mild-mannered and trusting man, he became hostile and suspicious, particularly towards his sisters. He claimed that the flickering of the cinema screen had robbed the electricity from their brains. </p>
<p>When his sisters could no longer cope with his erratic and occasionally violent behavior, he was finally committed in 1924 to a pauper ward of Springfield Mental Hospital in Tooting. A year later, he was discovered there and his circumstances were widely publicized, leading to appeals from such figures as H. G. Wells and the personal intervention of the Prime Minister. Wain was eventually transferred to Napsbury Hospital north of London. This hospital was relatively pleasant, with a garden and colony of cats, and he spent his final 15 years there in peace. While he became increasingly deluded, his erratic mood swings subsided, and he continued drawing for pleasure. </p>
<p>Some speculate that the onset of Wain&#8217;s schizophrenia was precipitated by <a href="http://en.wikipedia.org/wiki/Toxoplasmosis">toxoplasmosis</a>, a parasitic infection that can be contracted from cats.&#8221;</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/04/waincats2006.jpg" alt="" title="waincats2006" width="288" height="415" class="aligncenter size-full wp-image-2338" /></p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/04/waincats2001.jpg" alt="" title="waincats2001" width="424" height="500" class="aligncenter size-full wp-image-2333" /></p>
<p>Large rotated block lettering:<em> &#8220;Oh!!! I have no feelings for others, it is all inside.&#8221;</em><br />
Smaller block lettering: <em>&#8220;I am a bit gone on myself and have to make it up with my feelings.&#8221;</em><br />
Corner mirrored cursive script: <em>&#8220;Who I met someone I have just met. I am his card now, but I want to part with it.&#8221;<br />
</em></p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/04/waincats2003.jpg" alt="" title="waincats2003" width="254" height="375" class="aligncenter size-full wp-image-2335" /></p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/04/waincats2005.jpg" alt="" title="L0026931 A cat in &quot;gothic&quot; style. Gouache by Louis Wain, 1925/19" width="381" height="550" class="aligncenter size-full wp-image-2337" /></p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/04/waincats2009.jpg" alt="" title="waincats2009" width="263" height="350" class="aligncenter size-full wp-image-2341" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/04/18/more-of-wains-kaleideoscope-cats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monday Miscellany</title>
		<link>http://www.gmilburn.ca/2010/03/29/monday-miscellany/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=monday-miscellany</link>
		<comments>http://www.gmilburn.ca/2010/03/29/monday-miscellany/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 20:05:31 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[boid]]></category>
		<category><![CDATA[flock]]></category>
		<category><![CDATA[mit]]></category>
		<category><![CDATA[university]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2320</guid>
		<description><![CDATA[A few little things for Monday - 5000 fish and recommended reading from MIT.]]></description>
			<content:encoded><![CDATA[<p>A few little things for Monday. I made a new video using the same engine as the <a href="http://www.gmilburn.ca/boids/hd/">fish school simulation</a> described in the post <a href="http://www.gmilburn.ca/2010/03/23/in-this-virtual-fish-tank-you-make-the-rules/">In This Virtual Fish Tank, You Make the Rules</a>.</p>
<p><object width="571" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10526127&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=10526127&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="571" height="321"></embed></object></p>
<p>This video shows 5000 fish swimming while the weightings of the three behavioural rules vary using sinusoidal functions. I love the &#8220;borders&#8221; created as large fish schools collide, and fish attempt to escape along the plane of intersection.</p>
<p><a href="http://www.gmilburn.ca/2010/02/24/triumph-of-the-golden-rule/">Triumph of the Golden Rule</a> was also <a href="http://web.mit.edu/6.033/www/papers/indirect-bittyrant.shtml">linked to as recommended reading</a> for MIT course 6.033 Computer Systems Engineering &#8211; one of the best compliments I&#8217;ve received. Thanks Evan!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/03/29/monday-miscellany/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In This Virtual Fish Tank, You Make the Rules</title>
		<link>http://www.gmilburn.ca/2010/03/23/in-this-virtual-fish-tank-you-make-the-rules/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=in-this-virtual-fish-tank-you-make-the-rules</link>
		<comments>http://www.gmilburn.ca/2010/03/23/in-this-virtual-fish-tank-you-make-the-rules/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 17:12:27 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[boid]]></category>
		<category><![CDATA[cooperation]]></category>
		<category><![CDATA[emergence]]></category>
		<category><![CDATA[flock]]></category>
		<category><![CDATA[mathematics]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2283</guid>
		<description><![CDATA[This simulation of a school of fish allows you to play with the weightings of three rules that cause coordinated group behavior.]]></description>
			<content:encoded><![CDATA[<p>In my last post, I discussed how <a href="http://www.gmilburn.ca/2010/03/18/herds-of-android-birds-mimic-ad-hoc-flocks/">individuals following simple rules cause cause coordinated group behavior to arise</a>. The boid model created by Craig Reynolds used three rules &#8211; alignment, separation, and coherence. But how much attention does each individual pay to each rule? In situations like migration, alignment might be the most important rule. If you&#8217;re being attacked by predators, sticking together and paying attention to the coherence rule might keep you from being eaten.</p>
<p>Clearly different situations might have different approaches. I was very interested in how different weightings of these rules might behave, so I decided to create a program that would allow you to change the relative importance of each rule at will. You can see a video of it in action below (the three sliders on the bottom left control the influence of the various rules).</p>
<p><object width="571" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10383384&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=10383384&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="571" height="321"></embed></object></p>
<table>
<tr bgcolor="#e9e8e3">
<td align="center" width="50%">Smaller screen, older computer, or just want something more simple? <br /><big><a href="http://www.gmilburn.ca/boids/sd/" target="_blank">Load the standard definition fish school simulation.</a></big></td>
<td align="center" width="50%">Big screen, fast computer, and want to give the fish some more room to swim? <br /><big><a href="http://www.gmilburn.ca/boids/hd/" target="_blank">Load the high definition fish school simulation.</a></big></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<table>
<tr>
<td align="center"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/alignment.jpg" alt="" title="alignment" width="48" height="51" class="alignnone size-full wp-image-2296" /></td>
<td><strong>Alignment:</strong> This slider adjusts how much each fish wants to head in the same direction as other fish around it.</td>
</tr>
<tr>
<td align="center"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/cohesion.jpg" alt="" title="cohesion" width="47" height="51" class="alignnone size-full wp-image-2297" /></td>
<td><strong>Cohesion: </strong>This slider adjusts how close each fish wants to be to its neighbors.</td>
</tr>
<tr>
<td align="center"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/separation.jpg" alt="" title="separation" width="47" height="51" class="alignnone size-full wp-image-2299" /></td>
<td><strong>Separation:</strong> This slider adjust how much each fish wants to space itself out from the others.</td>
</tr>
<tr>
<td align="center"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/fish1.jpg" alt="" title="fish" width="50" height="50" class="alignnone size-full wp-image-2304" /></td>
<td>Click anywhere in the water to add a new fish.</td>
</tr>
<tr>
<td align="center"><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/reset.jpg" alt="" title="reset" width="45" height="45" class="alignnone size-full wp-image-2298" /></td>
<td>Press this button to reset the simulation.</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p>I hope you enjoy it &#8211; please leave me a comment if you have any questions, comments, or find any bugs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/03/23/in-this-virtual-fish-tank-you-make-the-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Herds of Android Birds Mimic Ad Hoc Flocks</title>
		<link>http://www.gmilburn.ca/2010/03/18/herds-of-android-birds-mimic-ad-hoc-flocks/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=herds-of-android-birds-mimic-ad-hoc-flocks</link>
		<comments>http://www.gmilburn.ca/2010/03/18/herds-of-android-birds-mimic-ad-hoc-flocks/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 09:00:33 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[boid]]></category>
		<category><![CDATA[cooperation]]></category>
		<category><![CDATA[emergence]]></category>
		<category><![CDATA[flock]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2184</guid>
		<description><![CDATA[In winter during the late afternoon before settling down to roost, flocks of thousands of starlings will twist and turn, turning the sky black with strange curves that seem to move with a mind of their own. The flocks of up to a million strong form for warmth, for security, and for social contact. ]]></description>
			<content:encoded><![CDATA[<p>In winter during the late afternoon before settling down to roost, flocks of thousands of <a href="http://en.wikipedia.org/wiki/Starling">starlings</a> will twist and turn, turning the sky black with strange curves that seem to move with a mind of their own. The flocks of up to a million strong form for warmth, for security, and for social contact. The video below shows a small group of 80,000 starlings. If you&#8217;re the impatient type, skip ahead to 1:15 to see some of the most impressive forms and transitions.</p>
<p><object width="571" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9193713&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9193713&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="571" height="321"></embed></object></p>
<p>These seething clouds of birds have no leader, no planning, and yet produce a dance that seems choreographed in its precision and beauty. So how do they do it? Some strange ability given to them, a unique skill among the animal kingdom? Well, perhaps not quite. Consider that humans seem to be able to move in crowds with the same ease, although some might say with a bit less beauty.</p>
<p><object width="571" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1626058&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=1626058&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="571" height="321"></embed></object></p>
<p>People seem to move in clumps, in the same direction, and manage to not trample each other or collide. There seem to be parallels in crowds of organisms, that this order emerges consistently and that somehow each animal &#8220;knows&#8221; what to do on a small scale, resulting in cohesive and sensible group movement. The question then becomes &#8211; what exactly are we doing unconsciously to organize like this?</p>
<h2>The Boid Model</h2>
<p>In 1986 <a href="http://www.red3d.com/cwr/boids/">Craig Reynolds produced a computer model</a> describing how large groups of animals such as schools, herds, and flocks could be able to move in unison with no central coordination. He called his creations &#8220;boids&#8221;, and imagined that each would follow some simple, sensible rules to navigate around. He also knew a single animal would never be able to keep track of every other animal in the group, and assumed that they would only pay attention to their immediate neighbors in the flock. </p>
<p>So if you were a boid, what rules would you follow?</p>
<table>
<tr>
<td><big><strong>Alignment:</strong></big> Look around you. Where is everyone else going? Probably a good idea to go there too. Alignment is a rule that finds the average direction your neighbours are going, and tells you to go there too.</td>
<td><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/alignment.gif" alt="" title="alignment" width="217" height="145" class="alignright size-full wp-image-2189" /></td>
</tr>
<tr>
<td><big><strong>Cohesion:</strong></big>Predators look to pick off stragglers on the edge of the pack. Cohesion is a rule that finds the average position of your neighbors and tells you to go there, pulling you into the relative safety of the center of the pack.</td>
<td><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/cohesion.gif" alt="" title="cohesion" width="217" height="145" class="alignright size-full wp-image-2190" /></td>
</tr>
<tr>
<td><big><strong>Separation:</strong></big> When crowds get big, they can get dangerous. Animals can trample each other, and birds can collide. Separation is a rule that tells you to make sure to give your neighbors some space.</td>
<td><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/separation.gif" alt="" title="separation" width="217" height="145" class="alignright size-full wp-image-2191" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p>How do we know how to do this? Well, the tautological answer is that it simply works. The beauty of these rules is that each of them is amazingly simple, and seem to make sense to us on an intuitive level. We tend to go with the crowd, stick together, and still try to give everyone a bit of personal space. But are these rules enough to produce the complex dance of the starlings, or are we missing some detail?</p>
<h2>A Boid Dance</h2>
<p>It turns out these simple rules produce patterns of movement that are anything but.</p>
<p><object width="571" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2481794&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2481794&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="571" height="321"></embed></object></p>
<p>We can see that it looks flowing and wonderfully organic &#8211; but it&#8217;s not quite the same as the starling flocks. We can play with the boid model, tuning its various parameters to see how the resulting crowds might react. </p>
<table>
<tr>
<td>A school of fish trying to avoid predators might be modeled best by weighting the cohesiveness rule very heavily, attempting to keep together at all costs while not worrying too much about personal space or where precisely they&#8217;re heading as long as it&#8217;s away from what&#8217;s trying to eat you.</td>
<td><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/school-of-fish-300x199.jpg" alt="" title="school-of-fish" width="300" height="199" class="alignright size-medium wp-image-2269" /></td>
</tr>
<tr>
<td> A flock of geese flying south for the winter will focus on heading in a certain direction (alignment), then space themselves out to ensure they can see in front of themselves (seperation) while staying close enough and on the same plane to experience the aerodynamic benefits of flying in a group (cohesion) producing the &#8220;flying V&#8221; we see so often in fall.</td>
<td><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/geese-v-300x200.jpg" alt="" title="geese-v" width="300" height="200" class="alignright size-medium wp-image-2270" /></td>
</tr>
<tr>
<td>Migrating animals are primarily concerned with making sure they&#8217;re going in the same direction as everyone else (alignment) while ensuring that no one is trampled (seperation) and that young and weak animals are protected in the center of the herd (cohesion). For instance, the wildebeest stampede that killed Simba&#8217;s father in the Lion King was <a href="http://www.lionking.org/text/FilmNotes.html">generated using the same theory as the boid model</a>.</td>
<td><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/wildebeest-300x192.jpg" alt="" title="wildebeest" width="300" height="192" class="alignright size-medium wp-image-2271" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p>This simple model has a wide range of possible applications, and a huge amount of flexibility allowing it to produce a wide range of behavioural simulations. This gorgeous installation of light graffiti uses the rules we&#8217;ve just discussed to create hypnotizing patterns of artificial creatures.</p>
<p><object width="571" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=455512&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff0179&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=455512&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff0179&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="571" height="321"></embed></object></p>
<p>The boid model has been used to animate realistic looking behavior over a huge range of media. If you&#8217;ve seen a computer generated crowd moving in a vaguely sensible manner anywhere, it likely uses the same basic theory. The power of the model comes from its construction, assuming simple behaviors competing for influence that result in a complex outcome not unlike our own consciousness or political systems. Not too shabby for a research project from over 20 years ago.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/03/18/herds-of-android-birds-mimic-ad-hoc-flocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Golden Rule in the Wild</title>
		<link>http://www.gmilburn.ca/2010/03/05/the-golden-rule-in-the-wild/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=the-golden-rule-in-the-wild</link>
		<comments>http://www.gmilburn.ca/2010/03/05/the-golden-rule-in-the-wild/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 10:00:14 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[cooperation]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[mathematics]]></category>
		<category><![CDATA[puppy]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2141</guid>
		<description><![CDATA[In the previous post, we discussed the Prisoner&#8217;s Dilemma and saw how a simple strategy called Tit-for-Tat enforced the Golden Rule and won a very interesting contest. But does Tit-for-Tat always come out on top? The most confounding thing about the strategy is that it can never win &#8211; at best, it can only tie [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/shark-300x286.jpg" alt="" title="shark" width="300" height="286" class="alignright size-medium wp-image-2144" /></p>
<p>In the previous post, we discussed the <a href="http://plato.stanford.edu/entries/prisoner-dilemma/">Prisoner&#8217;s Dilemma</a> and <a href="http://www.gmilburn.ca/2010/02/24/triumph-of-the-golden-rule/">saw how a simple strategy called Tit-for-Tat enforced the Golden Rule and won a very interesting contest</a>. But does Tit-for-Tat always come out on top? The most confounding thing about the strategy is that it can never win &#8211; at best, it can only tie other strategies. Its success came from avoiding the bloody battles that other more deceptive strategies suffered.</p>
<p>The major criticism of Axelrod&#8217;s contest is its artificiality. In real life, some may say, you don&#8217;t get to encounter everyone, interact with them, and then have a tally run at the end to determine just how you did. Perhaps more deceptive strategies would do better in a more &#8220;natural&#8221; environment where losing doesn&#8217;t mean you get another chance at another opponent, but that your failures cause you to simply die off.</p>
<h2>Artificial Nature</h2>
<p>So now let&#8217;s look at the same game, with the same scoring system, only this time there&#8217;s a twist. Assume that this contest takes place in some sort of ecosystem that can only support a certain number of organisms, and they must fight among each other for the right to reproduce. There will be many different organisms, and they will all be members of a certain species, or specific strategy. We can then construct an artificial world where these strategies can battle it out in a manner that seems to reflect the real world a bit better.</p>
<p>In order to determine supremacy, we&#8217;ll play a certain number of rounds of the game, called a generation. At the end of the generation, the scores are tallied for each strategy, and a new generation of strategies is produced &#8211; with a twist. Higher scoring strategies will produce more organisms representing them in the next generation, while lower scoring strategies will produce less. Repeat this for many generations, observe the trends, and we can see how these strategies do as part of a population that can grow and shrink, rather than a single strategy that lives forever.</p>
<p>So let&#8217;s look at an example. Suppose we have a population that consists of the following simple strategies:</p>
<table width="100%">
<tr bgcolor="#D7D6CD">
<td align="center"><strong>Initial <br />Population</strong></td>
<td><strong>Strategy</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr  bgcolor="#FBFAF9">
<td align="center">60%</td>
<td>ALL-C</td>
<td>Honest to a fault, this strategy always cooperates.</td>
</tr>
<tr  bgcolor="#e9e8e3">
<td align="center">20%</td>
<td>RAND</td>
<td>The lucky dunce, this strategy defects or cooperates at random.</td>
</tr>
<tr bgcolor="#FBFAF9">
<td align="center">10%</td>
<td>Tit-for-Tat</td>
<td>This strategy mimics the previous move of the other player, every time.</td>
</tr>
<tr bgcolor="#e9e8e3">
<td align="center">10%</td>
<td>ALL-D</td>
<td>The bad boy of the bunch, this strategy always defects.</td>
</tr>
</table>
<p>&nbsp;</p>
<p>So what will happen? Was Tit-for-Tat&#8217;s dominance a result of the structure of the contest, or is it hardier than some might think? A graph of the changing populations over 50 generations may be seen below.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/pd-graph1-560x218.jpg" alt="" title="pd-graph1" width="560" height="218" class="aligncenter size-large wp-image-2146" /></p>
<p>It&#8217;s a hard world to start. ALL-C immediately starts being decimated by the deception of ALL-D and RAND who start surging ahead, while Tit-for-Tat barely hangs on. ALL-D&#8217;s relentless deception allows it to quickly take the lead, and it starts knocking off its former partner in crime, RAND. Tit-for-Tat remains on the ropes, barely keeping its population around 10% as ALL-C and RAND are quickly eliminated around it.</p>
<p>And then something very interesting happens. ALL-D runs out of easy targets, and turns to the only opponents left &#8211; Tit-for-Tat and itself. Tit-for-Tat begins a slow climb as ALL-D begins to eat itself fighting over scraps. Slowly, steadily, Tit-for-Tat maintains its numbers by simply getting along with itself while allowing ALL-D to destroy each other. By 25 generations it&#8217;s all over &#8211; the easy resources exhausted, ALL-D was unable to adapt to the new environment and Tit-for-Tat takes over.</p>
<p>This illustrates a very important concept &#8211; that of an <a href="http://en.wikipedia.org/wiki/Evolutionarily_stable_strategy">evolutionarily stable strategy</a>. ALL-D was well on its way to winning, but left itself open to invasion by constant infighting. ALL-C initially had the highest population but was quickly eaten away by more deceptive strategies. Tit-for-Tat on the other hand was able to get along with itself, and defended itself against outside invaders that did not cooperate in turn. An evolutionarily stable strategy is something that can persist in this manner &#8211; once a critical mass of players start following it, it cannot be easily invaded or exploited by other strategies, including itself.</p>
<h2>I Can&#8217;t Hear You</h2>
<p>But there&#8217;s one critical weakness to Tit-for-Tat. We&#8217;re all aware of feuds that have gone on for ages, both sides viciously attacking the other in retaliation for the last affront, neither one precisely able to tell outsiders when it all started. And if we look at the strategies each use in a simplistic sense, it seems that they&#8217;re using Tit-for-Tat precisely. So how did it go so horribly wrong?</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/plant-park.jpg" alt="" title="plant-park" width="200" height="200" class="alignright size-full wp-image-2164" /></p>
<p>It went wrong because Tit-for-Tat has a horrible weakness &#8211; its memory is only one move long. If two Tit-for-Tat strategies somehow get stuck in a death spiral of defecting against each other, there&#8217;s no allowance in the strategy to realize this foolishness, and be the first to forgive. But how could this happen? Tit-for-Tat is never the first to defect after all, so why are both Tit-for-Tat strategies continually defecting?</p>
<p>The answer is that great force of nature, noise. A message read the wrong way, a shout misheard over the wind, an error in interpretation &#8211; all can be the impetus for this first initial defection. No matter that it was pointless and incorrect, the strategy has changed. While Tit-for-Tat&#8217;s greatest strength is that it never defects first, its greatest weakness is that it never forgives first either.</p>
<p>All of these simulations we&#8217;ve seen so far do not include noise, and it can have a catastrophic effect on the effectiveness of Tit-for-Tat. Its success was built on the strategy of never fighting among itself and allowing other deceptive strategies to destroy themselves by doing the same &#8211; but with noise, this advantage becomes a fatal weakness as Tit-for-Tat&#8217;s inability to be taken advantage of is turned against itself.</p>
<p>So what does a simulation including noise look like? You can see one below, and it contains an additional mystery strategy, Pavlov. Pavlov is very similar to Tit-for-Tat but slightly different &#8211; it forgives far more easily.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/pd-graph2-560x224.jpg" alt="" title="pd-graph2" width="560" height="224" class="aligncenter size-large wp-image-2148" /></p>
<p>We see a similar pattern to our previous simulation. ALL-D has an initial population spike as it knocks off the easy targets, but Tit-for-Tat and Pavlov slowly climb to supremacy with ALL-D eventually eating scraps. But the influence of noise causes Tit-for-Tat to fight among itself, and Pavlov begins what previously seemed impossible &#8211; to begin to win against Tit-for-Tat.</p>
<h2>Puppy Love</h2>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/03/luna-aussidoodle-puppy-300x280.jpg" alt="" title="luna-aussidoodle-puppy" width="300" height="280" class="alignright size-medium wp-image-2160" /></p>
<p>So what is Pavlov and why does it work better in a noisy environment like the real world? Well, <a href="http://en.wikipedia.org/wiki/Ivan_Pavlov">Ivan Pavlov</a> was the man who discovered <a href="http://en.wikipedia.org/wiki/Classical_conditioning">classical conditioning</a>. You probably remember him as the guy who fed dogs while ringing a bell, and who then just rang the bell &#8211; and discovered that the dogs salivated expecting food.</p>
<p>The strategy is simple &#8211; if you win, keep doing it. If you lose, change your approach. Pavlov will always cooperate with ALL-C and Tit-for-Tat. If it plays ALL-D however, it will hopefully cooperate, lose, get angry about it and defect, lose again, switch back to cooperation, and so on. Like a tiny puppy or the suitor of a crazy girlfriend, it can&#8217;t really decide what it wants to do, but it&#8217;s going to do it&#8217;s damndest to try to succeed anyways. It manages to prevent the death spiral of two Tit-for-Tat strategies continually misunderstanding each other by obeying a very simple rule &#8211; if it hurts, stop doing it. While it may be slightly more vulnerable to deceptive strategies, it never gets stuck in these self-destructive loops of behavior.</p>
<p>So there&#8217;s a lesson here &#8211; life is noisy, and people will never get everything correct all the time. Tit-for-Tat works very well for a wide variety of situations, but has a critical weakness where neither player in a conflict is willing or able to forgive. So the next time you&#8217;re in a situation like that, step back, use your head, and switch strategies &#8211; it&#8217;s what this little puppy would want you to do, anyways.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/03/05/the-golden-rule-in-the-wild/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Triumph of the Golden Rule</title>
		<link>http://www.gmilburn.ca/2010/02/24/triumph-of-the-golden-rule/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=triumph-of-the-golden-rule</link>
		<comments>http://www.gmilburn.ca/2010/02/24/triumph-of-the-golden-rule/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 03:35:10 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[cooperation]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[mathematics]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=1846</guid>
		<description><![CDATA[Almost every decision we make involves someone else in one way or another, and we face a constant choice. Should we take advantage of them, go for the quick score and hope we never see them again - or should we settle for a more reasonable reward, co-operating in the hope that this peaceful relationship will continue long into the future?]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/02/crowd.jpg" alt="" title="crowd" width="200" height="199" class="alignright size-full wp-image-2123" /></p>
<p>We live in a world with other people. Almost every decision we make involves someone else in one way or another, and we face a constant choice regarding just how much we&#8217;re going to trust the person on the other side of this decision. Should we take advantage of them, go for the quick score and hope we never see them again &#8211; or should we settle for a more reasonable reward, co-operating in the hope that this peaceful relationship will continue long into the future?</p>
<p>We see decisions of this type everywhere, but what is less obvious is the best strategy for us to use to determine how we should act. The <a href="http://en.wikipedia.org/wiki/Ethic_of_reciprocity">Golden Rule</a> states that one should &#8220;do unto others as you would have them do unto you&#8221;. While it seems rather naive at first glance, if we run the numbers, we find something quite amazing.</p>
<h2>A Dilemma</h2>
<p>In order to study these types of decisions, we have to define what exactly we&#8217;re talking about. Let&#8217;s define just what a &#8220;dilemma&#8221; is. Let&#8217;s say it has two people &#8211; and they can individually decide to work together for a shared reward, or screw the other one over and take it all for themselves. If you both decide to work together, you both get a medium-sized reward. If you decide to take advantage of someone but they trust you, you&#8217;ll get a big reward (and the other person gets nothing). If you&#8217;re both jerks and decide to try to take advantage of each other, you both get a tiny fraction of what you could have. Let&#8217;s call these two people Alice and Bob &#8211; here&#8217;s a table to make things a bit more clear.</p>
<table>
<tr>
<td></td>
<td bgcolor="#e9e8e3"><strong><center>Alice cooperates</center></strong></td>
<td bgcolor="#FBFAF9"><strong><center>Alice defects</center></strong></td>
</tr>
<tr>
<td bgcolor="#e9e8e3"><strong>Bob cooperates</strong></td>
<td bgcolor="#D7D6CD">Everyone wins! A medium-sized reward to both for mutual co-operation</td>
<td bgcolor="#e9e8e3">Poor Bob. He decided to trust Alice, who screwed him and got a big reward. Bob gets nothing.</td>
</tr>
<tr>
<td bgcolor="#FBFAF9"><strong>Bob defects</strong></td>
<td bgcolor="#e9e8e3">Poor Alice. She decided to trust Bob, who took advantage of her and got a big reward. Alice gets nothing.</td>
<td bgcolor="#FBFAF9">No honour among thieves&#8230; both Bob and Alice take the low road, and fight over the scraps of a small reward.</p>
<tr>
<td bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
</tr>
</td>
</tr>
</table>
<p>This specific order of rewards is referred to as the <a href="http://plato.stanford.edu/entries/prisoner-dilemma/">Prisoner&#8217;s Dilemma</a>, and was formalized and studied by Melvin Dresher and Merrill Flood in 1950 while working for the <a href="http://en.wikipedia.org/wiki/RAND">RAND Corporation</a>.</p>
<h2>Sale, One Day Only!</h2>
<p>Now of course the question is &#8211; if you&#8217;re in this situation, what is the best thing to do? First suppose that we&#8217;re never, ever going to see this other person again. This is a one time deal. Absent any moral consideration, your best option for the most profit is to attempt to take advantage of the other person and hope that they are clueless enough to let you, capitalism at its finest. You could attempt to cooperate, but that leaves you open to the other party screwing you. If each person acts in their own interest and is rational, they will attempt to one-up the other.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/02/goodevil-284x300.jpg" alt="" title="goodevil" width="284" height="300" class="alignright size-medium wp-image-2056" /></p>
<p>But there&#8217;s just one problem &#8211; if both people act in this way, they both get much less than they would if they simply cooperated. This seems very strange, as the economic models banks and other institutions use to model human behavior assume this type of logic &#8211; the model of the rational consumer. But this leads to nearly the worst possible option if both parties take this approach. </p>
<p>It seems that there is no clear ideal strategy for a one time deal. Each choice leaves you open to possible losses in different ways. At this point it&#8217;s easy to toss up your hands, leave logic behind, and take a moral stance. You&#8217;ll cooperate because you&#8217;re a good person &#8211; or you&#8217;ll take advantage of the suckers because life just isn&#8217;t fair.</p>
<p>And this appears to leave us where we are today &#8211; some good people, some bad people, and the mythical invisible hand of the market to sort them all out. But there&#8217;s just one little issue. We live in a world with reputations, with friends, and with foes &#8211; there are no true &#8220;one time&#8221; deals. The world is small, and people remember.</p>
<h2>In it for the Long Run</h2>
<p>So instead of thinking of a single dilemma, let&#8217;s think about what we should do if we get to play this game more than once. If someone screws you in the first round, you&#8217;ll remember &#8211; and probably won&#8217;t cooperate the next time. If you find someone who always cooperates, you can join them and work together for your mutual benefit &#8211; or decide that they&#8217;re an easy mark and take them for everything they&#8217;ve got.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/02/raxelrod-150x150.jpg" alt="" title="raxelrod" width="150" height="150" class="alignright size-thumbnail wp-image-2076" /></p>
<p>But what is the best strategy? In an attempt to figure this out, in 1980 <a href="http://en.wikipedia.org/wiki/Robert_Axelrod">Robert Axelrod</a> decided to have a contest. He sent the word out, and game theorists, scientists, and mathematicians all submitted entries for a battle royale to determine which strategy was the best. </p>
<p>Each entry was a computer program designed with a specific strategy for playing this dilemma multiple times against other clever entries. The programs would play this simple dilemma, deciding whether to cooperate or defect against each other, for 200 rounds. Five points for a successful deception (you defect, they cooperate), three points each for mutual cooperation, one point each if you both tried to screw each other (mutual defection), and no points if you were taken advantage of (you cooperate, they defect). Each program would play every other program as well as a copy of itself, and the program with the largest total score over all the rounds would win.</p>
<p>So what would some very simple programs be?</p>
<p><strong>ALL-C</strong> (always cooperate) is just like it sounds. Cooperation is the only way, and this program never gets tired of being an upstanding guy.</p>
<p><strong>ALL-D</strong> (always defect) is the counterpoint to this, and has one singular goal. No matter what happens, always, always, always try to screw the other person over.</p>
<p><strong>RAND</strong> is the lucky dunce &#8211; don&#8217;t worry too much, just decide to cooperate or defect at random.</p>
<p>You can predict how these strategies might do if they played against each other. Two ALL-C strategies would endlessly cooperate in a wonderful dance of mutual benefit. Two ALL-D strategies would continually fight, endlessly grinding against each other and gaining little. ALL-C pitted against ALL-D would fare about as well as a fluffy bunny in a den of wolves &#8211; eternally cooperating and hoping for reciprocation, but always getting the shaft with ALL-D profiting.</p>
<p>So an environment of ALL-C would be a cooperative utopia &#8211; unless a single ALL-D strategy came in, and started bleeding them dry. But an environment entirely made of ALL-D would be a wasteland &#8211; no one would have any success due to constant fighting. And the RAND strategy is literally no better than a coin flip.</p>
<h2>Time to Think</h2>
<p>So what should we do? Those simple strategies don&#8217;t seem to be very good at all. If we think about it however, there&#8217;s a reason they do so poorly &#8211; they don&#8217;t remember. No matter what the other side does, they&#8217;ve already made up their minds. Intelligent strategies remember previous actions of their opponents, and act accordingly. The majority of programs submitted to Axelrod&#8217;s competition incorporated some sort of memory. For instance, if you can figure out you&#8217;re playing against ALL-C, it&#8217;s time to defect. Just like in the real world, these programs tried to figure out some concept of &#8220;reputation&#8221; that would allow them to act in the most productive manner.</p>
<p>And so Axelrod&#8217;s competition was on. Programs from all over the world competed against each other, each trying to maximize their personal benefit. A wide variety of strategies were implemented from some of the top minds in this new field. Disk drives chattered, monitors flickered, and eventually a champion was crowned.</p>
<h2>And the Winner Is&#8230;</h2>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2010/02/reflection.jpg" alt="" title="reflection" width="250" height="307" class="alignright size-full wp-image-2074" /></p>
<p>When the dust settled, the winner was clear &#8211; and the victory was both surprising and inspiring. The eventual champion seemed to be a 90 lb weakling at first glance, a mere four lines of code submitted by <a href="http://en.wikipedia.org/wiki/Anatol_Rapoport">Anatol Rapoport</a>, a mathematical psychologist from the University of Toronto. It was called &#8220;Tit-for-Tat&#8221;, and it did exactly that. It started every game by cooperating &#8211; and then doing exactly what the other player did in their last turn. It cooperated with the &#8220;nice&#8221; strategies, butted heads with the &#8220;mean&#8221; strategies, and managed to come out on top ahead of far more complex approaches. </p>
<p>The simplest and shortest strategy won, a program that precisely enforced the Golden Rule. But what precisely made Tit-for-Tat so successful? Axelrod analyzed the results of the tournament and came up with a few principles of success.</p>
<ul>
<li><strong>Don&#8217;t get greedy.</strong> Tit-for-Tat can never beat another strategy. But it never allows itself to take a beating, ensuring it skips the brutal losses of two &#8220;evil&#8221; strategies fighting against each other. It actively seeks out win-win situations instead of gambling for the higher payoff.</li>
<li>&nbsp;</li>
<li><strong>Be nice.</strong> The single best predictor of whether a strategy would do well was if they were never the first to defect. Some tried to emulate Tit-for-Tat but with a twist &#8211; throwing in the occasional defection to up the score. It didn&#8217;t work.</li>
<li>&nbsp;</li>
<li><strong>Reciprocate, and forgive.</strong> Other programs tended to cooperate with Tit-for-Tat since it consistently rewarded cooperation and punished defection. And Tit-for-Tat easily forgives &#8211; no matter how many defections it has seen, if a program decides to cooperate, it will join them and reap the rewards.</li>
<li>&nbsp;</li>
<li><strong>Don&#8217;t get too clever.</strong> Tit-for-Tat is perfectly transparent, and it becomes obvious that it is very, very difficult to beat. There are no secrets, and no hypocrisy &#8211; Tit-for-Tat gets along very well with itself, unlike strategies biased toward deception.</li>
</ul>
<p>The contest attracted so much attention that a second one was organized, and this time every single entry was aware of the strategy and success of Tit-for-Tat. Sixty-three new entries arrived, all gunning for the top spot. And once again, Tit-for-Tat rose to the top. Axelrod used the results of these tournaments to develop ideas about how cooperative behaviour could evolve naturally, and eventually wrote a bestselling book called <a href="http://www.amazon.com/gp/product/0465005640?ie=UTF8&#038;tag=gmilburnca-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0465005640">The Evolution of Cooperation.</a><img src="http://www.assoc-amazon.com/e/ir?t=gmilburnca-20&#038;l=as2&#038;o=1&#038;a=0465005640" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> But his biggest accomplishment may be showing us that being nice does pay off &#8211; and giving us the numbers to prove it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2010/02/24/triumph-of-the-golden-rule/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
