Basic Probability Theory
Before discussing probabilistic classifiers, we recap basic probability theory first.
- Event
: A subset of outcomes of an experiment (a subset of event space).
- Let’s assume that we roll a dice with six faces. If we observe number 3 from a single roll, then 3 is the event,
- A set of observations can also be an event, signifying any of the observations in the set. For example, an event from a dice roll
can signify the outcome that either 1, 3, or 5 is rolled.
- Let’s assume that we roll a dice with six faces. If we observe number 3 from a single roll, then 3 is the event,
- Event space (sample space): the set of all possible outcomes
- e.g. {1,2,3,4,5,6} with a six-faced dice
- Probabilityof event
: probability of observing an event
- Joint probability
: probability of observing multiple distinguishable events.
Example
For an experiment, we roll a dice and flip a coin simultaneously, and record the first six trials as follows: | Trial # | Dice | Coin | | —- | —- | —- | | 1 | 1 | H | | 2 | 2 | T | | 3 | 1 | T | | 4 | 3 | H | | 5 | 4 | H | | 6 | 1 | T |Q: Given the above experiments, what is the probability of observing 3 from the dice?
A:
Q: Given above experiments, what is the probability of observing Dice={1,2} from the dice?
A:
Q: Given above experiments, what is the probability of observing 1 and TAIL from a single execution?
A:
Conditional probability
A conditional probability measures the probability of eventgiven that another event
has occurred. If
and
are events with
, the conditional probability of
given
is
.
Example: Drug test
Let’s assume that we have 4000 patients who have taken a drug test. The following table summarises the result of the drug test. We categorise the result based on gender and test result. | | Women | Men | | —- | —- | —- | | Success | 200 | 1800 | | Failure | 1800 | 200 |Let
represent gender
represent a result of a drug test
Then what is the probability of a patient being a woman when the patient fails on a drug test, i.e.,?
From these probabilities, we can compute the conditional probability