This section presents several probability relations that will be useful in the following section.
In the discrete case, we define the probability mass function (probability mass function, PMF) as
 |
(2.82) |
whereas, in the continuous case,
denotes the probability density function (probability density function, PDF).
Bayes' theorem (or Bayes' rule) is a relation obtained by combining the product rule of probability with the law of total probability.
Starting from the definition of conditional probability
(multiplication rule), we obtain:
 |
(2.83) |
and conversely
 |
(2.84) |
noting that, since
, we obtain
 |
(2.85) |
The same reasoning can be applied to the case of three variables:
 |
(2.86) |
which yields Bayes' formula
 |
(2.87) |
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:
 |
(2.88) |
or, in the continuous case,
 |
(2.89) |
the marginal density of
.
Paolo medici
2026-10-06