<?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>Healthy Algorithms</title>
	<atom:link href="http://healthyalgorithms.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://healthyalgorithms.com</link>
	<description>A blog about algorithms, combinatorics, and optimization applications in global health informatics.</description>
	<lastBuildDate>Mon, 23 Jan 2012 17:53:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='healthyalgorithms.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/67874012201ff9ae53597ea09aa85611?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Healthy Algorithms</title>
		<link>http://healthyalgorithms.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://healthyalgorithms.com/osd.xml" title="Healthy Algorithms" />
	<atom:link rel='hub' href='http://healthyalgorithms.com/?pushpress=hub'/>
		<item>
		<title>Parameterizing Negative Binomial distributions</title>
		<link>http://healthyalgorithms.com/2012/01/23/parameterizing-negative-binomial-distributions/</link>
		<comments>http://healthyalgorithms.com/2012/01/23/parameterizing-negative-binomial-distributions/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 08:00:21 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[statistics]]></category>
		<category><![CDATA[distributions]]></category>
		<category><![CDATA[negative binomial]]></category>
		<category><![CDATA[pymc]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1670</guid>
		<description><![CDATA[The negative binomial distribution is cool. Sometimes I think that. Sometimes I think it is more trouble than it&#8217;s worth, a complicated mess. Today, both. Wikipedia and PyMC parameterize it differently, and it is a source of continuing confusion for &#8230; <a href="http://healthyalgorithms.com/2012/01/23/parameterizing-negative-binomial-distributions/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1670&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The negative binomial distribution is cool.  Sometimes I think that.</p>
<p>Sometimes I think it is more trouble than it&#8217;s worth, a complicated mess.</p>
<p>Today, both.</p>
<p><a href="http://en.wikipedia.org/wiki/Negative_binomial_distribution">Wikipedia</a> and <a href="http://pymc.googlecode.com/svn/doc/distributions.html#pymc.distributions.negative_binomial_like">PyMC</a> parameterize it differently, and it is a source of continuing confusion for me, so I&#8217;m just going to write it out here and have my own reference.  (Which will match with PyMC, I hope!)</p>
<p>The important thing about the negative binomial, as far as I&#8217;m concerned, is that it is like a Poisson distribution, but &#8220;over-dispersed&#8221;.  That is to say that the standard deviation is not always the square root of the mean.  So I&#8217;d like to parameterize it with a parameter <img src='http://s0.wp.com/latex.php?latex=%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu' title='&#92;mu' class='latex' /> for the mean and <img src='http://s0.wp.com/latex.php?latex=%5Cdelta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta' title='&#92;delta' class='latex' /> for the dispersion.  This is almost what PyMC does, except it calls the dispersion parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> instead of  <img src='http://s0.wp.com/latex.php?latex=%5Cdelta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta' title='&#92;delta' class='latex' />.</p>
<p>The slightly less important, but still informative, thing about the negative binomial, as far as I&#8217;m concerned, is that the way it is like a Poisson distribution is very direct.  A negative binomial is a Poisson that has a Gamma-distributed random variable for its rate.  In other words (symbols?), <img src='http://s0.wp.com/latex.php?latex=Y+%5Csim+%5Ctext%7BNegativeBinomial%7D%28%5Cmu%2C+%5Cdelta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y &#92;sim &#92;text{NegativeBinomial}(&#92;mu, &#92;delta)' title='Y &#92;sim &#92;text{NegativeBinomial}(&#92;mu, &#92;delta)' class='latex' /> is just shorthand for</p>
<p><img src='http://s0.wp.com/latex.php?latex=Y+%5Csim+%5Ctext%7BPoisson%7D%28%5Clambda%29%2C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y &#92;sim &#92;text{Poisson}(&#92;lambda),' title='Y &#92;sim &#92;text{Poisson}(&#92;lambda),' class='latex' /><br />
<img src='http://s0.wp.com/latex.php?latex=%5Clambda+%5Csim+%5Ctext%7BGamma%7D%28%5Cmu%2C+%5Cdelta%29.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda &#92;sim &#92;text{Gamma}(&#92;mu, &#92;delta).' title='&#92;lambda &#92;sim &#92;text{Gamma}(&#92;mu, &#92;delta).' class='latex' /></p>
<p>Unfortunately, nobody parameterizes the Gamma distribution this way.  And so things get really confusing.</p>
<p>The way to get unconfused is to write out the distributions, although after they&#8217;re written, you might doubt me:</p>
<p>The negative binomial distribution is<br />
<img src='http://s0.wp.com/latex.php?latex=f%28k+%5Cmid+%5Cmu%2C+%5Cdelta%29+%3D+%5Cfrac%7B%5CGamma%28k%2B%5Cdelta%29%7D%7Bk%21+%5CGamma%28%5Cdelta%29%7D+%28%5Cdelta%2F%28%5Cmu%2B%5Cdelta%29%29%5E%5Cdelta+%28%5Cmu%2F%28%5Cmu%2B%5Cdelta%29%29%5Ek++&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(k &#92;mid &#92;mu, &#92;delta) = &#92;frac{&#92;Gamma(k+&#92;delta)}{k! &#92;Gamma(&#92;delta)} (&#92;delta/(&#92;mu+&#92;delta))^&#92;delta (&#92;mu/(&#92;mu+&#92;delta))^k  ' title='f(k &#92;mid &#92;mu, &#92;delta) = &#92;frac{&#92;Gamma(k+&#92;delta)}{k! &#92;Gamma(&#92;delta)} (&#92;delta/(&#92;mu+&#92;delta))^&#92;delta (&#92;mu/(&#92;mu+&#92;delta))^k  ' class='latex' /><br />
and the Poisson distribution is<br />
<img src='http://s0.wp.com/latex.php?latex=f%28k+%5Cmid+%5Clambda%29+%3D+%5Cfrac%7Be%5E%7B-%5Clambda%7D%5Clambda%5Ek%7D%7Bk%21%7D++&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(k &#92;mid &#92;lambda) = &#92;frac{e^{-&#92;lambda}&#92;lambda^k}{k!}  ' title='f(k &#92;mid &#92;lambda) = &#92;frac{e^{-&#92;lambda}&#92;lambda^k}{k!}  ' class='latex' /><br />
and the Gamma distribution is<br />
<img src='http://s0.wp.com/latex.php?latex=f%28x+%5Cmid+%5Calpha%2C+%5Cbeta%29+%3D+%5Cfrac%7B%5Cbeta%5E%7B%5Calpha%7Dx%5E%7B%5Calpha-1%7De%5E%7B-%5Cbeta+x%7D%7D%7B%5CGamma%28%5Calpha%29%7D++&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x &#92;mid &#92;alpha, &#92;beta) = &#92;frac{&#92;beta^{&#92;alpha}x^{&#92;alpha-1}e^{-&#92;beta x}}{&#92;Gamma(&#92;alpha)}  ' title='f(x &#92;mid &#92;alpha, &#92;beta) = &#92;frac{&#92;beta^{&#92;alpha}x^{&#92;alpha-1}e^{-&#92;beta x}}{&#92;Gamma(&#92;alpha)}  ' class='latex' /></p>
<p>Hmm, does that help yet?  If <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%3D+%5Cdelta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha = &#92;delta' title='&#92;alpha = &#92;delta' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cbeta+%3D+%5Cdelta%2F%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta = &#92;delta/&#92;mu' title='&#92;beta = &#92;delta/&#92;mu' class='latex' />, it all works out:<br />
<img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B%5CGamma%28k%2B%5Cdelta%29%7D%7B%5CGamma%28%5Cdelta%29k%21%7D+%5Cleft%28%5Cfrac%7B%5Cdelta%7D%7B%5Cpi%2B%5Cdelta%7D%5Cright%29%5E%5Cdelta+%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B%5Cpi%2B%5Cdelta%7D%5Cright%29%5Ek++%3D++%5Cint_0%5E%5Cinfty+%5Cfrac%7Be%5E%7B-%5Clambda%7D%5Clambda%5Ek%7D%7Bk%21%7D+%5Clambda%5E%7B%5Cdelta-1%7D+e%5E%7B-%5Clambda+%5Cdelta%2F%5Cmu%7D+%5Cfrac%7B%28%5Cdelta%2F%5Cmu%29%5E%7B%5Cdelta%7D%7D%7B%5CGamma%28%5Cdelta%29%7Dd+%5Clambda.++&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{&#92;Gamma(k+&#92;delta)}{&#92;Gamma(&#92;delta)k!} &#92;left(&#92;frac{&#92;delta}{&#92;pi+&#92;delta}&#92;right)^&#92;delta &#92;left(&#92;frac{&#92;pi}{&#92;pi+&#92;delta}&#92;right)^k  =  &#92;int_0^&#92;infty &#92;frac{e^{-&#92;lambda}&#92;lambda^k}{k!} &#92;lambda^{&#92;delta-1} e^{-&#92;lambda &#92;delta/&#92;mu} &#92;frac{(&#92;delta/&#92;mu)^{&#92;delta}}{&#92;Gamma(&#92;delta)}d &#92;lambda.  ' title='&#92;frac{&#92;Gamma(k+&#92;delta)}{&#92;Gamma(&#92;delta)k!} &#92;left(&#92;frac{&#92;delta}{&#92;pi+&#92;delta}&#92;right)^&#92;delta &#92;left(&#92;frac{&#92;pi}{&#92;pi+&#92;delta}&#92;right)^k  =  &#92;int_0^&#92;infty &#92;frac{e^{-&#92;lambda}&#92;lambda^k}{k!} &#92;lambda^{&#92;delta-1} e^{-&#92;lambda &#92;delta/&#92;mu} &#92;frac{(&#92;delta/&#92;mu)^{&#92;delta}}{&#92;Gamma(&#92;delta)}d &#92;lambda.  ' class='latex' /></p>
<p>But instead of integrating it analytically (or in addition to), I am extra re-assured by seeing the results of a little PyMC model for this:</p>
<p><a href="http://healthyalgorithms.files.wordpress.com/2012/01/t.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/01/t.png?w=500" alt="" title="t"   class="aligncenter size-full wp-image-1681" /></a></p>
<p>I put a notebook for making this plot in <a href="https://github.com/aflaxman/pymc-examples">my pymc-examples repository</a>.  Love those notebooks. [<a href="https://github.com/aflaxman/pymc-examples/blob/master/negative_binomial_dist.pdf">pdf</a>] [<a href="https://github.com/aflaxman/pymc-examples/blob/master/negative_binomial_dist.ipynb">ipynb</a>]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1670/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1670&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/01/23/parameterizing-negative-binomial-distributions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2012/01/t.png" medium="image">
			<media:title type="html">t</media:title>
		</media:content>
	</item>
		<item>
		<title>PyMC+Pandas: Poisson Regression Example</title>
		<link>http://healthyalgorithms.com/2012/01/20/pymcpandas-poisson-regression-example/</link>
		<comments>http://healthyalgorithms.com/2012/01/20/pymcpandas-poisson-regression-example/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 08:00:22 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[MCMC]]></category>
		<category><![CDATA[software engineering]]></category>
		<category><![CDATA[pandas]]></category>
		<category><![CDATA[pymc]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1653</guid>
		<description><![CDATA[When I was gushing about the python data package pandas, commenter Rafael S. Calsaverini asked about combining it with PyMC, the python MCMC package that I usually gush about. I had a few minutes free and gave it a try. &#8230; <a href="http://healthyalgorithms.com/2012/01/20/pymcpandas-poisson-regression-example/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1653&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When <a href="http://healthyalgorithms.com/2012/01/09/my-new-favorite-for-pythonic-data-wrangling/">I was gushing about the python data package pandas</a>, <a href="http://healthyalgorithms.com/2012/01/09/my-new-favorite-for-pythonic-data-wrangling/#comment-1017">commenter Rafael S. Calsaverini asked about combining it with PyMC</a>, the python MCMC package that I usually gush about. I had a few minutes free and gave it a try. And just for fun I gave it a try in the new ipython notebook. It works, but it could work even better. See attached:</p>
<p><a href="http://healthyalgorithms.files.wordpress.com/2012/01/pymc-pandas-example.pdf"><img src="http://healthyalgorithms.files.wordpress.com/2012/01/pymc-pandas-example.png?w=500&#038;h=596" alt="" title="pymc-pandas-example" width="500" height="596" class="aligncenter size-full wp-image-1661" /></a></p>
<p>[<a href="http://healthyalgorithms.files.wordpress.com/2012/01/pymc-pandas-example.pdf">pdf</a>] [<a href="https://github.com/aflaxman/pymc-examples/blob/master/pymc-pandas-example.ipynb">ipynb</a>]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1653/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1653&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/01/20/pymcpandas-poisson-regression-example/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2012/01/pymc-pandas-example.png" medium="image">
			<media:title type="html">pymc-pandas-example</media:title>
		</media:content>
	</item>
		<item>
		<title>My new favorite for pythonic data wrangling</title>
		<link>http://healthyalgorithms.com/2012/01/09/my-new-favorite-for-pythonic-data-wrangling/</link>
		<comments>http://healthyalgorithms.com/2012/01/09/my-new-favorite-for-pythonic-data-wrangling/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 08:00:48 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[software engineering]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1630</guid>
		<description><![CDATA[I&#8217;ve written before about my search for the way to deal with data in python. It&#8217;s time to write again, though because I have a new favorite: pandas, the panel data package. There is copious, and growing documentation for pandas, &#8230; <a href="http://healthyalgorithms.com/2012/01/09/my-new-favorite-for-pythonic-data-wrangling/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1630&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve <a href="http://healthyalgorithms.com/2011/03/31/data-wrangling-in-r-stata-and-python/">written</a> <a href="http://healthyalgorithms.com/2010/06/18/la-larry-for-classy-number-crunching-in-python/">before</a> about my search for the way to deal with data in python.  It&#8217;s time to write again, though because I have a new favorite: <a href="http://pandas.sourceforge.net/">pandas</a>, the panel data package.</p>
<p>There is copious, and growing documentation for pandas, but it assumes a level of familiarity with python and numpy. I thought I&#8217;d write some little examples calculations that I&#8217;ve done with pandas recently to complement the real docs with some &#8220;recipes&#8221;.  You don&#8217;t really need to know python to use these, let alone numpy.</p>
<p>To begin, here are the creation and subset routines in pandas that do the same work that <a href="http://healthyalgorithms.com/2011/03/31/data-wrangling-in-r-stata-and-python/">my last foray into this subject</a> accomplished with the rec_array:<br />
<pre class="brush: python;">
import pandas
a = ['USA','USA','CAN']
b = [1,6,4]
c = [1990.1,2005.,1995.]
d = ['x','y','z']
df = pandas.DataFrame({'country': a, 'age': b, 'year': c, 'data': d})
</pre></p>
<p>This is cooler than a rec_array because you don&#8217;t have to dig in the docs for the constructor, and you can use a dictionary to name each column.</p>
<p>You can select the subset of data relevant to a particular country-year-age thusly:<br />
<pre class="brush: python;">
df[(df['country']=='USA') &amp; (df['age']==6) &amp; (df['year']==2005)]
</pre></p>
<p><del datetime="2012-01-09T18:41:26+00:00">This is not as cool as a rec_array, because writing <code>df['age']</code> has more characters than <code>df.age</code>, but I feel churlish to complain about it.<br />
</del>  It&#8217;s good that I complained about my uncool <code>df['age']</code> business, because I learned that <code>df.age</code> works, too, as long as you are using an up-to-date pandas.</p>
<p>More substantial recipe to come.  Is there already a cookbook out there?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1630/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1630&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/01/09/my-new-favorite-for-pythonic-data-wrangling/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>
	</item>
		<item>
		<title>Code as Play</title>
		<link>http://healthyalgorithms.com/2011/12/21/code-as-play/</link>
		<comments>http://healthyalgorithms.com/2011/12/21/code-as-play/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 17:23:18 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[education]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[games code]]></category>
		<category><![CDATA[web games]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1617</guid>
		<description><![CDATA[Cool project for teaching programming through web games: Play My Code How to embed the game in the blog?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1617&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Cool project for teaching programming through web games: <a href="http://www.playmycode.com/">Play My Code</a></p>
<p><a href="http://www.playmycode.com/play/game/joe/space-snake-galaxies"><img src="http://healthyalgorithms.files.wordpress.com/2011/12/pmc-snakes1.png?w=500&#038;h=431" alt="" title="pmc-snakes" width="500" height="431" class="aligncenter size-full wp-image-1626" /></a></p>
<p>How to embed the game in the blog?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1617/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1617&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2011/12/21/code-as-play/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2011/12/pmc-snakes1.png" medium="image">
			<media:title type="html">pmc-snakes</media:title>
		</media:content>
	</item>
		<item>
		<title>PyMC and PyMCMC</title>
		<link>http://healthyalgorithms.com/2011/12/19/pymc-and-pymcmc/</link>
		<comments>http://healthyalgorithms.com/2011/12/19/pymc-and-pymcmc/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 08:00:11 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[MCMC]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1614</guid>
		<description><![CDATA[I learned last week about a Python Package for doing MCMC estimation, called PyMCMC. It sounds sort of like something I&#8217;m always writing about, doesn&#8217;t it? From my quick look, it appears that pyMCMC has some advanced sampling methods (like &#8230; <a href="http://healthyalgorithms.com/2011/12/19/pymc-and-pymcmc/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1614&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I learned last week about a Python Package for doing MCMC estimation, called PyMCMC.  It sounds sort of like something I&#8217;m always writing about, doesn&#8217;t it?</p>
<p>From my quick look, it appears that pyMCMC has some advanced sampling methods (like Slice sampling) that are not yet implemented for PyMC.  On the other hand, it seems like PyMC has a more flexible modeling language, which permits formulation of complex models without writing out likelihood functions explicitly.</p>
<p>Has anyone used PyMCMC?  How did it go for you?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1614/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1614&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2011/12/19/pymc-and-pymcmc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>
	</item>
		<item>
		<title>Bitcoin and Anonymity</title>
		<link>http://healthyalgorithms.com/2011/12/14/bitcoin-and-anonmity/</link>
		<comments>http://healthyalgorithms.com/2011/12/14/bitcoin-and-anonmity/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 08:00:36 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[Complex Networks]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1605</guid>
		<description><![CDATA[Bitcoin is intriguing, a digital currency where the entire transaction history of economy is held in common by all participants. I think that this will be a great observatory for research for someone. I read a recent paper that has &#8230; <a href="http://healthyalgorithms.com/2011/12/14/bitcoin-and-anonmity/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1605&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://healthyalgorithms.files.wordpress.com/2011/12/bitcoin.png"><img src="http://healthyalgorithms.files.wordpress.com/2011/12/bitcoin.png?w=500" alt="" title=""   class="aligncenter size-full wp-image-1609" /></a>Bitcoin is intriguing, a digital currency where the entire transaction history of economy is held in common by all participants. I think that this will be a great observatory for research for someone. I read a recent paper that has some of the elements of this, <a href="http://arxiv.org/abs/1107.4524">An Analysis of Anonymity in the Bitcoin System</a> by Fergal Reid and Martin Harrigan recently.  As the name implies, it is mostly about the anonymity of the system. But it also includes a description of &#8220;the alleged theft of Bitcoins, which, at the time of the theft, had a market value of approximately half a million U.S. dollars&#8221;. That could be the plot of a good heist movie.</p>
<p>The paper led me to the <a href="https://github.com/gavinandresen/bitcointools">bitcoin tools repository</a>, which I&#8217;ll have to look into in more detail in the future.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1605/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1605&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2011/12/14/bitcoin-and-anonmity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2011/12/bitcoin.png" medium="image" />
	</item>
		<item>
		<title>Complex Networks in the Kitchen</title>
		<link>http://healthyalgorithms.com/2011/12/12/complex-networks-in-the-kitchen/</link>
		<comments>http://healthyalgorithms.com/2011/12/12/complex-networks-in-the-kitchen/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 08:00:09 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[Complex Networks]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1588</guid>
		<description><![CDATA[Two papers in the Arxiv caught my eye recently, (I have time to keep up on papers again!) both about networks and cooking.  Both came out around Thanksgiving, too, but maybe that is just a coincidence. Chun-Yuen Teng, Yu-Ru Lin, &#8230; <a href="http://healthyalgorithms.com/2011/12/12/complex-networks-in-the-kitchen/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1588&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Two papers in the Arxiv caught my eye recently, (I have time to keep up on papers again!) both about networks and cooking.  Both came out around Thanksgiving, too, but maybe that is just a coincidence.</p>
<blockquote><p>
Chun-Yuen Teng, Yu-Ru Lin, Lada A. Adamic, <a href="http://arxiv.org/abs/1111.3919">Recipe recommendation using ingredient networks</a><br />
Yong-Yeol Ahn, Sebastian E. Ahnert, James P. Bagrow, Albert-László Barabási, <a href="http://arxiv.org/abs/1111.6074">Flavor network and the principles of food pairing</a></p></blockquote>
<p>They both have wonderfully complex network graphics, although the lack of information in these beautiful figures is acknowledged:<br />
<a href="http://healthyalgorithms.files.wordpress.com/2011/12/fig_s1-ahn_et_al.png"><img src="http://healthyalgorithms.files.wordpress.com/2011/12/fig_s1-ahn_et_al.png?w=500&#038;h=218" alt="" title="Fig_S1-Ahn_et_al" width="500" height="218" class="aligncenter size-full wp-image-1589" /></a></p>
<p><a href="http://healthyalgorithms.files.wordpress.com/2011/12/fig_2-teng_et_al.png"><img src="http://healthyalgorithms.files.wordpress.com/2011/12/fig_2-teng_et_al.png?w=500&#038;h=253" alt="" title="Fig_2-Teng_et_al" width="500" height="253" class="aligncenter size-full wp-image-1590" /></a><br />
I&#8217;d love to combine this sort of analysis with the work on nutritional risk factors that has been going on around here recently.  Did either of these papers come with a dataset I can explore?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1588/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1588&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2011/12/12/complex-networks-in-the-kitchen/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2011/12/fig_s1-ahn_et_al.png" medium="image">
			<media:title type="html">Fig_S1-Ahn_et_al</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2011/12/fig_2-teng_et_al.png" medium="image">
			<media:title type="html">Fig_2-Teng_et_al</media:title>
		</media:content>
	</item>
		<item>
		<title>Teaching in Video Blips</title>
		<link>http://healthyalgorithms.com/2011/12/09/teaching-in-video-blips/</link>
		<comments>http://healthyalgorithms.com/2011/12/09/teaching-in-video-blips/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 08:00:28 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[education]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1582</guid>
		<description><![CDATA[Claire Mathieu has been blogging about intro math and CS videos from Khan Academy and from others: I&#8217;ve heard about this Khan Academy, and it seems like more and more course material is appearing as tiny web videos. Also I recently found &#8230; <a href="http://healthyalgorithms.com/2011/12/09/teaching-in-video-blips/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1582&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://teachingintrotocs.blogspot.com/">Claire Mathieu</a> has been blogging about intro <a href="http://teachingintrotocs.blogspot.com/2011/11/khan-academy-on-foundations-of.html">math </a>and <a href="http://teachingintrotocs.blogspot.com/2011/11/khan-academy-on-insertion-sort.html">CS </a>videos from Khan Academy and <a href="http://teachingintrotocs.blogspot.com/2011/11/teaching-deterministic-linear-time.html">from others</a>:</p>
<span style="text-align:center; display: block;"><a href="http://healthyalgorithms.com/2011/12/09/teaching-in-video-blips/"><img src="http://img.youtube.com/vi/lCzQvQr8Utw/2.jpg" alt="" /></a></span>
<p>I&#8217;ve heard about this Khan Academy, and it seems like more and more course material is appearing as tiny web videos.</p>
<p>Also I recently found out that there is a free, online version of the Stanford Intro AI Class taught by Peter Norvig and Sebastian Thrun, <a href="http://www.youtube.com/watch?v=H9ngd6zCeUc">for which 56,000 students signed up</a>. I think I accidentally <a href="http://healthyalgorithms.com/2011/11/23/causal-modeling-in-python-bayesian-networks-in-pymc/">did their homework</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1582/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1582&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2011/12/09/teaching-in-video-blips/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>
	</item>
		<item>
		<title>False information</title>
		<link>http://healthyalgorithms.com/2011/12/07/false-information/</link>
		<comments>http://healthyalgorithms.com/2011/12/07/false-information/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 08:00:47 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[education]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1578</guid>
		<description><![CDATA[Ben Birnbaum stood for his general exam last week, on a topic that I&#8217;m very interested in: ABSTRACT&#8211; Surveys are one of the principal means of gathering critical data from low-income regions. However, interviewer fabrication, or curbstoning, can threaten data &#8230; <a href="http://healthyalgorithms.com/2011/12/07/false-information/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1578&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ben Birnbaum stood for his general exam last week, on a topic that I&#8217;m very interested in:</p>
<blockquote><p>ABSTRACT&#8211;</p>
<p>Surveys are one of the principal means of gathering critical data from low-income regions. However, interviewer fabrication, or curbstoning, can threaten data quality. The existing literature lacks a set of general-purpose techniques to detect curbstoning; it does not capitalize on the potential of mobile data collection tools to help detect the phenomenon; and it provides few rigorous validations of the techniques that are developed. In this talk, I propose an anomaly detection framework to develop several general-purpose algorithms that identify curbstoning.</p>
<p>These algorithms can take advantage of the information in user traces from mobile data collection, a potential that I will evaluate rigorously. I also propose two studies to obtain high-quality labeled data sets with which I will validate my algorithms, thus partially filling the need for more rigorous evaluations.</p></blockquote>
<p>Good job, Ben!  Also in attendance was Aram Harrow, who was reminded of <a href="http://www.overcomingbias.com/2008/02/my-favorite-lia.html">this great story of the lying professor</a>.  I wonder, could I could pull that off?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1578/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1578&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2011/12/07/false-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>
	</item>
		<item>
		<title>Unscientific America</title>
		<link>http://healthyalgorithms.com/2011/12/05/unscientific-america/</link>
		<comments>http://healthyalgorithms.com/2011/12/05/unscientific-america/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 08:00:03 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[science policy]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1568</guid>
		<description><![CDATA[I read a short book about science and society last weekend, Unscientific America by Chris Mooney and Sheril Kirshenbaum. It&#8217;s a quick read, and the context is very much the 2008 elections, so you should browse it sooner than later. &#8230; <a href="http://healthyalgorithms.com/2011/12/05/unscientific-america/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1568&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Unscientific_America"><img class="size-full wp-image-1570 alignleft" src="http://healthyalgorithms.files.wordpress.com/2011/11/book-cover.jpg?w=500" alt=""   /></a>I read a short book about science and society last weekend, <a href="http://www.unscientificamerica.com/">Unscientific America</a> by Chris Mooney and Sheril Kirshenbaum. It&#8217;s a quick read, and the context is very much the 2008 elections, so you should browse it sooner than later. There are some good ideas, but the focus on web campaigns of 2008 are going to make them sound even more dated in a year.</p>
<p>The book argues strongly for the meaningful popularization of scientific ideas. I love the popularizers of science, and was very influenced by books like <a href="http://en.wikipedia.org/wiki/Surely_You're_Joking,_Mr._Feynman!">Surely You&#8217;re Joking, Mr. Feynman</a> and <a href="http://en.wikipedia.org/wiki/G%C3%B6del,_Escher,_Bach">Gödel, Escher, Bach</a> when I was a youth. The modern history sections in <em>Unscientific America</em> trace these popularizations to Carl Sagan&#8217;s book/television series <a href="http://en.wikipedia.org/wiki/Cosmos:_A_Personal_Voyage">Cosmos</a>. I should check that out.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1568/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&amp;blog=4781973&amp;post=1568&amp;subd=healthyalgorithms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2011/12/05/unscientific-america/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Abraham Flaxman</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2011/11/book-cover.jpg" medium="image" />
	</item>
	</channel>
</rss>
