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

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.

主站蜘蛛池模板: 乳山市| 津南区| 文山县| 开原市| 烟台市| 周宁县| 米易县| 南丹县| 壤塘县| 连州市| 宁明县| 舞钢市| 高淳县| 花莲市| 若羌县| 璧山县| 广德县| 巨鹿县| 南溪县| 宜丰县| 和田市| 河南省| 乡宁县| 永城市| 柳林县| 团风县| 上栗县| 绵竹市| 盐池县| 铜陵市| 乡城县| 阿拉善左旗| 仙居县| 班玛县| 榆中县| 德令哈市| 大同县| 乌兰浩特市| 孝昌县| 湘潭市| 弋阳县|