๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ซ ์ˆ˜ํ•™

Day 3: Bayes' Theorem

HackerRank Day 3:









Bayes' Theorem(๋ฒ ์ด์ง€์•ˆ ์ •๋ฆฌ):


P( A | B ) denotes the probability of the occurrence of A given that B has occurred ( B๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด, A๊ฐ€ ๋ฐœ์ƒ ํ•  ํ™•๋ฅ  )

P( B | A ) denotes the probability of the occurrence of B given that A has occurred ( A๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด, B๊ฐ€ ๋ฐœ์ƒ ํ•  ํ™•๋ฅ  )


Let A and B be two events such that P( A | B ) and P( B | A ),

A์™€ B๊ฐ€ P( A | B ) ๊ทธ๋ฆฌ๊ณ   P( B | A ) ๋ผ๋ฉด,