Calculates the posterior probability using Bayes' theorem.
The prior probability of A (i.e. P(A))
The probability of B given A (i.e. P(B|A))
The probability of B given not A (i.e. P(B|!A))
const result = Chalkboard.stat.Bayes(0.01, 0.99, 0.05); // Returns the posterior probability Copy
const result = Chalkboard.stat.Bayes(0.01, 0.99, 0.05); // Returns the posterior probability
Calculates the posterior probability using Bayes' theorem.