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 - biased to fair coin

Puzzle time - biased to fair coin

Scheduled Pinned Locked Moved General Discussion
11 Posts 3 Posters 63 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.
  • HoraceH Online
    HoraceH Online
    Horace
    wrote on last edited by
    #2

    exactly, precisely, 50/50?

    Education is extremely important.

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

      Yes.

      1 Reply Last reply
      • HoraceH Online
        HoraceH Online
        Horace
        wrote on last edited by
        #4

        Without allowing for infinite flips, I don't see how it's possible.

        Education is extremely important.

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

          :::

          You just need two events that occur with equal probability. So do pairs of flips. H-T will occur with equal probability as T-H.

          :::

          Only non-witches get due process.

          • Cotton Mather, Salem Massachusetts, 1692
          HoraceH KlausK 2 Replies Last reply
          • jon-nycJ jon-nyc

            :::

            You just need two events that occur with equal probability. So do pairs of flips. H-T will occur with equal probability as T-H.

            :::

            HoraceH Online
            HoraceH Online
            Horace
            wrote on last edited by Horace
            #6

            @jon-nyc said in Puzzle time - biased to fair coin:

            :::

            In the general case, that still requires an unbounded number of flips. Imagine a highly, highly biased coin. But, I do take the meaning that you can keep flipping it twice till you get h/t or t/h in a pair of flips.

            :::

            Education is extremely important.

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

              Another method but it only works if you know p.

              :::

              Consider H and T as denoting bits 1 and 0 respectively.

              Imagine randomly generating a number between 0 and 1 using flips of the coin to generate bits after the “decimal” place.

              There has to be a median value x such you are equally likely to generate a number above x as generating one below x (assume infinite number of flips so the probability of generating x is 0).

              So flip the coin until you deviate above or below the binary expansion of x. Above is heads, below is tails.

              :::

              Only non-witches get due process.

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

                I'm sure that method has a much lower number of expected flips than the H-T/T-H method. At least for coins with a decent bias.

                Only non-witches get due process.

                • Cotton Mather, Salem Massachusetts, 1692
                KlausK jon-nycJ 2 Replies Last reply
                • jon-nycJ jon-nyc

                  :::

                  You just need two events that occur with equal probability. So do pairs of flips. H-T will occur with equal probability as T-H.

                  :::

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

                  @jon-nyc said in Puzzle time - biased to fair coin:

                  :::

                  You just need two events that occur with equal probability. So do pairs of flips. H-T will occur with equal probability as T-H.

                  :::

                  Yes. And if H-H or T-T occur, you ignore the attempt and make another trial (it's important to make a new trial; just going on until HT or TH occurs won't work). The idea stems from von Neumann.

                  1 Reply Last reply
                  • jon-nycJ jon-nyc

                    I'm sure that method has a much lower number of expected flips than the H-T/T-H method. At least for coins with a decent bias.

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

                    @jon-nyc said in Puzzle time - biased to fair coin:

                    I'm sure that method has a much lower number of expected flips than the H-T/T-H method. At least for coins with a decent bias.

                    Check out the "Iterated von Neumann extractor". It allows you to get arbitrarily close to extracting all the entropy in the biased coin flips. It's quite simple. You can generate a new biased sequence from the existing one. For instance, the sequence of discarded vs non-discarded pairs, or the sequence of which pair was discarded (e.g. generate H for HH and T for TT) yields another biased coin flips. When using these sources of randomness in the same way, one can iterate arbitrarily.

                    1 Reply Last reply
                    • jon-nycJ jon-nyc

                      I'm sure that method has a much lower number of expected flips than the H-T/T-H method. At least for coins with a decent bias.

                      jon-nycJ Online
                      jon-nycJ Online
                      jon-nyc
                      wrote on last edited by
                      #11

                      @jon-nyc said in Puzzle time - biased to fair coin:

                      I'm sure that method has a much lower number of expected flips than the H-T/T-H method. At least for coins with a decent bias.

                      It’s fairly straightforward to show that the expected number of flips to get a non-biased result using the official answer is 1/(p*(1-p)). And the expected number of flips using the binary representation method is half of that, or 1/(2p*(1-p))

                      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