Naive Bayes starts with integer class counts, not fitted coefficients. This lesson fixes the class totals that every later ratio must reuse.

highlighted = computed this step

Counts before formulas

The shown data have class A count 4 and class B count 2. The total row count is 6.

count(A)=4,count(B)=2\operatorname{count}(A)=4,\quad \operatorname{count}(B)=2
Class countsOnly class counts are shown.Naive Bayes from countstotal=6; counts=A:4, B:2classcount(c)A4B2

Why counts are enough here

This surface starts from integer class counts. Later fractions are ratios formed from these displayed integers.

integer counts become exact ratios\text{integer counts become exact ratios}
Class countsOnly class counts are shown.Naive Bayes from countstotal=6; counts=A:4, B:2classcount(c)A4B2

Summary

No feature evidence is used yet. The first boundary is the displayed count table itself.

class counts fixed\text{class counts fixed}
Class countsOnly class counts are shown.Naive Bayes from countstotal=6; counts=A:4, B:2classcount(c)A4B2