• Jeremiah
    1.5k


    They are making a lot of assumptions. Conditions and information not included in the OP.
  • Jeremiah
    1.5k
    I already commented on the assumptions that follow the use of distributions earlier in this thread. So basically we are back to once more modeling a pile of assumptions.
  • Jeremiah
    1.5k
    As I pointed out the thread is just going in circles.
  • Michael
    15.8k
    If you are not willing to justify your model empirically, well then that says it all. You should be willing to empirically justify your theory.Jeremiah

    I am. I already ran the simulation.

    I've also built the game for us to play here.

    First select your chosen envelope. Then select either "switch" or "stick". Then press "next" to play the next game.

    Using my strategy for 50 games gave this result:

    m8nhqoxeu46u93i3.png
  • Michael
    15.8k
    Here it is in R.

    Edit: Now has comments
  • Jeremiah
    1.5k


    You still need to notate your code. Especially on forums like these. I don't know why you don't do that. It almost makes it seem like you are trying to hide your assumptions in the code.


    You are still using your incorrect sample space.

    I am not going to look at any more code that is not notated. I mean that should just be common sense if you are going to post it here.
  • Michael
    15.8k
    I've added comments.
  • Jeremiah
    1.5k


    Thank you, sorry for getting riled, I just hate going over someone else's code without notes.
  • Jeremiah
    1.5k


    I like using simulations for empirical investigation; however, you and I, deeply disagree on the underlying assumptions and the code will reflect that if we are not careful.
  • Jeremiah
    1.5k
    If you use a distribution you are making assumptions not included in the OP. I pointed this out before.

    One thing we can be sure of from the OP is that one has X and one has 2X.
  • Michael
    15.8k
    Here you ran your own simulation with X selected at random (multiples of 10).

    You then ran the simulation with other methods of selecting X and said "the distribution in which X was selected from is not significant when assessing the possible outcome of envelope A and B concerning X or 2X".

    I'll try running my simulation using the three other methods you described and see if I get the same .25 gain (or a gain of any amount).
  • Jeremiah
    1.5k


    If you are doing it based on the your X, X/2 sample space, you'll get your expected gain. I have no doubt about that. The math already proves that.

    To simulate this we need agreed upon assumptions.
  • Michael
    15.8k
    If you are doing it based on the your X, X/2 sample space, you'll get your expected gain.Jeremiah

    There's nothing like that. I just open my envelope, which contains either X or 2X, and I switch if it's less than or equal to the highest X I've seen.

    Perhaps you could point out which line(s) of my code you disagree with. Is it just how I select X?

    x <- sample(1:100, 1) * 4
    
  • Jeremiah
    1.5k


    No, I used the same scale in my code.

    It is this:

    if (
    
        0 == max_2x
        ||
        choice <= max_2x / 2
    
      )
      {
        switch <- switch + other
      }
    
      # Otherwise increase the switching strategy amount by the amount in the chosen
      # envelope
      else
      {
        switch <- switch + choice
      }
    
      # Record the highest value seen
      max_2x <- max(c(choice, other, max_2x))
    

    You code is based off your assumptions.
  • Michael
    15.8k
    You code is based off your assumptions.Jeremiah

    Huh? That's not an assumption. That's my strategy. I switch envelopes if the value in my envelope is less than or equal to the highest X I've seen in previous games.

    So if in the first game we have £10 and £20 then in the second game I switch if I have £10 but not if I have £20.
  • Jeremiah
    1.5k


    Basing it on "previous games" is an assumption. That information was never in the OP.
  • Jeremiah
    1.5k


    Don't get me wrong, Michael, I found your linked article here an interesting read, but it moves beyond the scope of the problem in the OP, and all these assumptions are subjectively based.
  • Jeremiah
    1.5k
    Even if this was a game show, they are not going to give you 20,000 goes to figure out their range. That makes no sense. This is what I mean by being subjective. I rather remain objective and get a model that approaches reality.
  • Michael
    15.8k


    So first you say "If you are not willing to justify your model empirically, well then that says it all. You should be willing to empirically justify your theory." and then you don't like when I test my theory by playing 100 games? That makes no sense.

    Even if you don't like that I get to remember previous games, there can still be a gain if we choose some arbitrary amount to be the limit for when I decide to switch. So, if I were to always switch if my envelope contains £400 or less and stick otherwise then using my simulation I would gain .25. If my limit was £200 then I would gain 0.0625. If my limit was £600 then I would gain ~0.145.

    The formula for the expected gain, as explained here, is where is the highest that can be selected by the host and is our chosen limit for switching (although as I also say there, this formula only works when our limit is less than or equal to ; I haven't worked out the formula for when it's greater).

    So re-run my simulation but replace the lines you don't like with:

      # If the amount in the chosen envelope is less than or equal to
      # 300 then switch and increase the switching strategy amount
      # by the amount in the new envelope
      if (choice <= 300)
      {
        switch <- switch + other
      }
    
      # Otherwise increase the switching strategy amount by the amount in the chosen
      # envelope
      else
      {
        switch <- switch + choice
      }
    

    The gain is ~0.14.
  • Jeremiah
    1.5k


    I already ran my own simulations, Michael, and the idea that if this was a game you'd get many turns to learn the range is very unrealistic. This is what I am not interested in. I didn't get into statistics to map people subjective assumptions. I can do that without math.
  • Michael
    15.8k
    As I said above, you don't need to learn the range. You can choose any arbitrary amount before you start and switch only if the amount in your envelope is less than or equal to that amount. You will have an expected gain if your chosen amount is less than the highest 2X envelope, with a best case scenario of .25 if your chosen amount happens to be the highest X envelope.
  • Jeremiah
    1.5k


    I choose 10 billion.
  • Srap Tasmaner
    5k

    There are Sometimes Switch strategies that work, so far as I can tell.

    Do you believe that shows that your original argument, which concludes that the value of whatever envelope you don't have is 1/4 more than the one you do have, is valid?
  • Michael
    15.8k
    Do you believe that shows that your original argument, which concludes that the value of whatever envelope you don't have is 1/4 more than the one you do have, is valid?Srap Tasmaner

    The expected value (given the information available to us), yes.
  • Srap Tasmaner
    5k

    But that argument, that "calculation", is not based on using any particular strategy. It's just this:

    E(U)=.5(2Y) + .5(Y/2)

    Do you believe that the success of the various switching strategies available shows that this expectation is correct?
  • Michael
    15.8k
    Yes, which is why my switching strategy (and the second switching strategy in the paper you referred to) provides a gain of .25. It's not a coincidence that the values coincide.
  • Srap Tasmaner
    5k

    If that expected value calculation is correct, then Always Switch should produce the expected gain, shouldn't it?

    What, in that formula, suggests that a Sometimes Switch strategy is correct?
  • Jeremiah
    1.5k
    A "switch strategy" is just a way to approximate the distribution through iterations. Or the transformed distribution.
  • Michael
    15.8k
    If that expected value calculation is correct, then Always Switch should produce the expected gain, shouldn't it?Srap Tasmaner

    No, because if the amount in your envelope (say £160) is more than the highest X that the host can choose (say £100) then you're always going to lose, even though the expected value of the other envelope, given the information available to you, is £200.

    This is the fact that my strategy accounts for.

    What, in that formula, suggests that a Sometimes Switch strategy is correct?Srap Tasmaner

    I don't know what you mean by this. The simulation of the strategy shows that the strategy is correct. The formula just explains why the gain from the strategy is 0.25; the expected value of the other envelope is .
bold
italic
underline
strike
code
quote
ulist
image
url
mention
reveal
youtube
tweet
Add a Comment