The trick here – and there is
a trick – is a
subtle use of equivocation: You make a claim about one problem but
then explain the claim in terms of another problem that is subtly yet
In the first problem, each envelope can contain any
number. In the second problem, however, you require that the
distribution of numbers have a "continuous probability
distribution with non-zero density everywhere." These problems are
not the same.
To see why, imagine an infinite number line representing all
numbers. If you pick any segment on this line, say that between 0 and
1, the portion of the line that the segment represents is zero. Hence
the probability density function over the segment is also zero, which
contradicts the assumption made in your analysis.
If we repeat your analysis, this time using the distribution of
numbers for your originally stated problem, we find that the
probability of picking a number in between your two numbers is
zero, and thus knowing the first number provides no benefit.
Our intuition turns out to be correct.
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.