In algorithmic information theory, algorithmic probability, also known as Solomonoff probability, is a mathematical method of assigning a prior probability to a given observation. It was invented by Ray Solomonoff in the 1960s. It is used in inductive inference theory and analyses of algorithms. In his general theory of inductive inference, Solomonoff uses the method together with Bayes' rule to obtain probabilities of prediction for an algorithm's future outputs. In the mathematical formalism used, the observations have the form of finite binary strings viewed as outputs of Turing machines, and the universal prior is a probability distribution over the set of finite binary strings calculated from a probability distribution over programs (that is, inputs to a universal Turing machine). The prior is universal in the Turing-computability sense, i.e. no string has zero probability. It is not computable, but it can be approximated. Formally, the probability P is not a probability and it is not computable. It is only "lower semi-computable" and a "semi-measure". By "semi-measure", it means that 0≤∑xP(x)<1. That is, the "probability" does not actually sum up to one, unlike actual probabilities. This is because some inputs to the Turing machine causes it to never halt, which means the probability mass allocated to those inputs is lost. By "lower semi-computable", it means there is a Turing machine that, given an input string x, can print out a sequence y1<y2<⋯ that converges to P(x) from below, but there is no such Turing machine that does the same from above.
Overview Algorithmic probability is the main ingredient of Solomonoff's theory of inductive inference, the theory of prediction based on observations; it was invented with the goal of using it for machine learning; given a sequence of symbols, which one will come next? Solomonoff's theory provides an answer that is optimal in a certain sense, although it is incomputable. Four principal inspirations for Solomonoff's algorithmic probability were: Occam's razor, Epicurus' principle of multiple explanations, modern computing theory (e.g. use of a universal Turing machine) and Bayes’ rule for prediction. Occam's razor and Epicurus' principle are essentially two different non-mathematical approximations of the universal prior.
Occam's razor: among the theories that are consistent with the observed phenomena, one should select the simplest theory. Epicurus' principle of multiple explanations: if more than one theory is consistent with the observations, keep all such theories. At the heart of the universal prior is an abstract model of a computer, such as a universal Turing machine. Any abstract computer will do, as long as it is Turing-complete, i.e. every computable function has at least one program that will compute its application on the abstract computer. The abstract computer is used to give precise meaning to the phrase "simple explanation". In the formalism used, explanations, or theories of phenomena, are computer programs that generate observation strings when run on the abstract computer. Each computer program is assigned a weight corresponding to its length. The universal probability distribution is the probability distribution on all possible output strings with random input, assigning for each finite output prefix q the sum of the probabilities of the programs that compute something starting with q. Thus, a simple explanation is a short computer program. A complex explanation is a long computer program. Simple explanations are more likely, so a high-probability observation string is one generated by a short computer program, or perhaps by any of a large number of slightly longer computer programs. A low-probability observation string is one that can only be generated by a long computer program. Algorithmic probability is closely related to the concept of Kolmogorov complexity. Kolmogorov's introduction of complexity was motivated by information theory and problems in randomness, while Solomonoff introduced algorithmic complexity for a different reason: inductive reasoning. A single universal prior probability that can be substituted for each actual prior probability in Bayes's rule was invented by Solomonoff with Kolmogorov complexity as a side product. It predicts the most likely continuation of that observation, and provides a measure of how likely this continuation will be. Solomonoff's enumerable measure is universal in a certain powerful sense, but the computation time can be infinite. One way of dealing with this issue is a variant of Leonid Levin's Search Algorithm, which limits the time spent computing the success of possible programs, with shorter programs given more time. When run for longer and longer periods of time, it will generate a sequence of approximations which converge to the universal probability distribution. Other methods of dealing with the issue include limiting the search space by including training sequences. Solomonoff proved this distribution to be machine-invariant within a constant factor (called the invariance theorem).
Fundamental Theorems
I. Kolmogorov's Invariance Theorem Kolmogorov's Invariance theorem clarifies that the Kolmogorov Complexity, or Minimal Description Length, of a dataset is invariant to the choice of Turing-Complete language used to simulate a Universal Turing Machine:
∀x∈{0,1}∗,|KU(x)−KU′(x)|≤𝒪(1) where KU(x)=minp{|p|:U(p)=x}.
Interpretation The minimal description p such that U(p)=x serves as a natural representation of the string x relative to the Turing-Complete language U. Moreover, as x can't be compressed further p is an incompressible and hence uncomputable string. This corresponds to a scientists' notion of randomness and clarifies the reason why Kolmogorov Complexity is not computable. It follows that any piece of data has a necessary and sufficient representation in terms of a random string.
Proof The following is taken from From the theory of compilers, it is known that for any two Turing-Complete languages U1 and U2, there exists a compiler Λ1 expressed in U1 that translates programs expressed in U2 into functionally-equivalent programs expressed in U1. It follows that if we let p be the shortest program that prints a given string x then:
KU1(x)≤|Λ1|+|p|≤KU2(x)+𝒪(1) where |Λ1|=𝒪(1), and by symmetry we obtain the opposite inequality.
… excerpt ends here. Continue reading the full article.

![Algorithmic probability: From observer states to physics via algorithmic probability. A colorful illustration of Observation 5.4 shows the computational ontological model's possible histories, represented as a tree graph. The vertices correspond to the random variable ωt (the computational state at time t), with valid states (black) forming a growing sequence of bit strings, while invalid states are shown in gray. Alice and Bob, observing an approaching meteorite, are part of the computational process, represented by fA(ωt′) and fB(ωt′), respectively. Their shared emergent reality transitions probabilistically: with 99% likelihood, the meteorite hits Bob3rd, and with 1%, it misses. Postulates 3.2 imply this outcome is irrelevant for Bob1st, whose state transitions elsewhere, as fB generates a semimeasure, not a measure. The fate of Bob1st lies beyond the scope of Postulates 3.2, awaiting Postulates 3.1.[1]](https://thumb.wikimedia.org/wikipedia/commons/thumb/b/bc/From_observer_states_to_physics_via_algorithmic_probability.png/330px-From_observer_states_to_physics_via_algorithmic_probability.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)