How to calculate probabilities using Bayesian theorem

32 views (last 30 days)
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.
Ricardo Duarte
Ricardo Duarte on 5 Feb 2022
I would like to say that each variable is a different matrix (24 x 36).

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!