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

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.

主站蜘蛛池模板: 合作市| 久治县| 太原市| 靖宇县| 曲靖市| 牙克石市| 宜州市| 九龙城区| 彭泽县| 融水| 罗源县| 昭觉县| 巴彦淖尔市| 福贡县| 富平县| 安徽省| 安化县| 榆社县| 和平县| 太保市| 女性| 杭锦后旗| 抚顺县| 滨海县| 全南县| 巴林左旗| 汪清县| 长丰县| 固原市| 南皮县| 化德县| 景泰县| 肃南| 荔波县| 枣阳市| 仙居县| 子长县| 奉化市| 城口县| 壶关县| 伽师县|