We first transform the probability P (c k | x) using Bayes' rule, Class probability P (c k ) can be estimated from training data.
direct estimation of P (c k | x) is impossible in most cases because of the sparseness of training data.