Update probability of | (name of event A) | |||
based on | (name of event B) | |||
P() | = | (prior probability of ) | ||
P(|) | = | (probability of given ) | ||
P(|¬) | = | (probability of given ¬) | ||
P(|) | = | (posterior probability of given ) | ||
P(|¬) | = | (posterior probability of given ¬) |
Both decimal and % probabilities are supported.
This uses BigDecimal
, not floating point math. It still loses bits with non-terminating decimals, though.
No warranty of any kind; see this fearsome no-warranty clause.