Loading

Quipoin Menu

Learn • Practice • Grow

math-for-ai / Bayes' Theorem
exercise
1/5
Exercise 1Math-for-ai
Question

Write Python code to compute posterior probability using Bayes' theorem: P(A|B) = P(B|A)*P(A)/P(B). Example: P(A)=0.01, P(B|A)=0.9, P(B)=0.05.