Calculate P(A) = favorable outcomes / total outcomes.
Example answer0.25
This is the worked example that ships with the calculator. Replace the values above with your own and press Calculate.
Favorable Outcomes
3
Total Outcomes
12
1FormulaFormulaP(A) = favorable outcomes / total outcomes
favorable = 3, total = 12
2Substitute valuesSubstituteP(A) = 3 / 12
0.2500
Free reference
Probability: the formulas
Probability rules let you combine and update chances: complements, unions, intersections, conditional probability and Bayes theorem. The two formulas below drive most of the calculators in this category.
Conditional Probability:P(A | B) = P(A and B) / P(B) - Probability of A after restricting attention to cases where B occurred.
Bayes' Theorem:P(A | B) = P(B | A)P(A) / P(B) - Updates a prior probability after observing evidence.
In a class, 12% of students both take statistics and play a sport, and 30% of students play a sport. Given that a student plays a sport, what is the probability they take statistics?
Restricting attention to the 30% who play a sport, the 12% who do both make up 0.12 / 0.30 = 0.4, so a sporty student has a 40% chance of taking statistics.
Frequently asked questions
What does conditional probability mean?
P(A given B) is the probability of A after restricting attention to the cases where B occurred. It is computed as P(A and B) divided by P(B), exactly as in the worked example above: 0.12 / 0.30 = 0.4.
When do I use Bayes theorem?
Use Bayes theorem when you know P(B given A) but need P(A given B), that is, when you want to reverse the direction of the conditioning. It rescales the prior probability of A by how strongly B points to A.
What is the complement rule?
The probability that an event does not happen is 1 minus the probability that it does: P(not A) = 1 - P(A). It is often easier to compute the complement first, for example the chance of at least one success.