51 points · by anigbrowl · 17y ago · 53 comments
Here's a blog post that explains this in more detail: http://www.billthelizard.com/2009/09/getting-fair-toss-from-...
You can be sure all future coin tosses I do will use this technique!
It's a biased flip.
Your solution does not help with that.
It's still an issue, GP is very right. The problem is that you can get any desired outcome with some probability p: it's effectively a coin that changes bias depending on the flipper's preference.
I'm trying to think of a solution that resolves this... thoughts encouraged. :)
http://gamesbyemail.com/News/DiceOMatic
It can generate 1.5 million dice rolls per day.
Obligatory wikipedia link: http://en.wikipedia.org/wiki/Randomness_extractor#Von_Neuman...
When the conditions are controlled then so is the probability. The results of this research should not be surprising despite the tone of the article.
Actually, even if you can have data at atomic level you still have chaos theory and butterfly effect preventing you from making prediction. Then even some small fluctuation born by the Plank's "uncertainty principle" can grow up in time to big enough error.
If it was random, the output does not depend on the input (or there is no meaningful input).
But they showed that the output depends on the input. So it's NOT random.
Biased random means the result is not uniform, but it does not depends on the input.
No so here. Here it's not biased - it simply depends on the input.
(Obviously pseudo random number generators depend on the input - but those explicitly are not random, they are simply useful.)
Let's assume we have a function true_random() that returns a true random value between 0 and 1. Now let's define f(x) as:
def f(x):
r = true_random()
if r < 0.5: return r
else: return x
Half the time, it returns a random value between 0 and 1. The other half, it returns its input. This is still a random process.This is called Kolmogorov randomness and has nothing to do with how input effects the output. In this instance, any string generated by a million coin tosses couldn't be reproduced by an algorithm that is smaller than the string, in general. By this metric I'd argue that the process is still random.
Just because the input has an effect on the output, doesn't make the output less random. "F(x) = x + rand()" is still a random function.
Or, looked at another way, it's not random at all. It's a very simple function of the coin's initial state and the forces applied to it. If you knew all of those, you would be able to predict the results ahead of time.
[0] http://www.dotmancando.info/index.php?/projects/coin-flipper...
So he emphasises that coin tosses obey the laws of physics and are not random, but we use them anyway because we don't know the facts that we need to know in order to call the toss. He included experimental results of successful cheating, but with a jam jar lid instead of a coin. Clearly we call a coin toss "random" because of the practical difficulties involved in predicting the motion of a disk much smaller than a jam jar lid.
If we view a coin flip as a random variable X that describes the number of revolutions, then X has a value of 0 to infinity.
Before the coin is flipped, lets say H faces up. Then as X marks the number of revolutions, R will describe the result:
X: 0 1 2 3 4 5 6 ..
R: H T H T H T H ..
As you can see for any value of X, the number of times H was up is always equal or once more then T. This shows a clear bias for the side facing up.The way to model this would be to come up with a probability distribution for the number of revolutions. If the distribution is skewed towards few revolutions, (something like a poisson distribution, say) then it's very likely that the outcomes have probabilities ≠50% due to the discretisation.
In practical terms, I guess the person flipping the coin should be required to flip it such that it rotates very fast, which ought to provide a gaussian distribution around a high number of revolutions.
I was especially tickled near the end of the article where they described discussions on changing the overtime rules. When they mentioned the players' reaction, I thought it would turn on something related to winning, and I was surprised to learn that their objection was more playing time and more chance of injury.