Random selection of numbers
08 Dec 2018
One often sees statements such as:
“For any given real number r, the probability of that real number being selected at random is exactly zero.”
This might appear to be rather a strange statement, so let’s look at what it involves. First of all we need to consider what the definition of probability is.
Objectively, the probability of an event having a particular outcome is simply the ratio of the number of times that outcome occurs relative to the total number of events, that is, the number of positive outcomes divided by the total number of events. There are also definitions of probability which include estimates, but here we are only concerned with probability in a rigorously objective sense since we are ostensibly dealing with rigorously calculated values.
For real world events that have occurred, the probability value is in principle completely determined, although in reality some of the data is usually inaccessible. For real world events, one might assume that, given sufficient data, the calculated value is a reasonable prediction of the likelihood of a positive outcome in a future event. A probability value of 1 means that the outcome is certain to occur on every happening of the event, while a probability value of 0 means that the outcome can never occur on any happening of the event.
There are two ways to obtain a probability value:
- By experimentation
- By calculation
In the first case, one can never be certain that the value is ever anything other than an approximation, that is, there is no guarantee that the value given by a particular sample used for the experiment will hold for future events.
In the second case, if one analyses the situation, one may be able to determine the relative frequencies of different outcomes of an event. For example, one may assume that for a perfect die, and given sufficient perturbation of the initial state of the die, the outcomes of any any particular number between 1 and 6 occurring are equal and hence the probability of a random throw of the die being, for example, 4 is 1/6.
We now ask what does it mean to “select a real number at random”?
For a human, one can only select a number that one can define within a reasonable timescale. Obviously, one cannot select a number by actually selecting a limitlessly long string of digits - no, one either has to write down a finite string of digits, or else write down a definition of a number. For an irrational number, the latter is the only possible way of selecting an irrational number. And, as already noted, you are more likely to select a number that can be relatively easily defined - it is not likely that you will select a number that requires twenty million symbols to define it.
So where does the claim come from that, for example, the probability of “selecting at random” the number 0.5 from the set of all real numbers is exactly zero?
Clearly it cannot mean the probability of a human selecting the number 0.5, so the only alternative is that some sort of hypothetical non-physical selection mechanism is being assumed. However, such an assumption cannot sit alongside the claim that the probability of selecting any specific real number is zero. That is contradictory, since on the one hand, any such hypothetical selection mechanism must be something that can select a real number, yet on the other hand, the probability of it selecting any particular number is said to be zero, hence it is impossible for the selection mechanism to actually select any number.
So where does this notion of a probability of exactly zero for selecting the number 0.5 come from? It appears to come from the notion, that, for the event of “selecting a number at random” the ratio of the number of times when that outcome is the number 0.5 to the total number of outcomes. Here we will use x to refer to the number of times when 0.5 is selected. The total number of outcomes is limitlessly large, giving the result:
x⁄limitlessly large quantity
and the assumption is that this has a value of zero.
If the x is a finite value, then it is correct that the limiting value of x⁄limitlessly large quantity is zero.
But why should one assume that x must be finite? If there is a hypothetical selection mechanism, and it can select a number, there is no sensible reason why it should be limited to only selecting a number a finite number of times. And as noted above, that actually leads to a contradiction. A hypothetical selection mechanism should be able to select infinitely many times, and by allowing x to be limitlessly large, rather than forcing it to be finite, we resolve the contradiction - if there is no limit on the quantity of selections that the hypothetical mechanism makes, then there is no limit on the number of times it will select any given number. And so we simply get the result that there is no calculable probability value that can be given for the “random selecting of a real number” since there is no real number value that corresponds to the notion of the ratio of a limitlessly large number to a limitlessly large number.
So a simple analysis shows that, unless one considers that the concept of the probability of “selecting a real number at random” means in some way the selection of a real number by a human, the idea that one can assign a meaningful probability value to it has no validity whatsoever.
The pitfalls of making unwarranted implicit assumptions regarding the notion of “choosing real numbers at random” can be demonstrated by a consideration of an old chestnut, the Bertrand Paradox; the analysis can be seen on this site at the Bertrand Paradox.
For a simpler example the pitfalls are nicely shown by the following example (original page at If a real number x is chosen at random in… ):
If a real number x is chosen at random in the interval [0,3] and a real number y is chosen at random in the interval [0,4], what is the probability that x < y?
The answer is given as:
We are given that 0 ≤ x ≤ 3 and 0 ≤ y ≤ 4
Thus the region x-y when plotted gives you a rectangle with base = 3 units and height = 4 units (as shown in the picture), giving you a total area = 4*3 = 12 square units.
Now, realize that y = x is a line that passes through (0,0) and (3,3) and divides the above rectangle into a trapezoid (ABCD) and a triangle. The area y > x will belong to the trapezoidal area.
Thus, the area of the trapezoid = 0.5*(4+1)*3 = 15/2
Finally, the required probability = trapezoid area / total area = (15/2)/12 = 12/24 = 5/8.
So what does it mean here when it says “chosen at random”?
The calculation given cannot mean that it is the result for numbers chosen by some perfectly unbiased hypothetical selection method, since it assumes that there are “more” numbers in one case than the other because the corresponding area in one case (the area ABCD, where y > x) is bigger than the other (the area DCE, where y < x). But the quantity of real numbers between 0 and 3 is infinite, and the quantity of real numbers between 0 and 4 is infinite, and the real numbers between 0 and 3 can be put in a one-to-one correspondence with the real numbers between 0 and 4.
So if it does not mean by some perfectly unbiased hypothetical selection method, what might it mean? Does it mean that if a human is asked to choose two such numbers at random, the probability is 5/8 that he will pick two numbers where x < y ?
But is that a plausible answer? Alternatively one could reasonably assert that a human choice (assuming that it has some sort of meaning) is equivalent to picking either 0, 1, or 2 for the integer part of the x, and adding a randomly chosen non-integer part (a random real number r1 between 0 and 1, whatever that might mean), and picking either 0, 1, 2 or 3 for the integer part of the y, and again adding a randomly chosen real number r2 . The probability for the choice of the randomly chosen non-integer part is the same for both, but if we work out the probability for choosing 0, 1, or 2 for the integer part of the x, and 0, 1, 2 or 3 for the integer part of the y, then we can easily see that there are 12 possible combinations of these integer values. And of these combinations 6 are where the integer part of x is less than the integer part of y, hence 6 combinations are where x < y regardless of the non-integer part. Similarly 4 combinations are where x > y regardless of the non-integer part. That leaves 2 combinations which have the same value integer part; for the real numbers given by these combinations, the probability that x < y is the same as the probability that x > y. Hence (ignoring cases where x = y) this gives that, on average, 7 out of 12 combinations will give x < y so the probability that x < y is 7/12, which is less than the value of 5/8 calculated by the other method.
So what is the ‘real’ meaning of “choosing a real number at random”? Does it have any meaning at all?
Models and reality
What is the probability that a person selected at random from the population has a height of exactly 1.9 metres? A mathematical model can be used to calculate probability values for human heights and which uses some form of distribution equation. According to such a model, the probability that a person selected at random has a height of exactly 1.9 metres is zero. Some people seem to think that this is a result of deep significance.
But the actual probability of a person’s height being some value h metres is simply the total number of persons whose height is h metres divided by the total number of people. For some heights, the value may be zero. But it’s quite obvious that it can’t be zero for every height.
The discrepancy is simply the result of the difference between the mathematical model and the actual real world situation. Such mathematical models are used because they give a very good approximation to certain real world situations, and because they are convenient - but they are not perfect reflections of real world situations. A commonly used distribution equation is the Gaussian normal distribution equation, which is commonly represented in graphical form as a bell curve.
The equation of itself says nothing about probability, but it can be applied as a model that gives a reasonable approximation to certain real world situations. It is simply an equation which defines a curve; for any given situation, it has two fixed parameters and a free variable which is the x in the graph. For the case of human height, the x can be used to represent the height, but note that the y in the graph does not represent a probability value. The calculation of the integral (the area below the curve) between two height values gives a value that is a good approximation to the real world probability of selecting at random a human whose height lies between those values. The equation is such that the total area under the curve is 1.
However, if you try to obtain the value of the integral (the area below the curve) at a single point, you get the result of zero. It would be a mistake to think that that means that the probability of selecting a person whose height is that particular value is zero. That would be a failure to understand the limitations of applying an idealized mathematical model to a real world situation.
Diverse opinions and criticisms are welcome, but messages that are frivolous, irrelevant or devoid of logical basis will be blocked. Difficulties in understanding the site content are usually best addressed by contacting me by e-mail. Note: you will be asked to provide an e-mail address - any address will do, it does not require verification. Your e-mail will only be used to notify you of replies to your comments - it will never be used for any other purpose and will not be displayed. If you cannot see any comments below, see Why isn’t the comment box loading?.