- 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\B)=P(B)P(B\A)P(A)
Here you can see the way how to write program for your question:
https://machinelearningmastery.com/naive-bayes-classifier-scratch-python/
Comments