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 - Visit from Xylofon

Puzzle time - Visit from Xylofon

Scheduled Pinned Locked Moved General Discussion
17 Posts 5 Posters 82 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 Online
    jon-nycJ Online
    jon-nyc
    wrote on last edited by
    #1

    A fleet of saucers from planet Xylofon has been sent to bring back the inhabitants of a certain randomly selected house, for exhibition in the Xylofon Xoo. The house happens to contain 5 men and 8 women, to be beamed up randomly one at a time.

    Owing to the Xylofonians' strict sex separation policy, a single saucer cannot bring back earthlings of both sexes. Thus, it beams people up randomly until it gets a member of a second sex, at which point that one is beamed back down and the saucer takes off with whoever remains on board. Another saucer then starts beaming people up randomly, following the same rule, and so forth.

    What is the probability that the last person beamed up is a woman?

    "You never know what worse luck your bad luck has saved you from."
    -Cormac McCarthy

    1 Reply Last reply
    • KlausK Offline
      KlausK Offline
      Klaus
      wrote on last edited by Klaus
      #2

      I am disgusted that the Xylofons would just assume a person's sex. Also, what about nonbinary folks?

      1 Reply Last reply
      • AxtremusA Away
        AxtremusA Away
        Axtremus
        wrote on last edited by Axtremus
        #3

        click to show

        (EDIT: spoiler guard line)

        P(last one beamed up is a woman) = P(first one beamed up is a man) = 5/13

        1 Reply Last reply
        • KlausK Offline
          KlausK Offline
          Klaus
          wrote on last edited by
          #4

          click to show

          50 : 50, counter-intuitively.

          1 Reply Last reply
          • jon-nycJ Online
            jon-nycJ Online
            jon-nyc
            wrote on last edited by
            #5

            Gentlemen, care to explain your reasoning?

            "You never know what worse luck your bad luck has saved you from."
            -Cormac McCarthy

            KlausK 1 Reply Last reply
            • HoraceH Offline
              HoraceH Offline
              Horace
              wrote on last edited by
              #6

              I think if you imagine a string of 13 people 8 of whom are identitied as women by the sex detection algorithm in the xylofon ship and 5 as men, then you can build a sequence of M or F elements by choosing from 13 then 12 then 11 randomly. You are interested in the probability that number 13 is F, but this sequence should be reversible. Nothing about the sequence would be informative that it was built from one end or the other. So the question becomes, what is that chance that the first person picked is F. Which is an easy question to answer. Nothing in fact is special about any position in the order. Before the selections begin, each position has an identical chance of being F. First, last, and everything in between.

              Education is extremely important.

              1 Reply Last reply
              • HoraceH Offline
                HoraceH Offline
                Horace
                wrote on last edited by
                #7

                The complication of the ships taking only one of the sexes seems to be a red herring, which does not change the solution to the simpler question I boiled it down to in my answer.

                Education is extremely important.

                HoraceH 1 Reply Last reply
                • HoraceH Horace

                  The complication of the ships taking only one of the sexes seems to be a red herring, which does not change the solution to the simpler question I boiled it down to in my answer.

                  HoraceH Offline
                  HoraceH Offline
                  Horace
                  wrote on last edited by
                  #8

                  @Horace said in Puzzle time - Visit from Xylofon:

                  The complication of the ships taking only one of the sexes seems to be a red herring, which does not change the solution to the simpler question I boiled it down to in my answer.

                  On second thought, since the sequence accepts runs and rerolls random selections where the previous selection was different, that complication is not a red herring. Taking the simple case of 2 and 1 F and M, a third of the time you’ll get F last (because M was first) and of the two thirds remaining, half the time you’ll get M last - one third. Of the one third remaining, it’s half and half between F and M. So total is half and half, which suppose generalizes to any starting condition.

                  Education is extremely important.

                  1 Reply Last reply
                  • HoraceH Offline
                    HoraceH Offline
                    Horace
                    wrote on last edited by
                    #9

                    In order for a male to be selected after a female, you have to roll a male twice in a row. That’s the probability equalizer.

                    Education is extremely important.

                    1 Reply Last reply
                    • AxtremusA Away
                      AxtremusA Away
                      Axtremus
                      wrote on last edited by
                      #10

                      New answer:

                      click to show

                      Probability 1, a certainty, that the last person beamed up is a woman.

                      First five saucers will collectively beam up five men and five women, leaving three women in the house for the sixth and subsequent saucers.

                      Since only women are left after the fifth saucer is done, the last person beamed up will be a woman.

                      HoraceH 1 Reply Last reply
                      • AxtremusA Axtremus

                        New answer:

                        click to show

                        Probability 1, a certainty, that the last person beamed up is a woman.

                        First five saucers will collectively beam up five men and five women, leaving three women in the house for the sixth and subsequent saucers.

                        Since only women are left after the fifth saucer is done, the last person beamed up will be a woman.

                        HoraceH Offline
                        HoraceH Offline
                        Horace
                        wrote on last edited by
                        #11

                        @Axtremus said in Puzzle time - Visit from Xylofon:

                        New answer:

                        click to show

                        Probability 1, a certainty, that the last person beamed up is a woman.

                        First five saucers will collectively beam up five men and five women, leaving three women in the house for the sixth and subsequent saucers.

                        Since only women are left after the fifth saucer is done, the last person beamed up will be a woman.

                        There's one way to be right, but an infinite number of ways to be wrong.

                        Education is extremely important.

                        AxtremusA 1 Reply Last reply
                        • jon-nycJ jon-nyc

                          Gentlemen, care to explain your reasoning?

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

                          @jon-nyc said in Puzzle time - Visit from Xylofon:

                          Gentlemen, care to explain your reasoning?

                          click to show

                          Let P(m,f,s) be the probability of last person being sex s, starting with m males and f females and m+f>=1.

                          Observation O: P(0,f,female) = 1 and P(m,0,male) = 1.

                          Theorem: For any sex s and all m,f>=1, P(m,f,s) = 0.5

                          Proof by induction on m+f.

                          Base case m+f = 2. Obvious.

                          Inductive case: m+f = n >= 3.

                          • Subcase a: Assume that the saucer to be filled contains k males. If k < m, then P(m,f,s) = P(m-k,f,s) = 0.5 by induction hypothesis.

                          • Subcase b: Similarly, if the saucer to be filled contains k females, then if k < f, then P(m,f,s) = P(m,f-k,s) = 0.5 by induction hypothesis.

                          The only remaining case is k=m in subcase a and k = f in subcase b.

                          However, the probability for both events is exactly the same, namely

                          m! *(m+f-m)! / (m+f)! = f! *(m+f-f)! / (m+f)! = m!*f!/(m+f)!

                          hence, considering Observation O from above, also in this case P(m,f,s) = 0.5.

                          QED.

                          In particular, P(5,8,female) = 0.5

                          1 Reply Last reply
                          • HoraceH Horace

                            @Axtremus said in Puzzle time - Visit from Xylofon:

                            New answer:

                            click to show

                            Probability 1, a certainty, that the last person beamed up is a woman.

                            First five saucers will collectively beam up five men and five women, leaving three women in the house for the sixth and subsequent saucers.

                            Since only women are left after the fifth saucer is done, the last person beamed up will be a woman.

                            There's one way to be right, but an infinite number of ways to be wrong.

                            AxtremusA Away
                            AxtremusA Away
                            Axtremus
                            wrote on last edited by
                            #13

                            @Horace said in Puzzle time - Visit from Xylofon:

                            There's one way to be right, but an infinite number of ways to be wrong.

                            Yeah, including not reading the question correctly. 😫

                            1 Reply Last reply
                            • KlausK Offline
                              KlausK Offline
                              Klaus
                              wrote on last edited by
                              #14

                              No resolution?

                              HoraceH 1 Reply Last reply
                              • KlausK Klaus

                                No resolution?

                                HoraceH Offline
                                HoraceH Offline
                                Horace
                                wrote on last edited by
                                #15

                                @Klaus said in Puzzle time - Visit from Xylofon:

                                No resolution?

                                That’s what she said. After she was rejected by the ship with all the males in it.

                                Education is extremely important.

                                1 Reply Last reply
                                • MikM Offline
                                  MikM Offline
                                  Mik
                                  wrote on last edited by
                                  #16

                                  Jon, you had to know this would end badly. 😆

                                  “I am fond of pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals.” ~Winston S. Churchill

                                  1 Reply Last reply
                                  • jon-nycJ Online
                                    jon-nycJ Online
                                    jon-nyc
                                    wrote on last edited by
                                    #17

                                    Very wordy. I like my answer better

                                    SOLUTION: Let's try some smaller numbers and see what happens. Obviously if the house is all men or all women, the sex of the last person beamed up will be determined. If there are equal numbers of men and women, then by symmetry, the probability that the last person beamed up is a woman would be 1/2. So the simplest interesting case is, say, one man and two women.

                                    In that case, if the man is beamed up first (probability: 1/3), the last person beamed up will be a woman. Suppose a woman is beamed up first; if she is followed by a man (who is then beamed back down), we are down to the symmetric case where the probability of ending with a woman is 1/2. Finally, if a second woman follows the first (probability 2/3 x 1/2 = 1/3), the man will be last to be beamed up. Putting the cases together, we get probability 1/2 that the last person beamed up is a woman. Is it possible that 1/2 is the answer no matter how many men and women are present, as long as there's at least one of each?

                                    Looking more closely at the above analysis, it seems that the sex of the last person beamed up is determined by the next-to-last saucer — the one that reduces the house to one sex. To see why this is so, it is useful to imagine that the Xylofonian acquisition process operates the following way: Each time a flying saucer arrives, the current inhabitants of the house arrange themselves in a uniformly random permutation, from which they are beamed up left to right.

                                    For example, if the inhabitants at one saucer's arrival consist of males Amit and Boris and females Carol, Dina and Esme, and they arrange themselves "Dina, Esme, Boris, Carol, Amit," then the saucer will beam up Dina, Esme, and Boris, then will beam Boris back down again, and take off with just the females Dina and Esme. The remaining folks, Boris, Amit, and Carol, will now re-permute themselves in anticipation of the next saucer's arrival.

                                    We see that a saucer will be the next to last just when the permutation it encounters consists of all men followed by all women, or all women followed by all men. But no matter how many of each sex are in the house at this point, these two events are equally likely! Why? Because if we simply reverse the order of a such a permutation, we go from all-men-then-all-women to all-women-then-all-men, and vice versa.

                                    There's just one more observation to make: If both men and women are present initially, then one saucer will never do, thus there always will be a next-to-last saucer. When that comes — even though we do not know in advance which saucer it will be — it is equally likely to depart with the rest of the men, or the rest of the women.

                                    "You never know what worse luck your bad luck has saved you from."
                                    -Cormac McCarthy

                                    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