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

<channel>
	<title>TheSpicyChicken</title>
	<atom:link href="http://thespicychicken.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thespicychicken.com</link>
	<description>n'th generation research</description>
	<lastBuildDate>Sun, 27 Nov 2011 19:17:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>BCSRank &#8211; Week 13</title>
		<link>http://thespicychicken.com/2011/11/27/bcsrank-week-13/</link>
		<comments>http://thespicychicken.com/2011/11/27/bcsrank-week-13/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 19:13:48 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=266</guid>
		<description><![CDATA[Week 13 was rivalry week with lots of potentially exciting games. However, there weren&#8217;t too many surprises as the favored team won in nearly all the top 25 match-ups. A quality win over Notre Dame pushed Stanford up a few notches, while OSU falls a notch on a bye week. At this point BCSRank would [...]]]></description>
			<content:encoded><![CDATA[<p>Week 13 was rivalry week with lots of potentially exciting games. However, there weren&#8217;t too many surprises as the favored team won in nearly all the top 25 match-ups.</p>
<p>A quality win over Notre Dame pushed Stanford up a few notches, while OSU falls a notch on a bye week.</p>
<p>At this point BCSRank would put LSU vs Houston in the BCS Championship game &#8212; a scenario that is incredibly unlikely. Also, while Bama sits on nearly all ranking systems at a solid #2, according the BCSRank they are down at #7. Again, I suspect there is bias against teams in good conferences and need a way to address this. I would like to do this without sacrificing the generality of the method.</p>
<pre>RANK                     TEAM LOSSES      SCORE
  1                       LSU      0      0.01554
  2                   Houston      0      0.01212
  3              Oklahoma St.      1      0.01153
  4                 Boise St.      1      0.01118
  5                  Stanford      1      0.01097
  6             Virginia Tech      1      0.01094
  7                   Alabama      1      0.01086
  8                       TCU      2      0.01059
  9                  Oklahoma      2      0.01054
 10       Southern California      2      0.01047
 11                    Oregon      2      0.01042
 12                  Michigan      2      0.01041
 13              Michigan St.      2      0.01029
 14            South Carolina      2      0.01012
 15                   Clemson      3      0.01007
 16                  Nebraska      3      0.01000
 17                 Wisconsin      2      0.00999
 18                    Baylor      3      0.00986
 19                  Arkansas      2      0.00973
 20                Kansas St.      2      0.00957
 21            Southern Miss.      2      0.00935
 22                   Georgia      2      0.00932
 23                Notre Dame      4      0.00916
 24                  Iowa St.      5      0.00901
 25              Arkansas St.      2      0.00899</pre>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2011/11/27/bcsrank-week-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BCSRank &#8211; An open source BCS ranking algorithm based on Google&#8217;s PageRank</title>
		<link>http://thespicychicken.com/2011/11/25/bcsrank-an-open-source-bcs-ranking-algorithm-based-on-googles-pagerank/</link>
		<comments>http://thespicychicken.com/2011/11/25/bcsrank-an-open-source-bcs-ranking-algorithm-based-on-googles-pagerank/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 21:18:32 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=263</guid>
		<description><![CDATA[I&#8217;ve been having a great time following the Stanford Cardinal this year. There has been quite a bit of talk about how the ranking system is flawed and the computer rankings &#8220;don&#8217;t like Stanford&#8221; and is better than their rank would indicate (currently #6). As a student of statistics/computer science and a fan of college football [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having a great time <a href="http://nickandnoah.com">following the Stanford Cardinal</a> this year. There has been quite a bit of talk about how the <a href="http://espn.go.com/college-football/story/_/id/7270999/david-shaw-stanford-cardinal-says-bcs-flawed">ranking system is flawed</a> and the computer rankings &#8220;don&#8217;t like Stanford&#8221; and is better <a href="http://espn.go.com/college-football/bcs">than their rank</a> would indicate (currently #6).</p>
<p>As a student of statistics/computer science and a fan of college football &#8212; I got pretty interested in just how these computer rankings work. <a href="http://www.bcsfootball.org/news/story?id=4765872">This pages</a> lists the different algorithms that are used, but the sites don&#8217;t really describe how the teams are ranked (probably trade secrets or something).</p>
<p>It occurred to me that Larry Page and Sergey Brin invented a this little algorithm to rank web pages on the internet based on their credibility. The idea behind their ranking algorithm is that more credible pages will have more links to them AND that links from more credible pages are worth more. Well, this is quite similar to college football. Teams that win lots of games are better teams (i.e. more credible). So instead of links between pages we have links between teams. A link is established between each team that has completed a game. The link is directional and goes from the team that lost to the team that won.</p>
<p>This is quite intuitive in that if you beat a team that loses to a lot of teams (e.g. a webpage that promiscuously links to all other pages) you are going to get less credit than if you beat a team that has never lost (e.g. a page that all other pages point to, but where it only points to you). Unless two teams play twice in a year (which typically won&#8217;t happen in the regular season) then there will at most one link between each team.</p>
<p>My implementation is far from finished and there are definitely some limitations, but I figure the internet may be able to help me improve the method so here it is.</p>
<p>As an example, lets say we have three teams (A, B, and C), we define our link matrix according the results of those teams playing each other.</p>
<pre>L = ((0, 0, 0),</pre>
<pre>     (1, 0, 0),</pre>
<pre>     (1, 1, 0))</pre>
<p>We call the matrix L for links for losses, you pick. When we try to invert this matrix according to the algorithm we cannot so to make the matrix non-singular I set the diagonal equal to 1.</p>
<pre>L = ((1, 0, 0),</pre>
<pre>     (1, 1, 0),</pre>
<pre>     (1, 1, 1))</pre>
<p>This makes the matrix invertible and we can implement the algorithm as <a href="http://en.wikipedia.org/wiki/PageRank">described on Wikipedia</a>. This means that team A has never lost, team B lost only to team A, and team C lost to both A and B.</p>
<p>The other parameter we need is the dampening factor &#8212; which for the PageRank algorithm is the probability that a random surfer goes to a random page on the internet rather than using the links. When this value is set to 1 that means the surfer always uses the links and will end up on a terminally linked page. For our football ranking this means that the value will congregate in the top one or two teams (analogous to the surfer ending up at a terminally linked page). We want to spread out the scores a bit more than that so we will set this dampening factor quite low (~0.3).</p>
<p>&nbsp;</p>
<p>So, in week 13 of the 2011 season, what does PageRank say about the way the teams should be ranked? Here are the top 25.</p>
<pre>Rank                     Team  Losses  RankScore
------------------------------------------------
  1                       LSU   0      0.01474
  2              Oklahoma St.   1      0.01192
  3                   Houston   0      0.01179
  4                   Alabama   1      0.01141
  5                 Boise St.   1      0.01094
  6             Virginia Tech   1      0.01082
  7                       TCU   2      0.01070
  8                  Stanford   1      0.01055
  9                   Clemson   2      0.01046
 10                  Oklahoma   2      0.01040
 11       Southern California   2      0.01039
 12                  Michigan   2      0.01037
 13                  Arkansas   1      0.01036
 14                    Oregon   2      0.01029
 15              Michigan St.   2      0.01009
 16                  Nebraska   3      0.01004
 17                Kansas St.   2      0.00979
 18                    Baylor   3      0.00972
 19            South Carolina   2      0.00952
 20                  Penn St.   2      0.00951
 21                 Wisconsin   2      0.00950
 22            Southern Miss.   2      0.00941
 23                Notre Dame   3      0.00937
 24                  Iowa St.   4      0.00927
 25                   Rutgers   3      0.00917</pre>
<p>&nbsp;</p>
<p>Now this is pretty good for a first pass at ranking. LSU is clearly the best team going into week 13 and indeed they do come out on top of our rankings. One interesting feature of our rankings is that Houston is right there at #3 above Alabama. This is the result of our algorithm assuming all teams are equal at the start.  It&#8217;s a little disappointing that Stanford is sitting at #8 behind a two-loss TCU, but TCU has beat &#8220;higher quality&#8221; opponents (i.e. Boise State) and that&#8217;s contributing their score.</p>
<p>Another interesting/curious ranking is Arkansas sitting very low at #13. This makes me wonder about biases against conferences that are filled with good teams (i.e. SEC West). Because a team has to play the teams in their own conference more than from other conferences this may bias against teams in good conferences. I have not figured out a way to visualize or estimate this bias yet. Once we can understand it we can invent methods for removing it.</p>
<p>If you have ideas for improving this method please feel free to comment. This may ultimately prove a futile effort and will not perform as well as those established ranking systems &#8212; but at least it&#8217;s an open solution based on some sound CS models.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2011/11/25/bcsrank-an-open-source-bcs-ranking-algorithm-based-on-googles-pagerank/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JAMA Coverage of Paroxetine + Pravastatin</title>
		<link>http://thespicychicken.com/2011/07/12/jama-coverage-of-paroxetine-pravastatin/</link>
		<comments>http://thespicychicken.com/2011/07/12/jama-coverage-of-paroxetine-pravastatin/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 22:20:12 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=256</guid>
		<description><![CDATA[JAMA just wrote a very nice article covering our recent discovery of a drug-drug interaction between paroxetine and pravastatin by Dr. Hampton. You can check it out here.]]></description>
			<content:encoded><![CDATA[<p>JAMA just wrote a very nice article covering our recent discovery of a drug-drug interaction between paroxetine and pravastatin by Dr. Hampton. You can check it out <a href="http://jama.ama-assn.org/content/306/2/144.full">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2011/07/12/jama-coverage-of-paroxetine-pravastatin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My baby&#8217;s graduating from college&#8230;</title>
		<link>http://thespicychicken.com/2011/05/25/my-babys-graduating-from-college/</link>
		<comments>http://thespicychicken.com/2011/05/25/my-babys-graduating-from-college/#comments</comments>
		<pubDate>Wed, 25 May 2011 14:21:11 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=223</guid>
		<description><![CDATA[I once was told that submitting a scientific paper is like sending your child off to college. You&#8217;ve done what you can to prepare them &#8212; you&#8217;ve tried to work out all the kinks and polish off the edges. But, ultimately, they have to go out there and stand on their own. I won&#8217;t pretend [...]]]></description>
			<content:encoded><![CDATA[<p>I once was told that submitting a scientific paper is like sending your child off to college. You&#8217;ve done what you can to prepare them &#8212; you&#8217;ve tried to work out all the kinks and polish off the edges. But, ultimately, they have to go out there and stand on their own. I won&#8217;t pretend to know what sending your grown baby away to start their life is like, but getting this paper published has been one crazy ride. And I&#8217;m very happy to report that today my paper is graduating from college and I&#8217;m so proud of the little guy. I mean, of course, that the paper has finally been accepted and is being published today. And by one of my very favorite journals, <em>Clinical Pharmacology &amp; Therapeutics!</em></p>
<p>Once I get the PMID and all that I&#8221;ll post it here for your viewing pleasure. The proofs were quite esthetically pleasing, so I expect it to make a good over-the-mantel piece.</p>
<p>[UPDATE]</p>
<p>9:10am You can view the article <a href="http://www.nature.com/clpt/journal/vaop/ncurrent/full/clpt201183a.html">here</a>.</p>
<p>9:11am And here is a <a href="http://health.usnews.com/health-news/diet-fitness/diabetes/articles/2011/05/25/combo-of-paxil-pravachol-may-raise-blood-sugar">little bit of press</a> at US News.</p>
<p>9:12am And the <a href="http://scopeblog.stanford.edu/archives/2011/05/unexpected-drug.html">Scope Blog at Stanford</a> quoted me!</p>
<p>3:29pm ABC <em>Action</em> News <a href="http://abclocal.go.com/wpvi/story?section=news/health&amp;id=8127610">report</a> and <a href="http://abclocal.go.com/wls/story?section=news/health&amp;id=8152409">another</a></p>
<p>4:02pm NPR Health Blog (Shots) wrote <a href="http://www.npr.org/blogs/health/2011/05/25/136651568/how-a-macbook-pro-found-unexpected-drug-side-effects?ps=sh_sthdl">about my MacBook Pro</a>! Read the comments, a heated debate ensues <img src='http://thespicychicken.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>4:14pm <a href="http://www.macgasm.net/2011/05/25/doctoral-candidate-macbook-pro-track-drug-interactions/">Macgasm.net</a> seems to like it, and so does the <a href="http://scopeblog.stanford.edu/archives/2011/05/macbook-pro-to-the-rescue.html">Stanford SCOPE blog</a>.</p>
<p>5:04pm My first time on NPR! Local Radio (KQED) <a href="http://www.kqed.org/a/kqednews/RN201105251704/b">coverage</a> of our study. Here is the audio:</p>
<p><object width="335" height="85" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="file=http://www.kqed.org/radio/archives/RN201105251704.xml" /><param name="src" value="http://www.kqed.org/assets/flash/kqedplayer.swf" /><embed width="335" height="85" type="application/x-shockwave-flash" src="http://www.kqed.org/assets/flash/kqedplayer.swf" flashvars="file=http://www.kqed.org/radio/archives/RN201105251704.xml" /></object></p>
<p>5:39pm A little bit of a <a href="http://www.prohealth.com/library/showarticle.cfm?libid=16286">hyperbole</a>, but I&#8217;ll take it.</p>
<p>9:39pm Someone submitted the paper to <a href="http://reddit.com/r/science">http://reddit.com/r/science</a> and it hit the front page! I took a screen shot to preserve the awesomesauce. Wow!</p>
<p>[UPDATE 5/26]</p>
<p>6:33am KQED picked up the story again, this time with a quote from Hank Greely.</p>
<p><object width="335" height="85" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="file=http://www.kqed.org/radio/archives/RN201105260633.xml" /><param name="src" value="http://www.kqed.org/assets/flash/kqedplayer.swf" /><embed width="335" height="85" type="application/x-shockwave-flash" src="http://www.kqed.org/assets/flash/kqedplayer.swf" flashvars="file=http://www.kqed.org/radio/archives/RN201105260633.xml" /></object></p>
<p>7:49am And The Stanford Daily <a href="http://www.stanforddaily.com/2011/05/26/mixing-drugs-causes-adverse-blood-glucose-effect/">covered it</a> too!</p>
<p>&nbsp;</p>
<p>[UPDATE 5/27]</p>
<p><a href="http://news.google.com/news/search?pz=1&amp;cf=all&amp;ned=us&amp;hl=en&amp;q=author:%22Chelsea+Conaboy%22&amp;scoring=n">Chelsea Conaboy</a> wrote a <a href="http://www.boston.com/news/local/massachusetts/articles/2011/05/28/study_cautions_on_combining_two_commonly_prescribed_drugs/">great article</a> covering the study at the Boston Globe.</p>
<p><a href="http://www.newscientist.com/search?rbauthors=+Peter+Aldhous">Peter Aldhous</a> also <a href="http://www.newscientist.com/article/dn20515-common-drug-combo-increases-diabetes-risk.html">describes the paper very well</a> in his article at the New Scientist.</p>
<p>May 31st, 2011</p>
<p>CNN covered the work as part of a <a href="http://www.cnn.com/2011/HEALTH/05/31/med.nation.too.many.meds/index.html?hpt=op_c1">bigger story</a>.</p>
<p>More</p>
<p><a href="http://jama.ama-assn.org/content/306/2/144.full">JAMA</a> covered it as did <a href="http://drugtopics.modernmedicine.com/drugtopics/Modern+Medicine+Now/Data-mining-uncovers-hyperglycemic-drug-drug-inter/ArticleStandard/Article/detail/735334?contextCategoryId=40159">DrugTopics</a>!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2011/05/25/my-babys-graduating-from-college/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Submitting to &#8220;The Journal&#8221;</title>
		<link>http://thespicychicken.com/2010/05/03/submitting-to-the-journal/</link>
		<comments>http://thespicychicken.com/2010/05/03/submitting-to-the-journal/#comments</comments>
		<pubDate>Mon, 03 May 2010 18:17:16 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[nejm]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=203</guid>
		<description><![CDATA[Science it stupid-fun. I mean, honestly, as a graduate student in informatics I get to sit in front of my computer all day, musing about problems, programming scripts, and testing hypotheses. It&#8217;s the greatest job in the world and every so often you hit on something really cool and get to publish a paper. Sometimes [...]]]></description>
			<content:encoded><![CDATA[<p>Science it stupid-fun. I mean, honestly, as a graduate student in informatics I get to sit in front of my computer all day, musing about problems, programming scripts, and testing hypotheses. It&#8217;s the greatest job in the world and every so often you hit on something really cool and get to publish a paper. Sometimes you figure out a new way to analyze the data or you apply an old technique to a new field. Either way, sharing your discovery is both fun and gratifying.</p>
<p>The papers you publish are the lifeblood of a scientist&#8217;s career and as a graduate student will form the basis of my PhD thesis. I&#8217;ve been lucky so far to have worked with some very talented people and publish a couple of papers in my first two years.  However, recently I stumbled upon a discovery which could get me a paper in, by most metrics, the most prestigious journal in the world, The New England Journal of Medicine. Just typing this sentence blows my mind. Anyway, because I don&#8217;t think about much else, I&#8217;m going to blog about my experience submitting a paper to NEJM and will share all the ups and downs&#8230;. cross your fingers for ups!</p>
<hr/><br/></p>
<h3>Update: April 28, 2010</h3>
<p>The goal was to submit the paper today. But right before my advisor and I were about to submit the final draft of the paper, and I realized that I left out a whole set of analyses! Doh, now I have to go back to the database to extract more patient records and analyze another set. Looks like, it won&#8217;t be today.</p>
<hr/><br/></p>
<h3>Update: April 29, 2010</h3>
<p>Okay, made a whole bunch of new figures today, modified the text where needed and sat down with my advisor again. We made some final edits (some of which we should have caught in the previous 16 iterations of the manuscript), but alas we feel great about the paper. Personally, I think it&#8217;s a work of art and couldn&#8217;t imagine it getting rejected <img src='http://thespicychicken.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .  Don&#8217;t worry, I&#8217;m not allowing my hopes to get too high.  My advisor let me submit the paper and click on all the &#8220;double-check-your-submission&#8221; links. In his words &#8220;you&#8217;re not going to be doing this that often, so you might as well click around.&#8221; It was fun and it&#8217;s amazing I even get to submit to the NEJM, really.</p>
<p>Paper status is now &#8220;Submitted&#8221; and we got a confirmation email that it will be forwarded to the editors. Time to order some flowers and wine for our collaborators!</p>
<hr/><br/></p>
<h3>Update: April 30, 2010</h3>
<p>I have been neurotically checking the author website at NEJM and today our paper was &#8220;Assigned to an Editor&#8221;, I have no idea exactly what that means, but it&#8217;s movement!</p>
<hr/><br/></p>
<h3>Update: May 2nd, 2010</h3>
<p>I went on the website today (yes, and yesterday too), not expecting any updates over the weekend, but much to my surprise the status of the paper has changed.  It looks like it made passed the editor and they are now looking for peer reviewers.  According to a close friend getting passed the editors is a big deal and a lot of papers don&#8217;t make it passed that point.  Very exciting!  &#8212; I just read on the NEJM website about the editorial process and it seems that it has been read by the Editor-in-chief and also another expert editor and has passed both of their filters.  Here&#8217;s to the reviewers liking it! [crosses-fingers]</p>
<p>Paper status is now &#8220;Searching for Reviewers.&#8221;</p>
<hr/><br/></p>
<h3>Update: May 10th, 2010</h3>
<p>It&#8217;s been one week and one day since the last update, and I was starting to think that maybe the next update would come when the reviews came back. That is not the case, however. Looks like they found some reviewers for the paper! Not sure how long they have to review the paper, probably a few weeks at least I imagine. I<del datetime="2010-05-10T17:52:55+00:00">&#8216;ll check with my PI and add that info in here.</del> Looks like its 2 to 3 weeks.</p>
<p>Paper status is now &#8220;Out for Review.&#8221;</p>
<hr/><br/></p>
<h3>Update: May 20th, 2010</h3>
<p>The reviews of the paper have been returned to the Journal, but a decision has not yet been made. The next step is for the editorial board to discuss the paper and make a decision. I&#8217;m not sure how long this process takes, but every other time the status included the word &#8220;editor&#8221; it only took a few days to get another update. Perhaps I will hear something by weeks end. YIKES! This is getting real.</p>
<p>Paper status is now &#8220;With the Editor.&#8221;</p>
<hr/><br/></p>
<h3>Update: May 25th, 2010</h3>
<p>It&#8217;s been a serious roller-coaster ride and I have had quite the experience submitting to the world&#8217;s most prestigious journal.  The reviews came back a few days ago and we just got a chance to read them today. As far as reviews for The Journal go, they are quite benevolent and really quite positive. They made some great suggestions on how to improve the paper and I have already made most of the changes they suggested (they were quite minor). Unfortunately, for us, the editors were not as favorable on us as the reviewers were and they rejected our paper today. Perhaps the paper is too bold for the New England Journal, perhaps it&#8217;s ahead of its time.  Perhaps, they just don&#8217;t like me or my parentage &#8212; I simply can&#8217;t be sure.  But, what I do know is that this is some of the best work I have ever done and there are many other Journals out there. I will get the good word out about this discovery one way or another. </p>
<p>Paper status is now &#8220;Rejected.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2010/05/03/submitting-to-the-journal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom iTerm Color Themes</title>
		<link>http://thespicychicken.com/2010/03/27/custom-iterm-color-themes/</link>
		<comments>http://thespicychicken.com/2010/03/27/custom-iterm-color-themes/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 17:09:56 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[iTerm]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=196</guid>
		<description><![CDATA[I just found this blog post on kpumuk.info here (http://kpumuk.info/mac-os-x/customizing-iterm-creating-a-display-profile-with-pastel-colors/) and it has changed my iTerm life. I used to be a Terminal.app fanboy but between TextMate&#8217;s iTerm integration and this color theme, I am a fully iTerm man now. Because this has changed my life so much, I&#8217;m going to repost the script that [...]]]></description>
			<content:encoded><![CDATA[<p>I just found this blog post on kpumuk.info here (<a href="http://kpumuk.info/mac-os-x/customizing-iterm-creating-a-display-profile-with-pastel-colors/">http://kpumuk.info/mac-os-x/customizing-iterm-creating-a-display-profile-with-pastel-colors/</a>) and it has changed my iTerm life.  I used to be a Terminal.app fanboy but between TextMate&#8217;s iTerm integration and this color theme, I am a fully iTerm man now.  Because this has changed my life so much, I&#8217;m going to repost the script that sets the default iTerm color scheme to this beautiful pastel on dark style.</p>
<p>I&#8217;m only posting this for prosterity sake, you should really go to the original blog post (link above) for more detailed information.</p>
<p>Close down iTerm and run this bash script from Terminal.  Open up iTerm and you&#8217;ll see the changes.</p>
<div class="code">
#!/bin/bash</p>
<p>PASTEL=&#8217;&#8221;Pastel&#8221; =     {<br />
    &#8220;Ansi 0 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.3097887;<br />
        &#8220;Green Component&#8221; = 0.3097887;<br />
        &#8220;Red Component&#8221; = 0.3097887;<br />
    };<br />
    &#8220;Ansi 1 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.3764706;<br />
        &#8220;Green Component&#8221; = 0.4235294;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Ansi 10 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.6727703;<br />
        &#8220;Green Component&#8221; = 1;<br />
        &#8220;Red Component&#8221; = 0.8094148;<br />
    };<br />
    &#8220;Ansi 11 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.7996491;<br />
        &#8220;Green Component&#8221; = 1;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Ansi 12 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.9982605;<br />
        &#8220;Green Component&#8221; = 0.8627756;<br />
        &#8220;Red Component&#8221; = 0.7116503;<br />
    };<br />
    &#8220;Ansi 13 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.9965209;<br />
        &#8220;Green Component&#8221; = 0.6133059;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Ansi 14 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.9970397;<br />
        &#8220;Green Component&#8221; = 0.8763103;<br />
        &#8220;Red Component&#8221; = 0.8759136;<br />
    };<br />
    &#8220;Ansi 15 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 1;<br />
        &#8220;Green Component&#8221; = 1;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Ansi 2 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.3764706;<br />
        &#8220;Green Component&#8221; = 1;<br />
        &#8220;Red Component&#8221; = 0.6588235;<br />
    };<br />
    &#8220;Ansi 3 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.7137255;<br />
        &#8220;Green Component&#8221; = 1;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Ansi 4 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.9960784;<br />
        &#8220;Green Component&#8221; = 0.7960784;<br />
        &#8220;Red Component&#8221; = 0.5882353;<br />
    };<br />
    &#8220;Ansi 5 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.9921569;<br />
        &#8220;Green Component&#8221; = 0.4509804;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Ansi 6 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.9960784;<br />
        &#8220;Green Component&#8221; = 0.772549;<br />
        &#8220;Red Component&#8221; = 0.7764706;<br />
    };<br />
    &#8220;Ansi 7 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.9335317;<br />
        &#8220;Green Component&#8221; = 0.9335317;<br />
        &#8220;Red Component&#8221; = 0.9335317;<br />
    };<br />
    &#8220;Ansi 8 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.4862745;<br />
        &#8220;Green Component&#8221; = 0.4862745;<br />
        &#8220;Red Component&#8221; = 0.4862745;<br />
    };<br />
    &#8220;Ansi 9 Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.6901961;<br />
        &#8220;Green Component&#8221; = 0.7137255;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Anti Alias&#8221; = 1;<br />
    &#8220;Background Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0;<br />
        &#8220;Green Component&#8221; = 0;<br />
        &#8220;Red Component&#8221; = 0;<br />
    };<br />
    Blur = 1;<br />
    &#8220;Bold Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.5067359;<br />
        &#8220;Green Component&#8221; = 0.5067359;<br />
        &#8220;Red Component&#8221; = 0.9909502;<br />
    };<br />
    Columns = 120;<br />
    &#8220;Cursor Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.3764706;<br />
        &#8220;Green Component&#8221; = 0.6470588;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Cursor Text Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 1;<br />
        &#8220;Green Component&#8221; = 1;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Disable Bold&#8221; = 0;<br />
    Font = &#8220;Monaco 14&#8243;;<br />
    &#8220;Foreground Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 1;<br />
        &#8220;Green Component&#8221; = 1;<br />
        &#8220;Red Component&#8221; = 1;<br />
    };<br />
    &#8220;Horizontal Character Spacing&#8221; = 1;<br />
    NAFont = &#8220;Monaco 14&#8243;;<br />
    Rows = 24;<br />
    &#8220;Selected Text Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.9476005;<br />
        &#8220;Green Component&#8221; = 0.9476005;<br />
        &#8220;Red Component&#8221; = 0.9476005;<br />
    };<br />
    &#8220;Selection Color&#8221; =         {<br />
        &#8220;Blue Component&#8221; = 0.5153061;<br />
        &#8220;Green Component&#8221; = 0.2224857;<br />
        &#8220;Red Component&#8221; = 0.2099074;<br />
    };<br />
    Transparency = 0.1;<br />
    &#8220;Vertical Character Spacing&#8221; = 1;<br />
};&#8217;</p>
<p>DISPLAYS=`defaults read net.sourceforge.iTerm Displays | sed &#8220;s/}$//&#8221;`<br />
DISPLAYS+=$PASTEL<br />
DISPLAYS+=&#8221;}&#8221;<br />
defaults write net.sourceforge.iTerm Displays &#8220;$DISPLAYS&#8221;<br />
echo &#8220;Pastel display profile added&#8221;</p>
<p>BOOKMARKS=`defaults read net.sourceforge.iTerm Bookmarks | sed &#8216;s/&#8221;Display Profile&#8221; = &#8220;[^"]*&#8221;;/&#8221;Display Profile&#8221; = &#8220;Pastel&#8221;;/&#8217;`<br />
defaults write net.sourceforge.iTerm Bookmarks &#8220;$BOOKMARKS&#8221;<br />
echo &#8220;Pastel display profile installed as default&#8221;
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2010/03/27/custom-iterm-color-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R Tip: Fitting Sigmoidal Data</title>
		<link>http://thespicychicken.com/2010/02/17/r-tip-fitting-sigmoidal-data/</link>
		<comments>http://thespicychicken.com/2010/02/17/r-tip-fitting-sigmoidal-data/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 07:12:54 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[sigmoid]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=175</guid>
		<description><![CDATA[Using R to fit a sigmoid function to experimental data.]]></description>
			<content:encoded><![CDATA[<p>
  Sigmoid functions are our friends and sometimes you have data which you would like to fit with a sigmoid function. We can use R to find such a fit.  First let us look at a sigmoid function.
</p>
<div class="code">
  y = 1 / (1 + exp( -a*x + b) )
</div>
<p>
  Now let&#8217;s say you are given a vector x and y, say:
</p>
<div class="code">
  x = c(0.00,0.02,0.04,0.06,0.08,0.10,0.12,0.14,0.16,0.18,0.20,0.24,0.26,<br/><br />
0.28,0.30,0.34,0.40,0.42,0.48,0.54,0.56,0.64,1.00)<br/><br />
  y = c(0.409742,0.319277,0.530120,0.377778,0.357143,0.608696,0.315789,<br/><br />
0.692308,0.642857,0.636364,0.750000,0.000000,0.833333,1.000000,<br/><br />
0.000000,1.000000,1.000000,1.000000,1.000000,1.000000,1.000000,<br/><br />
1.000000,1.000000)
</div>
<p>
  In this case the y values here represent probabilities and one thing you’ll notice is that we have probs of 1 and 0. Both of which are bad. So we apply a little “laplace smoothing” to them:
</p>
<div class="code">
  y[y==0] = 0.001<br/><br />
  y[y==1] = 0.999
</div>
<p>
Now let&#8217;s look at what the data looks like.
</p>
<div class="code">
plot(x, y)
</div>
<p><a href="http://thespicychicken.com/wp-content/uploads/2010/02/RTip_Sigmoid_Fig1.png"><img src="http://thespicychicken.com/wp-content/uploads/2010/02/RTip_Sigmoid_Fig1-300x279.png" alt="" title="RTip_Sigmoid_Fig1" width="300" height="279" class="alignnone size-medium wp-image-186" /></a></p>
<p>
Well, it may be sigmoidal, maybe not. For now let’s assume we think it is. Which we do for the most part.
</p>
<p>
Okay, now let’s solve for a line in our sigmoid function:
</p>
<div class="code">
y = 1 / (1 + exp( a*x + b) )<br/><br />
1 + exp( a*x + b) = 1/ y<br/><br />
a*x + b = log ( (1/ y) &#8211; 1 )<br/>
</div>
<p>
Now the left hand side of the equation is a line and the right hand side is some logarithm of the y data. We can plot x versus this right hand side:
</p>
<div class="code">
new_y = log( 1 / y &#8211; 1 )<br/><br />
plot(x, new_y)
</div>
<p><a href="http://thespicychicken.com/wp-content/uploads/2010/02/RTip_Sigmoid_Fig2.png"><img src="http://thespicychicken.com/wp-content/uploads/2010/02/RTip_Sigmoid_Fig2-300x272.png" alt="" title="RTip_Sigmoid_Fig2" width="300" height="272" class="alignnone size-medium wp-image-187" /></a></p>
<p>
Looks pretty interesting and hopefully at this point it also looks kinda linear, which it kinda does.
</p>
<p>
Now let’s fit it with a line:
</p>
<div class="code">
lm.res <- lm( new_y ~ x )<br/><br />
lm.res
</div>
<p>Which produces this output:</p>
<div class="code">
Coefficients:<br/><br />
(Intercept)            x<br/><br />
1.122      -11.647<br/>
</div>
<p>We can also test the significance of the fit with an ANOVA.</p>
<div class="code">
anova(lm.res)
</div>
<p>Which produces this output:</p>
<div class="code">
Analysis of Variance Table<br/><br />
Response: new_y<br/><br />
Df Sum Sq Mean Sq F value    Pr(>F)<br/><br />
x          1 172.80 172.802  14.641 0.0009834 ***<br/>
</div>
<p>
And we can plot the resulting fit in linear space:
</p>
<p><a href="http://thespicychicken.com/wp-content/uploads/2010/02/RTip_Sigmoid_Fig3.png"><img src="http://thespicychicken.com/wp-content/uploads/2010/02/RTip_Sigmoid_Fig3-300x276.png" alt="" title="RTip_Sigmoid_Fig3" width="300" height="276" class="alignnone size-medium wp-image-188" /></a></p>
<p>
Now let’s see how our fit looks back in normal space using our formula with our derived a and b values.
</p>
<div class="code">
a = -11.647<br/><br />
b = 1.122<br/><br />
plot(x, y)<br/><br />
sim_x = (1:101-1)/100<br/><br />
points(sim_x, 1/(1+exp(a*sim_x+b)), type=&#8221;l&#8221;)<br/>
</div>
<p><a href="http://thespicychicken.com/wp-content/uploads/2010/02/RTip_Sigmoid_Fig4.png"><img src="http://thespicychicken.com/wp-content/uploads/2010/02/RTip_Sigmoid_Fig4-300x271.png" alt="" title="RTip_Sigmoid_Fig4" width="300" height="271" class="alignnone size-medium wp-image-189" /></a></p>
<p>
Voila! We have fit a sigmoid function to our data.</p>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2010/02/17/r-tip-fitting-sigmoidal-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snow Leopard Super FAIL</title>
		<link>http://thespicychicken.com/2009/08/29/snow-leopard-super-fail/</link>
		<comments>http://thespicychicken.com/2009/08/29/snow-leopard-super-fail/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 17:52:55 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/2009/08/29/snow-leopard-super-fail/</guid>
		<description><![CDATA[Just got snow leopard in the mail and was so excited to install. Then got on Twitter to see what my friends were up to: http://twitter.com/caddymob I think I&#8217;m waiting now. UPDATE: Jason posted details describing his troubles and how he worked around it here: http://corneveaux.com/blog/installing-snow-leopard-a-big-fail-and-a-work-around]]></description>
			<content:encoded><![CDATA[<p>Just got snow leopard in the mail and was so excited to install.  Then got on Twitter to see what my friends were up to:</p>
<p><a title="Snow Leopard FAIL" href="http://twitter.com/caddymob">http://twitter.com/caddymob</a></p>
<p>I think I&#8217;m waiting now.</p>
<p>UPDATE:<br />
Jason posted details describing his troubles and how he worked around it here:<br />
<a href="http://corneveaux.com/blog/installing-snow-leopard-a-big-fail-and-a-work-around">http://corneveaux.com/blog/installing-snow-leopard-a-big-fail-and-a-work-around</a></p>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2009/08/29/snow-leopard-super-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Earmarks and the house that approves them&#8230;</title>
		<link>http://thespicychicken.com/2009/08/23/earmarks-and-the-house-that-approves-them/</link>
		<comments>http://thespicychicken.com/2009/08/23/earmarks-and-the-house-that-approves-them/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 20:12:17 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=143</guid>
		<description><![CDATA[Just found a new data set that I couldn&#8217;t help running some stats on.  OpenSecrets.org published this table which lists all of the members of the house, the number of earmarks they requested, and the total dollar amounts. The columns of the data are: Representative Name State Number of Earmarks Total Cost Solo Earmarks Solo [...]]]></description>
			<content:encoded><![CDATA[<p>Just found a new data set that I couldn&#8217;t help running some stats on.  OpenSecrets.org published <a href="http://www.opensecrets.org/bigpicture/earmarks.php?cycle=2008">this table</a> which lists all of the members of the house, the number of earmarks they requested, and the total dollar amounts.</p>
<p>The columns of the data are:</p>
<ul>
<li>Representative Name</li>
<li>State</li>
<li>Number of Earmarks</li>
<li>Total Cost</li>
<li>Solo Earmarks</li>
<li>Solo Cost</li>
</ul>
<p>The solo columns are for earmarks where that representative was the only representative who requested the earmark.</p>
<p><strong>Republicans vs. Democrats</strong></p>
<p>The first obvious division is to split the data on party lines and see if their behavior is any different.</p>
<table border="0">
<tbody>
<tr>
<th>Column</th>
<th>Mean Democrats</th>
<th>Mean Republicans</th>
<th>P-value</th>
<th>Histogram</th>
</tr>
<tr>
<td>Total Earmarks</td>
<td>26.8</td>
<td>22.3</td>
<td><strong>3.26E-4</strong></td>
<td><a href="http://thespicychicken.com/wp-content/uploads/2009/08/TotalEarmarksHist.png"><img class="alignnone" src="http://thespicychicken.com/wp-content/uploads/2009/08/TotalEarmarksHist.png" alt="" width="100" height="100" /></a></td>
</tr>
<tr>
<td>Total Cost</td>
<td>$37,402,953</td>
<td>$30,683,681</td>
<td><strong>0.02873</strong></td>
<td><a href="http://thespicychicken.com/wp-content/uploads/2009/08/TotalEarmarksCostHist.png"><img style="border: 0px initial initial;" src="http://thespicychicken.com/wp-content/uploads/2009/08/TotalEarmarksCostHist.png" alt="" width="100" height="100" /></a></td>
</tr>
<tr>
<td>Solo Earmarks</td>
<td>10.3</td>
<td>9.2</td>
<td>0.0925</td>
<td><a href="http://thespicychicken.com/wp-content/uploads/2009/08/SoloEarmarksHist.png"><img style="border: 0px initial initial;" src="http://thespicychicken.com/wp-content/uploads/2009/08/SoloEarmarksHist.png" alt="" width="100" height="100" /></a></td>
</tr>
<tr>
<td>Solo Cost</td>
<td>$7,606,210</td>
<td>$7,746,574</td>
<td>0.7782</td>
<td><a href="http://thespicychicken.com/wp-content/uploads/2009/08/SoloEarmarksCostHist.png"><img style="border: 0px initial initial;" src="http://thespicychicken.com/wp-content/uploads/2009/08/SoloEarmarksCostHist.png" alt="" width="100" height="100" /></a></td>
</tr>
</tbody>
</table>
<p>Red: Republicans, Blue: Democrats.  Significant p-values are in bold.</p>
<p><strong>Table 1.</strong> The above table shows that the average number of earmarks that are approved is significantly higher for democrats than for republicans and also that democrats get significantly more money for their earmarks than republicans do.  Please note that when I say &#8220;significantly&#8221; I mean it in a statistical sense.  The p-values (or the probability that the difference between democrats and republicans is purely by chance) for the first two rows of the table are signifiant ( less than 0.05).  You can interpret this as having a less than 5% chance of this occurring completely by chance.  However, when looking at solo earmarks there is not a significant difference in the number of earmarks granted or their cost.</p>
<p><strong>For the Statisticians:</strong> To calculate the p-value I used the wilcoxon rank sum test as the distributions are not normally distributed.</p>
<p>However, I feel obligated to point out that because the house has a majority of democrats (237 to 163) it may be easier for democrats to get their earmarks passed, thus there are more for democrats.  For comparison, data from when the GOP has control of the house is required.</p>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2009/08/23/earmarks-and-the-house-that-approves-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Science Jobs&#8230; and the people that are looking for them.</title>
		<link>http://thespicychicken.com/2009/07/29/science-jobs-and-the-people-that-are-looking-for-them/</link>
		<comments>http://thespicychicken.com/2009/07/29/science-jobs-and-the-people-that-are-looking-for-them/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 16:47:16 +0000</pubDate>
		<dc:creator>Spicy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://thespicychicken.com/?p=140</guid>
		<description><![CDATA[A few friends of mine have started a new Science Jobs blog were they muse about what it&#8217;s like to look for and work in science related jobs in this economic climate.  Check it out at SearchScienceJobs.com]]></description>
			<content:encoded><![CDATA[<p>A few friends of mine have started a new Science Jobs blog were they muse about what it&#8217;s like to look for and work in science related jobs in this economic climate.  Check it out at <a href="http://searchsciencejobs.com">SearchScienceJobs.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://thespicychicken.com/2009/07/29/science-jobs-and-the-people-that-are-looking-for-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

