Probability Theory
A key concept in the field of pattern recognition is that of uncertainty. It arises through:
- noise on measurements
- finite size of datasets.
Probability theory provides a consistent framework for the quantification and manipulation of uncertainty and forms one of the central foundations of Pattern Recognition.
When combined with Decision Theory, it allows us to make optimal predictions given all the information available to us, even though that information may be incomplete or ambiguous.
Example: Red/Blue boxes
The setup
Imagine we have two boxes red_box and blue_box.
Each box contains different number of fruits oranges and apples.
The Experiment
Now, we do the following steps:
- Select a box: Randomly pick one of the boxes (either
red_boxorblue_box) - Pick a fruit: Then, randomly select an item of fruit from the box.
- Replace the fruit: Having observed the type of the picked fruit (
appleororange), now, replace it in the box from which it came. - Repeat steps 1-to-3 multiple times.
The Pre-conditions / Assumptions
Now, let’s suppose in doing the above experiment,
- we pick the
red_box40% of the times and theblue_box60% of the times. - Also, assume that when we remove an item of fruit from a box, we are equally likely to select any of the pieces of fruits in the box.
The Theory
In this experiment:
- the identity of the box to be chosen is a random variable $B$ which can take
two possible values
randb(corresponding to red or blue boxes). - Similarly, the identity of fruit is also a random variable $F$ and it can
take either of the values
aando(corresponding to apple and orange respectively).
Definition:
The Probability of an event is defined as the fraction of times, that event occurs out of the total number of trials (in the limit that the total number of trials goes to infinity). All probabilities must lie in the interval [0, 1]
Thus, the probability of selecting the red_box is $4/10$ and that of the blue_box is
$6/10$.