Introduction to Probability: Rules, Formulas & Examples
Solver AI TeamPublished Updated 10 min read
Probability measures how likely events are. Master sample spaces, the addition and multiplication rules, conditional probability, and Bayes' theorem with clear examples.
Frequently asked questions
What is the difference between independent and mutually exclusive events?
Independent events do not affect each other, so P(A and B) = P(A) · P(B). Mutually exclusive events cannot happen together, so P(A and B) = 0. If two events each have a positive probability and are mutually exclusive, they are not independent, because knowing one happened rules the other out.
When do you add and when do you multiply probabilities?
Add for OR and multiply for AND. For A or B, use P(A) + P(B) − P(A and B), subtracting the overlap so it is not counted twice. For A and B, use P(A) · P(B|A), which becomes P(A) · P(B) only when the events are independent.
How do you find the probability of at least one event?
Use the complement: P(at least one) = 1 − P(none). For example, the chance of at least one head in 3 fair coin flips is 1 − (1/2)³ = 1 − 1/8 = 7/8. This is usually much faster than adding up every way to get one, two, or three heads.
What is a sample space?
The sample space is the set of all possible outcomes of an experiment. For one roll of a die it is {1, 2, 3, 4, 5, 6}, and for two dice it has 36 outcomes. When outcomes are equally likely, probability is the number of favorable outcomes divided by the size of the sample space.
What does conditional probability mean?
Conditional probability P(A|B) is the probability of A given that B has already happened, found as P(A and B) / P(B). For example, drawing two cards without replacement, the chance the second is an ace given the first was an ace is 3/51 = 1/17, since only 3 aces remain among 51 cards.
Probability is the branch of mathematics that measures how likely an event is to occur.
Definition — Probability
The basic definition is elegantly simple: P(event) = favorable outcomes ÷ total outcomes. Every probability value falls between 0 (impossible) and 1 (certain). A probability of 0.5 means the event is equally likely to happen or not happen.
Sample space and events
Before calculating any probability, you need to define the sample space — the set of all possible outcomes. For a single coin flip, the sample space is {Heads, Tails}, which has 2 outcomes. For a standard six-sided die, the sample space is {1, 2, 3, 4, 5, 6} with 6 outcomes.
An event is any subset of the sample space. The event "rolling an even number" is {2, 4, 6}, so P(even) = 3/6 = 1/2. For a coin flip, P(Heads) = 1/2.
The Key Insight
Probabilities can also be expressed as percentages (50%) or decimals (0.5). The sum of probabilities of all possible outcomes in a sample space always equals 1.
The Takeaway
This foundational idea — counting favorable outcomes relative to all outcomes — is the starting point for everything from simple dice problems to complex statistical models.
The Addition Rule (OR)
The addition rule tells you how to find the probability that at least one of two events occurs.
The Rule — Addition Rule
The general formula is: P(A or B) = P(A) + P(B) - P(A and B). You subtract P(A and B) to avoid double-counting outcomes that belong to both events.
The Key Insight
When two events are mutually exclusive (they cannot happen simultaneously), then P(A and B) = 0, and the formula simplifies to P(A or B) = P(A) + P(B).
Example 1 — Mutually exclusive die rolls
Rolling a 2 and rolling a 5 on a single die are mutually exclusive, so:
AnswerP(2 or 5) = 1/6 + 1/6 = 2/6 = 1/3
Example 2 — Heart or king from a deck
What is the probability of drawing a heart or a king from a standard 52-card deck?
There are 13 hearts and 4 kings, but one card — the king of hearts — is both.
So P(heart or king) = 13/52 + 4/52 - 1/52 = 16/52 = 4/13 ≈ 0.308.
Answer4/13 ≈ 0.308
Common Mistake
Without subtracting the overlap, you would count the king of hearts twice and get an inflated probability. The addition rule extends to more than two events as well, though the inclusion-exclusion formula becomes more involved as you account for all pairwise and higher-order overlaps.
The Multiplication Rule (AND)
The multiplication rule calculates the probability that two events both occur.
The Rule — Multiplication Rule
The general formula is: P(A and B) = P(A) × P(B|A), where P(B|A) is the conditional probability of B given that A has already happened.
The Key Insight
When events are independent — meaning the outcome of one does not affect the other — then P(B|A) = P(B), and the formula simplifies to P(A and B) = P(A) × P(B).
Example 1 — Flipping two heads in a row
Coin flips are independent.
Each flip has no memory of the last, so we simply multiply.
AnswerP(H and H) = 1/2 × 1/2 = 1/4
Example 2 — Drawing two aces without replacement
Here the events are not independent, because removing the first card changes the deck.
P(first ace) = 4/52.
Given the first card was an ace, there are now 3 aces left among 51 cards: P(second ace | first ace) = 3/51.
The distinction between independent and dependent events is one of the most important concepts in probability and is essential to get right when solving problems involving cards, balls drawn from urns, or sequential experiments.
Conditional Probability
Conditional probability measures how knowing that one event has occurred changes the likelihood of another event.
The Rule — Conditional Probability
The formula is: P(A|B) = P(A and B) / P(B). The vertical bar "|" is read as "given." So P(A|B) means "the probability of A, given that B has occurred."
Example 1 — Red card given a face card
What is the probability that a card is red, given that it is a face card?
There are 12 face cards in the deck (J, Q, K in each of 4 suits), and 6 of those are red (hearts and diamonds).
Without the condition, P(red) = 26/52 = 1/2 as well — in this case, knowing it is a face card did not change the probability.
AnswerP(red | face card) = 6/12 = 1/2
The Key Insight
But conditional probability often does change things dramatically. Suppose the probability of rain on any given day is 0.3, but the probability of rain given that it is cloudy is 0.7. The condition (cloudy sky) more than doubles the rain probability.
The Takeaway
Conditional probability is foundational because it formalizes how new information updates our beliefs, which leads directly to Bayes' theorem and modern data-driven decision-making.
Bayes' Theorem
Bayes' theorem lets you reverse conditional probabilities — computing P(A|B) when you know P(B|A).
The Rule — Bayes' Theorem
The formula is: P(A|B) = P(B|A) × P(A) / P(B). This is incredibly powerful in real-world applications.
A medical testing scenario
Consider a medical testing scenario. A disease affects 1% of the population: P(disease) = 0.01. A test has 99% sensitivity (true positive rate): P(positive | disease) = 0.99. The test also has a 5% false positive rate: P(positive | no disease) = 0.05. If you test positive, what is the probability you actually have the disease?
Find P(positive) using the law of total probability
So even with a positive test result, the probability of actually having the disease is only about 16.7%.
AnswerP(disease | positive) ≈ 16.7%
The Key Insight
This counterintuitive result arises because the disease is rare, so most positive tests are false positives.
The Takeaway
Bayes' theorem is the foundation of spam filters, medical diagnostics, and machine learning algorithms.
Common Probability Mistakes
Probability is deceptively tricky, and certain mistakes trip up students again and again.
Common Mistake — Confusing independent with mutually exclusive
These are completely different concepts. Mutually exclusive events cannot occur together (P(A and B) = 0), while independent events can occur together but do not affect each other's probabilities. In fact, if two events with nonzero probabilities are mutually exclusive, they are automatically dependent — knowing one occurred tells you the other did not.
Common Mistake — Forgetting to subtract the overlap
In the addition rule, failing to subtract P(A and B) when events are not mutually exclusive inflates your answer. Always ask: can both events happen at the same time? If yes, account for the overlap.
Common Mistake — Replacement vs. no replacement
In card and ball problems, whether items are replaced after selection completely changes the calculation. With replacement, events are independent and the denominator stays constant. Without replacement, the sample space shrinks and you must use conditional probability.
Common Mistake — The gambler's fallacy
Believing that past outcomes influence future independent events ("the coin landed heads five times, so tails is due") is a common error — each flip remains 50/50.
The Takeaway
When you need to double-check your probability calculations, Solver AI walks you through each rule application step by step so you can spot exactly where an error crept in.