<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Zero Intelligence Agents</title>
	
	<link>http://www.drewconway.com/zia</link>
	<description>How can the social sciences, mathematics and computer science combine to affect national security policy?</description>
	<lastBuildDate>Wed, 08 Feb 2012 18:28:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ZeroIntelligenceAgents" /><feedburner:info uri="zerointelligenceagents" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>ZeroIntelligenceAgents</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Machine Learning for Hackers table of contents</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/6qt6jSQP9EA/</link>
		<comments>http://www.drewconway.com/zia/?p=2864#comments</comments>
		<pubDate>Wed, 08 Feb 2012 18:28:40 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[machinelearning]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2864</guid>
		<description><![CDATA[<p>If you missed the scuttlebutt on Twitter yesterday, I announced that John Myles White and my book, Machine Learning for Hackers was sent to the printers!  This means that hard copies will be available very soon, and presumedly an eBook copy will be available even sooner.</p>
<p>We are thrilled by the community&#8217;s interest and enthusiasm for [...]]]></description>
			<content:encoded><![CDATA[<p>If you missed the <a href="https://twitter.com/#!/drewconway/status/166922558040580096" target="_blank">scuttlebutt on Twitter yesterday</a>, I announced that John Myles White and my book, <a href="http://shop.oreilly.com/product/0636920018483.do" target="_blank">Machine Learning for Hackers</a> was sent to the printers!  This means that hard copies will be available very soon, and presumedly an eBook copy will be available even sooner.</p>
<p>We are thrilled by the community&#8217;s interest and enthusiasm for the book, and want to thank everyone who told us that they have already pre-ordered copies.  Many people have been asking for a table of contents, which O&#8217;Reilly has not yet posted.  To give people a preview I have posted the TOC below.  Hopefully this will pique your interest even more!</p>
<p><a title="View TOC ML4Hackers on Scribd" href="http://www.scribd.com/doc/80949907/TOC-ML4Hackers" style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;">TOC ML4Hackers</a><iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/80949907/content?start_page=1&#038;view_mode=list&#038;access_key=key-qxf0cpv0t2iof77gzdt" data-auto-height="true" data-aspect-ratio="0.772727272727273" scrolling="no" id="doc_98170" width="100%" height="600" frameborder="0"></iframe><script type="text/javascript">(function() { var scribd = document.createElement("script"); scribd.type = "text/javascript"; scribd.async = true; scribd.src = "http://www.scribd.com/javascripts/embed_code/inject.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(scribd, s); })();</script></p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/6qt6jSQP9EA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2864</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2864</feedburner:origLink></item>
		<item>
		<title>Chart of Congressional activity on Twitter related to SOPA/PIPA</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/SIVQLNkQZBI/</link>
		<comments>http://www.drewconway.com/zia/?p=2861#comments</comments>
		<pubDate>Sat, 21 Jan 2012 20:39:55 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[d3]]></category>
		<category><![CDATA[polisci]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2861</guid>
		<description><![CDATA[<p>As many of you know, this week thousands of people mobilized to protest two laws being considered in Congress: the Stop Online Piracy Act (SOPA) and it&#8217;s Senate version the PROTECT IP Act (PIPA). Several Internet mainstays, such as Wikipedia, Reddit andy O&#8217;Reilly blacked out their sites to protest the bill.  For some information on [...]]]></description>
			<content:encoded><![CDATA[<p>As many of you know, this week thousands of people mobilized to protest two laws being considered in Congress: the <a href="http://en.wikipedia.org/wiki/Stop_Online_Piracy_Act" target="_blank">Stop Online Piracy Act</a> (SOPA) and it&#8217;s Senate version the <a href="http://en.wikipedia.org/wiki/PROTECT_IP_Act" target="_blank">PROTECT IP Act</a> (PIPA). Several Internet mainstays, such as <a href="http://www.youtube.com/watch?v=SxJUbtbX1ro" target="_blank">Wikipedia, Reddit andy O&#8217;Reilly blacked out their sites to protest the bill</a>.  For some information on why this legislation is so dangerous check out <a href="http://www.guardian.co.uk/world/interactive/2011/dec/23/sopa-stop-online-piracy-act" target="_blank">this excellent video by The Guardian</a>.</p>
<p>The mobilization against SOPA/PIPA also included many grassroots efforts to contact Congress and demand the bill be stopped.  Given the attention the bill was getting, I was curious if there was any surge in discussion of the bill by members of Congress on Twitter.</p>
<p>So, I created a visualization that is a <a href="http://labs.drewconway.com/sopa_cumm/" target="_blank">cumulative timeline of tweets by members of the U.S. Congress for &#8220;SOPA&#8221; or &#8220;PIPA.</a>&#8221;  To see if there was any surge, check out the visualization for yourself.</p>
<p align="middle"><a href="http://labs.drewconway.com/sopa_cumm/" target="_blank"><img src="http://labs.drewconway.com/sopa_cumm/Screen-Shot.png" width=500 /></a><br />
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/SIVQLNkQZBI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2861</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2861</feedburner:origLink></item>
		<item>
		<title>First steps in data visualisation using d3.js, by Mike Dewar</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/LtKnhgnpFJA/</link>
		<comments>http://www.drewconway.com/zia/?p=2857#comments</comments>
		<pubDate>Fri, 13 Jan 2012 14:07:47 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2857</guid>
		<description><![CDATA[<p>Last night Mike Dewar presented a wonderful talk to the New York Open Statistical Programming Meetup titled, &#8220;First steps in data visualisation using d3.js.&#8221;  Mike took the audience through an excellent review of d3.js fundamentals, as well as showed off some of the features of working with Chrome Web Developer Tools.  This is one [...]]]></description>
			<content:encoded><![CDATA[<p>Last night <a href="http://mikedewar.org/" target="_blank">Mike Dewar</a> presented a wonderful talk to the <a href="http://www.meetup.com/nyhackr/" target="_blank">New York Open Statistical Programming Meetup</a> titled, &#8220;<a href="http://www.meetup.com/nyhackr/events/43972672/" target="_blank">First steps in data visualisation using d3.js</a>.&#8221;  Mike took the audience through an excellent review of d3.js fundamentals, as well as showed off some of the features of working with Chrome Web Developer Tools.  This is one of the best talks we have ever had, and if you have had any interest in exploring <a href="http://mbostock.github.com/d3/" target="_blank">d3.js</a>, but were intimidated by the design concepts or syntax, this is exactly the talk for you.</p>
<p>Also, Mike&#8217;s slides were all designed using d3.js and are available for download on his Github account: <a href="https://github.com/mikedewar/d3talk" target="_blank">https://github.com/mikedewar/d3talk</a>.</p>
<p align="center"><iframe src="http://player.vimeo.com/video/35005701?title=0&amp;byline=0&amp;portrait=0&amp;color=0871a8" width="686" height="386" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/LtKnhgnpFJA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2857</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2857</feedburner:origLink></item>
		<item>
		<title>Monthly Twitter activity for all members of the U.S. Congress</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/kygtgEAqs-I/</link>
		<comments>http://www.drewconway.com/zia/?p=2846#comments</comments>
		<pubDate>Tue, 10 Jan 2012 21:54:09 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[d3]]></category>
		<category><![CDATA[polisci]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2846</guid>
		<description><![CDATA[<p>Many months ago I blogged about the research that John Myles White and I are conducting on using Twitter data to estimate an individual&#8217;s political ideology.  As I mentioned then, we are using the Twitter activity of members of the U.S. Congress to build a training data set for our model.  A large part [...]]]></description>
			<content:encoded><![CDATA[<p>Many months ago I blogged about <a href="http://www.drewconway.com/zia/?p=2791" target="_blank">the research that John Myles White and I are conducting</a> on using Twitter data to estimate an individual&#8217;s political ideology.  As I mentioned then, we are using the Twitter activity of members of the U.S. Congress to build a training data set for our model.  A large part of the effort for this project has gone into designing a system to systematically collect the Twitter data on the members of the U.S. Congress.</p>
<p>Today I am pleased to announce that we have worked out most of the bugs, and now have a reliable data set upon which to build.  Better still, <em>we are ready to share</em>.  Unlike our old system, the data now lives on a live <a href="http://couchdb.apache.org/" target="_blank">CouchDB</a> database, and can be queried for specific research tasks.  We have combined all of the data available from <a href="https://dev.twitter.com/docs/api/1/get/search" target="_blank">Twitter&#8217;s search API</a> with the information on each member from <a href="http://services.sunlightlabs.com/docs/Sunlight_Congress_API/" target="_blank">Sunlight Foundation&#8217;s Congressional API</a>.</p>
<p>To show the power of the database, I decided to use my newly acquired <a href="http://mbostock.github.com/d3/" target="_blank">d3.js</a> (sick of it yet?) skills to put together a tool that allows you to compare the monthly Twitter activity of all members of the U.S. Congress on Twitter for 2011.</p>
<p><strong>Simply choose a politician from the drop-down menu (alphabetical by surname) and the graph will update with their activity data.  If you want to reset the graph, just click the &#8220;Clear selections&#8221; button.</strong></p>
<p>Feel free to add as many members as you like, but the dimensions of the visualization max out around 9.  I have been playing around with for awhile, it&#8217;s fun!  Oh, and if you choose a member and nothing happens it is most likely because that person didn&#8217;t tweet anything in 2011.  I could have built-in error-catching or some warning.  Also, to clear things you need to re-load the page.  I&#8217;ll leave real UX to the professional web designers.</p>
<p><iframe frameborder=0 scrolling=auto width=810 height=730 src="http://erinys.co:5984/apps/a09776558187ccd36750c576d16109a5/twitter_chart.html"></iframe></p>
<p>Back to the data.  Unfortunately, the database is sitting on a server that cannot process many requests (read, web-scale) at a time.  In fact, this blog post may bring it down!  As such, if you are interested in getting access to the database please contact me directly.  <strong>But be forewarned</strong>, working with this system and CouchDB requires a mature understanding of several tools and languages; including but not restricted to; <a href="http://curl.haxx.se/" target="_blank">curl</a>, <a href="http://en.wikipedia.org/wiki/MapReduce" target="_blank">map/reduce</a>, Javascript, and JSON.  And that&#8217;s before you have even done any analysis.</p>
<p>Many people have asked me about working with Congressional Twitter data, so I hope this data can be useful.  Please feel free to <a href="http://drewconway.com/Drew_Conway/Contact.html" target="_blank">reach out if you have any questions</a>.</p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/kygtgEAqs-I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2846</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2846</feedburner:origLink></item>
		<item>
		<title>Who are the most central members of the China’s leadership as we enter 2012?</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/kkVwFqi0biA/</link>
		<comments>http://www.drewconway.com/zia/?p=2825#comments</comments>
		<pubDate>Wed, 04 Jan 2012 04:24:30 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[china]]></category>
		<category><![CDATA[d3]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2825</guid>
		<description><![CDATA[<p>As the United States gears up for what appears to be a long and grueling 2012 presidential campaign, China will also undergo its decennial turnover in presidential power in 2012.  Unlike the United States, however, this shift will not involve any campaigning or voting&#8212;at least not with the people of China.  Instead, this shift [...]]]></description>
			<content:encoded><![CDATA[<p>As the United States gears up for what <a href="http://www.nytimes.com/2012/01/04/us/politics/vote-in-iowa-reinforces-republican-ideological-divide.html?_r=1&#038;pagewanted=all" target="_blank">appears to be a long and grueling 2012 presidential campaign</a>, <a href="http://online.wsj.com/article/SB10001424052970204464404577114903659952474.html?mod=googlenews_wsj" target="_blank">China will also undergo its decennial turnover in presidential power</a> in 2012.  Unlike the United States, however, this shift will not involve any campaigning or voting&mdash;at least not with the people of China.  Instead, this shift is one that is formalized within he Chinese Communist party; but that doesn&#8217;t mean that there won&#8217;t be interesting shifts and reallocations of power.</p>
<p>This leads naturally to many questions; perhaps most importantly that of this post&#8217;s title: Who are the most central members of the China&#8217;s leadership as we enter 2012?</p>
<p>Recently, I had the opportunity to work with <a href="https://www.recordedfuture.com/" target="_blank">Recorded Future</a>, a startup out of Boston that specializes in longitudinal <a href="http://en.wikipedia.org/wiki/Named-entity_recognition" target="_blank">entity extraction</a> from the massive amount of open-source data generated daily.  For example, they have used their data to <a href="https://www.recordedfuture.com/2011/12/22/examining-the-legal-issues-ahead-for-apple/" target="_blank">predict future patent issues for Apple</a> based on issues raised by their competitors.  This analysis includes many entities: Apple, HTC, Samsung, etc.; as well as the patents and law suits.</p>
<p>For our analysis we focused on the China&#8217;s leadership, as <a href="https://www.cia.gov/library/publications/world-leaders-1/world-leaders-c/china.html" target="_blank">defined by the CIA World Factbook</a>, and extracted all of named entities in their data for 2011 (over 4 billion events) for which any of the 33 official Chinese leaders appear.  The result is a dataset with over 150,000 entities; including people, organizations, and places.  To answer our questions, however, I used the co-occurrence of these entities in sentence fragments to build a large network of these entities.</p>
<p>Here I define an edge between two entities as the co-occurrence of two entities in a sentence fragment, which is provided by Recorded Future.  Then, by extracting only the entities that are defined as people in the data, I generated a graph with 5,435 nodes and 34,413 edges.  Big, but not unreasonable for analysis.  Next, I computed some basic network statistics on that graph.  As I have <a href="http://vimeo.com/6037497" target="_blank">mentioned many times before</a>, these measures are often most interesting if compared together.  To highlight key actors, I generated a scatter plot of two metrics: Eigenvector centrality and betweenness centrality.</p>
<p><iframe src='http://labs.drewconway.com/china_leadership/' width=820 height=575 frameborder=0 scrolling='no'></iframe></p>
<p><span id="more-2825"></span>
<p>Eigenvector centrality measures the overall centrality of person in the network.  It accounts for not only the number of connections a person has, but also the number of connections that person has to others with many connections.  People with high Eigenvector centrality will be the most prominent and well-connected actors in a network.  Alternatively, betweenness centrality measures that number of paths that go through an actor as a function of the total number of paths in the entire network.  People with high betweenness will be those that act as critical bridges or cut-points between two densely connected parts of a network.</p>
<p>When we compare these metrics, as I have above, we can easily identify key actors as those that do not follow the relatively linear relationship between to two measures.  Those with high betweenness but relatively low Eigenvector are central bridges within the network.  What makes this comparison important, however, is that these bridges do it with few connections&mdash;hence the lower EIgenvector.  Likewise, those with relatively high Eigenvector but low betweenness are network insiders.  They sit inside some central region of the network, but have very few connections outside that region.  To further highlight these key actors, I have shaded the data points based on how much they diverge from this linear trend.  The network bridges are dark the red, while insiders are dark blue.</p>
<p>The above plot was <a href="http://mbostock.github.com/d3/" target="_blank">designed using d3.js</a> and is interactive.  When you roll over the data points the &#8220;Leader Information&#8221; section is populated and identifies who in the Chinese leadership the point represents.  If you click on the point, or the photo of the leader, you are brought to their full biography page provided by <a href="http://www.chinavitae.com/" target="_blank">China Vitae</a>.</p>
<p>What I love most about visualizing data in this way is it leads to many questions.  What I love more about creating interactive graphics is it allows for that first layer of questions to be immediately answered, which in turn leads to an even richer investigation.</p>
<p>Many things jump out of the above plot right away:</p>
<ul>
<li>We see the obvious placement of <a href="http://www.chinavitae.com/biography/hu_jintao/full" target="_blank">Hu Jintao</a> and <a href="http://www.chinavitae.com/biography/wen_jiabao/full" target="_blank">Wen Jiabao</a> in the upper-right of the graph.  This is useful because it confirms that nothing odd is happening in our data: the most powerful men in China on paper are also the most central in our graph.</li>
<li>Popular press is reporting that current Vice-President <a href="http://www.chinavitae.com/biography/xi_jinping/full" target="_blank">Xi Jining</a> will lead the transitional government, so it is interesting to see him clustered closely with <a href="http://www.chinavitae.com/biography/xie_xuren/full" target="_blank">Xie Xuren</a> and <a href="http://www.chinavitae.com/biography/zhou_xiaochuan/full" target="_blank">Zhao Xiaochuan</a>.  What will their role be in the new government?</li>
<li>Why is <a href="http://www.chinavitae.com/biography/yin_weimin/full" target="_blank">Yin Weimin</a>, a man with an ostensibly minor role in government, such an important bridge in the network?</li>
<li><a href="http://www.chinavitae.com/biography/liang_guanglie/full" target="_blank">Liang Guangile</a>, the Chinese Minister of Defense, is a key insider.  This seems makes sense given the prominence of the military in the Chinese government, but why is he isolated from the rest of the network?</li>
</ul>
<p>What&#8217;s more important than these questions, however, are the non-obvious ones this plot raises.  What I need is help from those with a better understanding of Chinese politics.  Does the placement of some of China&#8217;s leaders seem way off, or does this plot essentially reinforce well-held beliefs about the balance of power?  I am very interested in getting other people&#8217;s perspectives</p>
<p>Finally, I want to give a special thanks to <a href="https://twitter.com/#!/cahlberg" target="_blank">Christopher Ahlberg</a>, CEO of Record Future, for working with me to on this data and allowing me to publish these findings.</p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/kkVwFqi0biA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2825</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2825</feedburner:origLink></item>
		<item>
		<title>Federal Reserve borrowing during the 2007-2009 financial crisis</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/H9bY6_b4uGE/</link>
		<comments>http://www.drewconway.com/zia/?p=2816#comments</comments>
		<pubDate>Tue, 27 Dec 2011 06:33:11 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[d3]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2816</guid>
		<description><![CDATA[<p>First, from looking at the date of my last substantive post I owe everyone an apology.  I have essentially let Zero Intelligence Agents wither on the vie, and that is terrible.  Not so much because I think people are desperate to read it, but because I am desperate to get feedback from people on [...]]]></description>
			<content:encoded><![CDATA[<p>First, from looking at the date of my last substantive post I owe everyone an apology.  I have essentially let Zero Intelligence Agents wither on the vie, and that is terrible.  Not so much because I think people are desperate to read it, but because I am desperate to get feedback from people on my projects and ideas.</p>
<p>One such project I have been working on recently is looking at the newly released data on <a href="http://www.bloomberg.com/news/2011-12-23/fed-s-once-secret-data-compiled-by-bloomberg-released-to-public.html" target="_blank">Federal Reserve borrowing of 407 banks and companies during the 2007-2009 financial crisis</a>.  I have been looking for data sets to tell stories with because one of the tools I am eager to learn in 2012 is <a href="http://mbostock.github.com/d3/" target="_blank">Michael Bostock&#8217;s d3.js</a>, a Javascript library for data-driven design (d3, get it?).  It is an incredibly powerful tool, albeit very verbose and cumbersome for a total Javascript newbie such as myself</p>
<p>I decided to teach myself some d3 through this Federal Reserver data, and came up with <a href="http://bitly.com/fedborrow" target="_blank">this visualization in the labs section of drewconway.com</a>. The image below is just a snapshot of the visualization, please click through to see the full interactive chart.</p>
<p align="center"><a href="http://bitly.com/fedborrow" target="_blank"><img src="http://www.drewconway.com/zia/wp-content/uploads/2011/12/dexia_sa.png" width=800></a></p>
<p><span id="more-2816"></span>
<p>Because the data contained so many companies, I decided to focus on only those that were the most aggressive borrowers during the crisis.  I defined this as an institution that borrowed more than 500% of its market capitalization in a single day, i.e., 5x its value.  This left me with 16 companies.  I then also excluded Lehman Brothers, because on a single day it borrowed over 40x its value, which was too extreme an outlier for this visualization.</p>
<p>What&#8217;s left are 15 companies that tell a fascinating tale of the turmoil in the financial markets from 2007-2009.  What struck me the most about the visualization was how many foreign banks were among the most aggressive.  From the snapshot above, you can see that <a href="http://en.wikipedia.org/wiki/Dexia" target="_blank">Dexia SA</a> has the largest spike in its trend line.  I must admit, I had never heard of this bank, but as it turns out it is a Belgian-French bank, which also happens to also be <a href="http://news.businessweek.com/article.asp?documentKey=1376-LWK5EG0YHQ0X01-74PUF0VCHVLV3BFS2HMBCIG7SF" target="_blank">currently under investigation by the EU</a>.</p>
<p>I would love to get feedback, both in terms of the data as well as the design of the visualization.  If anyone has some insight as to what was going on with these banks during this time that might explain their trends, please let me know.  Also, as I am very new to d3, if you have ideas on how to make the visualization better I welcome those as well.</p>
<p><strong>UPDATE II</strong>: Updated the visualization with a legend and company filter, as suggested by many. <a href="http://bit.ly/fedborrow" target="_blank">I think it is better</a>.</p>
<p><strong>UPDATE</strong>: Thanks to @<a href="http://twitter.com/deepfoo" target="_blank">deepfoo</a> for pointing me to <a href="http://www.bloomberg.com/data-visualization/federal-reserve-emergency-lending/#/overview/?sort=nomPeakValue&#038;group=none&#038;view=peak&#038;position=0&#038;comparelist=&#038;search=" target="_blank">this backgrounder from Bloomberg.</a></p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/H9bY6_b4uGE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2816</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2816</feedburner:origLink></item>
		<item>
		<title>My setup</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/7e24tnp6qaM/</link>
		<comments>http://www.drewconway.com/zia/?p=2814#comments</comments>
		<pubDate>Sat, 01 Oct 2011 15:22:57 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2814</guid>
		<description><![CDATA[<p>One way increasing your productivity is to see how other people get their work done.  The blog The Setup provides this by asking, &#8220;What do people use to get stuff done?&#8221; If you would like to compare setups with an exceedingly eclectic group of people, than this is a very interesting resource.</p>
<p>If, for some reason, [...]]]></description>
			<content:encoded><![CDATA[<p>One way increasing your productivity is to see how other people get their work done.  The blog <a href="http://usesthis.com" target="_blank">The Setup</a> provides this by asking, &#8220;What do people use to get stuff done?&#8221; If you would like to compare setups with an exceedingly eclectic group of people, than this is a very interesting resource.</p>
<p>If, for some reason, you are curious what I use to get my work done, you now have the opportunity to <a href="http://drew.conway.usesthis.com/" target="_blank">compare your setup with mine</a>.</p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/7e24tnp6qaM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2814</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2814</feedburner:origLink></item>
		<item>
		<title>Interview on Data Without Borders</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/PogfmxmWjnA/</link>
		<comments>http://www.drewconway.com/zia/?p=2812#comments</comments>
		<pubDate>Mon, 26 Sep 2011 12:11:29 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2812</guid>
		<description><![CDATA[<p>A few people have noticed that the blog has been very quiet lately.  This is very true, and I am sorry for the lack of new material.  Unfortunately, the only excuse I have is that I have been very busy with many other exciting projects.  These include both my upcoming book on machine [...]]]></description>
			<content:encoded><![CDATA[<p>A few people have noticed that the blog has been very quiet lately.  This is very true, and I am sorry for the lack of new material.  Unfortunately, the only excuse I have is that I have been very busy with many other exciting projects.  These include both my <a href="http://shop.oreilly.com/product/0636920018483.do" target="_blank">upcoming book on machine learning</a>, and a separate <a href="https://github.com/drewconway/Twitter-Congress" target="_blank">research project on political speech on Twitter</a> with <a href="http://www.johnmyleswhite.com/" target="_blank">John Myles White</a>.</p>
<p>This also includes my work with <a href="http://jakeporway.com/" target="_blank">Jake Porway</a> on <a href="http://datawithoutborders.cc/" target="_blank">Data Without Borders</a>.  Data Without Borders (DWB) is a new initiative to match non- profits and NGOs in need of data analysis with pro bono data scientists who can help them collect, organize, analyze, and visualize that data. The group was founded when it became clear that there was a huge amount of energy and excitement in the global big data community, but that much of that energy was being diverted to less socially conscientious applications, like deal finders and advertisement placement optimization. DWB seeks to capitalize on that energy by arranging short and long term partnerships between socially conscious data scientists and NGOs.</p>
<p>Last week O&#8217;Reilly held the second installment of its <a href="http://strataconf.com/stratany2011" target="_blank">Strata Conference</a>, which brings together people from across the big data community.  I had the opportunity to sit down with Mac Slocum last week to talk about Data Without Borders.</p>
<p align="center"><iframe width="640" height="360" src="http://www.youtube.com/embed/fsnnwTWoOLk" frameborder="0" allowfullscreen></iframe></p>
<p>After the jump I have also embedded a the keynote Jake Porway and I delivered at the Strata Conference on Data Without Borders.  One of the things we were most excited about announcing at Strata is our upcoming <a href="dwb.cc/sfkickoff" target="_blank">Datadive in San Francisco</a>.  If you are win the Bay Area, please join us to help us <a href="dwb.cc/sfkickoff" target="_blank">do good with data</a>!</p>
<p><span id="more-2812"></span>
<p align="center"><iframe width="640" height="360" src="http://www.youtube.com/embed/gxfOkwyGZfg" frameborder="0" allowfullscreen></iframe></p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/PogfmxmWjnA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2812</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2812</feedburner:origLink></item>
		<item>
		<title>Create an animated clock in R with ggplot2 (and ffmpeg)</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/hfkxsiQy-C8/</link>
		<comments>http://www.drewconway.com/zia/?p=2800#comments</comments>
		<pubDate>Fri, 12 Aug 2011 20:34:56 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2800</guid>
		<description><![CDATA[<p>Because it&#8217;s Friday&#8212;and I needed to create this for a separate visualization&#8212;here is how to create an animated clock in R using ggplot2.</p>
<p></p>
<p>In just about 20 lines of code!  And here is the clock…</p>
<p>
<p align="center"></p>
<p>I think this is a nifty way to show time elapse, rather than the windowed timelines I had used previously.  [...]]]></description>
			<content:encoded><![CDATA[<p>Because it&#8217;s Friday&mdash;and I needed to create this for a separate visualization&mdash;here is how to create an animated clock in R using <code><a href="http://had.co.nz/ggplot2/" target="_blank">ggplot2</a></code>.</p>
<p><script src="https://gist.github.com/1142938.js?file=clock.R"></script></p>
<p>In just about 20 lines of code!  And here is the clock…</p>
<p><span id="more-2800"></span>
<p align="center"><iframe width="425" height="425" src="http://www.youtube.com/embed/FF65Wk5zpOY?hl=en&#038;fs=1" frameborder="0" allowfullscreen></iframe></p>
<p>I think this is a nifty way to show time elapse, rather than the <a href="http://www.drewconway.com/zia/?p=2741" target="_blank">windowed timelines I had used previously</a>.  Enjoy.</p>
<p>P.S. I will be officially off the grid starting now until mid-September.  See you on the other side!</p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/hfkxsiQy-C8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2800</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2800</feedburner:origLink></item>
		<item>
		<title>Data use policies and social media: an appeal</title>
		<link>http://feedproxy.google.com/~r/ZeroIntelligenceAgents/~3/vgrgv0AUwP4/</link>
		<comments>http://www.drewconway.com/zia/?p=2798#comments</comments>
		<pubDate>Mon, 08 Aug 2011 13:30:15 +0000</pubDate>
		<dc:creator>Drew Conway</dc:creator>
				<category><![CDATA[Op-Ed]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.drewconway.com/zia/?p=2798</guid>
		<description><![CDATA[<p>After my post a few weeks ago lamenting Twitter&#8217;s data use policies, many people reached out to me supporting my position and asking what they could do to help.  One person was Mark Huberty, a fellow political scientist at UC Berkeley.  Mark mentioned that there were many other social scientists who had similar experiences [...]]]></description>
			<content:encoded><![CDATA[<p>After my post a few weeks ago <a href="http://www.drewconway.com/zia/?p=2784" target="_blank">lamenting Twitter&#8217;s data use policies</a>, many people reached out to me supporting my position and asking what they could do to help.  One person was <a href="http://markhuberty.berkeley.edu/" target="_blank">Mark Huberty</a>, a fellow political scientist at UC Berkeley.  Mark mentioned that there were many other social scientists who had similar experiences and were worried about its ramifications for research.</p>
<p>We decided to the best way to proceed was to make an appeal to all researchers&mdash;not only social scientists&mdash;to gather examples of work, and stories, of how many disciplines are using this data to uncover new aspects of human behavior.  This morning, Mark wrote just such an appeal to the <a href="http://polmeth.wustl.edu/" target="_blank">POLMETH</a> mailing list, and in an effort to make this appeal to a larger audience I have reproduced it below:</p>
<p><span id="more-2798"></span><br />
<blockquote>Greetings,</p>
<p>One of us (Drew Conway) recently found that, although Twitter makes its data open to almost anyone via well-documented interfaces, and although it appears to encourage experimentation with its data, that <a href="http://www.drewconway.com/zia/?p=2784" target="_blank">doesn&#8217;t extend to redistributing that data for replication</a>. This poses serious questions about the use of twitter-based data for academic research. Twitter has been shown to be an accurate predictor of vote and polling outcomes, and a novel way to measure partisan polarization and communication. But without clear data use policies, research taking advantage of this data may not pass muster with journals requiring the release of replication files, and research progress will be hindered.</p>
<p>We think there is an opportunity here to show interdisciplinary academic interest in the Twitter data, and open a conversation about reasonable data retention and release policies on their part. At present, there appears to be a disconnect between Twitter&#8217;s analysts, who seem to encourage data use, and its legal and business arm, who are very conservative with Twitter&#8217;s intellectual property rights. Given this disconnect, Twitter has been inconsistent in its demands on researchers using this data. We&#8217;re hoping that by pointing out the inconsistency and seeking a reasonable resolution, we can find a suitable outcome for both Twitter&#8217;s business model and researchers&#8217; interests. If done correctly, this might have the potential to become a model for other social media sites of interest to social scientists.</p>
<p>We would like to engage participation from anyone in the PolMeth community who has an interest in this outcome. If you might be interested in participating, please let one of us know. We&#8217;re only in the early stages of working on this, so we welcome all inquiries, ideas, and concerns.</p>
<p>Thanks for your interest. We will look forward to hearing from you.</p>
</blockquote>
<p>We hope that those of you using Twitter data for research will help us in this effort.  Please feel free to contact me directly, either by email or in the comments section below.  We look forward to hearing from you!</p>
<img src="http://feeds.feedburner.com/~r/ZeroIntelligenceAgents/~4/vgrgv0AUwP4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.drewconway.com/zia/?feed=rss2&amp;p=2798</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.drewconway.com/zia/?p=2798</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.drewconway.com @ 2012-02-08 16:47:01 -->

