Probability
Probability measures likelihood from 0 to 1. The current BB Calculator Probability tool provides eight modes covering simple events, complements, unions, independent intersections, conditional probability, Bayes’ rule, permutations and combinations.
Choose the probability question you need
| Mode | Inputs | Calculation / primary output |
|---|---|---|
| Simple | Favorable outcomes; Total outcomes | P(A) = favorable ÷ total |
| Complement | P(A) | P(not A) = 1 − P(A) |
| A or B | P(A); P(B); P(A and B) | P(A or B) = P(A) + P(B) − P(A and B) |
| A and B | P(A); P(B) | For independent events: P(A and B) = P(A) × P(B) |
| Conditional | P(A and B); P(B) | P(A | B) = P(A and B) ÷ P(B) |
| Bayes | Prior P(A); Likelihood P(B | A); Evidence P(B) | Posterior P(A | B) |
| Permutations | n; r | nPr = n! ÷ (n − r)! |
| Combinations | n; r | nCr = n! ÷ [r! × (n − r)!] |
Simple probability from equally likely outcomes
P(A)=\frac{f}{N}In Simple mode, Favorable outcomes and Total outcomes are whole numbers. The calculator requires 0 ≤ favorable ≤ total and total greater than zero. For 3 favorable outcomes out of 10, the primary result is P(A) = 30%.
Probability 3/10 is 0.3 or 30%. Odds against compare failures with successes: 7:3, conventionally 7/3:1; they are a different representation.
Probability-mode inputs use decimals from 0 to 1
Complement, A or B, A and B, Conditional and Bayes expect probability inputs as decimals such as 0.30 for 30%. The primary result is shown as a percentage. Supporting details include the decimal result and its complement, followed by the probabilities supplied for that mode.
The favorable/total ratio applies directly to equiprobable outcomes such as a fair die. For unequal likelihoods, sum outcome probabilities using a model rather than counting each outcome equally.
Union, intersection and conditional probability
A or B requires the overlap P(A and B) explicitly; the calculator checks that the overlap is mathematically possible. A and B uses the multiplication rule specifically for independent events. Conditional mode requires a non-zero P(B), and P(A and B) cannot exceed P(B).
Bayes mode checks the posterior
P(A\mid B)=\frac{P(B\mid A)P(A)}{P(B)}Enter Prior P(A), Likelihood P(B | A), and a non-zero Evidence P(B). The calculator rejects inconsistent inputs that would make the posterior exceed 1.
Permutations and combinations use whole numbers
Permutations and Combinations require whole numbers with 0 ≤ r ≤ n ≤ 5000. Permutations count ordered selections; combinations count unordered selections. Their primary outputs are the exact integer nPr or nCr, with n and r shown as supporting details.
For at least one of two exhaustive alternatives, subtract the event probability from one to obtain its complement; the two probabilities total 100%.
Read the result correctly
Probability modes report a percentage as the primary result and provide decimal/complement details. Permutation and combination modes report an exact integer count instead. The How It’s Calculated content uses the formula for the selected mode rather than reusing the Simple-mode formula.
Quick answers
Should I type 30 or 0.30 for P(A)=30%?
Use 0.30 in probability input fields. Simple mode is different: it asks for favorable and total whole-number counts.
When should I use A and B mode?
Use it when A and B are independent, because the implemented rule multiplies P(A) by P(B).
Why does A or B ask for P(A and B)?
The overlap must be subtracted once so outcomes in both events are not double-counted.
What is the difference between permutations and combinations?
Permutations treat order as significant; combinations do not.
