User:Thepigdog/Inductive probabilities

Inductive probability attempts to give the probability of future events based on past events. It is the basis for inductive reasoning, and gives the mathematical basis for learning and the perception of patterns.

It differs from classical and frequentist probability in that it does not rely on capturing the frequency of previous events in estimating probabilities, or on other assumptions of fairness.

However inductive probability turns out to be strongly related to Bayesian probability which in turn is related to classical and frequentist probability through Bayes' theorem.

Probability definition edit

Probability is defined as sets of outcomes, in a sample space. Set Boolean duality,

 
 
 
 

A definition of the probability of a Boolean expression is needed. Given a condition C,

 

The condition probability may be identified with implication. The conditional probability   is the proportion of outcomes where being in B implies also being in A.

Axioms in words,

  • Sum of mutually exclusive conditions is 1.
  • If A and B are independent,
 
  • Independent means,
 

Even simpler is, probability is a number associated with a boolean condition, such that;

 
 

Bayes theorem,

 

is equivalent to,

 

Principle of indifference does not work edit

Indifference only works if we have physical knowledge about the source of the events. Frequentist and classical probability rely on the principle of indifference, which makes them dependent on information beyond the Boolean conditions known to the intelligent agent.

If x is a member of a set and indifference is used to say that the probability of a variable having each value is the same, then the condition may be re-encoded to give a different set, to which indifference may also be applied. This would give different probabilities, which is a contradiction.

The principle of indifference is then inconsistent, when applied to sets, unless other information about the environment is known, and may not be used for inductive inference.

Boolean induction edit

Boolean induction starts with a target condition C which is a Boolean expression. Induction is of the form,

A theory T implies the statement C. As the theory T is simpler than C, induction says that there is a probability that the theory T is implied by C.

The method used is based on Solomonoff's theory of inductive inference.

Results edit

The expression obtained for the probability that the theory T is implied by the condion C is,

 

A second version of the result derived from the first, by eliminating theories without predictive power is,

 
 

where,

 

Implication and condition probability edit

The following theorem will be required in the derivation of Boolean induction. Implication is related to conditional probability by the following law,

 

Derivation,

 
 
 
 
 
 
 

Probability of a bit string edit

The principle of indifference is not valid in the real world. Dice may be loaded, and coins not fair. Knowledge of the physical world must be used to determine if the coin is fair.

However in the mathematical world indifference may be used. One bit of information has equal probability of being 1 or 0. Then each bit string has a probability of occurring,

 

where L(a) is the length of the bit string a.

The parser compiler for mathematics edit

The parser compiler for mathematics, represented by R is a function that takes a bit string and converts it into a logical condition.

The way the bit string is encoded will determine the probability of Boolean expressions. The encoding must be close to optimal to get the best estimate. Consideration of other encodings is possible. For the purposes of Boolean induction, the encoding given here is considered the best, and no other encoding is necessary. Theoretically this is an approximation.

Each expression is the application of a function to its parameters. The number of bits used to describe a function call is,

  • The size of the encoding of the function id.
  • The sum of the sizes of the expressions for each parameter.

A constant is encoded as a function with no parameters.

The function id is encoded with the prefix code based on the number of uses of the function id in the expression.

Distribution of natural numbers edit

No explicit representation of natural numbers is given. However natural numbers may be constructed by applying the successor function to 0, and then applying other arithmetic functions. A distribution of natural numbers is implied by this, based on the complexity of each number.

Model for constructing worlds edit

A model of how worlds are constructed is used in determining the probabilities of theories,

  • A random bit string is selected.
  • A condition is constructed from the bit string, using the mathematical parser.
  • A world is constructed that is consistent with the condition.

If w is the bit string then the world is created such that   is true. An intelligent agent has some facts about the word, represented by the bit string c, which gives the condition,

 

The set of bit strings consistent with any condition x is  .

 

A theory is a simpler condition that explains (or implies) C. The set of all such theories is called T,

 

Applying Bayes' theorem edit

The next step is to apply the extended form of Bayes' theorem

 

where,

 
 

To apply Bayes' theorem the following must hold,

  •   is a partition of the event space.

For   to be a partition, no bit string n may belong to two theories. To prove this assume they can and derive a contradiction,

 
 
 

Secondly prove that T includes all outcomes consistent with the condition. As all theories consistent with C are included then   must be in this set.

So Bayes theorem may be applied as specified giving,

 

Using the implication and condition probability law, the definition of   implies,

 

The probability of each theory in T is given by,

 

so,

 

Finally the probabilities of the events may be identified with the probabilities of the condition which the outcomes in the event satisfy,

 

giving

 

This is the probability of the theory t after observing that the condition C holds.

Removing theories without predictive power edit

Theories that are less probable than the condition C have no predictive power. Separate them out giving,

 

The probability of the theories without predictive power on C is the same as the probability of C. So,

 

So the probability

 

and the probability of no prediction for C, written as  ,

 

The probability of a condition was given as,

 

Bit strings for theories that are more complex than the bit string given to the agent as input have no predictive power. There probabilities are better included in the random case. To implement this a new definition is given as F in,

 

Using F, an improved version of the inductive probabilities is,

 
 

Intelligent agent edit

An intelligent agent has a set of actions A available. An agent also has a goal condition G. The probability of G should be maximized by choosing actions from A.

  • calculate probability achieve goal in next step or step after
 

????

 
 

where,

 


 
 
 
 

Universal prior edit

Now apply Boolean induction again with C as  ,

 

Introduction edit

Classical probability starts with considering a fair coin. Inductive probability starts by considering an unknown coin. Fair or not fair is unknown. It is considered as a series of bits arriving from an unknown but identifiable source.

If the coin is fair then the probability of any one series of bits is,

 

where n is the length of the sequence of bits represented by x.

Writing   as the length of the message x gives,

 

This relates the amount of information to the probability of the message. A simpler theory may be described with less data, so is then more probable. Occam's razor states the simplest theory, that fits all the facts, is the most likely.

Patterns in the data edit

If all the bits are 1, then people infer that there is a bias in the coin and that it is more likely also that the next bit is 1 also. This is described as learning from, or detecting a pattern in the data.

Such a pattern may be represented by a computer program. A short computer program may be written that produces a series of bits which are all 1. If the length of the program K is   bits then it's prior probability is,

 

The length of the shortest program that represents the string of bits is called the Kolmogorov complexity.

Kolmogorov complexity is not computible. This is related to the halting problem. When searching for the shortest program some programs may go into an infinite loop.

Considering all theories edit

The Greek philospher Epicurus is quoted as saying "If more than one theory is consistent with the observations, keep all theories"[1].

As in a crime novel all theories must be considered in determining the likely murderer, so with inductive probability all programs must be considered in determining the likely future bits arising from the stream of bits.

Programs that are already longer than n have no predictive power. The raw (or prior) probability that the pattern of bits is random (has no pattern) is  .

Each program that produces the sequence of bits, but is shorter than the n is a theory/pattern about the bits with a probability of   where k is the length of the program.

The probability of receiving a sequence of bits y after receiving a series of bits x is then the conditional probability of receiving y given x, which is the probability of x with y appended, divided by the probability of x. [2] [3] [4]

Universal priors edit

The programming language effects the predictions of the next bit in the string. The language acts as a prior probability. This is particularly a problem where the programming language codes for numbers and other data types. Intuitively we think that 0 and 1 are simple numbers, and that prime numbers are somehow more complex the numbers may be factorized.

Using the Kolmogorov complexity gives an unbiased estimate (a universal prior) of the prior probability of a number. As a thought experiment an intelligent agent may be fitted with a data input device giving a series of numbers, after applying some transformation function to the raw numbers. Another agent might have the same input device with a different transformation function. The agents do not see or know about these transformation functions. Then there appears no rational basis for preferring one function over another. A universal prior insures that although two agents may have different initial probability distributions for the data input, the difference will be bounded by a constant.

So universal priors do not eliminate an initial bias, but they reduce and limit it. Whenever we describe an event in a language, either using a natural language or other, the language has encoded in it our prior expectations. So some reliance on prior probabilities are inevitable.

A problem arises where an intelligent agents prior expectations interact with the environment to form a self reinforcing feed back loop. This is the problem of bias or prejudice. Universal priors reduce but do not eliminate this problem.

Minimum description/message length edit

The program with the shortest length that matches the data is the most likely to predict future data. This is the thesis behind the Minimum message length[5] and Minimum description length[6] methods.

At first site Bayes' theorem appears different from the minimimum message/description length principle. At closer inspection it turns out to be the same. Bayes' theorem is about conditional probabilities. What is the probability that event B happens if firstly event A happens?

 

Becomes in terms of message length L,

 

What this means is that in describing an event, if all the information is given describing the event then the length of the information may be used to give the raw probability of the event. So if the information describing the occurrence of A is given, along with the information describing B given A, then all the information describing A and B has been given.[7] [8]

Overfitting edit

Overfitting is where the model matches the random noise and not the pattern in the data. For example take the situation where a curve is fitted to a set of points. If polynomial with many terms is fitted then it can more closely represent the data. Then the fit will be better, and the information needed to describe the deviances from the fitted curve will be smaller. Smaller information length means more probable.

However the information needed to describe the curve must also be considered. The total information for a curve with many terms may be greater than for a curve with fewer terms, that has not as good a fit, but needs less information to describe the polynomial.

Universal artificial intelligence edit

The theory of universal artificial intelligence applies decision theory to inductive probabilities. The theory shows how the best actions to optimize a reward function may be chosen. The result is a theoretical model of intelligence. [9]

It is a fundamental theory of intelligence, which optimizes the agents behavior in,

  • Exploring the environment; performing actions to get responses that broaden the agents knowledge.
  • Competing or co-operating with another agent; games.
  • Balancing short and long term rewards.

In general no agent will always provide the best actions in all situations. A particular choice choice made by an agent may be wrong, and the environment may provide no way for the agent to recover from an initial bad choice. However the agent is Pareto optimal in the sense that no other agent will do better than this agent in this environment, without doing worse in another environment. No other agent may, in this sense, be said to be better.

At present the theory is limited by incomputability (the halting problem). Approximations may be used to avoid this. Processing speed and combinatorial explosion remain the primary limiting factors for artificial inteligence.

Derivation of inductive probability edit

Make a list of all the shortest programs   that each produce a distinct infinite string of bits, and satisfy the relation,

 

where,

  is the result of running the program  .
  truncates the string after n bits.

The problem is to calculate the probability that the source is produced by program  , given that the truncated source after n bits is x. This is represented by the conditional probability,

 

Using the extended form of Bayes' theorem

 

where,

 
 

The extended form relies on the law of total probability. This means that the   must be distinct possibilities, which is given by the condition that each   produce a different infinite string. Also one of the conditions   must be true. This must be true, as in the limit as n tends to infinity, there is always at least one program that produces  .

Then using the extended form and substituting for   and   gives,

 

As   are chosen so that  , then,

 

The a-priori probability of the string being produced from the program, given no information about the string, is based on the size of the program,

 

giving,

 

Programs that are the same or longer than the length of x provide no predictive power. Separate them out giving,

 

Then identify the two probabilities as,

Probability that x has a pattern  

The opposite of this,

Probability that x is a random set of bits  

But the prior probability that x is a random set of bits is  . So,

 

The probability that the source is random, or unpredictable is,

 

Solving for programs that match a prefix edit

A program may be a functional program, which is a representation of recursive mathematical equation. Mathematics makes no distinction between the value and the function. This is the use-mention distinction.

As a result writing the condition for finding functions that produce a prefix x is not fully informative. In mathematics

 

does not quite say what we mean. Another approach is to use the prefix R to mean running the program or function.

 

This allows the to use-mention distinction to be made.   is the use and   is the mention. This defines R as a kind of function interpreter.

Whatever way is used the equation represents the solving of an equation to give a function. In general this is not computable. No general program may be written to perform such a task.

However for specific canonical forms the of solving for a function may be computable.

Key people edit

See also edit

References edit

  1. ^ Li, M. and Vitanyi, P., An Introduction to Kolmogorov Complexity and Its Applications, 3rd Edition, Springer Science and Business Media, N.Y., 2008, p 347
  2. ^ Solomonoff, R., "A Preliminary Report on a General Theory of Inductive Inference", Report V-131, Zator Co., Cambridge, Ma. Feb 4, 1960, revision, Nov., 1960.
  3. ^ Solomonoff, R., "A Formal Theory of Inductive Inference, Part I" Information and Control, Vol 7, No. 1 pp 1–22, March 1964.
  4. ^ Solomonoff, R., "A Formal Theory of Inductive Inference, Part II" Information and Control, Vol 7, No. 2 pp 224–254, June 1964.
  5. ^ Wallace, Chris (1968). "An information measure for classification". Computer Journal. 11 (2): 185–194. doi:10.1093/comjnl/11.2.185. {{cite journal}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)
  6. ^ Rissanen, J. (1978). "Modeling by shortest data description". Automatica. 14 (5): 465–658. doi:10.1016/0005-1098(78)90005-5.
  7. ^ Allison, Lloyd. "Minimum Message Length (MML) – LA's MML introduction".
  8. ^ Oliver, J. J.; Baxter, Rohan A. "MML and Bayesianism: Similarities and Differences (Introduction to Minimum Encoding Inference – Part II)".
  9. ^ Hutter, Marcus (1998). Sequential Decisions Based on Algorithmic Probability. Springer. ISBN 3-540-22139-5.

External links edit

Disabled categories on pages in User: namespace; remove the nowiki tags when moving the article back. [[Category:Statistical inference]] [[Category:Inductive reasoning]] [[Category:Inference]] [[Category:Machine learning]] [[Category:Probability]] [[Category:Probability and statistics]]