<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Computational Story Lab </title>
	<atom:link href="http://onehappybird.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://onehappybird.com</link>
	<description>one happy bird</description>
	<lastBuildDate>Thu, 09 May 2013 13:39:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='onehappybird.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Computational Story Lab </title>
		<link>http://onehappybird.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://onehappybird.com/osd.xml" title="Computational Story Lab " />
	<atom:link rel='hub' href='http://onehappybird.com/?pushpress=hub'/>
		<item>
		<title>Now online: the Dow Jones Index of Happiness</title>
		<link>http://onehappybird.com/2013/04/30/now-online-the-dow-jones-of-happiness/</link>
		<comments>http://onehappybird.com/2013/04/30/now-online-the-dow-jones-of-happiness/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 16:00:07 +0000</pubDate>
		<dc:creator>Chris Danforth</dc:creator>
				<category><![CDATA[networks]]></category>
		<category><![CDATA[psychology]]></category>
		<category><![CDATA[social phenomena]]></category>
		<category><![CDATA[happiness]]></category>
		<category><![CDATA[hedonometrics]]></category>
		<category><![CDATA[linguistics]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=944</guid>
		<description><![CDATA[Total excitement people: our website hedonometer.org has gone live.  We&#8217;re measuring Twitter&#8217;s happiness in real time.  Please check it out! If you&#8217;re still here, here&#8217;s the blurb from the site&#8217;s about page: Happiness: It’s what most people say they want. So &#8230; <a href="http://onehappybird.com/2013/04/30/now-online-the-dow-jones-of-happiness/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=944&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Total excitement people: our website <a title="hedonometer" href="http://www.hedonometer.org">hedonometer.org</a> has gone live.  We&#8217;re measuring Twitter&#8217;s happiness in real time.  Please check it out!</p>
<p>If you&#8217;re still here, here&#8217;s the blurb from the site&#8217;s about page:</p>
<p><strong>Happiness:</strong> It’s what most people say they want. So how do we know how happy people are? You can’t improve or understand what you can’t measure. In a blow to happiness, we’re very good at measuring economic indices and this means we tend to focus on them. With <a href="http://hedonometer.org" target="_blank">hedonometer.org</a> we’ve created an instrument that measures the happiness of large populations in real time.</p>
<p>Our hedonometer is based on people’s online expressions, capitalizing on data-rich social media, and we’re measuring how people present themselves to the outside world. For our first version of hedonometer.org, we’re using Twitter as a source but in principle we can expand to any data source in any language. We’ll also be adding an API soon.</p>
<p>So this is just a start &#8211; we invite you to explore the <a href="http://www.hedonometer.org" target="_blank">Twitter time series</a>, let us know what you think, and follow the daily updates through the hedonometer twitter feed: <a class="twitter-timeline" width="450" height="450" href="https://twitter.com/hedonometer" data-widget-id="331446787980267520">Tweets by @hedonometer</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/944/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/944/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=944&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2013/04/30/now-online-the-dow-jones-of-happiness/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f6d1f552bfda340691712dd0560ef723?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chrisdanforth</media:title>
		</media:content>
	</item>
		<item>
		<title>A data-driven study of the patterns of life for 180,000 people</title>
		<link>http://onehappybird.com/2013/04/08/a-data-driven-study-of-the-patterns-of-life-for-180000-people/</link>
		<comments>http://onehappybird.com/2013/04/08/a-data-driven-study-of-the-patterns-of-life-for-180000-people/#comments</comments>
		<pubDate>Mon, 08 Apr 2013 13:00:46 +0000</pubDate>
		<dc:creator>Chris Danforth</dc:creator>
				<category><![CDATA[networks]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[prediction]]></category>
		<category><![CDATA[social phenomena]]></category>
		<category><![CDATA[cartography]]></category>
		<category><![CDATA[gyradius]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[movement]]></category>
		<category><![CDATA[pattern of life]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=1158</guid>
		<description><![CDATA[Here at the Computational Story Lab, some of us commute by foot, some by car, and a few deliver themselves by bike, even in the middle of our cold, snowful Vermont winter.  Occasionally, we transport ourselves over very long distances &#8230; <a href="http://onehappybird.com/2013/04/08/a-data-driven-study-of-the-patterns-of-life-for-180000-people/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=1158&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Here at the Computational Story Lab, some of us commute by foot, some by car, and a few deliver themselves by bike, even in the middle of our cold, snowful Vermont winter.  Occasionally, we transport ourselves over very long distances in magic flying tubes with wings to attend conferences, to see family, or for travel.  So what do our movement patterns look like over time?  Are there distinct kinds of movement patterns as we look across populations, or are they variations on a single theme?</p>
<p>Inspired by an analysis of mobile phone data by <a href="http://humnet.scripts.mit.edu/wordpress/" target="_blank">Marta Gonzalez</a> at MIT, <a href="http://bagrow.com/" target="_blank">James Bagrow</a> at Northwestern, and colleagues, we used 37 million geotagged tweets to characterize the movement patterns of 180,000 people during their 2011 travels. We used the standard deviation in their position, a.k.a. <em>radius of gyration, </em>as a reflection of their movement. As an example, below we plot a dot for each geotagged tweet we found posted in the San Francisco Bay area, colored by the author&#8217;s radius of gyration.</p>
<div id="attachment_1163" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/03/san-francisco-radius.jpg"><img class="size-full wp-image-1163 " alt="The Bay Area is shown with a dot for each tweet, colored by the radius of gyration of its author." src="http://onehappybird.files.wordpress.com/2013/03/san-francisco-radius.jpg?w=500&#038;h=393" width="500" height="393" /></a><p class="wp-caption-text">The Bay Area is shown with a dot for each tweet, colored by the radius of gyration of its author. The color scale is logarithmic, so we can compare people with very different habits.</p></div>
<p>You can see from the picture that there are many people with a radius near 100km tweeting from downtown San Francisco. This pattern could reflect a concentration of tourists visiting the area, or individuals who live downtown and travel for work or pleasure. Images for <a href="http://uvm.edu/storylab/share/papers/frank2013a/new-york-city-radius.jpg" target="_blank">New York City</a>, <a href="http://uvm.edu/storylab/share/papers/frank2013a/chicago-radius.jpg" target="_blank">Chicago</a>, and <a href="http://uvm.edu/storylab/share/papers/frank2013a/los-angeles-radius.jpg" target="_blank">Los Angeles</a> are also quite beautiful.</p>
<p>In the image below, we rotated every individual&#8217;s movement pattern so that the origin represents their average location, and the horizontal line heading to the left represents their principle axis (most likely the path from home to work). We also stretched or shrunk the vertical and horizontal axes for each individual, so that everyone could fit on the same picture. Basically, we have a heatmap of collective movement, with each individual in their own intrinsic reference frame.  The immediate good news for these kinds of data-driven studies is that we see a very similar form to those found for mobile phone data sets.  Apart from being a different social signal, Geotagged Tweets also have much better spatial resolution than mobile phone calls which are referenced by the nearest cellphone tower.</p>
<div id="attachment_1227" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/03/contour-map1.jpg"><img class="size-full wp-image-1227" alt="Movement pattern exhibited by 180,000 individuals in 2011, as inferred from 37 million geolocated tweets. Colormap shows the probability density in log10. Note that despite the resemblance, this image is neither a nested rainbow horseshoe crab, nor the Mandelbrot set." src="http://onehappybird.files.wordpress.com/2013/03/contour-map1.jpg?w=500&#038;h=314" width="500" height="314" /></a><p class="wp-caption-text">Movement pattern exhibited by 180,000 individuals in 2011, as inferred from 37 million geolocated tweets. Colormap shows the probability density in log10. Note that despite the resemblance, this image is neither a nested rainbow horseshoe crab, nor the Mandelbrot set.</p></div>
<p>Several features of the map reveal interesting patterns. First, the teardrop shape of the contours demonstrates that people travel predominantly along their principle axis, with deviations becoming shorter and less frequent as they move farther away. Second, the appearance of two spatially distinct yellow regions suggests that people spend the vast majority of their time near two locations. We refer to these locations as the <em>work</em> and <em>home</em> <em>locales</em>, where the home locale is centered on the dark red region right of the origin, and the work locale is centered just left of the origin.</p>
<p>Finally, we see a clear horizontal asymmetry indicating the increasingly isotropic variation in movement surrounding the home locale, as compared to the work locale. We suspect this to be a reflection of the tendency to be more familiar with the surroundings of one&#8217;s home, and to explore these surroundings in a more social context. The up-down symmetry demonstrates the remarkable consistency of the movement patterns revealed by the data.</p>
<div id="attachment_1168" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/03/frequency-vs-x.jpg"><img class="size-full wp-image-1168  " alt="We see a clear separation between the most likely and second most likely position." src="http://onehappybird.files.wordpress.com/2013/03/frequency-vs-x.jpg?w=500&#038;h=410" width="500" height="410" /></a><p class="wp-caption-text">We see a clear separation between the most likely and second most likely position.</p></div>
<p>Looking just at the messages posted along the work-home corridor, the distribution is skewed left, with movement from home in a heading opposite work seen to be highly unlikely.</p>
<div id="attachment_1170" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/03/isotropy.jpg"><img class="size-full wp-image-1170" alt="The isotropy ratio shows the change in the probability density's shape as a function of radius." src="http://onehappybird.files.wordpress.com/2013/03/isotropy.jpg?w=500&#038;h=391" width="500" height="391" /></a><p class="wp-caption-text">The isotropy ratio shows the change in the probability density&#8217;s shape as a function of radius.</p></div>
<p>Above we see that individuals who move around a lot have a much larger variation in their positions along their principle axis, exhibiting a less circular pattern of life than people who stay close to home. Remarkably, the isotropy ratio decays logarithmically with radius.</p>
<p>Finally, we grabbed messages from the most prolific tweople, those 300 champions who had posted more than 10,000 geotagged messages in 2011. We received 10% of these messages through our gardenhose feed from Twitter. Below, we plot the times during the week that they post from their most frequently visited location. These folks most likely have the geotag switch <em>on</em> for all messages, and exhibit a <em>very</em> regular routine.</p>
<div id="attachment_1220" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/03/timeseries-weekly.jpg"><img class="size-full wp-image-1220" alt="A robust diurnal cycle is observed in the hourly time of day at which statuses are updated, with those from the mode location (black curve) occurring more often than other locations (red curve) in the morning and evening." src="http://onehappybird.files.wordpress.com/2013/03/timeseries-weekly.jpg?w=500&#038;h=199" width="500" height="199" /></a><p class="wp-caption-text">A robust diurnal cycle is observed in the hourly time of day at which statuses are updated, with those from the mode location (black curve) occurring more often than other locations (red curve) in the morning and evening.</p></div>
<p>Peaks in activity are seen in the morning (8-10am) and evening (10pm-midnight), separated by lulls in the afternoon (2-4pm) and overnight (2-4am) hours.  As we and our friend Captain Obvious would expect, people tend to tweet more from their home locale than any other locale (red curve) in the morning and evening.</p>
<p><strong>Bottom line:</strong> Despite our seemingly different patterns of life, we are remarkably similar in the way we move around. Our walks are a far cry from <a href="http://en.wikipedia.org/wiki/Random_walk" target="_blank">random</a>.</p>
<p><strong>Next up:</strong> We&#8217;ll examine the emotional content of tweets as a function of distance.  Is home where the heart is?</p>
<div title="Page 4">
<p>For more details on these results, see our paper <a href="http://arxiv.org/abs/1304.1296" target="_blank">Happiness and the Patterns of Life: A Study of Geolocated Tweets</a>.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/1158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/1158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=1158&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2013/04/08/a-data-driven-study-of-the-patterns-of-life-for-180000-people/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f6d1f552bfda340691712dd0560ef723?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chrisdanforth</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/03/san-francisco-radius.jpg" medium="image">
			<media:title type="html">The Bay Area is shown with a dot for each tweet, colored by the radius of gyration of its author.</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/03/contour-map1.jpg" medium="image">
			<media:title type="html">Movement pattern exhibited by 180,000 individuals in 2011, as inferred from 37 million geolocated tweets. Colormap shows the probability density in log10. Note that despite the resemblance, this image is neither a nested rainbow horseshoe crab, nor the Mandelbrot set.</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/03/frequency-vs-x.jpg" medium="image">
			<media:title type="html">We see a clear separation between the most likely and second most likely position.</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/03/isotropy.jpg" medium="image">
			<media:title type="html">The isotropy ratio shows the change in the probability density&#039;s shape as a function of radius.</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/03/timeseries-weekly.jpg" medium="image">
			<media:title type="html">A robust diurnal cycle is observed in the hourly time of day at which statuses are updated, with those from the mode location (black curve) occurring more often than other locations (red curve) in the morning and evening.</media:title>
		</media:content>
	</item>
		<item>
		<title>Chaos in an Atmosphere Hanging on a Wall</title>
		<link>http://onehappybird.com/2013/03/18/chaos-in-an-atmosphere-hanging-on-a-wall/</link>
		<comments>http://onehappybird.com/2013/03/18/chaos-in-an-atmosphere-hanging-on-a-wall/#comments</comments>
		<pubDate>Mon, 18 Mar 2013 13:00:29 +0000</pubDate>
		<dc:creator>Chris Danforth</dc:creator>
				<category><![CDATA[mathematics]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[prediction]]></category>
		<category><![CDATA[Chaos]]></category>
		<category><![CDATA[weather prediction]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=1144</guid>
		<description><![CDATA[This month marks the 50th anniversary of the 1963 publication of Ed Lorenz&#8217;s groundbreaking paper, Deterministic Nonperiodic Flow, by the Journal of Atmospheric Science. This seminal work, now cited more than 11,000 times, inspired a generation of mathematicians and physicists &#8230; <a href="http://onehappybird.com/2013/03/18/chaos-in-an-atmosphere-hanging-on-a-wall/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=1144&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This month marks the 50th anniversary of the 1963 publication of Ed Lorenz&#8217;s groundbreaking paper, <a href="http://www.uvm.edu/~cdanfort/research/lorenz-1963.pdf" target="_blank"><em>Deterministic Nonperiodic Flow</em></a>, by the Journal of Atmospheric Science. This seminal work, now cited more than 11,000 times, inspired a generation of mathematicians and physicists to bravely relax their linear assumptions about reality, and embrace the nonlinearity governing our complex world. Quoting from the abstract of his paper:</p>
<p>`<em>A simple system representing cellular convection is solved numerically. All of the solutions are found to be unstable, and almost all of them are nonperiodic.&#8217;</em></p>
<p>While many scientists had observed and characterized nonlinear behavior before, Lorenz was the first to simulate this remarkable phenomenon in a simple set of differential equations using a computer. He went on to demonstrate the limit of predictability of the atmosphere to be roughly 2 weeks, the time it takes for two virtually indistinguishable weather patterns to become completely different. No matter how accurate our satellite measurements get, no matter how fast our computers become, we will never be able to predict the likelihood of a rainy day beyond 14 days. This phenomenon became known as the <em>butterfly effect</em>, popularized in James Gleick&#8217;s book <em>Chaos</em>.</p>
<div id="attachment_1145" class="wp-caption aligncenter" style="width: 456px"><a href="http://onehappybird.files.wordpress.com/2013/03/lorenz-sketch.jpg"><img class="size-full wp-image-1145 " title="Lorenz's sketch of the attractor for his system." alt="lorenz-sketch" src="http://onehappybird.files.wordpress.com/2013/03/lorenz-sketch.jpg?w=500"   /></a><p class="wp-caption-text">Lorenz&#8217;s sketch of the attractor for his system.</p></div>
<p style="text-align:left;">Inspired by the work of Lorenz and colleagues, in our lab at the University of Vermont we&#8217;re using Computational Fluid Dynamics (CFD) simulations to understand the flow behaviors observed in a physical experiment. It&#8217;s a testbed for developing mathematical techniques to improve the predictions made by weather and climate models. Here you&#8217;ll find a brief video describing the experiment analogous to the model developed by Lorenz:</p>
<p style="text-align:left;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/Vbni-7veJ-c?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p>And below you&#8217;ll find a CFD simulation of the dynamics observed in the experiment:</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/ofzPGPjPv6g?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p>What is most remarkable about Lorenz&#8217;s 1963 model is its relevance to the state-of-the-art in weather prediction today, despite the enormous advances that have been made in theoretical, observational, and computational studies of the Earth&#8217;s atmosphere. Every PhD student working in the field of weather prediction cuts their teeth testing data assimilation schemes on simple models proposed by Lorenz, his influence is incalculable.</p>
<p>In 2005, while I was a PhD student in Applied Mathematics at the University of Maryland, the legendary Lorenz visited my advisor <a href="http://www.atmos.umd.edu/~ekalnay/" target="_blank">Eugenia Kalnay</a> in her office in the Department of Atmospheric &amp; Oceanic Science. At some point during his stay, he penned the following on a piece of paper:</p>
<p>&#8216;<em>Chaos: When the present determines the future, but the approximate present does not approximately determine the future.&#8217;</em></p>
<p>Even near the end of his career, Lorenz was still searching for the essence of nonlinearity, seeking to describe this incredibly complicated phenomenon in the simplest of terms.</p>
<p>_______________________________________________________________</p>
<p>*Note: this post also appeared as part of the Mathematics of Planet Earth 2013 daily <a href="http://mpe2013.org/2013/03/17/chaos-in-an-atmosphere-hanging-on-a-wall/" target="_blank">blog</a>.</p>
<p><em>Taming Atmospheric Chaos with Big Data,</em> a talk I gave at the 2011 UVM TEDx Conference <em>Big Data, Big Stories:</em></p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/BlXCBTGy5A4?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/1144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/1144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=1144&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2013/03/18/chaos-in-an-atmosphere-hanging-on-a-wall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f6d1f552bfda340691712dd0560ef723?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chrisdanforth</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/03/lorenz-sketch.jpg" medium="image">
			<media:title type="html">Lorenz&#039;s sketch of the attractor for his system.</media:title>
		</media:content>
	</item>
		<item>
		<title>The Twitter Diet</title>
		<link>http://onehappybird.com/2013/03/04/the-twitter-diet/</link>
		<comments>http://onehappybird.com/2013/03/04/the-twitter-diet/#comments</comments>
		<pubDate>Mon, 04 Mar 2013 14:00:16 +0000</pubDate>
		<dc:creator>Lewis Mitchell</dc:creator>
				<category><![CDATA[mathematics]]></category>
		<category><![CDATA[psychology]]></category>
		<category><![CDATA[social phenomena]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[happiness]]></category>
		<category><![CDATA[obesity]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=830</guid>
		<description><![CDATA[How does food (or talking about food online) relate to how happy you are? This is part 3 of our series on the Geography of Happiness. Previously we&#8217;ve looked at how happiness varies across the United States (as measured from &#8230; <a href="http://onehappybird.com/2013/03/04/the-twitter-diet/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=830&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>How does food (or talking about food online) relate to how happy you are? This is part 3 of our series on the Geography of Happiness. Previously we&#8217;ve looked at how happiness <a title="Where is the happiest city in the USA?" href="http://onehappybird.com/2013/02/18/where-is-the-happiest-city-in-the-usa/" target="_blank">varies across the United States</a> (as measured from word frequencies in geotagged tweets), and then at how different <a title="What makes a city happy?" href="http://onehappybird.com/2013/02/25/what-makes-a-city-happy/" target="_blank">socioeconomic factors relate to variations in happiness</a>. Now we focus in on one particular important health factor that <a href="http://www.gallup.com/poll/143045/obesity-linked-lower-emotional-wellbeing.aspx" target="_blank">might influence happiness</a>, obesity.</p>
<p>We looked at how happiness varied with obesity across the 190 largest metropolitan statistical areas in the United States, giving us the following scatter plot:</p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/happinessobesity1.jpg"><img class="aligncenter size-large wp-image-834" alt="happinessObesity" src="http://onehappybird.files.wordpress.com/2013/02/happinessobesity1.jpg?w=500&#038;h=396" width="500" height="396" /></a></p>
<p>Each point represents one city; for example the city with both(!) lowest obesity and greatest happiness in this set is Boulder, CO, located at the top left. The red line is a linear trend through the data (a line of best fit). Again, for the mathematically minded onehappybird watchers, we show the Spearman correlation coefficient and its corresponding p-value at the lower left. We do this to convince you that there is, in fact, a statistically significant downward trend in the blob of points in the picture! The big story here is of course that as obesity goes up, happiness goes down.</p>
<p><span style="line-height:1.7;">The natural next question to ask is: are there any words which could be indicators of obesity? What foods are people in obese cities eating, or talking about? To answer this question we correlated word frequencies with obesity, and searched for the most strongly-correlating food-related words. Below are two examples: on the left, &#8220;mcdonalds&#8221;, and on the right, &#8220;cafe&#8221;.</span></p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/cafemcdonalds2.jpg"><img class="aligncenter size-large wp-image-844" alt="cafeMcDonalds" src="http://onehappybird.files.wordpress.com/2013/02/cafemcdonalds2.jpg?w=500&#038;h=204" width="500" height="204" /></a></p>
<p>As obesity goes up, so does talk (at least on Twitter) about McDonalds, but talk about cafes follows the opposite trend! Does that mean that in order to lose weight we should spend more time sipping lattes in cafes? I wish.</p>
<p>Looking through the list of words, the top 5 food-related words that increase in frequency as obesity went up were:</p>
<ol>
<li>mcdonalds</li>
<li>eat</li>
<li>wings</li>
<li>hungry</li>
<li>heartburn</li>
</ol>
<p>We were surprised by &#8216;hungry&#8217;! On the other hand, the top food-related words which were used more as obesity went down were:</p>
<ol>
<li>cafe</li>
<li>sushi</li>
<li>brewery</li>
<li>restaurant</li>
<li>bar</li>
</ol>
<p>Perhaps unsurprisingly, these are words typically used by the high-socioeconomic group described in our previous <a title="What makes a city happy?" href="http://onehappybird.com/2013/02/25/what-makes-a-city-happy/" target="_blank">post</a> on city happiness, suggesting that better health correlates with higher socioeconomic status. You can find the complete list of how all words correlate with happiness <a href="http://www.uvm.edu/storylab/share/papers/mitchell2013a/AppendixE.html" target="_blank">here</a> (page best viewed using Google Chrome). One surprising result was the observation that far more food-related words appeared in the low-obesity group than in the high-obesity group; in other words, food was being talked about <em>more</em> in the less-obese cities!<em><br />
</em></p>
<p>Summarizing: based on word usage, the Twitter diet consists of: breakfast at your favorite cafe, a delicious sushi lunch, dinner out at a fancy restaurant, with a nightcap at the best local bar or brewery. Thank you Twitter, don&#8217;t mind if I do.</p>
<p>All jokes aside, this sort of technique has great potential. Imagine being able to predict whether obesity was going to rise or fall in a city, or estimate changes in other demographics, just by analyzing the words people use online. Perhaps New York City Mayor Michael Bloomberg would find some early indicators of the success or failure of his <a href="http://www.theatlanticwire.com/national/2012/05/new-yorks-mayor-wants-make-giant-sodas-illegal/52984/" target="_blank">war on soda</a>!</p>
<p>And that&#8217;s all for this series of posts on the geography of happiness. More information on all of the results in this series can be found in our recently submitted <a href="http://arxiv.org/abs/1302.3299" target="_blank">arxiv paper</a>. Please take a look at it and the accompanying <a href="http://www.uvm.edu/storylab/share/papers/mitchell2013a/">online appendices</a>, where you can look through all of the data yourself. As a special bonus feature, you can check out this video of me talking about this work at our recent <a href="http://www.uvm.edu/~tedxuvm/">TEDxUVM</a> conference.  Thanks for reading!</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/rZd52_Nq3n0?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/830/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/830/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=830&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2013/03/04/the-twitter-diet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c496ad035308f815b5f4285cc65111f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lewismitchell1984</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/happinessobesity1.jpg?w=500" medium="image">
			<media:title type="html">happinessObesity</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/cafemcdonalds2.jpg?w=500" medium="image">
			<media:title type="html">cafeMcDonalds</media:title>
		</media:content>
	</item>
		<item>
		<title>What makes a city happy?</title>
		<link>http://onehappybird.com/2013/02/25/what-makes-a-city-happy/</link>
		<comments>http://onehappybird.com/2013/02/25/what-makes-a-city-happy/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 14:00:32 +0000</pubDate>
		<dc:creator>Lewis Mitchell</dc:creator>
				<category><![CDATA[mathematics]]></category>
		<category><![CDATA[psychology]]></category>
		<category><![CDATA[social phenomena]]></category>
		<category><![CDATA[census]]></category>
		<category><![CDATA[cities]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[demographics]]></category>
		<category><![CDATA[happiness]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=697</guid>
		<description><![CDATA[Welcome back, onehappybird watchers! Wow, what a crazy week of coverage of our post about how happiness varies by city and state across the United States. Many, many people read, shared, and commented on the post, for which we are grateful. For &#8230; <a href="http://onehappybird.com/2013/02/25/what-makes-a-city-happy/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=697&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Welcome back, onehappybird watchers! Wow, what a crazy week of coverage of our<span style="line-height:1.7;"> </span><a style="line-height:1.7;" title="Where is the happiest city in the USA?" href="http://onehappybird.com/2013/02/18/where-is-the-happiest-city-in-the-usa/" target="_blank">post</a><span style="line-height:1.7;"> about how happiness varies by city and state across the United States. Many, many people read, shared, and commented on the post, for which we are grateful. For the detailed explanation of the results, check out the full <a href="http://arxiv.org/abs/1302.3299" target="_blank">paper</a> we recently submitted to PLoS ONE.</span></p>
<p><span style="line-height:1.7;">A number of readers wondered how variations in happiness relate to different underlying social and economic factors. To try to answer this question, we took data from the 2011 census (all helpfully available online on the Census Bureau&#8217;s American FactFinder</span><span style="line-height:1.7;"> website) and correlated it with our measure of happiness. Surprisingly, happiness generally decreases with the number of tweets per capita in a city (this doesn&#8217;t mean that tweeting more will make you less happy, it&#8217;s only a correlation):</span></p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/happinesstweetspercapita1.jpg"><img class="aligncenter size-large wp-image-872" alt="happinessTweetsPerCapita" src="http://onehappybird.files.wordpress.com/2013/02/happinesstweetspercapita1.jpg?w=500&#038;h=329" width="500" height="329" /></a></p>
<p>Next, we grouped covarying demographic characteristics obtained from the census, and looked at how these clusters varied with happiness. For example, it might not surprise you that cities with a larger percentage of married couples also contain a larger percentage of children &#8211; this is what we mean by covarying demographics.  And you might or might not be surprised that more marriage is positively correlated with happiness.  There&#8217;s plenty of scatter but the connection is there:</p>
<div id="attachment_1097" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/02/married_happy_correlation.jpg"><img class="size-large wp-image-1097" alt="Scatter plot of happiness vs. percentage of population married. Each dot represents one city, the rho and p-values reported are Spearman correlations." src="http://onehappybird.files.wordpress.com/2013/02/married_happy_correlation.jpg?w=500&#038;h=346" width="500" height="346" /></a><p class="wp-caption-text">Scatter plot of happiness vs. percentage of population married. Each dot represents one city, the rho and p-values reported are Spearman correlations.</p></div>
<p>We used an automated algorithm to bin the census data for us into eight groups and then compared the happiness of those groups, leading to the following figure:</p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/demographic_groupings_sort_blog.jpg"><img class="aligncenter size-large wp-image-1114" alt="demographic_groupings_sort_blog" src="http://onehappybird.files.wordpress.com/2013/02/demographic_groupings_sort_blog.jpg?w=500&#038;h=375" width="500" height="375" /></a></p>
<p>Each point represents a characteristic from the census (for example, the % married/happiness plot above is now represented by one point in this figure), with the horizontal groupings representing covarying demographic characteristics. A point&#8217;s position on the vertical axis shows how that characteristic varies with happiness across all cities. A positive value means that happiness is higher in cities where that characteristic is higher, while a negative value means that happiness is lower in cities where that characteristic is higher. For example, the figure shows that as the percentage of married couples in a city increases, so does the average happiness of that city (no causality is implied).</p>
<p>Only two groupings (the colored dots on the far left and right) showed strong correlation (either positive or negative) with happiness. Looking at which characteristics make up these groups, it appears that the general story here is a socioeconomic one, and one that holds only at the extremes. With our peculiar Twitter-based lens, we see money statistically correlates with happiness, which is not quite as catchy as &#8220;money buys happiness&#8221; (see the debate over the <a href="http://en.wikipedia.org/wiki/Easterlin_paradox" target="_blank">Easterlin Paradox</a> for more). You can delve into the data yourself &#8211; the correlations of all 432 characteristics of cities recorded by the census with happiness can be found <a href="http://www.uvm.edu/storylab/share/papers/mitchell2013a/AppendixD.html" target="_blank">here</a> (page best viewed using Google Chrome).</p>
<p>A more interesting question might be how word usage varies with different demographics &#8211; to do this we correlated each word with each demographic characteristic across all 373 cities in our dataset, leading to a lot of data to sift through! (And you can too, by following the link in the above paragraph.) As an example, take a look at how the word &#8220;cafe&#8221; varies with the percentage of population with a college degree:</p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/cafe_bachelors_correlation1.jpg"><img class="aligncenter size-large wp-image-1101" alt="cafe_bachelors_correlation" src="http://onehappybird.files.wordpress.com/2013/02/cafe_bachelors_correlation1.jpg?w=500&#038;h=300" width="500" height="300" /></a></p>
<p>Each point in the figure represents one city, and broadly the trend is that the more &#8220;college-y&#8221; the city is, the more people talk about cafes online. (You can decide for yourself whether that&#8217;s surprising or not). The top 10 emotive words whose usage went up as percentage of population with a college degree went up turned out to be:</p>
<ol>
<li>cafe</li>
<li>pub</li>
<li>software</li>
<li>yoga</li>
<li>grill</li>
<li>development</li>
<li>emails</li>
<li>wine</li>
<li>art</li>
<li>library</li>
</ol>
<p>And the emotive words which went up as college degrees went down?</p>
<ol>
<li><span style="line-height:14px;"><span style="line-height:1.7;">me</span></span></li>
<li>love</li>
<li>my</li>
<li><span style="line-height:1.7;">like</span></li>
<li>hate</li>
<li><span style="line-height:1.7;">tired</span></li>
<li>sleep</li>
<li>stupid</li>
<li>bored</li>
<li>you</li>
</ol>
<p>We saw similar patterns of word use across many socioeconomic characteristics &#8211; emotive words and words about interpersonal relationships (&#8216;me&#8217; and &#8216;you&#8217;) at one end of the spectrum, and words about more complex social or intellectual themes at the other. Interestingly, we find more food-related words in this group as well.</p>
<p>Of course, all of this is open to interpretation. As many commenters last week pointed out, Twitter users (indeed, specifically those users who geotag their tweets using a mobile device) are a small, non-representative sample of the global population. Furthermore, our method is undeniably crude, and by breaking texts up into their constituent words ignores the context in which those words were used. That said, many of these results agree with our intuition (for example, many of the cities with low happiness scores also appeared on a list of America&#8217;s &#8220;<a href="http://www.forbes.com/sites/kurtbadenhausen/2013/02/21/detroit-tops-2013-list-of-americas-most-miserable-cities/" target="_blank">most miserable cities</a>&#8221; published late last week by Forbes), while some surprise us. There is certainly a lot to be learned by looking at what the data can tell us, and we encourage you to do so by exploring our <a href="http://www.uvm.edu/storylab/share/papers/mitchell2013a/" target="_blank">website</a> of supplementary data. Again, you can read the full technical details in our research paper <a href="http://arxiv.org/abs/1302.3299" target="_blank">here</a>.</p>
<p>We&#8217;ll pick up on the theme of food again in our <a title="The Twitter Diet" href="http://onehappybird.com/2013/03/04/the-twitter-diet/" target="_blank">next post</a>, which will focus on one important health factor relating to happiness &#8211; obesity.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/697/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/697/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=697&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2013/02/25/what-makes-a-city-happy/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c496ad035308f815b5f4285cc65111f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lewismitchell1984</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/happinesstweetspercapita1.jpg?w=500" medium="image">
			<media:title type="html">happinessTweetsPerCapita</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/married_happy_correlation.jpg?w=500" medium="image">
			<media:title type="html">Scatter plot of happiness vs. percentage of population married. Each dot represents one city, the rho and p-values reported are Spearman correlations.</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/demographic_groupings_sort_blog.jpg?w=500" medium="image">
			<media:title type="html">demographic_groupings_sort_blog</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/cafe_bachelors_correlation1.jpg?w=500" medium="image">
			<media:title type="html">cafe_bachelors_correlation</media:title>
		</media:content>
	</item>
		<item>
		<title>Where is the happiest city in the USA?</title>
		<link>http://onehappybird.com/2013/02/18/where-is-the-happiest-city-in-the-usa/</link>
		<comments>http://onehappybird.com/2013/02/18/where-is-the-happiest-city-in-the-usa/#comments</comments>
		<pubDate>Mon, 18 Feb 2013 14:00:56 +0000</pubDate>
		<dc:creator>Lewis Mitchell</dc:creator>
				<category><![CDATA[geohappiness]]></category>
		<category><![CDATA[mathematics]]></category>
		<category><![CDATA[psychology]]></category>
		<category><![CDATA[social phenomena]]></category>
		<category><![CDATA[cartography]]></category>
		<category><![CDATA[chicago]]></category>
		<category><![CDATA[cities]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[happiness]]></category>
		<category><![CDATA[hedonometer]]></category>
		<category><![CDATA[hedonometrics]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[states]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[USA]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=618</guid>
		<description><![CDATA[Is Disneyland really the happiest place on Earth?* How happy is the city you live in? We have already seen how the hedonometer can be used to find the happiest street corner in New York City, now it&#8217;s time to &#8230; <a href="http://onehappybird.com/2013/02/18/where-is-the-happiest-city-in-the-usa/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=618&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Is Disneyland really the happiest place on Earth?* How happy is the city you live in? We have already seen how the hedonometer can be used to find the <a href="http://onehappybird.com/2012/03/22/question-where-is-the-happiest-place-in-new-york-city/" target="_blank">happiest street corner in New York City</a>, now it&#8217;s time to let it loose on the entire United States.</p>
<p>We plotted over 10 million geotagged tweets from 2011 (all our results are in <a href="http://arxiv.org/abs/1302.3299" target="_blank">this paper</a>), coloring each point by the average happiness of nearby words (detail on how we calculate happiness can be found in <a href="http://arxiv.org/pdf/1101.5120.pdf" target="_blank">this article</a> published in <a href="http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0026752" target="_blank">PLoS ONE</a>):</p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/usa_2011.jpg"><img class="size-full wp-image" id="i-639" alt="Image" src="http://onehappybird.files.wordpress.com/2013/02/usa_2011.jpg?w=487" /></a></p>
<p>As well as cities and the roads between them, we can make out many regions of higher and lower happiness, even within individual cities. As an example, check out this tweet-generated map of the city of Chicago:</p>
<div id="attachment_852" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/02/chicagomap1.jpg"><img class="size-large wp-image-852" alt="Tweet-generated map of Chicago. Click to enlarge." src="http://onehappybird.files.wordpress.com/2013/02/chicagomap1.jpg?w=500&#038;h=349" width="500" height="349" /></a><p class="wp-caption-text">Tweet-generated map of Chicago. Click to enlarge.</p></div>
<p>Notice the striking contrast between the relatively happy Central/North Side of the city, and the sadder South Side. You can also find a few airports in this map, and if you look very closely you might even be able to pick out happy and sad terminals!</p>
<p>To quantify this variation in happiness a bit better, let&#8217;s look at the average happiness of each state:</p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/states_2011.jpg"><img class="size-full wp-image" id="i-657" alt="Image" src="http://onehappybird.files.wordpress.com/2013/02/states_2011.jpg?w=487" /></a></p>
<p>Southern states tend to produce sadder words than those in northern New England or out west. Hawaii emerges as the happiest state and Louisiana as the saddest, due to relative differences in the frequencies of happy and sad words used in each state. Here at onehappybird, we characterize such differences by &#8220;word shifts&#8221;, which are basically word clouds for grown-ups. You can find examples of these, as well as the full list of the average happiness of each state, <a href="http://www.uvm.edu/storylab/share/papers/mitchell2013a/AppendixB.html" target="_blank">here</a> (page best viewed using Google Chrome).</p>
<p>Zooming in further to the level of cities, we produced a similar list for 373 cities in the lower 48 states (you can find the full list, as well as maps and word shifts for each city, <a href="http://www.uvm.edu/storylab/share/papers/mitchell2013a/AppendixC.html">here</a>). With a score of 6.25, we found the happiest city to be Napa, CA, due to a relative abundance of such happy words as &#8220;restaurant&#8221;, &#8220;wine&#8221;, and even &#8220;cheers&#8221;, along with a lack of profanity.</p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/wordshiftnaparedacted.jpg"><img class="aligncenter size-large wp-image-685" alt="wordshiftNapaRedacted" src="http://onehappybird.files.wordpress.com/2013/02/wordshiftnaparedacted.jpg?w=429&#038;h=500" width="429" height="500" /></a></p>
<p>At the other end of the spectrum, we found the saddest city to be Beaumont, TX, with a score of 5.82. In general, cities in the south tended to be less happy than those in the north, with a major contributing factor being the relative abundance of profanity used in those cities.</p>
<p>We can go even further than this, and group cities by similarities in word usage. Each square in the heatmap below represents the similarity (Spearman correlation for you mathematically minded onehappybird watchers) between word distributions for the largest cities in the US. Red squares mean that the corresponding cities use words in a similar fashion, while blue means that those cities tend to use different types of words with respect to each other. The colors in the tree diagram at the top signify clusters of cities exhibiting similar word usage (below a certain threshold).</p>
<p>As we might expect for two cities that are geographically nearby, New Orleans and Baton Rouge are clumped together at the bottom right of the figure. On the other hand, New York and Seattle get clumped together as well, suggesting that similarities in language depend on more than just geographical proximity.</p>
<p><a href="http://onehappybird.files.wordpress.com/2013/02/cityclusters.jpg"><img class="aligncenter size-large wp-image-689" alt="cityClusters" src="http://onehappybird.files.wordpress.com/2013/02/cityclusters.jpg?w=458&#038;h=500" width="458" height="500" /></a></p>
<p>You can find more information about happiness and cities, as well as details on the methods used to produce these results, in <a href="http://arxiv.org/abs/1302.3299" target="_blank">our arxiv research article</a>. In our <a href="http://onehappybird.com/2013/02/25/what-makes-a-city-happy/" target="_blank">next post</a>, we&#8217;ll look at how these results are related to various underlying socioeconomic characteristics of cities. What makes a city happy or sad? Can we use Big Data to predict future changes in the demographics, health, or happiness of a city? <a title="The Twitter Diet" href="http://onehappybird.com/2013/03/04/the-twitter-diet/" target="_blank">How does happiness relate to the food you eat</a>?</p>
<p>*By the way, to answer the question at the start of this post: According to this analysis Disneyland is not the happiest place on Earth; it isn&#8217;t even the happiest place in Southern California! See if you can find it in <a href="http://www.uvm.edu/storylab/share/papers/mitchell2013a/AppendixC_files/cityTweetMaps/jpg/Los_Angeles--Long_Beach--Anaheim,_CA.jpg" target="_blank">this tweet-generated map of LA</a>! Or find your city <a href="http://www.uvm.edu/storylab/share/papers/mitchell2013a/AppendixC.html" target="_blank">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/618/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=618&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2013/02/18/where-is-the-happiest-city-in-the-usa/feed/</wfw:commentRss>
		<slash:comments>74</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c496ad035308f815b5f4285cc65111f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lewismitchell1984</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/usa_2011.jpg?w=487" medium="image">
			<media:title type="html">Image</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/chicagomap1.jpg?w=500" medium="image">
			<media:title type="html">Tweet-generated map of Chicago. Click to enlarge.</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/states_2011.jpg?w=487" medium="image">
			<media:title type="html">Image</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/wordshiftnaparedacted.jpg?w=429" medium="image">
			<media:title type="html">wordshiftNapaRedacted</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/cityclusters.jpg?w=458" medium="image">
			<media:title type="html">cityClusters</media:title>
		</media:content>
	</item>
		<item>
		<title>Who will your friends be next week? The link prediction problem</title>
		<link>http://onehappybird.com/2013/02/11/who-will-your-friends-be-next-week-the-link-prediction-problem/</link>
		<comments>http://onehappybird.com/2013/02/11/who-will-your-friends-be-next-week-the-link-prediction-problem/#comments</comments>
		<pubDate>Mon, 11 Feb 2013 21:07:38 +0000</pubDate>
		<dc:creator>Catherine Bliss</dc:creator>
				<category><![CDATA[mathematics]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[social phenomena]]></category>
		<category><![CDATA[link prediction]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=877</guid>
		<description><![CDATA[Sitting in the student center of our university, I am surrounded by hundreds of students enjoying their lunch and socializing. They’re strengthening (and in some cases weakening) their social ties. Given the ability to observe this social network over time, &#8230; <a href="http://onehappybird.com/2013/02/11/who-will-your-friends-be-next-week-the-link-prediction-problem/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=877&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Sitting in the student center of our university, I am surrounded by hundreds of students enjoying their lunch and socializing. They’re strengthening (and in some cases weakening) their social ties. Given the ability to observe this social network over time, we would see that some relationships flourish, while others disappear altogether.</p>
<p>This situation is not unique to university students. In fact, whether we’re studying the spreading of an infectious disease, or the growth of an organized crime network, the reality is that the relationships in these social networks are dynamic. They change. Being able to describe the current state of a network is important. Our goal is to predict the future state of the network by forecasting who will connect to whom. If we could make these sorts of predictions, then we may be able to better recommend or warn of future probable links, as well as come to understand mechanisms which may be driving the evolution of the network.</p>
<p>This brings us to the link prediction problem. <a href="http://www.cs.carleton.edu/faculty/dlibenno/papers/link-prediction/link.pdf" target="_blank">Liben-Nowell and Kleinberg</a> defined it as follows:</p>
<div id="attachment_919" class="wp-caption aligncenter" style="width: 310px"><a href="http://onehappybird.files.wordpress.com/2013/02/the-link-prediction-problem_no_words.jpg"><img class="size-medium wp-image-919" alt="The link prediction problem asks, &quot;Given a snapshot of a network at time t, can we predict new links which will occur at time t+1?&quot;" src="http://onehappybird.files.wordpress.com/2013/02/the-link-prediction-problem_no_words.jpg?w=300&#038;h=225" width="300" height="225" /></a><p class="wp-caption-text">The link prediction problem asks, &#8220;Given a snapshot of a network at time t, can we predict new links which will occur at time t+1?&#8221;</p></div>
<p>In our work, we explore how topological similarity indices of a network can be combined with node specific data to develop a link prediction tool. Rather than pre-supposing that all similarity indices are of equal importance, we employ an <a href="http://en.wikipedia.org/wiki/Evolutionary_algorithm" target="_blank">evolutionary algorithm</a> to evolve coefficients to be used in a linear combination of these similarity indices. Our approach has the advantage of being able to detect which similarity indices are more salient predictors and doesn&#8217;t require any knowledge of the type of network one may be working with.</p>
<p>To test our method, we begin by examining one of the largest social networks in existence, namely Twitter. Below, we visualize the network of reciprocal replies for users who interacted within a single week in late 2008.</p>
<div id="attachment_879" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/02/twitter_zoomed_good_white.jpg"><img class="size-full wp-image-879" alt="Given information about interactions in a given week, we seek to predict links in a future week." src="http://onehappybird.files.wordpress.com/2013/02/twitter_zoomed_good_white.jpg?w=500&#038;h=375" width="500" height="375" /></a><p class="wp-caption-text">Given information about interactions in a given week, we seek to predict links in a future week.</p></div>
<p style="text-align:left;">Our evolved predictors exhibit a thousand fold improvement over random link prediction, and a substantial improvement over individual indices used in isolation. The predictor also suggests possible factors which may be driving the evolution of Twitter reciprocal reply networks during the timespan of this study.</p>
<div id="attachment_881" class="wp-caption aligncenter" style="width: 495px"><a href="http://onehappybird.files.wordpress.com/2013/02/sample_predictor_output.png"><img class="size-full wp-image-881" alt="Our predictor reveals which topological and/or user specific indices are most important in link detection for a given a network. For example, index B is most often the top ranking index detected by the predictor. Other indices which were ranked well were indices E and I. This type of output can be helpful in detecting the salient features which may be driving the network's evolution over time. " src="http://onehappybird.files.wordpress.com/2013/02/sample_predictor_output.png?w=500"   /></a><p class="wp-caption-text">Our predictor reveals which topological or user specific indices are most important in link detection for a given a network. For example, index B is most often the top ranking index detected by the predictor, while indices E and I are also important. This type of output can be helpful in detecting the salient features which may be driving the network&#8217;s evolution over time.</p></div>
<p>Returning to our original question, we ask: Given a snapshot of a Twitter reciprocal reply network, is it possible to predict the links which will occur in the future?</p>
<p>One approach is to predict a link between all of the people in the network, but clearly this is not the approach we wish to take. For example, in the case of a modestly sized network (say N=30,000 nodes), the number of potential links is roughly half a million! If we&#8217;re trying to recommend books to a shopper or potential dates to a person using a dating service, we certainly would not want to suggest half a million people for potential dates. It would be nice if we could recommend 10 books (or dates) and have the majority of those suggested links be successful.</p>
<p>In the language of signal processing, we hope to have a true positive rate (e.g., the % of time you&#8217;re actually right about the links that you predict) that is greater than the false positive rate (e.g., the % of time you&#8217;ve issued a false alarm). This relationship can be captured by the Receiver Operating Curve (ROC) shown below.</p>
<div id="attachment_930" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/02/roc_week7_topo16only.png"><img class=" wp-image-930  " alt="The Receiver Operating Curve (ROC) compares the true positive rate (TPR) and the false positive rate (FPR). The ROC curve shown here depicts a classifier (our link predictor) for which TPR&gt;FPR." src="http://onehappybird.files.wordpress.com/2013/02/roc_week7_topo16only.png?w=500&#038;h=496" width="500" height="496" /></a><p class="wp-caption-text">The Receiver Operating Curve (ROC) compares the true positive rate (TPR) and the false positive rate (FPR). The ROC curve shown here depicts a classifier (our link predictor) for which TPR&gt;FPR.</p></div>
<p>The area under the curve (AUC) provides one way of measuring the relative success of one&#8217;s method. An AUC of .50 suggests that the true positive rate is equal to the false positive rate, while an AUC &gt; 0.50 indicates that the true positive rate is greater than the false positive rate. As shown in the picture above, our AUC is well above 0.50, in fact it is approximately 0.72, which is good!</p>
<p>These results are exciting! We&#8217;ve put together a research paper in which we describe our analysis and algorithm in more detail (<a href="http://arxiv.org/abs/1304.6257" rel="nofollow">http://arxiv.org/abs/1304.6257</a>). Although we focused on Twitter in this investigation, our methodology is general and may apply to link prediction in many other types of time varying networks, such as disease networks or crime. It could also improve the &#8220;friends you may know&#8221; feature offered by many social networking services.</p>
<p>Here is a short video summarizing our work on link prediction:</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='560' height='315' src='http://www.youtube.com/embed/OdIRxeHjYBA?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/877/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/877/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=877&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2013/02/11/who-will-your-friends-be-next-week-the-link-prediction-problem/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1322546986eab7f475bb370dff4c62c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cabliss</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/the-link-prediction-problem_no_words.jpg?w=300" medium="image">
			<media:title type="html">The link prediction problem asks, &#34;Given a snapshot of a network at time t, can we predict new links which will occur at time t+1?&#34;</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/twitter_zoomed_good_white.jpg" medium="image">
			<media:title type="html">Given information about interactions in a given week, we seek to predict links in a future week.</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/sample_predictor_output.png" medium="image">
			<media:title type="html">Our predictor reveals which topological and/or user specific indices are most important in link detection for a given a network. For example, index B is most often the top ranking index detected by the predictor. Other indices which were ranked well were indices E and I. This type of output can be helpful in detecting the salient features which may be driving the network&#039;s evolution over time. </media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/roc_week7_topo16only.png?w=300" medium="image">
			<media:title type="html">The Receiver Operating Curve (ROC) compares the true positive rate (TPR) and the false positive rate (FPR). The ROC curve shown here depicts a classifier (our link predictor) for which TPR&#62;FPR.</media:title>
		</media:content>
	</item>
		<item>
		<title>The Daily Unraveling of the Human Mind</title>
		<link>http://onehappybird.com/2013/02/07/the-daily-unraveling-of-the-human-mind/</link>
		<comments>http://onehappybird.com/2013/02/07/the-daily-unraveling-of-the-human-mind/#comments</comments>
		<pubDate>Thu, 07 Feb 2013 14:07:17 +0000</pubDate>
		<dc:creator>Suma Desu</dc:creator>
				<category><![CDATA[mathematics]]></category>
		<category><![CDATA[psychology]]></category>
		<category><![CDATA[social phenomena]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[happiness]]></category>
		<category><![CDATA[hedonometrics]]></category>
		<category><![CDATA[profanity]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=716</guid>
		<description><![CDATA[Each morning we find ourselves in wide flung arms of drowsy possibilites. Cradled by the warm embrace of our beds, we begin our day, rebooted and rejuvenated. Having not eaten for a full eight hours, we can enjoy a guilt free breakfast, &#8230; <a href="http://onehappybird.com/2013/02/07/the-daily-unraveling-of-the-human-mind/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=716&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Each morning we find ourselves in wide flung arms of drowsy possibilites. Cradled by the warm embrace of our beds, we begin our day, rebooted and rejuvenated. Having not eaten for a full eight hours, we can enjoy a guilt free breakfast, setting a blissful tone for the day.</p>
<div id="attachment_753" class="wp-caption aligncenter" style="width: 510px"><a href="http://onehappybird.files.wordpress.com/2013/02/figtwitter_daily_anewfreq_spesh_thetruth001_noname.jpg"><img class="size-full wp-image-753 " alt="figtwitter_daily_anewfreq_spesh_thetruth001_noname" src="http://onehappybird.files.wordpress.com/2013/02/figtwitter_daily_anewfreq_spesh_thetruth001_noname.jpg?w=500&#038;h=351" width="500" height="351" /></a><p class="wp-caption-text">Hourly frequency of meal references on twitter.<br />See figure 1 page 3 of <a href="http://arxiv.org/abs/1101.5120" target="_blank">our paper</a> for details.</p></div>
<p>Last night&#8217;s dreams of victory and triumph bolster our delusions of adequacy, preparing us to surmount any of life&#8217;s challenges. But the moment we step outside, reality commences its slow and insidious descent. Its weight, compressing our spine, crushing our dreams, alters the course of the day completely.  The soul crushing litany of work, interacting with people, and generally living our lives takes its toll. As our sanity unravels, apathy takes root. The profane becomes our standard of expression. In the throes of despair, we swear just to feel something. We swear increasingly as we realize the inevitability of repeating this all again tomorrow.</p>
<p><a href="http://www.theonion.com/articles/god-freaks-self-out-by-lying-awake-contemplating-o,31097/?utm_source=Twitter&amp;utm_medium=SocialMarketing&amp;utm_campaign=standard-post%3Aother%3Adefault" target="_blank">F***, that&#8217;s a terrifying thought.</a></p>
<p>This <a href="http://www.uvm.edu/~cdanfort/research/2011-hedonometer-arxiv.pdf" target="_blank">ephemeral pattern is reflected in our tweets,</a> our spontaneous burst of being. Below, we see our happiness peaks during the early hours of the day, and degrades as the hours progress (yellow circles). The proportion of profanity in our tweets, however, follows a reverse cycle. Profanity appears in a smaller percent of tweets at the start of each day, and increases gradually as time wears on.</p>
<div id="attachment_717" class="wp-caption aligncenter" style="width: 508px"><a href="http://onehappybird.files.wordpress.com/2013/02/daily-unraveling-of-the-human-mind.jpg"><img class="size-full wp-image-717   " alt="Daily Unraveling" src="http://onehappybird.files.wordpress.com/2013/02/daily-unraveling-of-the-human-mind.jpg?w=500"   /></a><p class="wp-caption-text">Daily Unraveling<br />See figure 10 page 15 of <a href="http://arxiv.org/abs/1101.5120" target="_blank">our paper</a> for details.</p></div>
<p>Remarkably, the relative frequency of these five expressions of frustration (a******,  b****, s***, f***, m***********) are quite similar.</p>
<p>Well done, humans.</p>
<p>To avoid experiencing the daily unraveling, we recommend eating organic, local dark chocolate all day long.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/716/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=716&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2013/02/07/the-daily-unraveling-of-the-human-mind/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5066c03d9d6507c6b498aa595538b86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumadesu</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/figtwitter_daily_anewfreq_spesh_thetruth001_noname.jpg" medium="image">
			<media:title type="html">figtwitter_daily_anewfreq_spesh_thetruth001_noname</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2013/02/daily-unraveling-of-the-human-mind.jpg" medium="image">
			<media:title type="html">Daily Unraveling</media:title>
		</media:content>
	</item>
		<item>
		<title>What&#8217;s the Most Important Theorem?</title>
		<link>http://onehappybird.com/2012/12/03/whats-the-most-important-theorem/</link>
		<comments>http://onehappybird.com/2012/12/03/whats-the-most-important-theorem/#comments</comments>
		<pubDate>Mon, 03 Dec 2012 10:00:56 +0000</pubDate>
		<dc:creator>Andy Reagan</dc:creator>
				<category><![CDATA[mathematics]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[theorems]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=515</guid>
		<description><![CDATA[Mathematical truths are organized in an incredibly structured manner. We start with the basic properties of the natural numbers, called axioms, and slowly, painfully work our way up, reaching the real numbers, the joys of calculus, and far, far beyond. To prove &#8230; <a href="http://onehappybird.com/2012/12/03/whats-the-most-important-theorem/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=515&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Mathematical truths are organized in an incredibly structured manner. We start with the basic properties of the natural numbers, called <em>axioms,</em> and slowly, painfully work our way up, reaching the real numbers, the joys of calculus, and far, far beyond. To prove new theorems, we make use of old theorems, creating a network of interconnected results—a mathematical house of cards.</p>
<p>So what&#8217;s the big picture view of this web of theorems? Here, we take a first look at a part of the `Theorem Network&#8217;, and uncover surprising facts about the ones that are important.  This is blatantly fun for us. Really.</p>
<p>Let&#8217;s go through an example starting with the real numbers.  Mathematicians like to write these numbers as <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />, and here we&#8217;ll start by bravely <a href="http://www.proofwiki.org/wiki/Definition:Real_Number">assuming that they exist</a>. One result that follows from the existence of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />: Given a real number <img src='http://s0.wp.com/latex.php?latex=a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a' title='a' class='latex' /> belonging to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />, we can find a natural number <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> (e.g. 1, 2, 3 &#8230;) such that <img src='http://s0.wp.com/latex.php?latex=n%3Ea&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&gt;a' title='n&gt;a' class='latex' />. This is known as the <a href="http://www.proofwiki.org/wiki/Archimedean_Principle">Archimedean property</a>.  To visualize this relationship, we draw an arrow from the existence of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> to the Archimedean property:</p>
<p style="text-align:center;"><a href="http://onehappybird.files.wordpress.com/2012/12/example_labels0_medium.png"><img class="aligncenter  wp-image-589" alt="example_labels0_medium" src="http://onehappybird.files.wordpress.com/2012/12/example_labels0_medium.png?w=300&#038;h=143" width="300" height="143" /></a></p>
<p>Now, the fact that real numbers satisfy the Archimedean property tells us something about sets that contain them. For example, more than a century ago, two guys named Heine and Borel used the Archimedean property to help prove <a href="http://www.proofwiki.org/wiki/Heine-Borel_Theorem">their glorious, eponymous theorem</a>.  We&#8217;ll now add an arrow leading from the Archimedean Property to the Heine Borel theorem, and we&#8217;ll include the one other component Heine and Borel needed:</p>
<p style="text-align:center;"><a href="http://onehappybird.files.wordpress.com/2012/12/example_labels1_demorgan_medium_heine.png"><img class="aligncenter  wp-image-595" alt="example_labels1_DeMorgan_medium_Heine" src="http://onehappybird.files.wordpress.com/2012/12/example_labels1_demorgan_medium_heine.png?w=400&#038;h=165" width="400" height="165" /></a></p>
<p>All right: who is this De Morgan and what are <a href="http://www.proofwiki.org/wiki/De_Morgan%27s_Laws_(Set_Theory)">his laws</a>?  Back in the mid 1800&#8242;s, Augustus De Morgan dropped this bit of logical wizardry on the masses: &#8220;the negation of a conjunction is the disjunction of the negation.&#8221; We know, really exciting words.  If it&#8217;s not true that both A and B are true, then this is the same as saying either A or B or both are not true.  Better?</p>
<p>Before diving into a larger network, let&#8217;s think some more about these links.  One could prove the Fundamental Theorem of Calculus (which sounds important but could be just good branding) with nothing more than the axioms of <a title="ZFC set theory" href="http://en.wikipedia.org/wiki/Zermelo–Fraenkel_set_theory">ZFC set theory</a>. But such a proof would be so long and tedious that any hope of conveying a clear understanding  would be lost.  Imagine taking all the atoms that make up a duck and trying to stick them together to create a duck; this would be the worst Lego kit ever.  And so in any mathematical analysis textbook, the theorems contain small stories of logic that are meaningful to mathematicians, and theorems that are connected are neither too close or too far apart.</p>
<p>For this post, what we&#8217;ve done is to take all of the theorems contained in the third edition of Walter Rudin&#8217;s <a href="http://www.amazon.com/Principles-Mathematical-Analysis-Third-Edition/dp/007054235X/ref=sr_1_1?ie=UTF8&amp;qid=1354220663&amp;sr=8-1&amp;keywords=principles+of+mathematical+analysis"><em>Principles of Mathematical Analysis</em></a>, and displayed them as nodes in a network. As for our simple networks above, directed edges are drawn from Theorem <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> to Theorem <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> if the proof of <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> relied on <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> explicitly. Here&#8217;s the full network:</p>
<p><a href="http://onehappybird.files.wordpress.com/2012/12/chapcolornosinglestosize_labels_less_more_arrows_bigger.png"><img class="aligncenter size-full wp-image-597" alt="ChapColorNoSinglesTOsize_Labels_less_more_arrows_bigger" src="http://onehappybird.files.wordpress.com/2012/12/chapcolornosinglestosize_labels_less_more_arrows_bigger.png?w=500&#038;h=500" width="500" height="500" /></a></p>
<h6 style="text-align:center;">Node size weighted by total incoming degree, colored by chapter, and laid out by Gephi&#8217;s Force Atlas.</h6>
<p>We find that Lebesgue theory (capstoned by Lebesgue Dominated Convergence) lives on the fringe, not nearly as tied up with the properties of the real numbers as the Riemann-Stieltjes integral or the integration of differential forms. Visually, it appears that the integration of differential forms and functions of several variables rely the most on prior results. Over on the right, we&#8217;ve got things going on with sequences and series, where the well-known Cauchy Convergence criterion is labeled. By sizing the nodes proportional to their outgoing degree (i.e., the number of theorems they lead to), we observe that the basic properties of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />, of sets, and of topology (purple) lie at the core.</p>
<p>By considering the difference between outgoing and incoming degrees, we can find the most fundamental result (highest differential in outgoing and incoming degree, or net outgoing degree), and the most important or &#8220;end of the road&#8221; result (highest differential in incoming and outgoing degrees, or net incoming degree).  In Rudin&#8217;s text, the most fundamental result is De Morgan&#8217;s Laws, and the most important result is Multivariate Change of Variables in Integration Theorem (MCVIT, that&#8217;s a mouthful).</p>
<p>So the Fundamental Theorem of Calculus falls short of the mark with a net incoming degree 19, not even half of MCVIT&#8217;s net incoming degree of 45. And it is not the axioms of the real numbers that are the most fundamental, with the Existence of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> having a net outgoing degree of 94, but instead the properties of sets shown by De Morgan with a whopping net outgoing degree of 122. Larry Page&#8217;s <a href="http://en.wikipedia.org/wiki/Pagerank">PageRank</a> (the original algorithm behind Google) and Jon Kleinberg&#8217;s <a href="http://en.wikipedia.org/wiki/HITS_algorithm">HITS</a> algorithm also both rate the MCVIT as the most important result.</p>
<p>Would you agree that MCVIT is the most &#8220;important&#8221; result in Rudin&#8217;s text? It could just be the most technical.  We have only used a few lenses through which one might choose to evaluate the importance of theorems, so let us know what you think, or give it a try. <a href="http://www.uvm.edu/~areagan/files/Rudin_network_chapter_color_no_singles.gephi">Here&#8217;s a link to the Gephi files</a>, containing all of the data used here.</p>
<p>Lastly, the network itself can be built differently by changing which theorems are included, or which are used in proofs. The resulting structures combine historical development with the author&#8217;s understanding. The goal of new textbooks is, in part, to organize the results in the most understandable fashion. With this view, we can start to think of the Theorem Network as the natural structuring of complex mathematical ideas for the human mind.</p>
<p>Now, one might idly think of extending this analysis to all of human knowledge. In that direction, <a href="http://griffsgraphs.com/2012/07/03/graphing-every-idea-in-history" target="_blank">Griff</a> over at Griff&#8217;s Graphs has been making some very nice pictures leveraging the work of all those who edit Wikipedia.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/515/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/515/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=515&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2012/12/03/whats-the-most-important-theorem/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/224e7d6dca25821e7f9679ac7a272831?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andyreagan</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2012/12/example_labels0_medium.png" medium="image">
			<media:title type="html">example_labels0_medium</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2012/12/example_labels1_demorgan_medium_heine.png" medium="image">
			<media:title type="html">example_labels1_DeMorgan_medium_Heine</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2012/12/chapcolornosinglestosize_labels_less_more_arrows_bigger.png" medium="image">
			<media:title type="html">ChapColorNoSinglesTOsize_Labels_less_more_arrows_bigger</media:title>
		</media:content>
	</item>
		<item>
		<title>If you&#8217;re happy and we know it &#8230; are your friends?</title>
		<link>http://onehappybird.com/2012/07/13/if-youre-happy-and-we-know-it-are-your-friends/</link>
		<comments>http://onehappybird.com/2012/07/13/if-youre-happy-and-we-know-it-are-your-friends/#comments</comments>
		<pubDate>Fri, 13 Jul 2012 11:36:07 +0000</pubDate>
		<dc:creator>Chris Danforth</dc:creator>
				<category><![CDATA[psychology]]></category>
		<category><![CDATA[social phenomena]]></category>
		<category><![CDATA[happiness]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://onehappybird.com/?p=455</guid>
		<description><![CDATA[Do your friends influence your behavior?  Of course they do.  But it&#8217;s hard to actually measure their influence.  Social contagion is difficult to distinguish from homophily, the tendency we have to seek relationships with people like ourselves. In response to the &#8220;happiness &#8230; <a href="http://onehappybird.com/2012/07/13/if-youre-happy-and-we-know-it-are-your-friends/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=455&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Do your friends influence your behavior?  Of course they do.  But it&#8217;s hard to actually measure their influence.  Social contagion is <a title="Homophily and Contagion Are Generically Confounded in Observational Social Network Studies" href="http://arxiv.org/abs/1004.4704" target="_blank">difficult to distinguish</a> from <a href="http://en.wikipedia.org/wiki/Homophily" target="_blank">homophily</a>, the tendency we have to seek relationships with people like ourselves.</p>
<p>In response to the &#8220;happiness is contagious&#8221; phenomenon promoted by Nicholas Christakis and James Fowler, we here at onehappybird were wondering whether happy Twitter users were more likely to be connected to each other.  In other words, is happiness <a href="http://en.wikipedia.org/wiki/Assortativity" target="_blank">assortative</a> in the Twitter social network?  (See related work <a href="http://arxiv.org/abs/1103.0784" target="_blank">here</a>.)</p>
<p>In the image below, each circle represents a person in the social network of the center node.  We color nodes by the happiness of their tweets during a single week.  Pink colors are happier, gray colors are sadder, and nodes depicted with the color black did not meet our thresholding criteria (50 <a title="Positivity of the English language" href="http://onehappybird.com/2011/09/02/positivity-of-the-english-language/" target="_blank">labMT</a> words).</p>
<p><a href="http://onehappybird.files.wordpress.com/2012/05/cathy-network-ego-crop.jpg"><img class="aligncenter size-full wp-image-460" title="Example Ego Network" alt="" src="http://onehappybird.files.wordpress.com/2012/05/cathy-network-ego-crop.jpg?w=500&#038;h=577" height="577" width="500" /></a></p>
<p>We established a friendship link between two users if they <strong>both</strong> replied directly to the other at least once during the week.</p>
<p>As users are added to this network, it quickly becomes difficult to tell whether pink nodes are disproportionately connected to each other, so instead we look at the correlation of their happiness scores.  The plot below shows the <a href="http://en.wikipedia.org/wiki/Spearman's_rank_correlation_coefficient" target="_blank">Spearman correlation coefficient</a> of the happiness ranks for roughly 100,000 people, with blue squares and green diamonds indicating different word thresholds, and red circles representing the same network but with randomly shuffled happiness scores.</p>
<p style="text-align:center;"><a href="http://onehappybird.files.wordpress.com/2012/05/fig13.jpg"><img class="aligncenter  wp-image-465" title="Happiness is Assortative" alt="" src="http://onehappybird.files.wordpress.com/2012/05/fig13.jpg?w=500&#038;h=400" height="400" width="500" /></a></p>
<p>The larger correlation for friends indicates that happy users are likely to be connected to each other, as are sad users. Moving further away from one&#8217;s local social neighborhood to friends of friends, and friends of friends of friends, the strength of assortativity decreases as expected.</p>
<p>We also looked at the average happiness of users as a function of their number of friends (degree k). Happiness increases gradually with popularity, with large degree nodes demonstrating a larger average happiness than small degree nodes.</p>
<p><a href="http://onehappybird.files.wordpress.com/2012/05/fig12.jpg"><img class="aligncenter size-full wp-image-462" title="Happiness vs Popularity" alt="" src="http://onehappybird.files.wordpress.com/2012/05/fig12.jpg?w=500&#038;h=367" height="367" width="500" /></a></p>
<p>The most popular users used words such as “you,” “thanks,” and “lol” more frequently than small degree nodes, while the latter group used words such as “damn,” “hate,” and “tired” more frequently.  The transition appears to occur near <a href="http://en.wikipedia.org/wiki/Dunbar's_number" target="_blank">Dunbar&#8217;s number</a> (around 150), demonstrating a quantitative difference between personal and professional relationships.</p>
<p>Finally, here we show a visualization of the reciprocal-reply network for the day of October 28, 2008.</p>
<p><a href="http://onehappybird.files.wordpress.com/2012/05/figa6.jpg"><img class="aligncenter size-full wp-image-461" title="Communities on Twitter" alt="" src="http://onehappybird.files.wordpress.com/2012/05/figa6.jpg?w=500&#038;h=499" height="499" width="500" /></a></p>
<p>The size of the nodes is proportional to their degree, and colors indicate communities detected by <a href="http://gephi.org/" target="_blank">Gephi</a>’s community detection algorithm.</p>
<p>For more details, see the publication:</p>
<p>C. A. Bliss, I. M. Kloumann, K. D. Harris, C. M. Danforth, P. S. Dodds.  <em>Twitter Reciprocal Reply Networks Exhibit Assortativity with Respect to Happiness</em>. Journal of Computational Science. 2012. [<a href="http://www.uvm.edu/~cdanfort/research/bliss-jocs-2012.pdf" target="_blank">pdf</a>]</p>
<p>Abstract: Based on nearly 40 million message pairs posted to Twitter between September 2008 and February 2009, we construct and examine the revealed social network structure and dynamics over the time scales of days, weeks, and months. At the level of user behavior, we employ our recently developed hedonometric analysis methods to investigate patterns of sentiment expression. We find users&#8217; average happiness scores to be positively and significantly correlated with those of users one, two, and three links away. We strengthen our analysis by proposing and using a null model to test the effect of network topology on the assortativity of happiness. We also find evidence that more well connected users write happier status updates, with a transition occurring around Dunbar&#8217;s number. More generally, our work provides evidence of a social sub-network structure within Twitter and raises several methodological points of interest with regard to social network reconstructions.</p>
<p><a href="http://onehappybird.files.wordpress.com/2012/05/week14_all.jpg"><img class="aligncenter size-full wp-image-485" title="Obligatory Hairball" alt="" src="http://onehappybird.files.wordpress.com/2012/05/week14_all.jpg?w=500&#038;h=470" height="470" width="500" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onehappybird.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onehappybird.wordpress.com/455/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onehappybird.com&#038;blog=22203909&#038;post=455&#038;subd=onehappybird&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onehappybird.com/2012/07/13/if-youre-happy-and-we-know-it-are-your-friends/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f6d1f552bfda340691712dd0560ef723?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chrisdanforth</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2012/05/cathy-network-ego-crop.jpg" medium="image">
			<media:title type="html">Example Ego Network</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2012/05/fig13.jpg" medium="image">
			<media:title type="html">Happiness is Assortative</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2012/05/fig12.jpg" medium="image">
			<media:title type="html">Happiness vs Popularity</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2012/05/figa6.jpg" medium="image">
			<media:title type="html">Communities on Twitter</media:title>
		</media:content>

		<media:content url="http://onehappybird.files.wordpress.com/2012/05/week14_all.jpg" medium="image">
			<media:title type="html">Obligatory Hairball</media:title>
		</media:content>
	</item>
	</channel>
</rss>
