<?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>Fri, 18 May 2012 00:19:03 +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>MCMC in Python: Bayesian meta-analysis example</title>
		<link>http://healthyalgorithms.com/2012/04/26/mcmc-in-python-bayesian-meta-analysis-example/</link>
		<comments>http://healthyalgorithms.com/2012/04/26/mcmc-in-python-bayesian-meta-analysis-example/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 08:00:45 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[MCMC]]></category>
		<category><![CDATA[software engineering]]></category>
		<category><![CDATA[meta-analysis]]></category>
		<category><![CDATA[pymc]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1749</guid>
		<description><![CDATA[In slow progress on my plan to to go through the examples from the OpenBUGS webpage and port them to PyMC, I offer you now Blockers, a random effects meta-analysis of clinical trials. &#8230; [py] [pdf]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1749&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In slow progress on <a href="http://healthyalgorithms.com/2012/03/05/mcmc-in-python-a-random-effects-logistic-regression-example/">my plan to to go through the examples from the OpenBUGS webpage and port them to PyMC</a>, I offer you now Blockers, a random effects meta-analysis of clinical trials.</p>
<p><a href="http://healthyalgorithms.files.wordpress.com/2012/04/blockers-1.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/04/blockers-1.png?w=500&h=402" alt="" title="" width="500" height="402" class="aligncenter size-full wp-image-1750" /></a><br />
&#8230;<br />
<a href="http://healthyalgorithms.files.wordpress.com/2012/04/blockers-2.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/04/blockers-2.png?w=500&h=468" alt="" title="" width="500" height="468" class="aligncenter size-full wp-image-1751" /></a></p>
<p>[<a href="https://github.com/aflaxman/pymc-examples/blob/master/blockers_bayesian_meta-analysis.py">py</a>] [<a href="https://github.com/aflaxman/pymc-examples/blob/master/blockers_bayesian_meta-analysis.pdf">pdf</a>]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1749/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1749/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1749/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1749/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1749/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1749/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1749/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1749/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1749/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1749/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1749/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1749/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1749/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1749/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1749&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/04/26/mcmc-in-python-bayesian-meta-analysis-example/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/04/blockers-1.png" medium="image" />

		<media:content url="http://healthyalgorithms.files.wordpress.com/2012/04/blockers-2.png" medium="image" />
	</item>
		<item>
		<title>Understanding the Elsevier Boycott</title>
		<link>http://healthyalgorithms.com/2012/04/19/understanding-the-elsevier-boycott/</link>
		<comments>http://healthyalgorithms.com/2012/04/19/understanding-the-elsevier-boycott/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 09:00:27 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[elsevier]]></category>
		<category><![CDATA[the cost of knowledge]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1744</guid>
		<description><![CDATA[Hello Dear Readers, Can someone help me quickly get up to speed on the Elsevier boycott? I&#8217;ve had a read through thecostofknowledge.com and even skimmed through Tim Gower&#8217;s statement of purpose. What I&#8217;m missing is what are the demands of &#8230; <a href="http://healthyalgorithms.com/2012/04/19/understanding-the-elsevier-boycott/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1744&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello Dear Readers,</p>
<p>Can someone help me quickly get up to speed on the Elsevier boycott?  I&#8217;ve had a read through <a href="http://thecostofknowledge.com/">thecostofknowledge.com</a> and even skimmed through Tim Gower&#8217;s <a href="http://gowers.files.wordpress.com/2012/02/elsevierstatementfinal.pdf">statement of purpose</a>.  What I&#8217;m missing is what are the demands of this boycott?  I&#8217;m delighted to have an excuse to refuse a request for refereeing, but how can my boycott be genuine about this if Elsevier has no way to make things right?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1744/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1744/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1744/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1744/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1744/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1744/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1744/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1744/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1744/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1744/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1744/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1744/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1744/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1744/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1744&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/04/19/understanding-the-elsevier-boycott/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>While searching for that Tukey quote</title>
		<link>http://healthyalgorithms.com/2012/04/04/while-searching-for-that-tukey-quote/</link>
		<comments>http://healthyalgorithms.com/2012/04/04/while-searching-for-that-tukey-quote/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 08:00:56 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[education]]></category>
		<category><![CDATA[survey methods]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1732</guid>
		<description><![CDATA[I was looking for a quote that was the topic of my last post, and I found it in the resources list for this very interesting organization, The Public Science Project. They have a 14 minutes video about their work &#8230; <a href="http://healthyalgorithms.com/2012/04/04/while-searching-for-that-tukey-quote/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1732&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was looking for a quote that was the topic of my last post, and I found it in the resources list for this very interesting organization, <a href="http://www.publicscienceproject.org/">The Public Science Project</a>.  They have a 14 minutes video about their work which I recommend:</p>
<p>    <iframe src="http://player.vimeo.com/video/22363812" width="500" height="275" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1732/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1732&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/04/04/while-searching-for-that-tukey-quote/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>Tukey quote I half-remembered</title>
		<link>http://healthyalgorithms.com/2012/04/02/tukey-quote-i-half-remembered/</link>
		<comments>http://healthyalgorithms.com/2012/04/02/tukey-quote-i-half-remembered/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 08:00:34 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[statistics]]></category>
		<category><![CDATA[eda]]></category>
		<category><![CDATA[quotes]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1724</guid>
		<description><![CDATA[I was trying to remember some quote by the exploratory data analysis master John Tukey yesterday, and I think this is it: No catalog of techniques can convey a willingness to look for what can be seen, whether or not &#8230; <a href="http://healthyalgorithms.com/2012/04/02/tukey-quote-i-half-remembered/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1724&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was trying to remember some quote by the exploratory data analysis master John Tukey yesterday, and I think this is it:</p>
<blockquote><p>No catalog of techniques can convey a willingness to look for what can be seen, whether or not anticipated. Yet this is at the heart of exploratory data analysis. The graph paper&#8212;and transparencies&#8212;are there, not as  a  technique, but rather as  a  recognition that <em>the picture-examining  eye is the best finder we have of the wholly unanticipated</em>.
</p></blockquote>
<p>It is from John W. Tukey, <a href="http://www.jstor.org/stable/2682991">We Need Both Exploratory and Confirmatory</a>, The American Statistician, Vol. 34, No. 1 (Feb., 1980), pp. 23-25.</p>
<p>I remembered a version about the visual cortex as a the most advance signal processing device, so maybe there is another version of this out there.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1724/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1724&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/04/02/tukey-quote-i-half-remembered/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>Automated Quality Assurance for Mobile Data Collection</title>
		<link>http://healthyalgorithms.com/2012/03/07/automated-quality-assurance-for-mobile-data-collection/</link>
		<comments>http://healthyalgorithms.com/2012/03/07/automated-quality-assurance-for-mobile-data-collection/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 08:00:35 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[global health]]></category>
		<category><![CDATA[my research]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1716</guid>
		<description><![CDATA[I&#8217;m excited to call your attention to a paper that my co-author Ben Birnbaum is presenting next week at the ACM DEV conference: Benjamin Birnbaum, Brian DeRenzi, Abraham D. Flaxman, and Neal Lesh, Automated Quality Assurance for Mobile Data Collection &#8230; <a href="http://healthyalgorithms.com/2012/03/07/automated-quality-assurance-for-mobile-data-collection/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1716&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m excited to call your attention to a paper that my co-author Ben Birnbaum is presenting next week at the ACM DEV conference:</p>
<ul>
<li>Benjamin Birnbaum, Brian DeRenzi, Abraham D. Flaxman, and Neal Lesh, <a href="http://www.cs.washington.edu/homes/birnbaum/dev2012.pdf">Automated Quality Assurance for Mobile Data Collection</a></li>
</ul>
<p>This research is about&#8230; well, the title says it pretty clearly.  I&#8217;m interested in using our approach to detect surprises in data quality in all kinds of settings.  Ben did the heavy lifting for this paper, so he deserves a lot of the congratulations that it has received the best paper award from the DEV 2012 program committee.</p>
<p>Congratulations, Ben!</p>
<p><a href="http://healthyalgorithms.files.wordpress.com/2012/03/fig_5.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/03/fig_5.png?w=500&h=328" alt="" title="fig_5" width="500" height="328" class="aligncenter size-full wp-image-1720" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1716/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1716/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1716/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1716/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1716/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1716/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1716/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1716&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/03/07/automated-quality-assurance-for-mobile-data-collection/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/03/fig_5.png" medium="image">
			<media:title type="html">fig_5</media:title>
		</media:content>
	</item>
		<item>
		<title>MCMC in Python: A random effects logistic regression example</title>
		<link>http://healthyalgorithms.com/2012/03/05/mcmc-in-python-a-random-effects-logistic-regression-example/</link>
		<comments>http://healthyalgorithms.com/2012/03/05/mcmc-in-python-a-random-effects-logistic-regression-example/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 08:00:13 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[MCMC]]></category>
		<category><![CDATA[software engineering]]></category>
		<category><![CDATA[pymc]]></category>
		<category><![CDATA[random effects]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1701</guid>
		<description><![CDATA[I have had this idea for a while, to go through the examples from the OpenBUGS webpage and port them to PyMC, so that I can be sure I&#8217;m not going much slower than I could be, and so that &#8230; <a href="http://healthyalgorithms.com/2012/03/05/mcmc-in-python-a-random-effects-logistic-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&#038;blog=4781973&#038;post=1701&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have had this idea for a while, to go through <a href="http://www.openbugs.info/w/Examples">the examples from the OpenBUGS webpage</a> and port them to PyMC, so that I can be sure I&#8217;m not going much slower than I could be, and so that people can compare MCMC samplers &#8220;apples-to-apples&#8221;.  But its easy to have ideas.  Acting on them takes more time.</p>
<p>So I&#8217;m happy that I finally found a little time to sit with Kyle Foreman and get started.  We ported one example over, the &#8220;seeds&#8221; random effects logistic regression.  It is a nice little example, and it also gave me a chance to put something in the ipython notebook, which I continue to think is a great way to share code.</p>
<p><a href="http://healthyalgorithms.files.wordpress.com/2012/03/1.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/03/1.png?w=500&h=230" alt="" title="1" width="500" height="230" class="aligncenter size-full wp-image-1709" /></a><br />
<a href="http://healthyalgorithms.files.wordpress.com/2012/03/2.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/03/2.png?w=500&h=198" alt="" title="2" width="500" height="198" class="aligncenter size-full wp-image-1708" /></a><br />
<a href="http://healthyalgorithms.files.wordpress.com/2012/03/3.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/03/3.png?w=500&h=258" alt="" title="3" width="500" height="258" class="aligncenter size-full wp-image-1707" /></a><br />
<a href="http://healthyalgorithms.files.wordpress.com/2012/03/results.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/03/results.png?w=500&h=509" alt="" title="results" width="500" height="509" class="aligncenter size-full wp-image-1704" /></a><br />
[<a href="https://github.com/aflaxman/pymc-examples/blob/master/seeds_re_logistic_regression.py">py</a>] [<a href="https://github.com/aflaxman/pymc-examples/blob/master/seeds_re_logistic_regression.pdf?raw=true">pdf</a>]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1701/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1701&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/03/05/mcmc-in-python-a-random-effects-logistic-regression-example/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/2012/03/1.png" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2012/03/2.png" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2012/03/3.png" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://healthyalgorithms.files.wordpress.com/2012/03/results.png" medium="image">
			<media:title type="html">results</media:title>
		</media:content>
	</item>
		<item>
		<title>Cool Tool</title>
		<link>http://healthyalgorithms.com/2012/02/20/cool-tool/</link>
		<comments>http://healthyalgorithms.com/2012/02/20/cool-tool/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 08:00:06 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[global health]]></category>
		<category><![CDATA[coal]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1694</guid>
		<description><![CDATA[Here is a web tool that recently crossed my desk, an interactive map on the human cost of mountaintop removal. It is a mashup of a bunch of different data sources, all on a Google map, that all say it &#8230; <a href="http://healthyalgorithms.com/2012/02/20/cool-tool/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1694&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is <a href="http://ilovemountains.org/the-human-cost">a web tool that recently crossed my desk</a>, an interactive map on the human cost of mountaintop removal.  It is a mashup of a bunch of different data sources, all on a Google map, that all say it is not healthy to live near a mountaintop removal coal mine.</p>
<p><a href="http://ilovemountains.org/news/1997"><img src="http://healthyalgorithms.files.wordpress.com/2012/02/the-human-cost-email.jpg?w=500" alt="" title=""   class="aligncenter size-full wp-image-1695" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1694/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1694&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/02/20/cool-tool/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/02/the-human-cost-email.jpg" medium="image" />
	</item>
		<item>
		<title>Powell&#8217;s Method for Maximization in PyMC</title>
		<link>http://healthyalgorithms.com/2012/02/09/powells-method-for-maximization-in-pymc/</link>
		<comments>http://healthyalgorithms.com/2012/02/09/powells-method-for-maximization-in-pymc/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 08:00:20 +0000</pubDate>
		<dc:creator>Abraham Flaxman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[pymc]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://healthyalgorithms.com/?p=1686</guid>
		<description><![CDATA[I have been using &#8220;Powell&#8217;s Method&#8221; to find maximum likelihood (ahem, maximum a posteriori) estimates in my PyMC models for years now. It is something that I arrived at by trying all the options once, and it seemed to work &#8230; <a href="http://healthyalgorithms.com/2012/02/09/powells-method-for-maximization-in-pymc/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1686&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been using &#8220;Powell&#8217;s Method&#8221; to find maximum likelihood (ahem, <em>maximum a posteriori</em>) estimates in my PyMC models for years now.  It is something that I arrived at by trying all the options once, and it seemed to work most reliably.  But what does it do?  I never bothered to figure out, until today.</p>
<p>It does something very reasonable. That is to optimize a multidimensional function along one dimension at a time. And it does something very tricky, which is to update the basis for one-dimensional optimization periodically, so that it quickly finds a &#8220;good&#8221; set of dimensions to optimize over.  Now that sounds familiar, doesn&#8217;t it?  It is definitely the same kind of trick that makes the Adaptive Metropolis step method a winner in MCMC.</p>
<p>The 48-year-old paper introducing the approach, M. J. D. Powell, <a href="http://comjnl.oxfordjournals.org/content/7/2/155.abstract">An efficient method for finding the minimum of a function of several variables without calculating derivatives</a>, is quite readable today.  If you want to see it in action, I added an ipython notebook to <a href="https://github.com/aflaxman/pymc-examples">my pymc examples repository on github</a>: [<a href="https://github.com/aflaxman/pymc-examples/blob/master/function_maximization.ipynb">ipynb</a>] [<a href="https://github.com/aflaxman/pymc-examples/blob/master/function_maximization.py">py</a>] [<a href="https://github.com/aflaxman/pymc-examples/raw/master/function_maximization.pdf">pdf</a>].</p>
<p><a href="http://healthyalgorithms.files.wordpress.com/2012/02/capture.png"><img src="http://healthyalgorithms.files.wordpress.com/2012/02/capture.png?w=500&h=570" alt="" title="" width="500" height="570" class="aligncenter size-full wp-image-1691" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/healthyalgorithms.wordpress.com/1686/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/healthyalgorithms.wordpress.com/1686/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/healthyalgorithms.wordpress.com/1686/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/healthyalgorithms.wordpress.com/1686/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/healthyalgorithms.wordpress.com/1686/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/healthyalgorithms.wordpress.com/1686/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/healthyalgorithms.wordpress.com/1686/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/healthyalgorithms.wordpress.com/1686/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/healthyalgorithms.wordpress.com/1686/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/healthyalgorithms.wordpress.com/1686/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/healthyalgorithms.wordpress.com/1686/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/healthyalgorithms.wordpress.com/1686/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/healthyalgorithms.wordpress.com/1686/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/healthyalgorithms.wordpress.com/1686/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=healthyalgorithms.com&#038;blog=4781973&#038;post=1686&#038;subd=healthyalgorithms&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://healthyalgorithms.com/2012/02/09/powells-method-for-maximization-in-pymc/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/02/capture.png" medium="image" />
	</item>
		<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&#038;blog=4781973&#038;post=1670&#038;subd=healthyalgorithms&#038;ref=&#038;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&#038;blog=4781973&#038;post=1670&#038;subd=healthyalgorithms&#038;ref=&#038;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&#038;blog=4781973&#038;post=1653&#038;subd=healthyalgorithms&#038;ref=&#038;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&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&#038;blog=4781973&#038;post=1653&#038;subd=healthyalgorithms&#038;ref=&#038;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>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/2012/01/pymc-pandas-example.png" medium="image">
			<media:title type="html">pymc-pandas-example</media:title>
		</media:content>
	</item>
	</channel>
</rss>
