From Bayes' Rule with the assumption of independence[1]}, the probability of of a log record with feature vector \(\mathbf {x}\)  belonging to class \(k\) , is
\(p(k \mid x_{1},\ldots ,x_{n})={\frac{1}{Z}}p(k)\prod _{i=1}^{n}p(x_{i}\mid k),\) 
