The Naive Bayes classification based on the following formula
$P(C_i|X) = {P(X|C_i)P(C_i) \over P(X)} ... i)$
$P(X|C_i)$ is the posterior probability of $X$ conditioned on $C_i$, $P(X)$ prior probability of $X$, $C_i$ represents the class.
Now if we have a dataset following:
Age Income Buy_computer
Senior fair Yes
Junior fair Yes
Young poor No
Senior poor Yes
Junior fair No
Young poor No
Now if we get a new data (Age = young, Income= fair) we need to find out in which class this data should belong. ... example 1)
We can use eq i) to find out the class
I have also learned Categorical Naive Bayes
As per the documentation,
The probability of category t in feature i given class c is estimated as:
P(Xi=t|y=c ;alpha) = (Ntic + alpha)/(Nc + alpha ni) ...ii)
As per the example 1) we can convert equation ii) as
P(Age = young, Income= fair| Buy_computer=?)
and then apply equation i) to it to find out the class of P(Age=young, Income=fair)
However, I cannot understand how the right hand side of eq ii) is related to equation i)
Equation i) also does not have any alpha parameter, how could the parameter alpha influence the answer?
Thank you.