- Bayes' theorem allows you to update the predicted probabilities of an event by incorporating new information.
- Bayes' theorem was named after 18th-century mathematician Thomas Bayes.
- It is often employed in finance in updating risk evaluation.
"P(A \\backslash B) = \\dfrac{P(B \\backslash A) P(A)}{P(B)}"
Here you can see the way how to write program for your question:
https://machinelearningmastery.com/naive-bayes-classifier-scratch-python/
Comments
Leave a comment