# Apparent Paradox in the Idea of Random Numbers

This question is a bit less than rigorous, but it's only because I don't know how to formulate it rigorously.

Suppose there was some machine, or function, or whatever that could output a random positive whole number. Let's say that it has done its job and I have a number n.

Here's what seems like a paradox to me: if n really was randomly generated, I shouldn't be surprised by its value, no matter how big or small. After all, there is no number that I should have expected more than any other.

On the other hand, if I asked the question of whether I expected the number to be bigger or smaller than the one that I got, the answer would always be bigger. In fact, it was infinitely more likely that I would have gotten a number bigger than what I got. If I got a digit with one billion digits, there are still infinitely more numbers above n than there are below it. No matter the number, it is infinitely improbable that it could have been that small.

Is it just that the idea of picking randomly from an infinite set doesn't make any sense? Or is this a problem that one also runs in to when trying to pick a random element of a finite set?

-
–  Rahul Jul 14 at 4:57
And what if there is no truly random machine? –  user21820 Jul 14 at 6:05
@user21820 This is an altogether different can of worms, better not open it in the present context. –  Did Jul 14 at 9:21
@Did: Heheh alright. –  user21820 Jul 14 at 9:48
@EricTowers - to understand your question is to know the answer to the OP. –  jwg Jul 14 at 14:42

Picking a number at random from an infinite set makes perfect sense. It just can't be done uniformly over all points. You would have to specify the probability of (in your case, the natural numbers) choosing each and every natural number. That is, for every $n\ge 1$ you must specify a probability $p_n\ge 0$. The only requirement is that $\sum_np_n=1$. Now, your paradox arises from the hidden supposition that the distribution is uniform, i.e., that $p_n=p_m$ for all $n,m$. This is of course inconsistent, so not such probability distribution exists.

Now that you know that, you must revise your question and see if the paradox survives. So, if you are now given a machine that generates a random natural number according to some distribution (which may or may not be known to you), are you surprised at the outcome? if you see the number $1005$, do you expect the next number to be larger or smaller?

-
Shouldn't we consider finite-addictive probability instead, through some ultrafilter on $\mathbb{N}$ or something? The main gist of the question still survive even in finite-addictive probability world. –  Gina Jul 14 at 5:15
the paradox relies on a uniform distribution (uniform on all points that is). No such thing exists on a an infinite set except for the uniformly $0$ distribution. According to that distribution (however you wish to relate it to probability) any outcome should surprise you immensely. The paradox is dead. –  Ittay Weiss Jul 14 at 5:18
On the standard probability on $[0,1]$, probability on each number is $0$, so should you be surprised on any number you get, or not at all? I think this is still the same type of paradox as that, except that for it to make sense you need to cast it in finitely addictive probability, which allow you to also have infinite set with positive probability even if each number is probability 0. And yes, finitely addictive probability, while not as mainstream, is still quite a valid form of statistics, so please don't make it sounds like it does not exist. –  Gina Jul 14 at 5:38
@julian, what the the Axiom of Choice have to do with it? –  Gerry Myerson Jul 14 at 6:43
I can certainly imagine a situation where I don't have all the information yet some oracle does (at least have more information than I do) and that asking the oracles has a cost which may be factored in to an algorithm. But I can't possibly imagine an oracle choosing integers uniformly at random. –  Ittay Weiss Jul 14 at 7:34

I'm very rusty, but I'd say if you want the probability that a number is lower than your current pick, you'd use the following formula, where A = the maximum number in the set and B is the number you picked:

P(lower) = 1 - (A-(B-1))/A

So if you were picking from 1 to 10 and picked 9, the probability of picking a lower number would be 1 - (10-(9-1))/10, or 0.8.

How this works when A is infinite is a bit beyond me, but intuitively I'd agree with you: dividing infinity by infinity is 1 (except it isn't, but it feels right!), and then 1-1 is zero, so P(lower) will be 0.

-