Coba jelasin Conto: klasifikasi dokumen dari Klasifikasi naif Bayésian dalam bahasa sunda dong

Conto di dieu pagawéan nu maké klasifikasi naive Bayesian classification keur masalah document classification.

Consider the problem of classifying documents by their content, for example into spam and non-spam E-mails. Imagine that documents are drawn from a number of classes of documents which can be modélled as sets of words where the (independent) probability that the i-th word of a given document occurs in a document from class C can be written as

(For this tréatment, we simplify things further by assuming that the probability of a word in a document is independent of the length of a document, or that all documents are of the same length).

Then the probability of a given document D, given a class C, is

The question that we desire to answer is: "what is the probability that a given document D belongs to a given class C?"

Now, by their definition, (see Probability axiom)