<?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"
	>

<channel>
	<title>aaron.harnly.net &#187; science</title>
	<atom:link href="http://harnly.net/category/blog/culture/science/feed/" rel="self" type="application/rss+xml" />
	<link>http://harnly.net</link>
	<description>Sì, abbiamo un'anima. Ma è fatta di tanti piccoli robot.</description>
	<pubDate>Fri, 05 Sep 2008 04:59:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
			<item>
		<title>Network Motifs</title>
		<link>http://harnly.net/2005/blog/culture/science/network-motifs/</link>
		<comments>http://harnly.net/2005/blog/culture/science/network-motifs/#comments</comments>
		<pubDate>Fri, 25 Mar 2005 07:39:00 +0000</pubDate>
		<dc:creator>aaronharnly</dc:creator>
		
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://harnly.net/uncategorized/2005/03/network-motifs</guid>
		<description><![CDATA[After a month-long hiatus, thought I&#8217;d return with an exposition of a very, very neat paper I read recently. This takes us into the still-inchoate world of computational biology, at the intersection of the platonic mathemtics of computer algorithms and the messy junkyard of cell biology. If you&#8217;re not versed in the language, try to [...]]]></description>
			<content:encoded><![CDATA[<p>After a month-long hiatus, thought I&#8217;d return with an exposition of a very, very neat paper I read recently. This takes us into the still-inchoate world of computational biology, at the intersection of the platonic mathemtics of computer algorithms and the messy junkyard of cell biology. If you&#8217;re not versed in the language, try to hang in there, because it&#8217;s all rather interesting.</p>

<p><span id="more-9"></span></p>

<p>The paper is <a href="http://www.nature.com/cgi-taf/Dynapage.taf?file=/ng/journal/v31/n1/abs/ng881.html">Network motifs in the transcriptional regulation network of <i>E. coli</i></a>, by Shai Shen-Orr, Ron Milo, Shmoolik Mangan, and Uri Alon at the Weizmann Institute in Israel. It was published less than three years ago in <i>Nature</i>, and has already been cited by more than 150 other papers; clearly, the ideas it introduced have caught the imaginations of other researchers. </p>

<p>Before jumping into the paper though, let&#8217;s begin by framing what a network is.</p>

<p><b>Networks</b>
A network (also called a graph) is a collection of two things: <br /></p>

<ol>
<li><b>nodes</b>, which are some entity that you care about, like people, places, times, or genes.<br /></li>
<li><b>edges</b>, which express some relationship between nodes. Edges can express a symmetric relation such as &#8220;are friends&#8221; or &#8220;are neighbors&#8221;, or a one-directional relationship such as &#8220;loves&#8221;, &#8220;hates&#8221;, or &#8220;is built from.&#8221; We call a network with symmetric relations &#8220;undirected networks&#8221;, and the other a &#8220;directed network&#8221; (or graph).<br />
For example, using characters as our nodes, and love-relationships as our edges, we can draw a small directed network representing the love triangle in Shakespeare&#8217;s <a href="http://www-2.cs.cmu.edu/People/rgs/12night-table.html">Twelfth Night</a>:<br />
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/love-triangle.png" alt="Image hosted by Photobucket.com">
Or, more prosaically,  researchers have built a network representing the <a href="http://www.caida.org/analysis/topology/as_core_network/AS_Network.xml">core connectivity of the Internet</a>:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-internet.gif" alt="Image hosted by Photobucket.com"></li>
</ol>

<p><b>Random Networks</b>
When scientists wanted to study the behavior of networks, they traditionally assumed that a typical <a href="http://en.wikipedia.org/wiki/Random_graph">&#8220;random graph&#8221;</a> had characteristics like a Erd&#246;s-R&#233;nyi graph, a theoretical construct invented by a pair of fine Hungarian mathematicians; essentially, you start with a bunch of nodes, then flip a (weighted) coin to decide whether to draw an edge connecting each pair of nodes. This process produces a network that looks something like this (<a href="http://www.nature.com/cgi-taf/DynaPage.taf?file=/nrg/journal/v5/n2/abs/nrg1272_fs.html&amp;dynoptions=doi1111726182">figures from Barab&#225;si &amp; Oltvai 2004</a>):
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-random.png" alt="Image hosted by Photobucket.com">
If you make a plot of the <i>degree distribution</i>, i.e. how many nodes have 1 edge connected, how many have 2 edges, etc., you get a histogram that looks like this for an Erd&#246;s-R&#233;nyi random graph:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-random-degree.png" alt="Image hosted by Photobucket.com">
So the principle characteristic of these Erd&#246;s-R&#233;nyi random graphs is that most nodes have roughly the same number of edges, equal to the average number of edges per node. These networks are fairly uniform-looking; most nodes are about the same as most other nodes. As a real-life example of such a network, you might imagine people sending a chain letter in a small town; most people with send it to five others, but some might send it to more or fewer.</p>

<p><b>Scale-free networks</b>
Now this is all very well, but when people looked more closely, they began to realize that many real-life networks do <i>not</i> have the characteristics of these Erd&#246;s-R&#233;nyi random graphs. Rather than having a whole bunch of nodes that are roughly equally likely to have connecting edges, many of these networks are highly non-uniform: they have a small number of highly connected nodes, and a very large number of nodes that just have one or two edges. A typical scale-free network might look like this:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-scalefree.png" alt="Image hosted by Photobucket.com">
Can you see the &#8220;important nodes&#8221; in blue? Sometimes those are called &#8220;hubs&#8221;, just like with &#8220;hub cities&#8221; for the networks of airlines. And this is the corresponding degree distribution:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-scalefree-degree.png" alt="Image hosted by Photobucket.com">
This peculiar degree distribution gives these networks the name <a href="http://mathworld.wolfram.com/Scale-FreeNetwork.html">scale-free</a>, for there is no &#8220;typical&#8221; node, and the degree distributions follow a power law; there are exponentially more nodes with a small number of edges than those with a great many edges.
The Web <a href="http://citeseer.ist.psu.edu/faloutsos99powerlaw.html">has been found to be a scale-free network</a>; there are a few pages that have a great many links, and a vast number of pages with very few links. (The connectivity of Internet routers shares this property as well.) And perhaps thanks to the Hollywood star system, the <a href="http://www.nature.com/cgi-taf/DynaPage.taf?file=/nature/journal/v393/n6684/abs/393440a0_fs.html&amp;dynoptions=doi1111729928">network of actors co-starring in movies in the IMDB</a> is also scale-free.</p>

<p>It turns out that many biological networks are also scale-free; the neurons of <i>C. elegans</i>, the gene regulatory network of <i>E. coli</i>, protein-protein interaction networks in yeast, among many others, are all scale-free.</p>

<p>Scale-free networks can be modeled, or randomly generated by several methods, all different than the procedure described above for producing an Erd&#246;s-R&#233;nyi random graph. One simple method is to add a new node, and preferentially connect that new node to the more highly connected nodes that already exist. For example, when you create a new web page, you might tend to create links to sites that already have many links to them, because you will have heard about these sites.</p>

<p><b>Motifs</b>
So terrific: Scientists now have a better model for real-life networks. But is it sufficient to know that these real-life networks are scale-free? Can we do mathematical exploration of the characteristics of random scale-free graphs, and apply the lessons learned to the real-life networks? Or do the real-life networks have further unique characteristics that a simple model doesn&#8217;t capture?</p>

<p>This is the question that Shen-Orr et al. set out to ask in this interesting paper; the answer, as we shall see, is <i>yes, real-life networks are not just random scale-free networks</i>.</p>

<p>Shen-Orr chose as their first example the gene regulation network of <i>E. coli</i>; it&#8217;s a fairly small and well-understood network, so it was a good first target. In this network, each node represents a gene; an arrow is drawn from gene A to gene B if the protein that A encodes acts to alter the rate of expression of gene B (regardless of whether A upregulates or downregulates B).To answer the question of whether random scale-free networks are a good model of this network, they generated thousands of random networks, each of which had the same degree distribution as the original, real network. That is, each of these networks had 178 nodes with one edge, 54 nodes with two edges, etc., just as the original did, but which actual nodes were connected to which was randomized.</p>

<p>Shen-Orr et al. then searched each of these networks for <i>subgraphs</i>, which are just networks within the network, of a certain size. For example, in a directed graph (in which the edges are arrows), there are thirteen possible subgraphs of size three:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-subgraphs-3.png" alt="Image hosted by Photobucket.com">
They then compared the frequency of occurrence of each of these types in the <i>real</i> network and in the many random networks. This is the fascinating result: Of all those 13 subgraphs of size three, one occurred much more frequently in the real network &#8212; number 5 in the diagram. 
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-subgraphs-3-ff.png" alt="Image hosted by Photobucket.com">
They dubbed this subgraph a &#8220;feed-forward loop&#8221;, because if you arrange its nodes like this:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-ff.png" alt="Image hosted by Photobucket.com">
you can imagine gene X exerting influence on gene Z by two pathways: one direct, and one indirect, by regulating gene Y which in turn regulates gene Z.
This result means that there is probably some biologically useful property of this type of subgraph. It has been speculated by others that this type of subgraph is a more stable transmitter of information from gene X to gene Z than other possible arrangements, but the role of the feed-forward loop is not yet clear.</p>

<p>Looking at four-node subgraphs, of which there are 199 possible, it was found that the real network had a much higher-than-random frequency of this subgraph, dubbed the &#8220;bi-fan&#8221;:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-bifan.png" alt="Image hosted by Photobucket.com">
Again, work is just beginning on understanding the function of this subgraph, and why the cell apparently considers it so useful.
These unusually common subgraphs are called &#8220;motifs&#8221;, by analogy to the repeated patterns in art, architecture, or gene sequences. Once Shen-Orr et al. prompted people to look for them, people have discovered motifs in all kinds of networks, from a wide spectrum of biological networks, to human-made ones like electrical circuits. Why do biological networks have these motifs? Work is just barely beginning to work out plausible explanations. </p>

<p>One interesting result has to do with a closer look at the &#8220;feed-forward loop&#8221; motif we saw above. In the context of gene regulation, each edge can either represent a positive or negative effect on the expression of the downstream gene. That means that a feed-forward loop can be one of two types: coherent, or incoherent. A coherent feed-forward loop is one in which the direct path from X to Z has the same net effect as the indirect path; i.e. either both have a positive effect, or both have a negative effect:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-ff-coherent.png" alt="Image hosted by Photobucket.com"></p>

<p>In an incoherent feed-forward loop, the effect from one direction is contradicted by the effect from the other direction:
<img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/network-ff-incoherent.png" alt="Image hosted by Photobucket.com"></p>

<p>Shen-Orr et al. found that 85% of the feed-forward loops in the <i>E. coli</i> regulatory network are coherent. Why should this be? It makes a certain amount of &#8220;sense&#8221; that you&#8217;d want to have the overall regulatory effect of turning on gene X be coherent, but there&#8217;s still lots to learn. One recent paper out of India has found that theoretically, one particular type of coherent feed-forward loop is a more stable transmitter of information from X to Z; and indeed, that particular type is the most common. So evolution appears to be selecting for good information flow in her networks, perhaps not surprising, but very interesting.</p>

<p><b>Conclusions</b>
Overall, these results (which have been extended to many other biological and non-biological networks) mean that investigating the mathematical properties of random scale-free networks won&#8217;t model the behavior of the <i>E. coli</i> gene regulatory network, or many other biological networks, very well, because they is significantly different than random networks.</p>

<p>Of course, a &#8220;random&#8221; network is simply one generated by some stochastic process; different processes will produce different types of &#8220;random&#8221; networks. So far no one has found a simple generative process that produces networks that preferentially contain feedforward-loops and bi-fans, but if someone does, that might yield insights into the function and evolution of biological networks.</p>
]]></content:encoded>
			<wfw:commentRss>http://harnly.net/2005/blog/culture/science/network-motifs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Evolution Songs</title>
		<link>http://harnly.net/2005/blog/culture/science/evolution-songs/</link>
		<comments>http://harnly.net/2005/blog/culture/science/evolution-songs/#comments</comments>
		<pubDate>Wed, 26 Jan 2005 22:45:52 +0000</pubDate>
		<dc:creator>aaronharnly</dc:creator>
		
		<category><![CDATA[culture]]></category>

		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://harnly.net/uncategorized/2005/01/evolution-songs</guid>
		<description><![CDATA[Some theories of origins have inspired generations of musicians. Darwin&#8217;s theory of evolution has not. This may be because humans have a hard time emoting about an impersonal process that unfolds over millions of years. Or it could be because there is no enormous institution extracting tithes from the entire population and commissioning artistic works [...]]]></description>
			<content:encoded><![CDATA[<p>Some theories of origins have inspired generations of musicians. Darwin&#8217;s theory of evolution has not. This may be because humans have a hard time emoting about an impersonal process that unfolds over millions of years. Or it could be because there is no enormous institution extracting tithes from the entire population and commissioning artistic works that perpetuate its worldview.</p>

<p>In any case, I do know of two pretty neat songs that are about evolution, and thought I&#8217;d share them with you. You can listen to lo-fi previews of the songs, which hopefully won&#8217;t get me in trouble.</p>

<table border="1" style="align: left; width: 430px"><tr><td><a href="http://www.freewebs.com/mithrastheprophet/files/gentlearms.html" target="PROPHET_MUSIC"><img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/album-drumhatbuddha.jpg" width="80" height="80"></a></td><td><div style="font-weight: bold">Gentle Arms of Eden</div><div>Dave Carter &#038; Tracy Grammer</div><div><i>Drum Hat Buddha</i></div></td><td><div style="font: Geneva, Helvetica, Sans-serif; font-size: 10px">[ <a href="http://www.freewebs.com/mithrastheprophet/files/gentlearms.html" target="PROPHET_MUSIC">listen to preview</a> ]</div><div style="font: Geneva, Helvetica, Sans-serif; font-size: 10px">[ <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playlistId=5038047&#038;selectedItemId=5038035">Buy from iTunes</a> ]</div><div style="font: Geneva, Helvetica, Sans-serif; font-size: 10px">[ <a href="http://www.cowboylyrics.com/lyrics/dave-carter-and-tracy-grammer/gentle-arms-of-eden-12108.html" target="PROPHET_MUSIC">read the lyrics</a> ]</div></td></tr><tr><td><a href="http://www.freewebs.com/mithrastheprophet/files/fromwater.html" target="PROPHET_MUSIC"><img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/2005/album-rubberneck.jpg" width="80" height="80"></a></td> <td><div style="font-weight: bold">I Come From Water</div><div>The Toadies</div><div><i>Rubberneck</i></div></td> <td> <div style="font: Geneva, Helvetica, Sans-serif; font-size: 10px">[ <a href="http://www.freewebs.com/mithrastheprophet/files/fromwater.html" target="PROPHET_MUSIC">listen to preview</a> ]</div><div style="font: Geneva, Helvetica, Sans-serif; font-size: 10px">[ <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playlistId=109252&#038;selectedItemId=109242">Buy from iTunes</a> ]</div><div style="font: Geneva, Helvetica, Sans-serif; font-size: 10px">[ <a href="http://www.azlyrics.com/lyrics/toadies/icomefromthewater.html" target="PROPHET_MUSIC">read the lyrics</a> ]</div></td></tr></table>
]]></content:encoded>
			<wfw:commentRss>http://harnly.net/2005/blog/culture/science/evolution-songs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Transductive Inference</title>
		<link>http://harnly.net/2005/blog/culture/science/transductive-inference/</link>
		<comments>http://harnly.net/2005/blog/culture/science/transductive-inference/#comments</comments>
		<pubDate>Sat, 22 Jan 2005 00:27:38 +0000</pubDate>
		<dc:creator>aaronharnly</dc:creator>
		
		<category><![CDATA[philosophy]]></category>

		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://harnly.net/uncategorized/2005/01/transductive-inference</guid>
		<description><![CDATA[The brilliant, if eccentric and self-congratulatory Vladimir Vapnik has been trumpeting a major shift in the scientific method, and perhaps our epistemological stance, over the past few years. Whether or not Vapnik gets his revolution, at the very I least I&#8217;ll wager you will see &#8220;transductive inference&#8221; gain increasing attention as his ideas trickle out [...]]]></description>
			<content:encoded><![CDATA[<p>The brilliant, if eccentric and self-congratulatory <a href="http://en.wikipedia.org/wiki/Vladimir_Vapnik">Vladimir Vapnik</a> has been trumpeting <a href="http://www.lancs.ac.uk/users/esqn/windsor04/handouts/vapnik.pdf">a major shift</a> in the scientific method, and perhaps our epistemological stance, over the past few years. Whether or not Vapnik gets his revolution, at the very I least I&#8217;ll wager you will see <a href="http://www.google.com/search?hl=en&amp;lr=&amp;c2coff=1&amp;q=%22transductive+inference%22&amp;btnG=Search">&#8220;transductive inference&#8221;</a> gain increasing attention as his ideas trickle out from statistical learning theory to other intellectual fields. So what&#8217;s it all about?</p>

<p><span id="more-16"></span></p>

<p>The goal of science (it can be argued) is the accurate prediction of future or novel events. Since the days of <a href="http://www.cliffsnotes.com/WileyCDA/LitNote/id-21,pageNum-66.html">Aristotle</a>, and especially since <a href="http://www.utm.edu/research/iep/b/bacon.htm#Induction">Bacon</a>, the essential means of scientific inference is <a href="http://en.wikipedia.org/wiki/Induction_%28philosophy%29">induction</a>. Bearing <a href="http://www.etext.leeds.ac.uk/hume/ehu/ehupbsb.htm#index-div2-N943628287">Hume&#8217;s warnings</a> in mind, we generally follow this familiar process:</p>

<p>*Make a number of observations
*Induce a general law (or mathematical function) that we think is generating the phenomenon.
*Use the law to make predictions about future phenomena.</p>

<p>To simplify the discussion, let&#8217;s restrict ourselves to a problem of <i>classification</i>. You are encountering a steady stream of objects &#8212; say, liver cells. First you get a batch (the &#8220;training set&#8221;) which are labelled in two groups, say &#8220;normal&#8221; vs &#8220;cancerous&#8221;. Your goal (especially in applied science) is simply to devise a rule by which you can <a href="http://www.gepsoft.com/gepsoft/APS3KB/Chapter09/Section2/SS02.htm">accurately</a> classify future cells (the &#8220;test set&#8221;) as normal or cancerous.</p>

<p>To make your classification, you measure <a href="http://www.thedoctorsdoctor.com/diseases/liver_ca.htm#histo">various characteristics</a> of the liver cells; for example, size, color, mitotic activity, expression level of various proteins, etc. For simplicity, let&#8217;s suppose you measure just two characteristics, size and the level of &#8220;protein A&#8221;. You could draw a graph plotting all of the cells on these two characteristics, coloring the normal cells blue, and the cancerous red:</p>

<p><img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/transduction/transduction01.png"></p>

<p>Now, if you&#8217;re doing normal scientific induction, you&#8217;ll look at this training data and try to posit a simple rule that will explain the data, and help you understand nature&#8217;s &#8220;hidden rule&#8221; that makes some cells cancerous and others not. In classical statistics, this means you come up with a function that will &#8220;paint&#8221; part of the surface red, and part blue. This paint forms your prediction about any cell that lands in each region:</p>

<p><img src="http://img.photobucket.com/albums/v609/mithrastheprophet/blog/transduction/transduction02.png"></p>

<p>Vapnik helped found the field of <a href="http://en.wikipedia.org/wiki/Computational_learning_theory">computational learning theory</a>, in which one takes a slightly different approach. Rather than trying to guess nature&#8217;s &#8220;hidden rule&#8221;, you worry solely about minimizing the error your function will have when you test it against more liver cells. The surface-painting you come up with might not be parsimonious or a sensible guess about what nature is doing, but if it is a successful predictor, that&#8217;s fine.</p>

<p>Now comes the upheaval that is transductive reasoning. Vapnik has established mathematically that you pay a certain price in the accuracy of your predictions by generalizing to pain the entire surface either red or blue. So his idea is this: rather than first doing induction to posit a general rule, then making predictions about new liver cells as you see them, you simply <strong>transduce</strong> to make a prediction about each new cell as you see it, based on everything you&#8217;ve seen before. You don&#8217;t get a simple rule that you can explain or write down &#8212; all you get is a prediction each time. Vapnik has demonstrated that transduction will <strong>always</strong> perform better than induction on a given problem.</p></p>

<p>So this leaves us with this abbreviated scientific method, in which we:</p>

<p>*Make a number of observations
* Use transduction to make predictions about new phenomena as we encounter them.</p>

<p>At least in particular problems in applied science, this really could be an upheaval. Who cares about having tidy theories and approximations of nature&#8217;s mysterious inner ways if we can always have the better predictor? As a general approach to natural science, however, it&#8217;s problematic. We induce models that measure the importance of Protein A not just so that we can make great predictions of whether a cell is cancerous. We also want to know whether we should investigate Protein A more deeply, learn about its structure and function, or invent drugs to mimic or inhibit it. Transduction doesn&#8217;t help us make these decisions, and so we will always need some inductive reasoning along with our transductive predicting.</p>

<hr />

<p>Thus far, the potential impact of transduction has only begun to make an impression on the philosophical community. I haven&#8217;t found any discussion of it in the philosophy of science, but that could be because I don&#8217;t understand the current problems and arguments in that field. <a href="http://www.princeton.edu/~harman/">Gilbert Harman</a>, a former professor of mine, is making an intriguing application of transduction to moral reasoning in a paper to be published later in 2005 (<a href="http://www.princeton.edu/~harman/Papers/Part.rtf">RTF</a>, <a href="http://64.233.161.104/search?q=cache:tRYmXyITqzYJ:www.princeton.edu/~harman/Papers/Part.rtf+&amp;hl=en">HTML</a>). Essentially, Harman asks whether, if transduction can offer superior classification, we shouldn&#8217;t attempt to use transduction to &#8220;classify&#8221; moral actions into &#8220;should do&#8221; and &#8220;shouldn&#8217;t do.&#8221; We would sacrifice the formation of inducing general moral principles which we could elaborate and trasmit, but we would (presumably) gain &#8220;better&#8221; moral decisions.</p>

<p>Is it worth giving up comprehensible theories for better predictions? Will we see transductive inference gain a foothold in economics, finance, the social sciences? It&#8217;s one to watch.</p>
]]></content:encoded>
			<wfw:commentRss>http://harnly.net/2005/blog/culture/science/transductive-inference/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Graph Theory Tidbits</title>
		<link>http://harnly.net/2005/blog/culture/science/graph-theory-tidbits/</link>
		<comments>http://harnly.net/2005/blog/culture/science/graph-theory-tidbits/#comments</comments>
		<pubDate>Wed, 19 Jan 2005 14:45:41 +0000</pubDate>
		<dc:creator>aaronharnly</dc:creator>
		
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://harnly.net/uncategorized/2005/01/graph-theory-tidbits</guid>
		<description><![CDATA[You are at a cocktail party. People are introducing themselves and shaking hands. Since parties make you uncomfortable, you lean against the wall. Rather than having meaningful human interaction, you can do a little graph theory instead, which is much more fun. With a little thinking, you can derive two interesting conclusions:


At least two people [...]]]></description>
			<content:encoded><![CDATA[<p>You are at a cocktail party. People are introducing themselves and shaking hands. Since parties make you uncomfortable, you lean against the wall. Rather than having meaningful human interaction, you can do a little graph theory instead, which is much more fun. With a little thinking, you can derive two interesting conclusions:</p>

<ul>
<li>At least two people shook the same number of hands.</li>
<li>An even number of people shook an odd number of hands.</li>
</ul>

<p><span id="more-17"></span></p>

<p>The first result rests on the wonderfully named &#8220;pigeonhole principle.&#8221; Consider what it would take for <em>no</em> two people to shake the same number of hands: each person would have his or her own unique &#8220;shake-count&#8221;.  We consider each shake-count a &#8220;pigeonhole&#8221;, because it&#8217;s like a slot that we fill with a person. So Aziz shook zero hands, Bob shook one hand, Carmen two hands, etc. With <em>n</em> people, we could assign &#8220;shake-counts&#8221; from 0 all the way up to Zaphod who shook <em>n-1</em> hands (assuming we don&#8217;t permit someone to shake hands with himself). This is <em>n</em> different shake-counts, so it seems we could indeed have <em>n</em> people, each with their own shake-count.</p>

<p>But consider what it implies for Aziz to have a shake-count of zero: outcast that he is, he didn&#8217;t shake anyone&#8217;s hand at all. Zaphod, with a shake-count of <em>n-1</em>, shook the hand of everyone at the party. But Aziz and Zaphod can&#8217;t be at the same party: if Zaphod succeeds in shaking everyone&#8217;s hand, then Aziz can&#8217;t have shook no hands, and vice-versa. Hence any single party has only <em>n-1</em> pigeonholes for shake-counts. When you try to stick <em>n</em> people in <em>n-1</em> pigeonholes, you&#8217;ll end up with at least two people in the same pigeonhole. So at least two people shook the same number of hands. Hoorah!</p>

<hr />

<p>The second result is even more kooky sounding, but it also follows from very simple principles. Consider the total of each partygoer&#8217;s personal &#8220;shake-count&#8221;. Each handshake involves two people, so the sum of everyone&#8217;s shake-counts must equal twice the total number of handshakes. (Think about that one for a sec to make sure you get it).</p>

<p>This means that the sum of shake-counts is an even number. Now, consider the people who shook an <em>even</em> number of hands: the sum of their shake-counts must be an even number too, since when you add together even numbers you get even numbers. This means that the <em>remaining</em> sum of shake-counts, the sum of the shake-counts of people who shook an <em>odd</em> number of hands, must also be an even number.</p>

<p>Now, to get an even number by adding up odd shake-counts, there must be an <em>even</em> number of such people. (Simple example: 3 + 3 = 6 (two people, even sum), but 3 + 3 + 3 = 9 (three people, odd sum). So, there is always an even number of people that have shaken an odd number of hands!</p>

<p>Happy Graph Theory Awareness Week!</p>
]]></content:encoded>
			<wfw:commentRss>http://harnly.net/2005/blog/culture/science/graph-theory-tidbits/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Box of Bones</title>
		<link>http://harnly.net/2004/blog/culture/science/box-of-bones/</link>
		<comments>http://harnly.net/2004/blog/culture/science/box-of-bones/#comments</comments>
		<pubDate>Sun, 21 Nov 2004 19:10:39 +0000</pubDate>
		<dc:creator>aaronharnly</dc:creator>
		
		<category><![CDATA[autobiography]]></category>

		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://harnly.net/uncategorized/2004/11/box-of-bones</guid>
		<description><![CDATA[
       
    
   
      
     IMG_0205   


This is supposed to be a &#8220;meaningful thoughts&#8221; blog rather than a &#8220;I had toast for breakfast&#8221; blog, but:

After saying hello to the frogs at the Museum [...]]]></description>
			<content:encoded><![CDATA[<p><div>
      <div style="clear:both;"></div><div style="float: right; margin-left: 10px; margin-bottom: 10px;"> 
    <a href="http://www.flickr.com/photos/1615339_a897e07850_o.jpg" title="photo sharing">
   <img src="http://www.flickr.com/photos/1615339_a897e07850_m.jpg" alt="" style="border: solid 2px #000000;" />
    </a> <br /> 
   <span style="font-size: 0.9em; margin-top: 0px;">  <a href="http://www.flickr.com/photos/1615339_a897e07850_o.jpg">IMG_0205</a>  <br /> </span>
</div></p>

<p>This is supposed to be a &#8220;meaningful thoughts&#8221; blog rather than a &#8220;I had toast for breakfast&#8221; blog, but:</p>

<p>After saying hello to the <a href="http://www.flickr.com/photos/67642161@N00/1615676/">frogs</a> at the Museum of Natural History, I stopped by the <a href="http://www.maxillaandmandible.com/">Maxilla and Mandible</a> shop. And lo! what did I find but this Box of Bones, advertised as &#8220;ideal for medical students.&#8221; I am vindicated.</p>

<p><br />
End transmission.<br clear="all" /><div style="clear:both; padding-bottom:0.25em"></div></p>
]]></content:encoded>
			<wfw:commentRss>http://harnly.net/2004/blog/culture/science/box-of-bones/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.562 seconds -->
