What is Probability?
Probability is a branch of mathematics that deals with calculating the likelihood of a given event's occurrence, which is expressed as a number between 0 and 1. A probability of 0 indicates impossibility, while a probability of 1 indicates certainty.
For example, the probability of rolling a 6 on a fair die is 1/6 (approximately 0.167), because there is 1 favorable outcome (rolling a 6) out of 6 possible outcomes. Similarly, the probability of drawing an ace from a standard deck of 52 cards is 4/52 = 1/13 (approximately 0.077).
Probability Formulas
Here are the key formulas and concepts in probability theory:
Simple Probability
$P(A) = \frac{\text{Number of favorable outcomes}}{\text{Total number of possible outcomes}}$Conditional Probability
Conditional probability is the probability of an event occurring given that another event has already occurred:
$P(B|A) = \frac{P(A \cap B)}{P(A)}$Bayesian Probability
Bayes' theorem describes the probability of an event based on prior knowledge of conditions that might be related to the event:
$P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B|A) \cdot P(A) + P(B|\neg A) \cdot P(\neg A)}$Applications of Probability
Statistics and Data Analysis
Used in hypothesis testing, confidence intervals, and data analysis to make inferences about populations based on samples.
Finance and Risk Assessment
Applied in portfolio management, option pricing, insurance calculations, and risk assessment for financial decisions.
Science and Research
Essential in quantum physics, genetics, epidemiology, and experimental design to model uncertainty and natural variation.
Artificial Intelligence and Machine Learning
Fundamental to many algorithms including Bayesian networks, probabilistic graphical models, and statistical learning methods.
How to Use This Calculator
- Select the type of probability you want to calculate (simple, conditional, or Bayesian).
- For simple probability, enter the number of favorable outcomes and total possible outcomes.
- For conditional probability, enter the probability of event A and the probability of event B given A.
- For Bayesian probability, enter the prior probability, likelihood, and marginal likelihood values.
- Click 'Calculate' to compute the probability and see the step-by-step solution.
Use decimal probabilities between 0 and 1 for conditional and Bayesian modes. If your source data is in percentages, convert 25% to 0.25 before entering it.
Probability Examples
Simple probability of drawing an ace
Simple probability compares favorable outcomes to all possible outcomes in a single experiment.
4 / 52
Result: 0.0769 or 7.69%
Conditional probability from a reduced sample space
Conditional probability changes the sample space because one event is already known to have happened.
P(A and B) = P(A) × P(B|A)
If P(A)=0.5 and P(B|A)=0.2, then P(A and B)=0.1
Bayesian update after new evidence
Bayes' theorem updates a prior belief when you observe new information.
(0.8 × 0.1) / ((0.8 × 0.1) + (0.2 × 0.9))
Result: 0.3077 or 30.77%
Probability Calculator FAQ
What is the difference between simple and conditional probability?
Simple probability uses the full set of outcomes, while conditional probability recalculates likelihood after assuming another event has already occurred.
Why must probability values stay between 0 and 1?
A probability represents a share of all possible outcomes, so it cannot be less than 0 or greater than 1.
When should I use Bayes' theorem?
Use Bayes' theorem when you want to revise the probability of an event after seeing related evidence, such as medical tests, spam filters, or diagnostic models.
Why does the simple probability calculator reject favorable outcomes larger than total outcomes?
The number of favorable cases cannot exceed the total number of possible cases, so that input would not represent a valid probability setup.