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.
  • J Offline
    J Offline
    jon-nyc
    wrote on 9 Jan 2022, 11:46 last edited by
    #1

    One million magnetic "susans" (Susan B. Anthony dollar coins) are tossed into two urns in the following fashion: The urns begin with one coin in each, then the remaining 999,998 coins are thrown in the air one by one.  If there are x coins in one urn and y in the other, magnetic attraction will cause the next coin to land in the first urn with probability x/(x+y), and in the second with probability y/(x+y).

    What’s the expected value of the contents of the urn that ends up with fewer susans?

    Only non-witches get due process.

    • Cotton Mather, Salem Massachusetts, 1692
    1 Reply Last reply
    • K Offline
      K Offline
      Klaus
      wrote on 9 Jan 2022, 11:49 last edited by Klaus 1 Sept 2022, 11:50
      #2

      Is there anything specific about "susans" that one should know about this puzzle?

      Unless I'm missing something this looks relatively simple...

      1 Reply Last reply
      • J Offline
        J Offline
        jon-nyc
        wrote on 9 Jan 2022, 12:00 last edited by
        #3

        Nope. Just dollar coins. They exist but never really circulate.

        Only non-witches get due process.

        • Cotton Mather, Salem Massachusetts, 1692
        1 Reply Last reply
        • K Offline
          K Offline
          Klaus
          wrote on 9 Jan 2022, 12:35 last edited by
          #4

          One thing I find a little confusing about the task is the "ends up with fewer susans" part, because it could be the case that they have the same number of susans.

          1 Reply Last reply
          • K Offline
            K Offline
            Klaus
            wrote on 9 Jan 2022, 14:23 last edited by Klaus 1 Sept 2022, 14:23
            #5

            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?

            J 1 Reply Last reply 10 Jan 2022, 14:23
            • K Offline
              K Offline
              Klaus
              wrote on 9 Jan 2022, 15:52 last edited by Klaus 1 Sept 2022, 16:51
              #6

              Another way to look at it: Without the "magnetic attraction", the distribution would be normal. But the magnetic attraction flattens the Gauss curve to be uniform.

              1 Reply Last reply
              • J Offline
                J Offline
                jon-nyc
                wrote on 9 Jan 2022, 19:19 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
                • J Offline
                  J Offline
                  jon-nyc
                  wrote on 9 Jan 2022, 20:01 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
                  • J Offline
                    J Offline
                    jon-nyc
                    wrote on 10 Jan 2022, 11:09 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
                    K 1 Reply Last reply 10 Jan 2022, 12:11
                    • J jon-nyc
                      10 Jan 2022, 11:09

                      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.

                      K Offline
                      K Offline
                      Klaus
                      wrote on 10 Jan 2022, 12:11 last edited by
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      • K Offline
                        K Offline
                        Klaus
                        wrote on 10 Jan 2022, 12:46 last edited by Klaus 1 Oct 2022, 12:48
                        #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
                        • K Klaus
                          9 Jan 2022, 14:23

                          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?

                          J Offline
                          J Offline
                          jon-nyc
                          wrote on 10 Jan 2022, 14:23 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
                          K 1 Reply Last reply 10 Jan 2022, 15:43
                          • J jon-nyc
                            10 Jan 2022, 14:23

                            @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?

                            K Offline
                            K Offline
                            Klaus
                            wrote on 10 Jan 2022, 15:43 last edited by Klaus 1 Oct 2022, 15:44
                            #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
                            • J Offline
                              J Offline
                              jon-nyc
                              wrote on 10 Jan 2022, 15:55 last edited by
                              #14

                              I like your answer better than mine.

                              Only non-witches get due process.

                              • Cotton Mather, Salem Massachusetts, 1692
                              K 1 Reply Last reply 10 Jan 2022, 15:57
                              • J jon-nyc
                                10 Jan 2022, 15:55

                                I like your answer better than mine.

                                K Offline
                                K Offline
                                Klaus
                                wrote on 10 Jan 2022, 15:57 last edited by Klaus 1 Oct 2022, 15:58
                                #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
                                • J Offline
                                  J Offline
                                  jon-nyc
                                  wrote on 15 Jan 2022, 12:10 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

                                  2/16

                                  9 Jan 2022, 11:49

                                  topic:navigator.unread, 14

                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  2 out of 16
                                  • First post
                                    2/16
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups