The definition of conditional probability immediately yields the following fundamental
In this case,
with
, we have:
Bayes' theorem is one of the fundamental elements of the subjectivist, or personal, approach to probability and statistical inference.
The system of alternatives with
is often interpreted as a set of causes, and Bayes' theorem, given the initial probabilities of the different causes, makes it possible to assign probabilities to the causes given an effect
.
The probabilities
with
can be interpreted as a priori knowledge (usually denoted by
), that is, knowledge available before performing a statistical experiment.
The probabilities
with
are interpreted as the likelihood, or information concerning
, that can be obtained by performing a suitable statistical experiment.
Bayes' formula therefore suggests a mechanism for learning from experience: combining some a priori knowledge about the event
given by
with the knowledge acquired from a statistical experiment given by
yields improved knowledge, given by
, of the event
, also called the a posteriori probability after the experiment has been performed.
For example, we may have the probability distribution for the color of apples, as well as that for oranges.
Using the notation introduced earlier in the theorem, let denote the state in which the fruit is an apple,
the condition in which the fruit is an orange, and let
be a random variable representing the color of the fruit.
With this notation,
represents the density function for the color event
conditional on the state being an apple,
, or an orange.
During training, it is possible to construct the probability distribution of for
an apple or an orange.
In addition to this information, the a priori probabilities
and
are always known; they simply represent the total number of apples relative to the number of oranges.
What we seek is a formula that specifies the probability that a fruit is an apple or an orange, given that a certain color has been observed.
Bayes' formula (5.7) does precisely this:
In general, for classes, the Bayesian estimator can be defined through a discriminant function:
It is also possible to calculate an index, given prior knowledge of the problem, indicating how prone this reasoning is to errors.
The probability of making an error given an observed feature depends on the maximum value of the
distribution curves at
:
| (5.10) |
Paolo medici