by eddd-ddde · 2y ago · 0 comments
https://en.m.wikipedia.org/wiki/Randomness_extractor#Von_Neu...
Someone please (jump?) at the chance to explain this one to me.
(assume i failed 9th grade 3 times)
"The Von Neumann extractor can be shown to produce a uniform output even if the distribution of input bits is not uniform so long as each bit has the same probability of being "one"->[first] and there is no correlation between successive bits.[7]"
As long as the person doesn't favor which of the two bits they chose is "first", then it should appear as random.
But that is self-defeating, as if the person had the capability to unbiased-ly choose between two binaries, they wouldn't need the coin.
But since the only way to determine the variation from expectation is repeatedly increasing sample size, I don't see how doing it twice, and just taking encoding of the bits, then...
Is the magic in the XOR step? To eliminate the most obvious bias (1v5 coin), until all that could had been left was incidental? Then, always taking the first bit, to avoid the prior/a priori requisite of not having a fair coin/choosing between two options?
and it clicked. Rubber duck debugging, chain of thought, etc.
I will actually feel better now.
Only holds if no spooky effects change results based on last result. (like a magic die that counts upwards or a magic coin that flips T after H no matter what)
P(TH) = p(T)*p(H) = P(HT)
It's not even really "spooky" - all you need is a flipping apparatus that's biased towards an odd number of rotations, and so then THTH is more common than THHT and you get a bias towards repeating your last result.
I suspect that when the user is loading coins or dice in the machine, they would notice any dirt that was significant enough to look as though it might be a problem.
And oil deposits from your fingerprints I would imagine are so minuscule as to be insignificant in creating varying bias.
Even then, in both cases, you could wipe the objects with an alcohol swab before putting them into the shaker cups.
It could be argued, I suppose, that every micro-collision of the coin or die with the cup removes a few atoms, but I would suggest that its effect on the bias of the coin or die over time is again minuscule. Indeed, unmeasurable over a full sequence of cycles (128 for example) of the machine when generating a Bitcoin key.
But an interesting point. Keep 'em coming!
P(H|N) != P(T|N)
And
P(H|N) != P(H|N-1) (and visa versa)
Means that
P(HT) = P(H|N-1, T|N) != P(TH)