Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

The New Coffee Room

  1. TNCR
  2. General Discussion
  3. Puzzle Time - Magnetic Dollars

Puzzle Time - Magnetic Dollars

Scheduled Pinned Locked Moved General Discussion
16 Posts 2 Posters 121 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jon-nycJ Offline
    jon-nycJ Offline
    jon-nyc
    wrote on last edited by
    #7

    I get 1/3 of the coins in the lesser urn, so 333,333. Will lay out logic in a bit.

    Only non-witches get due process.

    • Cotton Mather, Salem Massachusetts, 1692
    1 Reply Last reply
    • jon-nycJ Offline
      jon-nycJ Offline
      jon-nyc
      wrote on last edited by
      #8

      Maybe run some simulations and see what you get

      Only non-witches get due process.

      • Cotton Mather, Salem Massachusetts, 1692
      1 Reply Last reply
      • jon-nycJ Offline
        jon-nycJ Offline
        jon-nyc
        wrote on last edited by
        #9

        Suppose the proportion of coins in the lesser urn is r after n coins have been tossed. Calculate the expected ratio after the n+1 toss.

        This is:

        r * (rn+1)/(n+1)
        +
        (1-r) * (rn/(n+1)

        = r(n+1)/(n+1)

        = r

        So the expected ratio never changes. Toss 1, since we start with one coin in each urn, is guaranteed to give us a ratio of 1/3. This expected ratio is the same for any number of tosses. So one third of our million coins are expected to be in the lesser urn.

        Only non-witches get due process.

        • Cotton Mather, Salem Massachusetts, 1692
        KlausK 1 Reply Last reply
        • jon-nycJ jon-nyc

          Suppose the proportion of coins in the lesser urn is r after n coins have been tossed. Calculate the expected ratio after the n+1 toss.

          This is:

          r * (rn+1)/(n+1)
          +
          (1-r) * (rn/(n+1)

          = r(n+1)/(n+1)

          = r

          So the expected ratio never changes. Toss 1, since we start with one coin in each urn, is guaranteed to give us a ratio of 1/3. This expected ratio is the same for any number of tosses. So one third of our million coins are expected to be in the lesser urn.

          KlausK Offline
          KlausK Offline
          Klaus
          wrote on last edited by
          #10
          This post is deleted!
          1 Reply Last reply
          • KlausK Offline
            KlausK Offline
            Klaus
            wrote on last edited by Klaus
            #11

            I'm not sure that's correct.

            Take the situation after two tosses, that is 4 coins:

            The probability distribution, unless I miscalculated, is as follows:

            (2,2) with p = 0.33
            (1,3) with p =0.33
            (3,1) with p = 0.33

            The expected value of the "lesser urn" is
            1 x 0.33 + 1 x 0.33 = 0.66 or 16.5%.

            With five coins in the system, the distribution is:

            (1,4) 0.25
            (2,3) 0.25
            (3,2) 0.25
            (4,1),0.25

            Expected value of lesser urn:

            1 x 0.25 + 2 x 0.25 + 2 x 0.25 + 1 x 0.25 = 1.5 or 30%.

            After the next toss, we get that every combination has a probability of 0.2, yielding an expected value of 20% for the lesser urn.

            The value oscillates around and converges to 25% by the argument in my post above.

            1 Reply Last reply
            • KlausK Klaus

              I'd say the expected value is 250,000.

              Let (a,b) describe the situation with a coins in urn 1 and b coins in urn 2.

              The probability for (a,n-a) after round n is 1/(n+1) for any a, i.e., the distribution is uniform.

              This sounds almost too simple for a Jon puzzle. Am I missing something?

              jon-nycJ Offline
              jon-nycJ Offline
              jon-nyc
              wrote on last edited by
              #12

              @klaus

              I’m probably overlooking something obvious but how do you get from this:

              The probability for (a,n-a) after round n is 1/(n+1) for any a, i.e., the distribution is uniform.

              To 250k?

              Only non-witches get due process.

              • Cotton Mather, Salem Massachusetts, 1692
              KlausK 1 Reply Last reply
              • jon-nycJ jon-nyc

                @klaus

                I’m probably overlooking something obvious but how do you get from this:

                The probability for (a,n-a) after round n is 1/(n+1) for any a, i.e., the distribution is uniform.

                To 250k?

                KlausK Offline
                KlausK Offline
                Klaus
                wrote on last edited by Klaus
                #13

                @jon-nyc said in Puzzle Time - Magnetic Dollars:

                @klaus

                I’m probably overlooking something obvious but how do you get from this:

                The probability for (a,n-a) after round n is 1/(n+1) for any a, i.e., the distribution is uniform.

                To 250k?

                Let's take n = 1,000,000 and consider only the first half of the distribution, i.e., (1, 999.999) to (499.999,500.000), all with equal. Urn 1 is always the one with fewer susans in this half. Let's project on the first component, i.e., the value of urn 1. This is now the uniform distribution unif{1,499.999}. Its mean is (1 + 499.999)/2 = 250.000, see also the last line of the screenshot from the Wikipedia entry on discrete uniform distributions.

                c0886b98-5cad-41f1-8076-4fdc04148f03-image.png

                By the same technique we can symmetrically analyze the second half of the distribution, which will also yield a mean of 250.000.

                1 Reply Last reply
                • jon-nycJ Offline
                  jon-nycJ Offline
                  jon-nyc
                  wrote on last edited by
                  #14

                  I like your answer better than mine.

                  Only non-witches get due process.

                  • Cotton Mather, Salem Massachusetts, 1692
                  KlausK 1 Reply Last reply
                  • jon-nycJ jon-nyc

                    I like your answer better than mine.

                    KlausK Offline
                    KlausK Offline
                    Klaus
                    wrote on last edited by Klaus
                    #15

                    @jon-nyc said in Puzzle Time - Magnetic Dollars:

                    I like your answer better than mine.

                    I've made a screenshot of that post and put a yearly reminder in my calendar.

                    Now, the icing on the cake would be if my answer is even correct 🙂

                    1 Reply Last reply
                    • jon-nycJ Offline
                      jon-nycJ Offline
                      jon-nyc
                      wrote on last edited by
                      #16

                      Clever proof.

                      SOLUTION: You might very reasonably worry that one urn will "take over" and leave very little for the other. In my experience, faced with this problem, most people are unwilling to offer $100 in advance for the contents of the lesser urn.

                      In fact, the lesser urn is worth, on average, a quarter of a million dollars. (Of course, that doesn't mean you are willing to take this much risk!) This is because the final contents of (say) Urn A is precisely equally likely to be any whole number of dollars from $1 all the way to $999,999. Thus, the average amount in the lesser urn is about $250,000.

                      How can we see this? There are several proofs, but here's my favorite. Imagine that we shuffle a fresh-from-the-box deck of cards in the following careful manner. We place the first card, say the Ace of Spades, face down on the table. Then we take the second card, maybe the Deuce of Spades, and randomly place it over or under the ace. Now there are three possible slots for the Three of Spades; choose one at random, putting it on top of the current pile, under the current pile, or between the ace and deuce, each with probability 1/3.

                      We continue in this manner; the nth card is inserted in one of n possible slots, each with probability 1/n. The result eventually is a perfectly random permutation of the cards.

                      Now think of the cards that go in above the Ace of Spades as the coins (not counting the first) that go into Urn A, and the ones that go under as coins going into Urn B. The magnetic rule above describes the process perfectly, because if there are currently x−1 cards above the Ace of Spades (thus x slots) and y−1 cards under the Ace of Spades (thus y slots), the probability that the next card goes above the Ace of Spades is x/(x+y).

                      Since, in the final shuffled deck, the Ace of Spades is equally likely to be in any position, the number of slots ending up above it is equally likely to be anything from 1 to the number of cards in our deck, which for our puzzle is 999,999.

                      [Probabilists call the mechanism of this puzzle the Polya urn, after the late George Polya, a Hungarian-born professor at Stanford who famously wrote about problem-solving in mathematics.]

                      Only non-witches get due process.

                      • Cotton Mather, Salem Massachusetts, 1692
                      1 Reply Last reply
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups