<?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>danvk.org &#187; politics</title>
	<atom:link href="http://www.danvk.org/wp/category/politics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danvk.org/wp</link>
	<description>Keepin' static like wool fabric since 2006</description>
	<lastBuildDate>Tue, 29 Jun 2010 01:45:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Milk and Moscone Online</title>
		<link>http://www.danvk.org/wp/2008-11-27/milk-and-moscone-online/</link>
		<comments>http://www.danvk.org/wp/2008-11-27/milk-and-moscone-online/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 18:57:32 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/?p=349</guid>
		<description><![CDATA[Today is the 30th anniversary of the Moscone-Milk assassinations and, fueled by the upcoming release of the movie Milk, they&#8217;ve been all over the local airways. For those not familiar with the basic story (I wasn&#8217;t before I moved to SF), City Supervisor Dan White quit his job, then asked to be reinstated. When Mayor [...]]]></description>
			<content:encoded><![CDATA[<p>Today is the 30th anniversary of the <a href="http://en.wikipedia.org/wiki/Moscone%E2%80%93Milk_assassinations">Moscone-Milk assassinations</a> and, fueled by the upcoming release of the movie <i><a href="http://www.imdb.com/title/tt1013753/">Milk</a></i>, they&#8217;ve been all over the local airways.</p>
<p>For those not familiar with the basic story (I wasn&#8217;t before I moved to SF), City Supervisor <a href="http://en.wikipedia.org/wiki/Dan_White">Dan White</a> quit his job, then asked to be reinstated. When Mayor <a href="http://en.wikipedia.org/wiki/George_Moscone">George Moscone</a> refused, White returned to city hall with a gun and murdered Moscone and Supervisor <a href="http://en.wikipedia.org/wiki/Harvey_Milk">Harvey Milk</a>, who happened also be the first openly-gay elected official in the country. Another Supervisor, now-Senator <a href="http://en.wikipedia.org/wiki/Dianne_Feinstein">Dianne Feinstein</a> became mayor as a result of these killings.</p>
<p><a href="http://video.aol.com/video-detail/harvey-milk-mayor-moscone-killed-in-city-hall/2456431092"><img src="http://www.danvk.org/wp/wp-content/uploads/2008/11/feinstein.png" alt="Dianne Feinstein announcing the deaths of Moscone and Milk" title="Dianne Feinstein announcing the deaths of Moscone and Milk" width="436" height="323" class="size-full wp-image-352" /></a></p>
<p>An NPR show yesterday included a clip of Feinstein giving a dramatic press conference announcing the deaths. Much to my surprise, an original copy of <a href="http://video.aol.com/video-detail/harvey-milk-mayor-moscone-killed-in-city-hall/2456431092">that night&#8217;s newcast</a> has found its way online.</p>
<p>The Feinstein press conference is at 2:10. Listen to the gasps. The 70&#8242;s production is jarring to look at now though, except for the cars, the shots of San Francisco could have been taken yesterday.</p>
<p>I couldn&#8217;t figure out whether this is an isolated clip or part of a larger collection. How cool would it be if all of NBC&#8217;s old newscasts were online?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2008-11-27/milk-and-moscone-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presidents and the Market</title>
		<link>http://www.danvk.org/wp/2008-11-14/presidents-and-the-market/</link>
		<comments>http://www.danvk.org/wp/2008-11-14/presidents-and-the-market/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 02:35:30 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/?p=341</guid>
		<description><![CDATA[Here&#8217;s a list of presidents and the changes in the S&#038;P 500 during their term. Since I don&#8217;t know the future of the markets, I put today&#8217;s close in for our current president. Not to suggest that presidents have any impact on the stock market&#8230; #presmarket td { text-align: right; } President End Date Close [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a list of presidents and the changes in the S&#038;P 500 during their term. Since I don&#8217;t know the future of the markets, I put today&#8217;s close in for our current president.</p>
<p>Not to suggest that presidents have any impact on the stock market&#8230;</p>
<style>
#presmarket td { text-align: right; }
</style>
<table id=presmarket cellpadding=3 class="thin sortable draggable">
<tr>
<th>President    </th>
<th>End Date   </th>
<th>Close    </th>
<th>Change   </th>
<th>% Change  </th>
<th>Annual  </th>
</tr>
<tr>
<td style="text-align:left;">G.W. Bush    </td>
<td style="text-align:left;">14-Nov-08  </td>
<td>$873.29   </td>
<td>-$469.25  </td>
<td>-34.95%   </td>
<td>-5.35%  </td>
</tr>
<tr>
<td style="text-align:left;">Clinton      </td>
<td style="text-align:left;">20-Jan-01  </td>
<td>$1342.54  </td>
<td>$909.17   </td>
<td>209.79%   </td>
<td>15.18%  </td>
</tr>
<tr>
<td style="text-align:left;">G.H.W. Bush  </td>
<td style="text-align:left;">20-Jan-93  </td>
<td>$433.37   </td>
<td>$146.74   </td>
<td>51.19%    </td>
<td>10.89%  </td>
</tr>
<tr>
<td style="text-align:left;">Reagan       </td>
<td style="text-align:left;">20-Jan-89  </td>
<td>$286.63   </td>
<td>$154.98   </td>
<td>117.72%   </td>
<td>10.21%  </td>
</tr>
<tr>
<td style="text-align:left;">Carter       </td>
<td style="text-align:left;">20-Jan-81  </td>
<td>$131.65   </td>
<td>$28.68    </td>
<td>27.85%    </td>
<td>6.34%   </td>
</tr>
<tr>
<td style="text-align:left;">Ford         </td>
<td style="text-align:left;">20-Jan-77  </td>
<td>$102.97   </td>
<td>$22.11    </td>
<td>27.34%    </td>
<td>10.37%  </td>
</tr>
<tr>
<td style="text-align:left;">Nixon        </td>
<td style="text-align:left;">9-Aug-74   </td>
<td>$80.86    </td>
<td>-$20.83   </td>
<td>-20.48%   </td>
<td>-4.05%  </td>
</tr>
<tr>
<td style="text-align:left;">Johnson      </td>
<td style="text-align:left;">20-Jan-69  </td>
<td>$101.69   </td>
<td>$32.08    </td>
<td>46.09%    </td>
<td>7.62%   </td>
</tr>
<tr>
<td style="text-align:left;">JFK          </td>
<td style="text-align:left;">22-Nov-63  </td>
<td>$69.61    </td>
<td>$9.65     </td>
<td>16.09%    </td>
<td>5.40%   </td>
</tr>
<tr>
<td style="text-align:left;">Eisenhower   </td>
<td style="text-align:left;">20-Jan-61  </td>
<td>$59.96    </td>
<td>$33.82    </td>
<td>129.38%   </td>
<td>10.94%  </td>
</tr>
</table>
<p><script type=text/javascript src="/dragtable/sorttable.js"></script><br />
<script type=text/javascript src="/dragtable/dragtable.js"></script></p>
<style type=text/css>
  /* Sortable tables */
  table.sortable thead {
    background-color:#eee;
    color:#666666;
    font-weight: bold;
    cursor: default;
  }
  table.thin, table.thin td, table.thin tr, table.thin th {
    border: thin solid black;
    border-collapse: collapse;
  }
</style>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2008-11-14/presidents-and-the-market/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The 2008 Tipping Point State</title>
		<link>http://www.danvk.org/wp/2008-11-07/the-2008-tipping-point-state/</link>
		<comments>http://www.danvk.org/wp/2008-11-07/the-2008-tipping-point-state/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 03:26:03 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/?p=337</guid>
		<description><![CDATA[One of the least understood features of Nate Silver&#8217;s fivethirtyeight.com was his list of &#8220;tipping point states&#8221;. I thought that, for each simulation of the election, Nate sorted the states by margin of victory for the overall winner. Then he&#8217;d start adding up electoral votes. The state that tipped the winner over 270 would be [...]]]></description>
			<content:encoded><![CDATA[<p>One of the least understood features of Nate Silver&#8217;s <a href="http://fivethirtyeight.com/">fivethirtyeight.com</a> was his list of &#8220;tipping point states&#8221;.</p>
<p>I <i>thought</i> that, for each simulation of the election, Nate sorted the states by margin of victory for the overall winner. Then he&#8217;d start adding up electoral votes. The state that tipped the winner over 270 would be the &#8220;tipping point state&#8221; for that simulation.</p>
<p>While writing this blog post, I discovered that I had <i>completely</i> misunderstood this list! Nate describes the actual calculation of his list in <a href="http://www.fivethirtyeight.com/2008/07/tipping-point-v20.html">this post</a>. It&#8217;s quite involved, but better captures the intuition of a &#8220;tipping point state&#8221;.</p>
<p>Just for fun, I figured out what the 2008 Election&#8217;s tipping point state was using the methodology I&#8217;d originally thought Nate did. And it was&#8230; <b>Colorado</b>! Obama took Colorado with 54.40% of the vote, the 23rd most lopsided total. It takes him from 262 to 271 Electoral Votes.</p>
<p>Full list of states, margins of victory and electoral votes below the fold.</p>
<p><span id="more-337"></span></p>
<table class="sortable draggable thin">
<tr>
<th>State</th>
<th>% Obama</th>
<th>Total EV</th>
</tr>
<tr>
<td>D.C. </td>
<td align=right>93.42%</td>
<td align=right>3</td>
</tr>
<tr>
<td>Hawaii </td>
<td align=right>72.93%</td>
<td align=right>7</td>
</tr>
<tr>
<td>Vermont </td>
<td align=right>67.89%</td>
<td align=right>10</td>
</tr>
<tr>
<td>Rhode Island </td>
<td align=right>64.13%</td>
<td align=right>14</td>
</tr>
<tr>
<td>Massachusetts </td>
<td align=right>63.13%</td>
<td align=right>26</td>
</tr>
<tr>
<td>New York </td>
<td align=right>62.87%</td>
<td align=right>57</td>
</tr>
<tr>
<td>Illinois </td>
<td align=right>62.37%</td>
<td align=right>78</td>
</tr>
<tr>
<td>Maryland </td>
<td align=right>62.22%</td>
<td align=right>88</td>
</tr>
<tr>
<td>California </td>
<td align=right>62.21%</td>
<td align=right>143</td>
</tr>
<tr>
<td>Delaware </td>
<td align=right>61.99%</td>
<td align=right>146</td>
</tr>
<tr>
<td>Washington </td>
<td align=right>58.84%</td>
<td align=right>157</td>
</tr>
<tr>
<td>Maine </td>
<td align=right>58.73%</td>
<td align=right>161</td>
</tr>
<tr>
<td>Michigan </td>
<td align=right>58.38%</td>
<td align=right>178</td>
</tr>
<tr>
<td>New Mexico </td>
<td align=right>57.61%</td>
<td align=right>183</td>
</tr>
<tr>
<td>New Jersey </td>
<td align=right>57.37%</td>
<td align=right>198</td>
</tr>
<tr>
<td>Wisconsin </td>
<td align=right>57.04%</td>
<td align=right>208</td>
</tr>
<tr>
<td>Oregon </td>
<td align=right>56.66%</td>
<td align=right>215</td>
</tr>
<tr>
<td>Nevada </td>
<td align=right>56.35%</td>
<td align=right>220</td>
</tr>
<tr>
<td>Pennsylvania </td>
<td align=right>55.24%</td>
<td align=right>241</td>
</tr>
<tr>
<td>Minnesota </td>
<td align=right>55.22%</td>
<td align=right>251</td>
</tr>
<tr>
<td>New Hampshire </td>
<td align=right>54.82%</td>
<td align=right>255</td>
</tr>
<tr>
<td>Iowa </td>
<td align=right>54.70%</td>
<td align=right>262</td>
</tr>
<tr style='background-color:yellow;'>
<td>Colorado </td>
<td align=right>54.40%</td>
<td align=right>271</td>
</tr>
<tr>
<td>Connecticut </td>
<td align=right>53.44%</td>
<td align=right>278</td>
</tr>
<tr>
<td>Virginia </td>
<td align=right>52.26%</td>
<td align=right>291</td>
</tr>
<tr>
<td>Ohio </td>
<td align=right>51.98%</td>
<td align=right>311</td>
</tr>
<tr>
<td>Florida </td>
<td align=right>51.27%</td>
<td align=right>338</td>
</tr>
<tr>
<td>Indiana </td>
<td align=right>50.48%</td>
<td align=right>349</td>
</tr>
<tr>
<td>Nebraska 2nd</td>
<td align=right>50.24%</td>
<td align=right>350</td>
</tr>
<tr>
<td>North Carolina </td>
<td align=right>50.17%</td>
<td align=right>365</td>
</tr>
<tr>
<td>Missouri</td>
<td align=right>49.90%</td>
<td align=right>376</td>
</tr>
<tr>
<td>Montana </td>
<td align=right>48.24%</td>
<td align=right>379</td>
</tr>
<tr>
<td>Georgia </td>
<td align=right>47.25%</td>
<td align=right>394</td>
</tr>
<tr>
<td>South Dakota </td>
<td align=right>45.70%</td>
<td align=right>397</td>
</tr>
<tr>
<td>Arizona </td>
<td align=right>45.64%</td>
<td align=right>407</td>
</tr>
<tr>
<td>North Dakota </td>
<td align=right>45.57%</td>
<td align=right>410</td>
</tr>
<tr>
<td>South Carolina </td>
<td align=right>45.47%</td>
<td align=right>418</td>
</tr>
<tr>
<td>Nebraska 1st</td>
<td align=right>44.80%</td>
<td align=right>419</td>
</tr>
<tr>
<td>Texas </td>
<td align=right>44.08%</td>
<td align=right>453</td>
</tr>
<tr>
<td>West Virginia </td>
<td align=right>43.33%</td>
<td align=right>458</td>
</tr>
<tr>
<td>Mississippi </td>
<td align=right>43.07%</td>
<td align=right>464</td>
</tr>
<tr>
<td>Kentucky </td>
<td align=right>42.37%</td>
<td align=right>472</td>
</tr>
<tr>
<td>Tennessee </td>
<td align=right>42.36%</td>
<td align=right>483</td>
</tr>
<tr>
<td>Kansas </td>
<td align=right>42.17%</td>
<td align=right>489</td>
</tr>
<tr>
<td>Nebraska</td>
<td align=right>41.83%</td>
<td align=right>491</td>
</tr>
<tr>
<td>Louisiana </td>
<td align=right>40.50%</td>
<td align=right>500</td>
</tr>
<tr>
<td>Arkansas </td>
<td align=right>39.78%</td>
<td align=right>506</td>
</tr>
<tr>
<td>Alabama </td>
<td align=right>39.10%</td>
<td align=right>515</td>
</tr>
<tr>
<td>Alaska </td>
<td align=right>37.08%</td>
<td align=right>518</td>
</tr>
<tr>
<td>Idaho </td>
<td align=right>36.86%</td>
<td align=right>522</td>
</tr>
<tr>
<td>Utah </td>
<td align=right>35.20%</td>
<td align=right>527</td>
</tr>
<tr>
<td>Oklahoma </td>
<td align=right>34.36%</td>
<td align=right>534</td>
</tr>
<tr>
<td>Wyoming </td>
<td align=right>33.38%</td>
<td align=right>537</td>
</tr>
<tr>
<td>Nebraska 3rd</td>
<td align=right>30.06%</td>
<td align=right>538</td>
</tr>
</table>
<p><script type=text/javascript src="/dragtable/sorttable.js"></script><br />
<script type=text/javascript src="/dragtable/dragtable.js"></script></p>
<style type=text/css>
  /* Sortable tables */
  table.sortable thead {
    background-color:#eee;
    color:#666666;
    font-weight: bold;
    cursor: default;
  }
  table.thin, table.thin td, table.thin tr, table.thin th {
    border: thin solid black;
    border-collapse: collapse;
  }
</style>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2008-11-07/the-2008-tipping-point-state/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FRONTLINE&#8217;s The Choice, 2008</title>
		<link>http://www.danvk.org/wp/2008-10-21/frontlines-the-choice-2008/</link>
		<comments>http://www.danvk.org/wp/2008-10-21/frontlines-the-choice-2008/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 16:18:17 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[politics]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/?p=334</guid>
		<description><![CDATA[I wrote a few months back about my mixed reactions to this season&#8217;s episodes of FRONTLINE. The latest is their quadrennial biography of the two presidential candidates, The Choice 2008 (also free on iTunes). It&#8217;s well worth watching. The first half of the show, which covers McCain and Obama&#8217;s early lives, is the more interesting, [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a few months back about my <a href="/wp/2008-02-27/pbs-frontline/">mixed reactions</a> to this season&#8217;s episodes of FRONTLINE. The latest is their quadrennial biography of the two presidential candidates, <a href="http://www.pbs.org/wgbh/pages/frontline/choice2008/view/">The Choice 2008</a> (also free on <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?i=293718658&#038;id=292668388&#038;s=143441">iTunes</a>). It&#8217;s well worth watching.</p>
<p>The first half of the show, which covers McCain and Obama&#8217;s early lives, is the more interesting, or at least less familiar. Frontline did a great job of digging up old videos. There&#8217;s a recording of McCain in the POW camp. There&#8217;s a recording of Obama giving a speech at Harvard Law in 1990. He looks different, but the cadence of his speech is eerily familiar. It&#8217;s also interesting to see speeches that McCain gave in the past. He&#8217;s noticeably more relaxed than he has been in the debates. A particular standout is his exchange with John Stewart in 2006.</p>
<p>My main problem with the episode was its lack of depth. This was more of a problem with the latter half, where I could see the gaps in their coverage of stories with which I was already familiar. The biggest questions they asked but left unresolved related to <a href="http://en.wikipedia.org/wiki/Reverend_Wright">Reverend Wright</a>. They said it was shocking that the Clinton campaign didn&#8217;t use him against Obama until after Super Tuesday, but never offered an explanation of why. I&#8217;ve often wondered this as well. If the Reverend Wright controversy had struck before Obama was ahead in delegates, Hillary might well be the nominee.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2008-10-21/frontlines-the-choice-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Read Polls</title>
		<link>http://www.danvk.org/wp/2008-09-25/how-to-read-polls/</link>
		<comments>http://www.danvk.org/wp/2008-09-25/how-to-read-polls/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 22:45:29 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[math]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/?p=302</guid>
		<description><![CDATA[On September 15, SurveyUSA released this poll of likely voters in Virginia: McCain (R) 46% Obama (D)&#160; 50% Margin of Error: +/-3.7% Tables like this appear on TV and in newspapers all the time. But they&#8217;re never accompanied by any explanation of how to interpret the margin of error. Commentators usually interpret it in one [...]]]></description>
			<content:encoded><![CDATA[<p>On September 15, SurveyUSA released <a href="http://www.pollster.com/blogs/va_obama_50_mccain_46_surveyus.php">this poll</a> of likely voters in Virginia:</p>
<blockquote style="font-family: Monospace; font-size: 10pt;"><p>
McCain (R) 46%<br />
Obama (D)&nbsp; 50%<br />
Margin of Error: +/-3.7%
</p></blockquote>
<p>Tables like this appear on TV and in newspapers all the time. But they&#8217;re never accompanied by any explanation of how to interpret the margin of error. Commentators usually interpret it in one of two ways:</p>
<ol>
<li>Obama is ahead by more than the margin of error, hence his lead is statistically significant.</li>
<li>That &#8220;+/-&#8221; means either number could be off by that amount. If you added 3.7% to McCain&#8217;s 46% and subtracted 3.7% from Obama&#8217;s 50%, McCain would actually be ahead. So Obama&#8217;s lead is not statistically significant; it is less than twice the margin of error.</li>
</ol>
<p>In either case, they are wrong.</p>
<p>So what&#8217;s the <i>right</i> way to interpret the margin of error? <b>A lead is significant if it is 1.6 times the margin of error or greater</b>. That&#8217;s 5.9% for our poll, so Obama&#8217;s lead is not significant.</p>
<p>This is a strange, non-intuitive rule, which explains why commentators don&#8217;t use it. The derivation is more revealing than the rule itself.<br />
<span id="more-302"></span></p>
<p>Obama&#8217;s lead is &#8220;statistically significant&#8221; if there&#8217;s a 95% probability that Obama is <i>actually</i> ahead. The &#8220;95%&#8221; is completely arbitrary, but the probability</p>
<blockquote><p>
P(Obama ahead)
</p></blockquote>
<p>is quite interesting. I wish news organizations would report this probability instead of the margin of error. It&#8217;s easier to interpret the statement &#8220;There&#8217;s an 86.5% chance that Obama is ahead&#8221; than a statement about margins of error.</p>
<p>These margins of error, incidentally, are just one over the square root of the sample size. For the poll described above, there were 732 voters surveyed. The square root of 732 is 27 and one over that is .03696 or 3.7%. The reported margin of error is <i>not</i> a <a href="http://en.wikipedia.org/wiki/Standard_deviation">standard deviation</a>.</p>
<p>The probability that Obama is ahead can be determined using <a href="http://en.wikipedia.org/wiki/Bayes'_Rule">Bayes' Rule</a>, which quantifies the effect of evidence on our belief in a hypothesis. It relates a Hypothesis (H) and an Observation (O):</p>
<blockquote><p>
<b>H</b> = Obama is ahead of McCain.<br />
<b>O</b> = In a poll of 732 likely voters, 50% preferred Obama and 46% preferred McCain.
</p></blockquote>
<p>Here it is:</p>
<blockquote><p>
<b>Bayes&#8217; Rule:</b>  P(H|O) = P(O|H)/P(O) * P(H)
</p></blockquote>
<p>This rule is important enough that each of these quantities has a name:</p>
<ul>
<li><b>P(H)</b> is the <a href="http://en.wikipedia.org/wiki/Prior_probability">prior probability</a>, our belief that the hypothesis is true before seeing additional evidence.</li>
<li><b>P(O|H)</b> is the <a href="http://en.wikipedia.org/wiki/Likelihood_function">likelihood function</a>, the probability of seeing the evidence if the hypothesis were true.</li>
<li><b>P(O)</b> is the <a href="http://en.wikipedia.org/wiki/Marginal_probablity">marginal probablity</a>, the probablity of seeing the evidence at all. It&#8217;s often thought of as a normalizing term.</li>
<li><b>P(H|O)</b> is the <a href="http://en.wikipedia.org/wiki/Posterior_probability">posterior probability</a>. It&#8217;s what we&#8217;re really after, the likelihood of the hypothesis in light of new evidence.</li>
</ul>
<p>Let&#8217;s start with the likelihood function, <i>P(O|H)</i>. What are the odds of seeing this survey is a certain portion <i>p</i> of voters prefer Obama? It follows from the <a href="http://en.wikipedia.org/wiki/Binomial_formula">binomial formula</a>:</p>
<blockquote><p>
<b>pO</b> = portion of voters preferring Obama<br />
<b>pM</b> = portion of voters preferring McCain<br />
<b>a</b> = pO * N (number of voters who prefer Obama)<br />
<b>b</b> = pM * N (number of voters who prefer McCain)<br />
<b>N</b> = a + b (total <i>decided</i> voters)<br />
<b>P(O|H)</b> = B(a, b) = N! / (a! b!) * pO^a (1-pO)^b
</p></blockquote>
<p><img src="http://www.danvk.org/wp/wp-content/uploads/2008/09/binomial.png" alt="" title="binomial distribution" /></p>
<p>This is a <a href="http://en.wikipedia.org/wiki/Binomial_distribution">binomial distribution</a> over pO. Notice that we&#8217;re only considering the two-way vote here, the 96% of the electorate that prefers either McCain or Obama.</p>
<p>To aid in the application of Bayes&#8217; Rule, statisticians have developed the notion of a <a href="http://en.wikipedia.org/wiki/Conjugate_prior">conjugate prior</a>. The conjugate prior for the binomial distribution is the <a href="http://en.wikipedia.org/wiki/Beta_distribution">beta distribution</a>. This means that, if our likelihood function is a binomial distribution, we can choose a beta distribution for our prior probability and get another beta distribution for the posterior probability.</p>
<p>In this case, it&#8217;s simplest to assume a <a href="http://en.wikipedia.org/wiki/Uniform_distribution">uniform distribution</a> for Obama&#8217;s portion of the vote. In other words, it&#8217;s equally probable that he&#8217;ll get 1% of the vote as it is that he&#8217;ll get 50% or 99% of it. Mathematically, if pO is the portion of voters who prefer Obama, then</p>
<blockquote><p>
<i>pO</i> ~ U(0, 1) = B(1, 1)
</p></blockquote>
<p><img src="http://www.danvk.org/wp/wp-content/uploads/2008/09/uniform.png" alt="" title="uniform distribution" /></p>
<p>Bayes&#8217; rule then gives the following distribution for pO after observing the poll:</p>
<blockquote><p>
<i>pO&#8217;</i> ~ B(a + 1, b + 1) = B(pO * N + 1, pM * N + 1)
</p></blockquote>
<p><img src="http://www.danvk.org/wp/wp-content/uploads/2008/09/beta.png" alt="" title="beta distribution" /></p>
<p>This is concentrated in a small region (note the x-axis) around 50 / (50 + 46) = 52.1%, Obama&#8217;s fraction of the two-way vote. The probability that Obama is ahead is the portion of mass to the right of pO&#8217; = 50%:</p>
<p><img src="http://www.danvk.org/wp/wp-content/uploads/2008/09/beta-labeled.png" alt="" title="filled-in beta distribution" /></p>
<p>This fraction is calculated numerically using an integral. It&#8217;s an important enough quantity to have a name, but not important enough to have a short, catchy name. It&#8217;s the <a href="http://en.wikipedia.org/wiki/Regularized_incomplete_beta_function">regularized incomplete beta function</a>,</p>
<blockquote><p>
P(Obama ahead) = I<sub>0.5</sub>(b, a) = I<sub>0.5</sub>(732 * 0.46, 732 * 0.50)
</p></blockquote>
<p>It can be calculated using a program like <a href="http://www.wolfram.com/">Mathematica</a> or <a href="http://www.gnu.org/software/octave/">Octave</a>, or by using an <a href="http://www.danielsoper.com/statcalc/calc37.aspx">online calculator</a>.</p>
<p>Another way of formulating this is to ask, &#8220;what is the fraction &Delta; by which a candidate must lead in a poll to have a 95% chance of really being ahead?&#8221; For a small sample, &Delta; will be large. For a large sample it will be small.</p>
<p>In a survey of N voters, a candidate with a lead of &Delta; can claim his chance of leading is:</p>
<blockquote><p>
P(leading) = I<sub>0.5</sub>(N*(0.5-&Delta;), N*(0.5+&Delta;))
</p></blockquote>
<p>By inverting the regularized incomplete beta function, one can calculate what lead is necessary for 95% confidence. But that&#8217;s hard. Here&#8217;s a table to make things simpler:</p>
<style type=text/css>
  table.thin, table.thin td, table.thin tr, table.thin th {
    border: thin solid black;
    border-collapse: collapse;
  }
  table.thin td { text-align: right; }
  table.thin th { text-align: center; }
</style>
<table class=thin cellpadding="3" align="center">
<tr>
<th>N</th>
<th>MoE</th>
<th>&Delta;</th>
<th>&Delta;/MoE</th>
</tr>
<tr>
<td>100</td>
<td>10.0%</td>
<td>16.36%</td>
<td>1.6362</td>
</tr>
<tr>
<td>200</td>
<td>7.07%</td>
<td>11.60%</td>
<td>1.6402</td>
</tr>
<tr>
<td>500</td>
<td>4.47%</td>
<td>7.35%</td>
<td>1.6431</td>
</tr>
<tr>
<td>1000</td>
<td>3.16%</td>
<td>5.20%</td>
<td>1.6438</td>
</tr>
<tr>
<td>1500</td>
<td>2.58%</td>
<td>4.25%</td>
<td>1.6443</td>
</tr>
<tr>
<td>2000</td>
<td>2.24%</td>
<td>3.68%</td>
<td>1.6444</td>
</tr>
<tr>
<td>2500</td>
<td>2.00%</td>
<td>3.29%</td>
<td>1.6445</td>
</tr>
<tr>
<td>3000</td>
<td>1.83%</td>
<td>3.00%</td>
<td>1.6445</td>
</tr>
</table>
<p>The ratio &Delta;/MoE; quickly approaches a constant, somewhere around 1.644. Hence the rule I mentioned at the beginning of the post. If a candidate is ahead by more than about 1.6 times the sampling error, that corresponds to 95% confidence. If the lead is equal to the sampling error, this corresponds to about 85% confidence. A lead of half the sampling error corresponds to about 70% confidence.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2008-09-25/how-to-read-polls/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Some Delegate Math</title>
		<link>http://www.danvk.org/wp/2008-05-20/some-delegate-math/</link>
		<comments>http://www.danvk.org/wp/2008-05-20/some-delegate-math/#comments</comments>
		<pubDate>Wed, 21 May 2008 06:49:46 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/2008-05-20/some-delegate-math/</guid>
		<description><![CDATA[I came to a realization last weekend while watching Mike Huckabee, Harold Ford, Jr. and various pundits discuss VP candidates on Meet the Press. We&#8217;re going to be hearing this exact argument for the next three months. I&#8217;ll care then. After the Oregon and Kentucky primaries tonight, I&#8217;m going to stop paying attention to the [...]]]></description>
			<content:encoded><![CDATA[<p>I came to a realization last weekend while watching <a href="http://en.wikipedia.org/wiki/Mike_Huckabee">Mike Huckabee</a>, <a href="http://en.wikipedia.org/wiki/Harold_Ford,_Jr.">Harold Ford, Jr.</a> and various pundits discuss VP candidates on <a href="http://www.msnbc.msn.com/id/3032608">Meet the Press</a>. We&#8217;re going to be hearing this exact argument for the next three months. I&#8217;ll care then. After the Oregon and Kentucky primaries tonight, I&#8217;m going to stop paying attention to the presidential race. There&#8217;s just not going to be any news of note until this fall. Why worry?</p>
<p>But before checking out for a few months, I&#8217;ve got one last Presidential Primary post left in me.</p>
<p>The question for the last few weeks has been &#8220;why is Hillary still in this race?&#8221; She can&#8217;t win a majority of pledged delegates, overall delegates, states, or votes (unless you use very strange definitions of who &#8220;counts&#8221;). Could she have something up her sleeve with Michigan and Florida?</p>
<p>According to <a href="http://www.dailykos.com/">Daily Kos</a>, here was the delegate count at the end of the night:</p>
<table class="thin">
<tr>
<th>&nbsp;</th>
<th>Pledged</th>
<th>Super</th>
<th>Total</th>
<th>Needed</th>
</tr>
<tr>
<td><b>Obama</b></td>
<td align=right>1,656.5</td>
<td align=right>304.5</td>
<td align=right>1,961</td>
<td align=right>64</td>
</tr>
<tr>
<td><b>Clinton</b></td>
<td align=right>1,501.5</td>
<td align=right>277.5</td>
<td align=right>1,779</td>
<td align=right>246</td>
</tr>
<tr>
<td><b>Remaining</b></td>
<td align=right>86</td>
<td align=right>  214</td>
<td align=right>300</td>
</tr>
</table>
<p>Obama passed 1,622 pledged delegates tonight and claimed a majority. But that excludes Florida and Michigan. Florida had 185 delegates and Michigan had 156. To get an absolute majority of pledged delegates <i>including</i> Florida and Michigan, he&#8217;d need 1,622 + (185 + 156)/2 = 1792.5 delegates. With only 86 pledged delegates left, there&#8217;s no way he can make Florida and Michigan irrelevant.</p>
<p>Or so goes the argument. But what did those excluded Florida and Michigan actually look like?</p>
<table class="thin">
<tr>
<th>&nbsp;</th>
<th><a href="http://en.wikipedia.org/wiki/Florida_Democratic_primary%2C_2008">Florida</a></th>
<th><a href="http://en.wikipedia.org/wiki/Michigan_Democratic_primary,_2008">Michigan</a></th>
</tr>
<tr>
<th>Obama</th>
<td align=right>69</td>
<td align=right>0</td>
</tr>
<tr>
<th>Clinton</th>
<td align=right>105</td>
<td align=right>73</td>
</tr>
<tr>
<th>Uncommitted</th>
<td align=right>0</td>
<td align=right>55</td>
</tr>
</table>
<p>I don&#8217;t know precisely how the &#8220;Uncommitted&#8221; delegates work, but I imagine they&#8217;d be under enormous pressure to vote for Obama at the convention. Add those in and you get:</p>
<table class="thin">
<tr>
<th>&nbsp;</th>
<th>Pledged</th>
<th>Fl.+Mi.</th>
<th>Total Pledged</th>
<th>Needed</th>
</tr>
<tr>
<td><b>Obama</b></td>
<td align=right>1,656.5</td>
<td align=right>124</td>
<td align=right>1780.5</td>
<td align=right>12</td>
</tr>
<tr>
<td><b>Clinton</b></td>
<td align=right>1,501.5</td>
<td align=right>178</td>
<td align=right>1679.5</td>
<td align=right>113</td>
</tr>
<tr>
<td><b>Remaining</b></td>
<td align=right>86</td>
<td align=right>0</td>
<td align=right>86</td>
</tr>
</table>
<p>So if you include the Florida and Michigan delegations, he hasn&#8217;t passed that magic mark, but he&#8217;s extremely close. And more interestingly, he&#8217;s the only one that can pass that mark. Hillary needs 113 pledged delegates for a majority, but there are only 86 left. This is because of the Edwards delegates.</p>
<p>If you don&#8217;t give Obama the 55 uncommitted delegates from Michigan though, he&#8217;s unlikely to pass the 50% mark, even by June 3. Could that be the trick? It seems a bit far-fetched. We&#8217;ll find out in three months when I start paying attention again!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2008-05-20/some-delegate-math/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>John Edwards is out</title>
		<link>http://www.danvk.org/wp/2008-01-30/john-edwards-is-out/</link>
		<comments>http://www.danvk.org/wp/2008-01-30/john-edwards-is-out/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 18:20:34 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/2008-01-30/john-edwards-is-out/</guid>
		<description><![CDATA[The big news of the day is that John Edwards is dropping out of the Democratic presidential race. It&#8217;s not clear to me whether this helps Clinton or Obama. From what I can tell, Edwards&#8217; main constituency was older, white men. In the past, men have tended to favor Obama, whereas older people have tended [...]]]></description>
			<content:encoded><![CDATA[<p>The big news of the day is that John Edwards is <a href="http://www.nytimes.com/2008/01/30/us/politics/30cnd-edwards.html?hp">dropping out</a> of the Democratic presidential race. It&#8217;s not clear to me whether this helps Clinton or Obama. From what I can tell, Edwards&#8217; main constituency was older, white men. <a href="http://www.msnbc.msn.com/id/21225995/">In the past</a>, men have tended to favor Obama, whereas older people have tended to favor Clinton. It will be interesting to <a href="http://pollster.com">follow the polls</a> over the next few days.</p>
<p>One thing that&#8217;s certain about Edwards&#8217; decision is that it&#8217;s a good one for the Democratic party. Because each state awards delegates proportional to its popular vote, he could have grabbed maybe 5-10% of the delegates. This would have almost certainly prevented either Clinton or Obama from getting a majority, and led to a <a href="http://en.wikipedia.org/wiki/Brokered_convention">brokered convention</a>. Now, that could only happen if there were an exceptionally close delegate race.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2008-01-30/john-edwards-is-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hillary Clinton&#8217;s Other Mate</title>
		<link>http://www.danvk.org/wp/2007-08-20/hillary-clintons-other-mate/</link>
		<comments>http://www.danvk.org/wp/2007-08-20/hillary-clintons-other-mate/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 16:42:02 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/?p=202</guid>
		<description><![CDATA[The Stanley Fish blog on the NY Times has a post looking at Hillary&#8217;s potential running mates this morning. This kind of piece does a lot to reinforce the &#8220;Hillary is inevitable&#8221; meme. I&#8217;m tempted to buy into it myself. Hillary&#8217;s been running the best campaign so far, and she&#8217;s been effective in all the [...]]]></description>
			<content:encoded><![CDATA[<p>The Stanley Fish blog on the NY Times has a post <a href="http://fish.blogs.nytimes.com/2007/08/19/hillary-clintons-other-mate/">looking at Hillary&#8217;s potential running mates</a> this morning. This kind of piece does a lot to reinforce the &#8220;Hillary is inevitable&#8221; meme. I&#8217;m tempted to buy into it myself. Hillary&#8217;s been running the best campaign so far, and she&#8217;s been effective in all the debates. (Except for that quip about lobbyists representing the real America.)</p>
<p>At the same time, I know that the Hillary machine is trying to project a sense of inevitability. It&#8217;s all part of their plan, and I don&#8217;t want to buy into it.</p>
<p>A couple reactions to the article I linked to:<span id="more-202"></span></p>
<ul>
<li>Fish dismisses Obama as a VP candidate too quickly. So we&#8217;re ready for a black president, we&#8217;re ready for a woman president, but not both at the same time? I don&#8217;t buy it. No one&#8217;s accused Hillary of being charismatic, and a Hillary/Obama ticket could generate a lot of excitement to get out the vote.</li>
<li>I suspect Fish&#8217;s pick is Bill Richardson. He&#8217;s been a governor (unlike Hillary) and Fish believes that he pulls a best of both worlds that Obama cannot: he&#8217;s a minority, but still looks white and has a white-sounding name. I&#8217;m still skeptical of all this talk that the voters will freak out if a ticket has no white male. But Fish&#8217;s other point about Richardson is excellent: his main problem now is that he has difficulty staying on message, and has delivered some really brain-dead responses to unexpected questions. I have great faith that the Hillary camp would whip him into shape.</li>
</ul>
<p>I&#8217;m still rooting for Barack Obama to win the nomination, but if Hillary does win, I&#8217;d be happy with either of the pairings mentioned above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2007-08-20/hillary-clintons-other-mate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Barack Obama Myspace Gaffe</title>
		<link>http://www.danvk.org/wp/2007-05-02/barack-obama-myspace-gaffe/</link>
		<comments>http://www.danvk.org/wp/2007-05-02/barack-obama-myspace-gaffe/#comments</comments>
		<pubDate>Thu, 03 May 2007 02:35:11 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[politics]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/?p=140</guid>
		<description><![CDATA[I&#8217;m generally a big fan of Barack, but this gaffe really bugs me. It&#8217;s so incredibly heavy handed. The asking price was a pittance for his campaign. I doubt Barack himself had much to do with it, but it makes me sad to see his organization strongarming an ardent supporter like this. Or, as the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m generally a big fan of Barack, but <a href="http://www.dailykos.com/storyonly/2007/5/2/35114/27244">this gaffe</a> really bugs me. It&#8217;s so incredibly heavy handed. The asking price was a pittance for his campaign.</p>
<p>I doubt Barack himself had much to do with it, but it makes me sad to see his organization strongarming an ardent supporter like this. Or, as the <a href="http://www.dailykos.com/story/2007/5/2/101516/8722">Daily Kos</a> article puts it, &#8220;Shitting on your biggest supporters is generally not a wise thing to do.&#8221; Ugh.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2007-05-02/barack-obama-myspace-gaffe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cut Bush Some Slack!</title>
		<link>http://www.danvk.org/wp/2007-05-01/cut-bush-some-slack/</link>
		<comments>http://www.danvk.org/wp/2007-05-01/cut-bush-some-slack/#comments</comments>
		<pubDate>Wed, 02 May 2007 06:19:57 +0000</pubDate>
		<dc:creator>danvk</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://www.danvk.org/wp/?p=139</guid>
		<description><![CDATA[The crap he&#8217;s taking for this kind of bothers me: Cut the guy some slack, already! He&#8217;s just doing the white guy dance. I&#8217;m sure all of us have done this many times. I know I have. I&#8217;d like to see Jon Stewart, Wolf Blitzer, or Jack Cafferty do any better.]]></description>
			<content:encoded><![CDATA[<p>The crap he&#8217;s taking for this kind of bothers me:</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/FIuODSIuHLo"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/FIuODSIuHLo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p>Cut the guy some slack, already! He&#8217;s just doing the white guy dance. I&#8217;m sure all of us have done this many times. I know I have. I&#8217;d like to see Jon Stewart, Wolf Blitzer, or Jack Cafferty do <i>any</i> better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danvk.org/wp/2007-05-01/cut-bush-some-slack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
