From 0f1af97904bba8a154f48c2745a300ac647c0371 Mon Sep 17 00:00:00 2001 From: Benni <73313922+BenjaminBruenau@users.noreply.github.com> Date: Thu, 1 Feb 2024 20:45:40 +0100 Subject: [PATCH] Update naive_bayes.md - fix typo I believe this is a small typo and should be **9** not **19**. As |V| = 9 and the result is calculated with 9 anyways --- docs/lectures/naive_bayes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lectures/naive_bayes.md b/docs/lectures/naive_bayes.md index 87bd7ae..1c8d5ec 100644 --- a/docs/lectures/naive_bayes.md +++ b/docs/lectures/naive_bayes.md @@ -293,7 +293,7 @@ We end up with the following table: $$ \begin{align} P(\text{happy}|\text{neg}) &= \frac{freq(\text{happy},\text{neg}) + 1}{N_{neg} + |V|} \\ - &= \frac{0 + 1}{11 + 19} \\ + &= \frac{0 + 1}{11 + 9} \\ &= \frac{1}{20} \\ &= 0.05 \end{align}