Videos

$$ \begin{align*} P(Hypothesis|Evidence) &=\frac{P(Evidence|Hypothesis)P(Hypothesis)}{P(Evidence)} \\ \\ &= \frac{P(E|H)P(H)}{P(E|H)P(H)+P(E|notH)P(not H)} \\ \end{align*}

$$

Bayesian inference

Bayesian inference is a method of statistical inference that applies Bayes' theorem to update probability estimates for hypotheses based on new evidence or data. It provides a framework for making probabilistic predictions and updating beliefs in the presence of uncertainty. The core idea behind Bayesian inference is to use prior knowledge and combine it with observed data to obtain a posterior probability distribution, which represents the updated beliefs about the parameters of interest.

Naive Bayes

Video: Naive Bayes, Clearly Explained!!!

For spam filter example:

  1. Find the P(Spam | Text) and P(Normal | Text). Label message as spam based on relative values of these probabilities
  2. If Text = “Hello World”, then
  3. If a word never comes in spam or normal, then P(Word | Spam) would be zero. That would make the P(Spam | Text) = 0

Why is Naive Bayes naive?