<?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; Numbers &amp; Nature</title>
	<atom:link href="http://www.gmilburn.ca/category/numbers-nature/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gmilburn.ca</link>
	<description>Essays, Projects, and Distractions of Geoff Milburn</description>
	<lastBuildDate>Sat, 12 Mar 2011 20:52:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Convergence in the Lorenz Attractor</title>
		<link>http://www.gmilburn.ca/2011/03/09/convergence-in-the-lorenz-attractor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convergence-in-the-lorenz-attractor</link>
		<comments>http://www.gmilburn.ca/2011/03/09/convergence-in-the-lorenz-attractor/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 18:59:52 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[chaos]]></category>
		<category><![CDATA[fractal]]></category>
		<category><![CDATA[lorenz attractor]]></category>
		<category><![CDATA[mathematics]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2821</guid>
		<description><![CDATA[Most visualizations of the Lorenz attractor are of a long history of a single point after convergence to the attractor has occurred. I was interested in what the surrounding space looked like, so I randomly selected 20,000 starting points from a three dimensional Gaussian distribution with a standard deviation of 100. Each point was iterated, [...]]]></description>
			<content:encoded><![CDATA[<p>Most visualizations of the Lorenz attractor are of a long history of a single point after convergence to the attractor has occurred. I was interested in what the surrounding space looked like, so I randomly selected 20,000 starting points from a three dimensional Gaussian distribution with a standard deviation of 100. Each point was iterated, and a short history displayed as a trail. </p>
<p><iframe src="http://player.vimeo.com/video/20614347?portrait=0" width="571" height="321" frameborder="0"></iframe></p>
<p>Interestingly enough the points do not simply fall in from arbitrary directions like a gravity field, but display structure by instead swirling along a clear path up the z axis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2011/03/09/convergence-in-the-lorenz-attractor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Cycled Lorenz Attractor</title>
		<link>http://www.gmilburn.ca/2011/01/10/color-cycled-lorenz-attractor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=color-cycled-lorenz-attractor</link>
		<comments>http://www.gmilburn.ca/2011/01/10/color-cycled-lorenz-attractor/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 04:48:00 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[chaos]]></category>
		<category><![CDATA[lorenz attractor]]></category>
		<category><![CDATA[mathematics]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2698</guid>
		<description><![CDATA[Another visualisation of the Lorenz attractor discussed in Lorenz and the Butterfly Effect, color cycled between green and blue. A path of one million points, newer values are green, older values are blue. I&#8217;ve also produced some higher resolution stills with better antialiasing. Built with Processing.]]></description>
			<content:encoded><![CDATA[<p>Another visualisation of the Lorenz attractor discussed in <a href="http://www.gmilburn.ca/2011/01/06/lorenz-and-the-butterfly-effect/">Lorenz and the Butterfly Effect</a>, color cycled between green and blue.</p>
<p><iframe src="http://player.vimeo.com/video/18610482?portrait=0" width="571" height="321" frameborder="0"></iframe></p>
<p>A path of one million points, newer values are green, older values are blue. I&#8217;ve also produced some higher resolution stills with better antialiasing.</p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-attractor-1600-01.png"><img src="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-attractor-1600-01-300x262.png" alt="" title="lorenz-attractor-1600-01" width="300" height="262" class="aligncenter size-medium wp-image-2708" /></a></p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-attractor-1600-02.png"><img src="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-attractor-1600-02-300x271.png" alt="" title="lorenz-attractor-1600-02" width="300" height="271" class="aligncenter size-medium wp-image-2706" /></a></p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-attractor-1600-03.png"><img src="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-attractor-1600-03-261x300.png" alt="" title="lorenz-attractor-1600-03" width="261" height="300" class="aligncenter size-medium wp-image-2705" /></a></p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-attractor-1600-04.png"><img src="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-attractor-1600-04-261x300.png" alt="" title="lorenz-attractor-1600-04" width="261" height="300" class="aligncenter size-medium wp-image-2707" /></a></p>
<p>Built with <a href="http://processing.org">Processing</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2011/01/10/color-cycled-lorenz-attractor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lorenz and the Butterfly Effect</title>
		<link>http://www.gmilburn.ca/2011/01/06/lorenz-and-the-butterfly-effect/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=lorenz-and-the-butterfly-effect</link>
		<comments>http://www.gmilburn.ca/2011/01/06/lorenz-and-the-butterfly-effect/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 21:50:54 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[chaos]]></category>
		<category><![CDATA[convection]]></category>
		<category><![CDATA[mathematics]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=2640</guid>
		<description><![CDATA[In 1962, Edward Lorenz was studying a simplified model of convection flow in the atmosphere and discovered something that wasn't simple at all.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gmilburn.ca/wp-content/uploads/2011/01/cloud-convection3.jpg"><img src="http://www.gmilburn.ca/wp-content/uploads/2011/01/cloud-convection3.jpg" alt="" title="cloud-convection" width="180" height="150" class="alignright size-full wp-image-2652" /></a></p>
<p>In 1962, <a href="http://en.wikipedia.org/wiki/Edward_Norton_Lorenz">Edward Lorenz</a> was studying a simplified model of convection flow in the atmosphere. He imagined a closed chamber of air with a temperature difference between the bottom and the top, modeled using the <a href="http://en.wikipedia.org/wiki/Navier%E2%80%93Stokes_equations">Navier-Stokes equations</a> of fluid flow. If the difference in temperature was slight, the heated air would slowly rise to the top in a predictable manner. But if the difference in temperature was higher, other situations would arise including convection and turbulence. Turbulence is notoriously difficult to model, so Lorenz focused on the formation of convection, somewhat more predictable circular flows.</p>
<p>Focusing only on convection allowed Lorenz to simplify the model sufficiently so that he could run calculations on the primitive (by today&#8217;s standards) computer available to him at MIT. And something wonderful happened &#8211; instead of settling down into a predictable pattern, Lorenz&#8217;s model oscillated within a certain range but never seemed to do the exact same thing twice. It was an excellent approach to the problem, exhibiting the same kind of semi-regular behavior we see in actual atmospheric dynamics. It made quite a stir at MIT at the time, with other faculty betting on just how this strange mathematical object would behave from iteration to iteration.</p>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-xyz.png"><img src="http://www.gmilburn.ca/wp-content/uploads/2011/01/lorenz-xyz-560x194.png" alt="" title="lorenz-xyz" width="560" height="194" class="aligncenter size-large wp-image-2655" /></a></p>
<p>But Lorenz was about to discover something even more astounding about this model. While running a particularly interesting simulation, he was forced to stop his calculations prematurely as the computer he was using was shared by many people. He was prepared for this, and wrote down three values describing the current state of the system at a certain time. Later when the computer was available again, he entered the three values and let the model run once more. But something very strange happened. It initially appeared to follow the same path as before, but soon it started to diverge from the original slightly, and quickly these small differences became huge variances. What had happened to cause this?</p>
<p>Lorenz soon found that his error was a seemingly trivial one. He had rounded the numbers he wrote down to three decimal places, while the computer stored values to six decimal places. Simply rounding to the nearest thousandth had created a tiny error that propagated throughout the system, creating drastic differences in the final result. This is the origin of the term &#8220;butterfly effect&#8221;, where infinitesimal initial inputs can cause huge results. Lorenz had discovered the first chaotic dynamical system.</p>
<p>We can see this effect in action here, where a red and a blue path have initial values truncated in a similar manner. Instead of graphing X, Y, and Z values separately, we&#8217;ll graph them in 3D space.<br />
<center></p>
<table>
<tr>
<td></td>
<td><strong>Initial Values (Red)&nbsp;&nbsp;</strong></td>
<td><strong>Initial Values (Blue)&nbsp;&nbsp;</strong></td>
</tr>
<tr>
<td><strong>X</strong></td>
<td align="center">5.766</td>
<td align="center">5.766450</td>
</tr>
<tr>
<td><strong>Y</strong></td>
<td align="center">-2.456</td>
<td align="center">-2.456460</td>
</tr>
<tr>
<td><strong>Z</strong></td>
<td align="center">32.817</td>
<td align="center">32.817251</td>
</tr>
</table>
<p></center></p>
<p><iframe src="http://player.vimeo.com/video/18512215?portrait=0" width="571" height="321" frameborder="0"></iframe></p>
<p>We can see at first that the two paths closely track each other. The error is magnified as time marches on, and the paths slowly diverge until they are completely different &#8211; all as a result of truncating to three decimal places. This is a contrast to the sensitivity to error we are typically used to, where small errors are not magnified uncontrollably as calculation progresses. Imagine if using a measuring tape that was off by a tenth of a percent caused your new deck to to collapse rather than stand strong&#8230;</p>
<p>There is also a hint of a more complex underlying structure, a folded three dimensional surface that the paths move along. If a longer path is drawn, the semi-regular line graphs of before are revealed to be the projections of a structure of undeniable beauty.</p>
<p><iframe src="http://player.vimeo.com/video/18474170?portrait=0" width="571" height="321" frameborder="0"></iframe></p>
<p>This is a rendering of the long journey of a single point in Lorenz&#8217;s creation, a path consisting of three million iterations developed in <a href="http://processing.org">Processing</a> that shows the region of allowable values in the model more clearly. Older values are darker, and the visualization is animated to show the strange dance of the current values of the system as they sweep from arm to arm of this dual-eyed mathematical monster, order generating chaos.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2011/01/06/lorenz-and-the-butterfly-effect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Our Modular Minds</title>
		<link>http://www.gmilburn.ca/2010/07/10/our-modular-minds/?utm_source=rss&#038;utm_medium=rss&#038;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>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&#038;utm_medium=rss&#038;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&#038;utm_medium=rss&#038;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&#038;utm_medium=rss&#038;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&#038;utm_medium=rss&#038;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>19</slash:comments>
		</item>
		<item>
		<title>Reality, Morality, Controversy and Consensus in Philosophy</title>
		<link>http://www.gmilburn.ca/2009/12/11/reality-morality-controversy-and-consensus-in-philosophy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=reality-morality-controversy-and-consensus-in-philosophy</link>
		<comments>http://www.gmilburn.ca/2009/12/11/reality-morality-controversy-and-consensus-in-philosophy/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 15:27:13 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[morality]]></category>
		<category><![CDATA[philosophy]]></category>
		<category><![CDATA[reality]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=1906</guid>
		<description><![CDATA[A philosophy website recently conducted a very interesting survey about some of these greatest standing questions in philosophy.]]></description>
			<content:encoded><![CDATA[<p>The beautiful thing about philosophy is that it identifies the truly great problems, ones where arguments can be made for each side with equal validity. The website <a href="http://philpapers.org/">philpapers.org</a>, an online repository of philosophy articles and books, recently conducted a <a href="http://philpapers.org/surveys/">very interesting survey</a> about some of these grand debates.</p>
<p>It consisted of <a href="http://philpapers.org/raw/survey.pdf">30 questions</a>, all current issues with well established alternative positions in philosophy under intense discussion. They surveyed 1803 philosophy faculty members and/or PhDs and 829 philosophy graduate students, and then <a href="http://philpapers.org/surveys/results.pl">tabulated the results</a>. I also went through and gave each question a &#8220;controversy&#8221; score &#8211; the lower the score, the lower the consensus in the answers (for the curious, via mean square error).</p>
<h2>Is this the real life &#8211; or is it just fantasy?</h2>
<p><a href="http://www.gmilburn.ca/wp-content/uploads/2009/12/realism-close.jpg"><img src="http://www.gmilburn.ca/wp-content/uploads/2009/12/realism-close-300x262.jpg" alt="" title="" width="300" height="262" class="alignright size-medium wp-image-1916" /></a></p>
<p>The least controversial issue was Question 6, &#8220;<em>External world: idealism, skepticism, or non-skeptical realism?</em>&#8220;. This dealt with the structure of the external world, where and how it exists, and what we can know about it.</p>
<p><big><strong>4.2%</strong></big> of respondents believed that the external world was best described by <a href="http://en.wikipedia.org/wiki/Idealism">idealism</a>, that reality is totally dependent on the mind. Plugged into the Matrix? Your &#8220;reality&#8221; could be described by an idealist perspective.</p>
<p><big><strong>4.8%</strong></big> chose the viewpoint of <a href="http://en.wikipedia.org/wiki/Skepticism">skepticism</a>, that the external world can never really be known in its true form.</p>
<p><big><strong>9.2%</strong></big> reinforced some stereotypes of philosophers and gave an answer best described as &#8220;other&#8221;.</p>
<p><big><strong>81.6%</strong></big> of respondents agreed in the clearest consensus of the survey that the external world was best described by a perspective of non-skeptical <a href="http://en.wikipedia.org/wiki/Realism">realism</a>. This means that &#8220;reality&#8221; exists independent of the mind (the realist part, we aren&#8217;t making it all up in our heads) and that we can draw reasonable and consistent conclusions from it (the non-skeptical part).</p>
<p>Life may not be a waking dream after all. Now, onto controversy!</p>
<h2>Kill one to save a thousand?</h2>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/12/spiderman-300x230.jpg" alt="spiderman" title="spiderman" width="300" height="230" class="alignright size-medium wp-image-1962" /></p>
<p>You are a superhero. The love of your life dangles from a fraying rope above a pit of spikes, while nearby a speeding train full of orphans rushes toward the edge of a cliff. You only have enough time to save one of the two &#8211; what do you do?</p>
<p><a href="http://en.wikipedia.org/wiki/Normative_ethics">Normative ethics</a> is the branch of philosophy that deals with questions like these &#8211; how &#8220;should&#8221; you act in a certain situation? Is there certain approach one should use? This was the subject of one of the most controversial issues, Question 20 &#8211; &#8220;<em>Normative ethics: deontology, consequentialism, or virtue ethics?</em>&#8220;.</p>
<p><big><strong>18.1%</big></strong> chose the perspective of <a href="http://en.wikipedia.org/wiki/Virtue_ethics">virtue ethics</a>, first advocated for in a significant sense by <a href="http://en.wikipedia.org/wiki/Aristotle">Aristotle</a>. Virtue ethics emphasizes the character of the person who is faced with a difficult decision. Do you save the children in the train or your dangling love? It doesn&#8217;t matter &#8211; what matters is your character and your intent in making the decision.</p>
<p><big><strong>23.6%</big></strong> argued for <a href="http://en.wikipedia.org/wiki/Consequentialism">consequentialism</a>, the philosophy that spawned the approach of &#8220;the ends justify the means&#8221;. Whether an action is right or wrong depends on the outcome of the situation, not the specific actions you chose. There are a number of different variants of this which would &#8220;score&#8221; the final situations according to whether it maximized happiness, economic benefit, liberty, love, or any number of possible ideals to yourself or to others. If you were an <a href="http://en.wikipedia.org/wiki/Ethical_egoism">egoist</a> you would send the orphans over the cliff and save your love to maximize your own happiness. If you were a <a href="http://en.wikipedia.org/wiki/Utilitarianism">utilitarianist</a>, you would save the orphans because it would benefit the largest number of people.</p>
<p><big><strong>25.8%</big></strong> of respondents chose <a href="http://en.wikipedia.org/wiki/Deontological_ethics">deontology</a>, where it is the actions you take that are judged rather than the results of those actions. Deontologists are concerned with rules and duties, and an action following these duties can be considered morally correct even if it produces dire consequences. If you were a married superhero who had sworn a vow to protect his love &#8211; orphans be damned, there is a duty to perform.</p>
<p><big><strong>32.3%</big></strong> of philosophers, presumably not wanting to commit to paper their rationale as to whether they&#8217;d kill orphans or their love, chose &#8220;Other&#8221;.</p>
<h2>What about the rest?</h2>
<p>Here&#8217;s a table ranking the &#8220;consensus&#8221; on each issue, from least to most controversial. The lower the mean square error, the less disparity there is in the magnitude of responses &#8211; and so less consensus is reached. I think this is a pretty decent metric, if you have any better suggestions, feel free to leave a comment.</p>
<table>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center"><b>	Consensus Rank	</b></td>
<td width="12%" align="center"><b>	Question Number	</b></td>
<td align="center"><b>	Question Text	</b></td>
<td width="12%" align="center"><b>	Mean Sq. Err.	</b></td>
</tr>
<tr>
<td width="12%" align="center">	1	</td>
<td width="12%" align="center">	6	</td>
<td>	External world: idealism, skepticism, or <strong>non-skeptical realism</strong>?	</td>
<td width="12%" align="center">	0.1073	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	2	</td>
<td width="12%" align="center">	25	</td>
<td>	Science: <strong>scientific realism</strong> or scientific anti-realism?	</td>
<td width="12%" align="center">	0.0870	</td>
</tr>
<tr>
<td width="12%" align="center">	3	</td>
<td width="12%" align="center">	8	</td>
<td>	God: theism or <strong>atheism</strong>?	</td>
<td width="12%" align="center">	0.0781	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	4	</td>
<td width="12%" align="center">	1	</td>
<td>	A priori knowledge: <strong>yes</strong> or no?	</td>
<td width="12%" align="center">	0.0725	</td>
</tr>
<tr>
<td width="12%" align="center">	5	</td>
<td width="12%" align="center">	28	</td>
<td>	Trolley problem (five straight ahead, one on side track, turn requires switching, what ought one do?): <strong>switch</strong> or don&#8217;t switch?	</td>
<td width="12%" align="center">	0.0654	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	6	</td>
<td width="12%" align="center">	4	</td>
<td>	Analytic-synthetic distinction: yes or no?	</td>
<td width="12%" align="center">	0.0557	</td>
</tr>
<tr>
<td width="12%" align="center">	7	</td>
<td width="12%" align="center">	17	</td>
<td>	Moral judgment: cognitivism or non-cognitivism?	</td>
<td width="12%" align="center">	0.0526	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	8	</td>
<td width="12%" align="center">	7	</td>
<td>	Free will: compatibilism, libertarianism, or no free will?	</td>
<td width="12%" align="center">	0.0387	</td>
</tr>
<tr>
<td width="12%" align="center">	9	</td>
<td width="12%" align="center">	27	</td>
<td>	Time: A-theory or B-theory?	</td>
<td width="12%" align="center">	0.0330	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	10	</td>
<td width="12%" align="center">	11	</td>
<td>	Laws of nature: Humean or non-Humean?	</td>
<td width="12%" align="center">	0.0290	</td>
</tr>
<tr>
<td width="12%" align="center">	11	</td>
<td width="12%" align="center">	14	</td>
<td>	Meta-ethics: moral realism or moral anti-realism?	</td>
<td width="12%" align="center">	0.0289	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	12	</td>
<td width="12%" align="center">	16	</td>
<td>	Mind: physicalism or non-physicalism?	</td>
<td width="12%" align="center">	0.0286	</td>
</tr>
<tr>
<td width="12%" align="center">	13	</td>
<td width="12%" align="center">	29	</td>
<td>	Truth: correspondence, deflationary, or epistemic?	</td>
<td width="12%" align="center">	0.0263	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	14	</td>
<td width="12%" align="center">	12	</td>
<td>	Logic: classical or non-classical?	</td>
<td width="12%" align="center">	0.0218	</td>
</tr>
<tr>
<td width="12%" align="center">	15	</td>
<td width="12%" align="center">	21	</td>
<td>	Perceptual experience: disjunctivism, qualia theory, representationalism, or sense-datum theory?	</td>
<td width="12%" align="center">	0.0210	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	16	</td>
<td width="12%" align="center">	9	</td>
<td>	Knowledge claims: contextualism, relativism, or invariantism?	</td>
<td width="12%" align="center">	0.0188	</td>
</tr>
<tr>
<td width="12%" align="center">	17	</td>
<td width="12%" align="center">	23	</td>
<td>	Politics: communitarianism, egalitarianism, or libertarianism?	</td>
<td width="12%" align="center">	0.0175	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	18	</td>
<td width="12%" align="center">	13	</td>
<td>	Mental content: internalism or externalism?	</td>
<td width="12%" align="center">	0.0172	</td>
</tr>
<tr>
<td width="12%" align="center">	19	</td>
<td width="12%" align="center">	15	</td>
<td>	Metaphilosophy: naturalism or non-naturalism?	</td>
<td width="12%" align="center">	0.0137	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	20	</td>
<td width="12%" align="center">	19	</td>
<td>	Newcomb&#8217;s problem: one box or two boxes?	</td>
<td width="12%" align="center">	0.0115	</td>
</tr>
<tr>
<td width="12%" align="center">	21	</td>
<td width="12%" align="center">	22	</td>
<td>	Personal identity: biological view, psychological view, or further-fact view?	</td>
<td width="12%" align="center">	0.0113	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	22	</td>
<td width="12%" align="center">	2	</td>
<td>	Abstract objects: Platonism or nominalism?	</td>
<td width="12%" align="center">	0.0055	</td>
</tr>
<tr>
<td width="12%" align="center">	23	</td>
<td width="12%" align="center">	30	</td>
<td>	Zombies: inconceivable, conceivable but not metaphysically possible, or metaphysically possible?	</td>
<td width="12%" align="center">	0.0049	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	24	</td>
<td width="12%" align="center">	5	</td>
<td>	Epistemic justification: internalism or externalism?	</td>
<td width="12%" align="center">	0.0047	</td>
</tr>
<tr>
<td width="12%" align="center">	25	</td>
<td width="12%" align="center">	3	</td>
<td>	Aesthetic value: objective or subjective?	</td>
<td width="12%" align="center">	0.0047	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	26	</td>
<td width="12%" align="center">	20	</td>
<td>	Normative ethics: deontology, consequentialism, or virtue ethics?	</td>
<td width="12%" align="center">	0.0026	</td>
</tr>
<tr>
<td width="12%" align="center">	27	</td>
<td width="12%" align="center">	10	</td>
<td>	Knowledge: empiricism or rationalism?	</td>
<td width="12%" align="center">	0.0016	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	28	</td>
<td width="12%" align="center">	24	</td>
<td>	Proper names: Fregean or Millian?	</td>
<td width="12%" align="center">	0.0012	</td>
</tr>
<tr>
<td width="12%" align="center">	29	</td>
<td width="12%" align="center">	18	</td>
<td>	Moral motivation: internalism or externalism?	</td>
<td width="12%" align="center">	0.0007	</td>
</tr>
<tr bgcolor="#e9e8e3">
<td width="12%" align="center">	30	</td>
<td width="12%" align="center">	26	</td>
<td>	Teletransporter (new matter): survival or death?	</td>
<td width="12%" align="center">	0.0004	</td>
</tr>
</table>
<p>&nbsp;</p>
<p>Now you can go to fancy cocktail parties and hold your own in philisophical debates &#8211; or at least have the confidence that you&#8217;re stating a position that cannot be proven wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2009/12/11/reality-morality-controversy-and-consensus-in-philosophy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Color and Reality</title>
		<link>http://www.gmilburn.ca/2009/06/19/color-and-reality/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=color-and-reality</link>
		<comments>http://www.gmilburn.ca/2009/06/19/color-and-reality/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 14:07:58 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[Numbers & Nature]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[consciousness]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[qualia]]></category>

		<guid isPermaLink="false">http://www.gmilburn.ca/?p=1467</guid>
		<description><![CDATA[When I was a kid, I used to wonder if everyone saw the world in the same way. We can all look at the same grass, but maybe the color I called green showed up in my brain as the color my friend called blue. Maybe all of our colors were shifted around to the [...]]]></description>
			<content:encoded><![CDATA[<p>When I was a kid, I used to wonder if everyone saw the world in the same way. We can all look at the same grass, but maybe the color I called green showed up in my brain as the color my friend called blue. Maybe all of our colors were shifted around to the point where all the colors were accounted for, but how we perceived them was shuffled up. I thought it would be remarkably exciting, and hoped that I could see the world through someone else&#8217;s brain to see if, in fact, this was true.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/meadows.jpg" alt="meadows" title="meadows" width="550" height="175" class="aligncenter size-full wp-image-1550" /></p>
<p>My eight year old self would be bitterly disappointed technology today has not progressed far enough to make that wish a reality. At the time, we had to settle the debate by another manner &#8211; asking an adult, a source of concrete and immutable knowledge. The answer I was given was that everyone sees the same colors of course (although why this was so obvious was never really clear) and if they didn&#8217;t it wouldn&#8217;t matter much since we couldn&#8217;t tell. Color was &#8220;real&#8221; &#8211; bits of light had a color (later I found out we could call it the wavelength of a photon), it hit our eyes, and our brains converted it to a beautiful image.</p>
<p>The only problem is that this is wrong.</p>
<h2>Color as Wavelength</h2>
<p>Well, alright. Before you get upset, it isn&#8217;t completely wrong. We were all taught about <a href="http://en.wikipedia.org/wiki/Isaac_Newton">Sir Isaac Newton</a> who discovered that a glass prism can split white light apart into its constituent colors.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/pink-floyd-dark-side-of-the-moon-crop.jpg" alt="pink-floyd-dark-side-of-the-moon-crop" title="pink-floyd-dark-side-of-the-moon-crop" width="500" height="216" class="aligncenter size-full wp-image-1558" /></p>
<p>While we consider this rather trivial today, at the time you&#8217;d be laughed out of the room if you suggested this somehow illustrated a fundamental property of light and color. The popular theory of the day was that color was a mixture of light and dark, and that prisms simply colored light. Color went from bright red (white light with the smallest amount of &#8220;dark&#8221; added) to dark blue (white light with the most amount of &#8220;dark&#8221; added before it turned black).</p>
<p>Newton showed this to be incorrect. We now know that light is made up of tiny particles called <a href="http://en.wikipedia.org/wiki/Photon">photons</a>, and these photons have something called &#8220;wavelength&#8221; that seems to correspond to color. Visible light is made up of a spectrum, a huge number of photons each with a different wavelength our eyes can see. When combined, we see it as white light.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/visible_light_spectrum.jpg" alt="visible_light_spectrum" title="visible_light_spectrum" width="550" height="102" class="aligncenter size-full wp-image-1560" /></p>
<p>So this appears to resolve my childhood debate. Light of a single wavelength (like that produced by a laser) corresponds to a single &#8220;real&#8221; color. The brain just translates wavelengths into colors somehow, and that is that. There&#8217;s just one problem.</p>
<p>We&#8217;re missing a color!</p>
<h2>Color as Experience</h2>
<p>To find out just what we&#8217;re missing, we have to consider how we can combine colors. For instance, you learned some basic color mixing rules as a kid. In this case, let&#8217;s use <a href="http://en.wikipedia.org/wiki/Additive_color">additive color mixing</a> since we&#8217;re mixing light. </p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/Additive_color_mixing.jpg" alt="Additive_color_mixing" title="Additive_color_mixing" width="350" height="263" class="aligncenter size-full wp-image-1581" /></p>
<p>Let&#8217;s find two colors on the spectrum line, and then we can estimate the final color they&#8217;ll produce when you mix them by finding the midpoint.</p>
<p>Red and green make yellow.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/red-green-yellow.jpg" alt="red-green-yellow" title="red-green-yellow" width="550" height="102" class="aligncenter size-full wp-image-1589" /></p>
<p>Green and blue make turquoise.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/blue-green-turquoise.jpg" alt="blue-green-turquoise" title="blue-green-turquoise" width="550" height="102" class="aligncenter size-full wp-image-1585" /></p>
<p>Red and blue make&#8230;</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/red-blue-green1.jpg" alt="red-blue-green" title="red-blue-green" width="550" height="102" class="aligncenter size-full wp-image-1587" /></p>
<p>Green? What? That doesn&#8217;t seem to make any sense! Red and violet make pink! But where is pink in our spectrum? It&#8217;s not violet, it&#8217;s not red &#8211; it seems like it should be simultaneously above and below our spectrum. But it&#8217;s not on the spectrum at all!</p>
<p>So we&#8217;re forced to realize a very interesting conclusion. The wavelength of a photon certainly reflects a color &#8211; but we cannot produce every color the human eye sees by a single photon of a specific wavelength. There is no such thing as a pink laser &#8211; two lasers must be mixed to produce that color. There are &#8220;real&#8221; colors (we call them pure spectral or <a href="http://en.wikipedia.org/wiki/Monochromatic">monochromatic</a> colors) and &#8220;unreal&#8221; colors that only exist in the brain. </p>
<h2>A Color Map</h2>
<p>So what are the rules for creating these &#8220;unreal&#8221; colors from the very real photons that hit your eye? Well, in the 1920s W. David Wright and John Guild both conducted experiments designed to map how the brain mixed monochomatic light into the millions of colors we experience everyday. They set up a split screen &#8211; on one side, they projected a &#8220;test&#8221; color. On the other side, the subject could mix together three primary colors produced by projectors to match the test color. After a lot of test subjects and a lot of test colors, eventually the <a href="http://en.wikipedia.org/wiki/CIE_1931_color_space">CIE 1931 color space</a> was produced.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/CIE-1931.jpg" alt="CIE-1931" title="CIE-1931" width="350" height="397" class="aligncenter size-full wp-image-1591" /></p>
<p>I consider this to be a map of the abstractions of the human brain. On the curved border we can see numbers, which correspond to the wavelengths in the spectrum we saw earlier. We can imagine the spectrum bent around the outside of this map &#8211; representing &#8220;real&#8221; colors. The inside represents all the colors our brain produces by mixing &#8211; the &#8220;unreal&#8221; colors. </p>
<p>So let&#8217;s try this again &#8211; with a map of the brain instead of a map of photon wavelengths. Red and green make yellow.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/cie-red-green-yellow.jpg" alt="cie-red-green-yellow" title="cie-red-green-yellow" width="350" height="397" class="aligncenter size-full wp-image-1595" /></p>
<p>Green and blue make turquoise.</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/cie-blue-green-turq.jpg" alt="cie-blue-green-turq" title="cie-blue-green-turq" width="350" height="397" class="aligncenter size-full wp-image-1593" /></p>
<p>Blue and red make&#8230;</p>
<p><img src="http://www.gmilburn.ca/wp-content/uploads/2009/06/cie-blue-red-magenta.jpg" alt="cie-blue-red-magenta" title="cie-blue-red-magenta" width="350" height="397" class="aligncenter size-full wp-image-1594" /></p>
<p>Pink! Finally! Note that pink is not on the curved line representing monochromatic colors. It is purely a construction of your brain &#8211; not reflective of the wavelength of any one photon.</p>
<h2>Is Color Real?</h2>
<p>So is color real? Well, photons with specific wavelengths seem to correspond to specific colors. But the interior of the CIE 1931 color space is a representation of the a most ridiculously abstract concept, labels that aren&#8217;t even labels, something our brain experiences and calculates from averaged photon wavelengths. It is an example of what philosophers call <a href="http://en.wikipedia.org/wiki/Qualia">qualia</a> &#8211; a subjective quality of consciousness.</p>
<p>I later learned that my childhood argument was a version of the <a href="http://en.wikipedia.org/wiki/Inverted_spectrum">inverted spectrum</a> argument first proposed by <a href="http://en.wikipedia.org/wiki/John_Locke">John Locke</a>, and that the &#8220;adult&#8221; perspective of everyone seeing the same colors (and it not really mattering if they didn&#8217;t) was argued by the philosopher <a href="http://en.wikipedia.org/wiki/Daniel_Dennett">Daniel Dennett</a>.</p>
<p>I have come no closer to resolving my question from long ago of &#8220;individual spectrums&#8221; &#8211; but for the future, I vow to pay more attention to the idle questions of children.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmilburn.ca/2009/06/19/color-and-reality/feed/</wfw:commentRss>
		<slash:comments>122</slash:comments>
		</item>
	</channel>
</rss>

