Most active commenters

    ←back to thread

    399 points seanhunter | 19 comments | | HN request time: 1.202s | source | bottom
    1. NameError ◴[] No.42184405[source]
    Easy way to get a fair result from an unfair coin toss: Flip the coin twice in a row, in this case starting with the same side facing up both times, so it's equally unfair for both tosses. If you get heads-heads or tails-tails, discard and start over until you get either heads-tails or tails-heads, which have equal probabilities (so you can say something like HT = "heads" and TH = "tails").

    This works even if the coin lands heads 99% of the time, as long as it's consistent (but you'll probably have to flip a bunch of times in that case).

    replies(6): >>42184523 #>>42184538 #>>42184568 #>>42184577 #>>42185040 #>>42187238 #
    2. mankyd ◴[] No.42184523[source]
    Importantly - you don't have to know the odds of the coin ahead of time, or which side is more likely. You only need to know that it is consistent.
    replies(1): >>42184778 #
    3. legobmw99 ◴[] No.42184538[source]
    I’ve seen this attributed to John von Neumann, of all people
    replies(1): >>42184702 #
    4. ant6n ◴[] No.42184568[source]
    What if consecutive unfair coin flips are not independent?
    replies(1): >>42184717 #
    5. simcop2387 ◴[] No.42184577[source]
    If anyone wants to look up why this might work, it's a Whitening transform [0]. I can't find the name of the algorithm itself being describe in the parent but there's more than just that for accomplishing the same thing.

    0: https://en.wikipedia.org/wiki/Whitening_transformation

    replies(2): >>42185097 #>>42188994 #
    6. NameError ◴[] No.42184702[source]
    It seems like he did everything! I first heard of Von Neumann in international relations & economics classes as the person who established game theory, then later in CS classes as the creator of mergesort, cellular automata, Von Neumann architecture, etc.
    replies(1): >>42184874 #
    7. FartyMcFarter ◴[] No.42184717[source]
    Then it's impossible to trust the coin in the general case.

    Proof: Imagine the extreme case of the coin containing AI that knows exactly how you use it and how to manipulate each toss result. The coin itself can decide the outcome of your procedure, so it's impossible to trust it to generate randomness.

    replies(1): >>42184848 #
    8. IncreasePosts ◴[] No.42184778[source]
    The odds are important to know because if someone gave you a trick coin that always lands on heads, you will be flipping coins until the end of the universe. And I'm sure you have more important things to do than that.
    replies(2): >>42184898 #>>42184924 #
    9. lisper ◴[] No.42184848{3}[source]
    It's also impossible to prove that a given coin is not being controlled by an AI. (Or a deity.)
    replies(1): >>42184925 #
    10. vonneumannstan ◴[] No.42184874{3}[source]
    Wait til you hear about what he did in Math and Physics...

    Very easy to claim he was the most intelligent human to ever live. Or perhaps he was never human...

    https://en.wikipedia.org/wiki/The_Martians_(scientists)

    replies(1): >>42185053 #
    11. Vecr ◴[] No.42184898{3}[source]
    Nah, you can put in a rule to stop. It would be better to know ahead of time, but you don't need to.
    12. magicalhippo ◴[] No.42184924{3}[source]
    > you will be flipping coins until the end of the universe

    Reminds me of one of my favorite movies, Rosencrantz & Guildenstern Are Dead, which opens with just such a scenario[1].

    [1]: https://www.youtube.com/watch?v=RjOqaD5tWB0

    13. FartyMcFarter ◴[] No.42184925{4}[source]
    Yes, which is why you can only trust abstract coins that exist in a formal system which assumes independent tosses :)

    If you require true randomness without any assumptions this is not the universe for you.

    replies(1): >>42185490 #
    14. ◴[] No.42185040[source]
    15. EGreg ◴[] No.42185053{4}[source]
    I consider LLMs to be the first successful non-von-neumann architecture in many decades
    16. npsomaratna ◴[] No.42185097[source]
    Thank you. This was useful to learn.
    17. jjk166 ◴[] No.42185490{5}[source]
    Just perform the same coin toss in two universes.
    18. Aloisius ◴[] No.42187238[source]
    Each flip would need to start with the same side up though, if this paper is correct.
    19. aidenn0 ◴[] No.42188994[source]
    That's Von Neumann Whitening.