This section presents some probability relations that will be useful in the following section.
In the discrete case, we define the probability density function (probability density function, PDF) as
 |
(2.78) |
whereas in the continuous case
denotes the probability density.
Bayes' theorem (or Bayes' formula) is a relation obtained by combining the compound-probability theorem with the total-probability theorem.
Starting from the definition of conditional probability
(multiplication rule), we obtain:
 |
(2.79) |
and conversely
 |
(2.80) |
noting that
yields
 |
(2.81) |
The same reasoning can be applied to the case of three variables:
 |
(2.82) |
yielding Bayes' formula
 |
(2.83) |
where the propagation of the dependence on a third variable
can be seen.
Another important formula that will be used in the next chapter is the law of total probability (law of total probability):
 |
(2.84) |
or, in the continuous case,
 |
(2.85) |
the marginal density of
.
Paolo medici
2026-10-01