Traditional Culture Encyclopedia - The 24 Solar Terms - Bayesian and Naive Bayesian
Bayesian and Naive Bayesian
P(An|B) = p(An) p(B|An)/p(B)
Formula application:
It is known that * * * has 100 emails, including 70 normal emails and 30 spam emails. The word' part-time job' appears 10 times in ordinary mail and 20 times in spam.
Need to be solved: What is the probability that an email containing the word' part-time job' is spam?
P (garbage | part-time job) =p (garbage) p (part-time job | garbage) /p (part-time job)
P (spam) = 30/(70+30)=0.3
P (part-time job) = (10+20)/ 100=0.3
P (part-time | spam) = 20/30
P (garbage | part-time job) =0.3*0.67/0.3=0.67
Naive Bayes is a simple but extremely powerful prediction modeling algorithm, so it is called Naive Bayes because every feature he assumes is independent.
For example:
Simplified to:
- Previous article:Who is the best painter to paint Maitreya?
- Next article:When is it good to eat astragalus?
- Related articles
- What does 29 mean?
- How to make bamboo platters and how to make bamboo platters for fruit salad.
- How to be the most elegant woman in the world?
- Sun gear will not condense all countries at noon, as it does in a furnace.
- Good morning greetings in early winter What are the beautiful early winter greetings?
- I watched some videos. What's the difference between hand dance and sign language?
- What festival is New Year's Eve?
- What are the basic principles of six solar terms in autumn?
- Jiangshan tasty breakfast
- Winter solstice greetings