Re: [R] Two envelopes problem

2008-08-27 Thread Greg Snow
> -Original Message- > From: Mario [mailto:[EMAIL PROTECTED] > Sent: Monday, August 25, 2008 5:41 PM > To: Greg Snow > Cc: r-help@r-project.org > Subject: Re: [R] Two envelopes problem > > Dear Greg, > > The problem is that in your code you are creating a

Re: [R] Two envelopes problem

2008-08-27 Thread Greg Snow
ECTED] On Behalf Of Mark Leeds > Sent: Tuesday, August 26, 2008 9:44 AM > To: 'Duncan Murdoch' > Cc: r-help@r-project.org > Subject: Re: [R] Two envelopes problem > > Hi Duncan: I think I get you. Once one takes expectations, > there is an underlying assumption abo

Re: [R] Two envelopes problem

2008-08-27 Thread Jim Lemon
Duncan Murdoch wrote: On 26/08/2008 7:54 AM, Jim Lemon wrote: Hi again, Oops, I meant the expected value of the swap is: 5*0.5 + 20*0.5 = 12.5 Too late, must get to bed. But that is still wrong. You want a conditional expectation, conditional on the observed value (10 in this case). The a

Re: [R] Two envelopes problem

2008-08-26 Thread John C Frain
A very important point is missing here. If there is x in one envelope and 2x in the other the expected gain is 3x/2. If the idea is to switch after observing the second envelope the expected gain is again 3x/2. In the case being put x will be either 5 or 10. But x is a parameter and in this cas

Re: [R] Two envelopes problem

2008-08-26 Thread markleeds
age- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 11:26 AM To: Mark Leeds Cc: r-help@r-project.org Subject: Re: [R] Two envelopes problem On 8/26/2008 9:51 AM, Mark Leeds wrote: Duncan: I think I see what you're saying but the strange thing is that if yo

Re: [R] Two envelopes problem

2008-08-26 Thread Duncan Murdoch
Mark -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 11:26 AM To: Mark Leeds Cc: r-help@r-project.org Subject: Re: [R] Two envelopes problem On 8/26/2008 9:51 AM, Mark Leeds wrote: Duncan: I thi

Re: [R] Two envelopes problem

2008-08-26 Thread S Ellison
>>> Duncan Murdoch <[EMAIL PROTECTED]> 26/08/2008 16:17:34 >>> >>If this is indeed the case, switch; the expected gain is >>positive because _you already have the information that you hold the >> median value of the three possibilities_. The tendency when presented > >with the problem is to reaso

Re: [R] Two envelopes problem

2008-08-26 Thread Farley, Robert
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Murdoch Sent: Tuesday, August 26, 2008 05:15 To: Jim Lemon Cc: r-help@r-project.org; Mario Subject: Re: [R] Two envelopes problem On 26/08/2008 7:54 AM, Jim Lemon wrote: > Hi again, > Oops, I meant the ex

Re: [R] Two envelopes problem

2008-08-26 Thread markleeds
o: Mark Leeds Cc: r-help@r-project.org Subject: Re: [R] Two envelopes problem On 8/26/2008 9:51 AM, Mark Leeds wrote: Duncan: I think I see what you're saying but the strange thing is that if you use the utility function log(x) rather than x, then the expected values are equal. I think

Re: [R] Two envelopes problem

2008-08-26 Thread Mark Leeds
s because I think I see it now by your example below. Mark -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 11:26 AM To: Mark Leeds Cc: r-help@r-project.org Subject: Re: [R] Two envelopes probl

Re: [R] Two envelopes problem

2008-08-26 Thread Duncan Murdoch
Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Murdoch Sent: Tuesday, August 26, 2008 8:15 AM To: Jim Lemon Cc: r-help@r-project.org; Mario Subject: Re: [R] Two envelopes problem On 26/08/2008 7:54 AM, Jim Lemon wrot

Re: [R] Two envelopes problem

2008-08-26 Thread Heinz Tuechler
to:[EMAIL PROTECTED] On Behalf Of Duncan Murdoch Sent: Tuesday, August 26, 2008 8:15 AM To: Jim Lemon Cc: r-help@r-project.org; Mario Subject: Re: [R] Two envelopes problem On 26/08/2008 7:54 AM, Jim Lemon wrote: > Hi again, > Oops, I meant the expected value of the swap is: > > 5*0.5

Re: [R] Two envelopes problem

2008-08-26 Thread Mark Difford
onth a few years > ago > and we gave up so it's interesting for me to see this again. > >Mark > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On > Behalf Of Duncan Murdoch > Sent: Tu

Re: [R] Two envelopes problem

2008-08-26 Thread Mark Leeds
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Murdoch Sent: Tuesday, August 26, 2008 8:15 AM To: Jim Lemon Cc: r-help@r-project.org; Mario Subject: Re: [R] Two envelopes problem On 26/08/2008 7:54 AM, Jim Lemon wrote: > Hi again, > Oops, I mea

Re: [R] Two envelopes problem

2008-08-26 Thread Duncan Murdoch
On 26/08/2008 7:54 AM, Jim Lemon wrote: Hi again, Oops, I meant the expected value of the swap is: 5*0.5 + 20*0.5 = 12.5 Too late, must get to bed. But that is still wrong. You want a conditional expectation, conditional on the observed value (10 in this case). The answer depends on the d

Re: [R] Two envelopes problem

2008-08-26 Thread Jim Lemon
Hi again, Oops, I meant the expected value of the swap is: 5*0.5 + 20*0.5 = 12.5 Too late, must get to bed. Jim __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Two envelopes problem

2008-08-26 Thread Jim Lemon
Hi Mario, If I understand your problem statement, the random choice of one of the two envelopes ensures that the probability of choosing one or the other is 0.5. If you find 10 (units, I can't find the pound symbol on this keyboard), there is an equal likelihood that the other envelope contains 5 o

Re: [R] Two envelopes problem

2008-08-26 Thread Daniel Nordlund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Mario > Sent: Monday, August 25, 2008 1:51 PM > To: Greg Snow; r-help@r-project.org > Subject: Re: [R] Two envelopes problem > > No, no, no. I have solved the Monty Hall proble

Re: [R] Two envelopes problem

2008-08-25 Thread Mario
on than what is in the puzzle. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 -Original Message- From: Mario [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2008 2:51 PM To: Greg Snow; r-help@r-project.org Subject: Re:

Re: [R] Two envelopes problem

2008-08-25 Thread davidr
4:35 PM To: Mario Cc: r-help@r-project.org; Greg Snow Subject: Re: [R] Two envelopes problem On Mon, Aug 25, 2008 at 1:51 PM, Mario <[EMAIL PROTECTED]> wrote: > No, no, no. I have solved the Monty Hall problem and the Girl's problem and > this is quite different. Imagine this, I

Re: [R] Two envelopes problem

2008-08-25 Thread Deepayan Sarkar
On Mon, Aug 25, 2008 at 1:51 PM, Mario <[EMAIL PROTECTED]> wrote: > No, no, no. I have solved the Monty Hall problem and the Girl's problem and > this is quite different. Imagine this, I get the envelope and I open it and > it has £A (A=10 or any other amount it doesn't matter), a third friend gets

Re: [R] Two envelopes problem

2008-08-25 Thread Greg Snow
what is in the puzzle. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: Mario [mailto:[EMAIL PROTECTED] > Sent: Monday, August 25, 2008 2:51 PM > To: Greg Snow; r-help@r-project.org > S

Re: [R] Two envelopes problem

2008-08-25 Thread Mario
Sent: Monday, August 25, 2008 1:41 PM To: r-help@r-project.org Subject: [R] Two envelopes problem A friend of mine came to me with the two envelopes problem, I hadn't heard of this problem before and it goes like this: someone puts an amount `x' in an envelope and an amount `2x' in ano

Re: [R] Two envelopes problem

2008-08-25 Thread Greg Snow
ata Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mario > Sent: Monday, August 25, 2008 1:41 PM > To: r-help@r-project.org > Subject: [R] Two envelopes problem &g

Re: [R] Two envelopes problem

2008-08-25 Thread markleeds
i haven't looked at your code and I'll try when I have time but, as you stated, that's an EXTREMELY famous problem that has tried to be posed in a bayesian way and all sorts of other things have been done to try solve it. Note that if you change the utility function so that its log(X) rather t

[R] Two envelopes problem

2008-08-25 Thread Mario
A friend of mine came to me with the two envelopes problem, I hadn't heard of this problem before and it goes like this: someone puts an amount `x' in an envelope and an amount `2x' in another. You choose one envelope randomly, you open it, and there are inside, say £10. Now, should you keep th