<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Two Mathematical Bugs</title>
	<atom:link href="http://www.algorithm.co.il/blogs/programming/python/two-mathematical-bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.algorithm.co.il/blogs/math/two-mathematical-bugs/</link>
	<description>Algorithms, for the heck of it</description>
	<lastBuildDate>Tue, 21 Jun 2011 21:07:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: lorg</title>
		<link>http://www.algorithm.co.il/blogs/math/two-mathematical-bugs/#comment-100</link>
		<dc:creator>lorg</dc:creator>
		<pubDate>Sun, 09 Mar 2008 23:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm.co.il/blogs/index.php/programming/python/two-mathematical-bugs/#comment-100</guid>
		<description>Thanks for the proof!
Just the statement &quot;sampling a random point from the area under the curve&quot; is more elegant and understandable than my original proof.</description>
		<content:encoded><![CDATA[<p>Thanks for the proof!<br />
Just the statement &#8220;sampling a random point from the area under the curve&#8221; is more elegant and understandable than my original proof.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Morrison</title>
		<link>http://www.algorithm.co.il/blogs/math/two-mathematical-bugs/#comment-99</link>
		<dc:creator>Adam Morrison</dc:creator>
		<pubDate>Sun, 09 Mar 2008 09:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm.co.il/blogs/index.php/programming/python/two-mathematical-bugs/#comment-99</guid>
		<description>Actually, I think your solution is correct.  Essentially you are sampling a random point from the area under the curve.

More formally, denote your random variable by z.  Then, for x to the left of the curve&#039;s symmetry axis, Pr[z &lt;= x] is the integral from P(a) to P(x) of (x - P^{-1}(y)) dy, which if you think about it, is exactly the integral of P(x) over [a,x].  The argument for the other x values is analogous.  (All of this assumes that P(x) is itself a proper distribution, otherwise you need to divide by the area under the curve.)

I don&#039;t see why the fact that the probability for passing the 2nd stage isn&#039;t constant is relevant, since these are not independent samples...</description>
		<content:encoded><![CDATA[<p>Actually, I think your solution is correct.  Essentially you are sampling a random point from the area under the curve.</p>
<p>More formally, denote your random variable by z.  Then, for x to the left of the curve&#8217;s symmetry axis, Pr[z &lt;= x] is the integral from P(a) to P(x) of (x &#8211; P^{-1}(y)) dy, which if you think about it, is exactly the integral of P(x) over [a,x].  The argument for the other x values is analogous.  (All of this assumes that P(x) is itself a proper distribution, otherwise you need to divide by the area under the curve.)</p>
<p>I don&#8217;t see why the fact that the probability for passing the 2nd stage isn&#8217;t constant is relevant, since these are not independent samples&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

