官术网_书友最值得收藏!

Bayes' theorem

In this section, we will first introduce Bayes' theorem and demonstrate how it is applied in ML.

Bayes' theorem calculates the probability of an event given a condition, such that we have prior knowledge about the event, the condition, and the probability of the condition when the event occurs. In our snow prediction example, the event is when snow occurs. A condition would be when the temperature is between 20°F and 32°F. Based on the data, we can calculate the likelihood of temperature being 20°F and 32°F when it snows. Using this data, we can predict the probability of snow given the temperature being between 20°F and 32°F.

Assume that we have a class variable C and a condition variable x. Bayes' theorem is presented in formula 1. We also present a given simple way to remember different components of the algorithm in formula 2.

Formula 1:

   

Formula 2:

   

There are four terms that you need to remember from this formula.

主站蜘蛛池模板: 公主岭市| 天水市| 丰顺县| 安远县| 余庆县| 晋江市| 临武县| 千阳县| 岢岚县| 泉州市| 临沭县| 简阳市| 马关县| 沾益县| 香格里拉县| 交口县| 灵璧县| 中山市| 惠安县| 灵璧县| 邯郸市| 台中县| 广宁县| 民丰县| 开平市| 金坛市| 麻栗坡县| 马关县| 金川县| 湘西| 云安县| 沙田区| 靖安县| 锡林郭勒盟| 绥滨县| 洛宁县| 蒲江县| 霸州市| 建瓯市| 天等县| 股票|