How to calculate probabilities using Bayesian theorem
32 views (last 30 days)
Show older comments
Dear all,
I would like to calculate the probability of A, given B (p(a|b)) which can be done through the Bayesian theorem: p(a|b)=(p(b|a)/p(b))*p(a).
Im considering that: p(a)=normpdf(A) and p(b)=normpdf(B)
However, I'm not sure how to calculate p(b|a).
Can anoyone give me a hand on this?
Thank you in advance.
Answers (0)
See Also
Categories
Find more on Get Started with Statistics and Machine Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!