Autonomous Vehicle/Theory

(prerequisite-Kalman Filter) Bayes' Theorem(Baysianism)

Naranjito 2024. 3. 13. 15:13
  • Bayes' Theorem(Baysianism)

 

 

The relationship between prior probability and post-probability.


P ( B | A ) = P ( B A ) P ( A )

The probability that event B occurs on the premise that event A has already occurred.

Example

 

Q. What is the probability that this email is spam when the word A is visible?

 

P ( S ) = 0.3 : Probability of spam mail

P ( N ) = 0.7 : Probability of normal mail

P ( A | S ) = 0.4 : Probability that spam mail contains A.

P ( A | N ) = 0.1 : Probability that normal mail contains A.

P ( A ) = 0.19 : Probability that both of normal and spam mail contains A.
P ( A ) = ( P ( A | S ) P ( S ) ) + ( P ( A | N ) P ( N ) )
( 0.4 0.3 ) + ( 0.1 0.7 ) = 0.19 P ( A ) = 0.19

Result :
P ( A | S ) = P ( A S ) P ( S ) : Probability that this email is spam when the word A is visible.
P ( A | S ) P ( S ) = P ( A S )
0.3 × 0.4 = 0.12
P ( S | A ) = P ( S A ) P ( A ) = 0.12 0.19 = 0.6315

 

 

https://gaussian37.github.io/autodrive-ose-bayes_filter/

https://roytravel.tistory.com/350

https://zzaebok.github.io/machine_learning/bayesian-statistics-and-machine-learning/