What is randomness?
For the theoretical computer scientist in the late 1970s, before the hardness v. randomness program truly took off, I think this was a metaphysical question more than it was a mathematical one. Before the 1970s, randomness in mathematics would be studied via properties of randomness, but not necessarily the “source” of randomness.
One would take for granted that uniform randomness (a fair coin) exists, and from this source of randomness, ask various questions and develop a theory to understand patterns in randomness (probability theory)1.
In other words, the question of, “where can we get a fair coin” wasn’t really the subject of mathematical inquiry, but rather a philosophical/metaphysical one.
Randomness has been a question spanning many centuries of recorded history, from “Tyche” and “Automaton” in Aristotle’s Physics (~330 BCE), Spinoza, Hume, and Laplace, who holds the classical perspective, Einstein + Bohr (“God doesn’t play dice with the universe”), Kolmogorov/Chaitin/Martin-Löf (who studied the compression perspective), and finally the more recent complexity theory viewpoint of Yao, Blum, Nisan, and Wigderson (to name a few). As our theories of mathematics became richer, viewpoints shifted from something more abstract (metaphysics) to something more concrete with formal definitions and anchors in reality (quantum mechanics, computability theory, complexity theory).
Epistemic vs. Ontic Randomness
There are two kinds of randomness we must discuss. The first is the epistemic kind: randomness that is not an inherent property of the phenomenon itself, but rather a label we stick onto “things” in our universe which are difficult to predict (e.g. coin flips).
Taken to its extreme, this gives the epistemic view: the claim that all randomness is epistemic. Under this view, randomness doesn’t truly exist, so the universe is pre-determined, and everything we label as “random” is merely difficult to predict. Even theories such as quantum mechanics, which have a probabilistic nature to them, can be argued to be an “epistemic” theory2: it only predicts what we know, and not how the universe actually is. Note the following: it could be the case that the universe is predetermined, but using probability theory is our best bet at making predictions of the universe, even if under the hood, the universe were deterministic. Einstein famously had qualms about randomness being an inherent feature of quantum mechanics, claiming “God doesn’t play dice with the universe”.
On the other hand, ontic randomness describes the sort of randomness that you might expect… it’s the kind where there are truly some processes occurring in the universe which cannot be predicted. Quantum mechanics is proposed as an ontic theory, since the theory supposes that there are genuinely unpredictable phenomena3.
Relationship between epistemic and ontic randomness
From here on, we’ll refer to epistemic randomness as randomness which comes from phenomena that are difficult to predict, and ontic randomness as randomness which comes from phenomena that are truly random (i.e., truly fair coins). Note that these are kinds of randomness, not competing worldviews: the epistemic view says that only the first kind exists, but nothing stops a universe from containing both.
An interesting question to ask is how they compare!
More formally, let \(\mathcal{E}\) be the sources of epistemic randomness, and \(\mathcal{O}\) be the source of ontic randomness.
Then, what is the relationship between these sets?
At a first glance, it’s pretty clear that a source with ontic randomness must also have epistemic randomness, since truly random phenomena are impossible to predict and thus are certainly difficult to predict.
So, we can conclude that \(\mathcal{O} \subseteq \mathcal{E}\). However, the other direction is not necessarily true. A source of epistemic randomness need not have ontic randomness, since the source of epistemic randomness could be from hard-to-predict phenomena4, rather than unpredictability.
Interestingly, Cloudflare uses a wall of about 100 lava lamps in its San Francisco lobby as one of the sources of randomness for its encryption! A camera films the wall, and the images are mixed into the seed of Cloudflare’s random number generator.
Cloudflare's lava lamp wall. Photo by Fastily, CC BY-SA 4.0.
We will lastly define pseudorandomness as \(\mathcal{P} = \mathcal{E} \setminus \mathcal{O}\).
Hence, it seems reasonable to believe the inclusion is strict: \(\mathcal{O} \subsetneq \mathcal{E}\) and therefore, pseudorandomness exists.
A complexity theory perspective
Of course, this wouldn’t be a bleu blog if we didn’t talk about complexity theory.
In the 1980s, it was discovered that, if you assume the existence of hard-to-compute functions, then one can de-randomize a complexity class called \(\textsf{BPP}\), which one can think of as \(\textsf{P}\) but with access to some source of ontic randomness.
Put in layman’s terms: there are some problems which, when you’re given some source of ontic randomness, you’re able to solve these problems really fast. Theorists have searched for algorithms that can solve the same problem with no ontic randomness, but weren’t able to find any that can solve it fast. Then, in the late 1980s, a few theorists discovered that, if instead of ontic randomness, you instead have a source of pseudorandomness, then you can solve the same problems really fast, but deterministically (and without the need for ontic randomness)!
In other words, even in a world without ontic randomness, one can replace the ontic randomness that was believed to be required in these problems with pseudorandomness, and still solve the same problem.
There are some remarks left to be made here.
First, the matter of perspective. In the complexity theory viewpoint, randomness is a byproduct of the computational ability of the observer. In other words, things that are difficult to predict (for some computationally limited observer, such as humans, or time/space-bounded algorithms) might as well be random!
An example I really like is the one given by Avi Wigderson in his talks on hardness vs randomness. Suppose that you flip a coin. In the few seconds that the coin is in the air, your job is to try to predict which side the coin will land on. Of course, you probably won’t be able to do any better than random chance (i.e., about 50-50 odds5). However, suppose that you now do the same coin flip but now, you have 100 slow-mo cameras monitoring the trajectory of the coin in the air, hooked up to the most powerful supercomputer on the planet which runs various computations taking into account the flow of air in the room you’re in, temperature of the air, strength of your thumb flick, etc, etc.
It is almost surely the case that now, you will be able to predict which side the coin will land on with better than 50-50 odds. In fact, you could probably predict it correctly almost always!
Of course, nothing about the coin flip (the phenomenon) changed at all. Instead, the computational ability is what changed, and thus the power of the source of your randomness weakened! In other words, randomness is the byproduct of our inability to predict. This is clearly similar to the epistemic randomness viewpoint, but grounded in mathematics. Equivalently, if you have some phenomenon that’s hard to predict, it seems reasonable that you might be able to replace ontic randomness with a coin that’s generated from this (deterministic) hard-to-predict phenomenon!
Second, one might ask: “sure, I can see why randomness can be replaced with hard phenomena / pseudorandomness, but why should we care? Can’t you solve any deterministic problem without randomness anyways?”
Maybe the better question is: “are there questions you can answer more efficiently if you have access to randomness?” Perhaps intuitively, it may seem like the answer is no. After all, why should flipping coins help you answer questions… at all? But it turns out that the answer is probably yes, and the example isn’t so contrived!
Suppose you would like to predict who will win the election in your hometown for mayor. Of course, you can go around to each house and ask: who will you vote for? And tally these votes up. But there’s actually a more efficient way to go about this, if you’re willing to accept some variance… sampling! Just sample from your population of hometown’ers and ask the same question! You’ll get some variance but w.h.p. + the law of large numbers, you’ll be able to predict the election outcome with high confidence!
Conclusion
So… what is randomness?
Surprisingly, the answer doesn’t depend on whether you believe it exists or not!
If you believe it doesn’t exist, then randomness is just hard-to-predict pheneomena. If you believe it doesn’t exist AND you’re a computer scientist? Then it’s hard-to-predict phenomena with respect to some computational model.
If you believe it exists, then the same applies.
In the end, we’re left with a win-win argument that randomness comes from the inability for us to predict certain pheneomena, although, I must say, the complexity theory viewpoint is certainly more exciting to think about6.
-
Indeed, a completely different (geometric) interpretation of probability theory exists, that being the study of partitions of volumes and center of mass for said volumes–completely absent of any “randomness” (i.e., measure theory). ↩
-
Look at footnote 3. ↩
-
Actually, it seems there are rigorous mathematical arguments to be made surrounding Bell’s Theorem / local hidden variables which allow one to reject many arguments which call quantum an epistemic theory. Maybe I will look more into this in the future! ↩
-
E.g., the n-body problem for greater than 2 celestial bodies ↩
-
Funnily enough, you can actually do better than 50-50 odds if you predict the side that started face-up, according to a study by Diaconis-Holmes-Montgomery in 2007! (the coin has a 51% chance of landing on the side that starts face up!) ↩
-
There is so much more to say on this, such as the Nisan-Wigderson pseudorandom number generator construction; weak vs. strong sources of entropy, etc, etc, but I guess that’s for another day ↩