Quick Answer: What Is the Difference?
Independent events: P(A and B) = P(A) × P(B). Dependent events: P(A and B) = P(A) × P(B|A). The difference is whether the first event changes the probability of the second.
| Feature | Independent Events | Dependent Events |
|---|---|---|
| Does one event affect the other? | No | Yes |
| Conditional probability | P(A|B) = P(A) | P(A|B) differs from P(A) |
| Multiplication rule | P(A ∩ B) = P(A)P(B) | P(A ∩ B) = P(A)P(B|A) |
| Typical setup | Separate trials, with replacement | Sampling without replacement |
| Classic example | Two coin tosses | Two cards drawn without replacing the first |
| Probability changes after first event? | No | Usually yes |
Independent vs Dependent Events Calculator
Enter the probabilities below to check whether two events are independent or dependent. The calculator compares P(A) × P(B) with P(A ∩ B) using a tolerance of 0.0001 to handle floating-point rounding.
Independent vs Dependent Events Calculator
Enter P(A), P(B), and P(A ∩ B). The calculator checks whether P(A)P(B) equals P(A ∩ B).
Enter P(A), P(B), and P(A|B). The calculator checks whether P(A|B) = P(A) and calculates P(A ∩ B) = P(B) × P(A|B).
What Are Independent Events?
The notation P(A|B) means "the probability of A given that B occurred." If this equals the plain probability P(A), then B's occurrence changed nothing. That is the formal condition for independence.
The multiplication rule that follows from this is:
P(A ∩ B) probability both occur
P(A) probability of A
P(B) probability of B
You can read P(A ∩ B) as "the probability that A and B both occur." For independent events, you just multiply the individual probabilities together. This rule extends naturally: for three independent events A, B, and C, P(A ∩ B ∩ C) = P(A) × P(B) × P(C).
Independent events examples
A fair coin is tossed twice. What is the probability of getting heads both times?
Define the events. Event A = first toss is heads. Event B = second toss is heads.
State the individual probabilities. P(A) = 1/2. P(B) = 1/2. The coin has no memory, so the first toss cannot change the second.
Check independence. P(A|B) = P(A) = 1/2. Knowing the second toss was heads tells us nothing about the first, and vice versa.
Apply the multiplication rule. P(A ∩ B) = P(A) × P(B) = 1/2 × 1/2 = 1/4.
✓ P(heads on both tosses) = 1/4 = 0.25. The events are independent. The coin has no memory of previous results.
A fair die is rolled twice. What is the probability of rolling a 6 on both rolls?
Each roll is a separate physical event. What appears on the first roll cannot influence the mechanics of the second roll. P(6 on roll 1) = 1/6. P(6 on roll 2) = 1/6.
Apply the multiplication rule. P(6 and 6) = 1/6 × 1/6 = 1/36 ≈ 0.0278.
✓ P(two sixes) = 1/36. The rolls are independent: each die starts in the same physical state every time.
A bag has 5 red and 3 blue marbles. One marble is drawn, noted, then replaced. A second marble is drawn. Are the draws independent?
After replacement, the bag returns to its original state. Before the first draw: 8 marbles, 5 red. After replacing the first marble: still 8 marbles, 5 red.
Check whether P(red on draw 2 | red on draw 1) = P(red on draw 2). P(red on draw 2) = 5/8, regardless of what was drawn first. The condition is satisfied.
✓ The draws are independent because replacement restores the original population. P(red and red) = 5/8 × 5/8 = 25/64.
What Are Dependent Events?
For dependent events, the multiplication rule uses conditional probability:
P(A) probability of A
P(B|A) probability of B given A occurred
P(A ∩ B) probability both occur
The equivalent form starting from B is: P(A ∩ B) = P(B) × P(A|B). Both give the same result. The conditional probability P(B|A) is what captures how A's occurrence reshapes the probability landscape for B.
Dependent events examples
A standard 52-card deck. Two cards are drawn without replacement. What is the probability that both are aces?
Event A = first card is an ace. There are 4 aces in 52 cards. P(A) = 4/52 = 1/13.
Event B = second card is an ace, given A occurred. One ace has been removed. The deck now has 3 aces in 51 cards. P(B|A) = 3/51 = 1/17.
Apply the dependent events formula. P(A ∩ B) = P(A) × P(B|A) = 4/52 × 3/51 = 12/2652 = 1/221.
✓ P(both aces) = 12/2652 = 1/221 ≈ 0.00452. The events are dependent because removing the first card changes the composition of the deck.
A bag contains 3 red marbles and 2 blue marbles. Two marbles are drawn without replacement. What is the probability that both are red?
P(first is red). 3 red out of 5 total. P(A) = 3/5.
P(second is red | first was red). The bag now has 2 red marbles and 2 blue marbles left (4 total). P(B|A) = 2/4 = 1/2.
P(both red). P(A ∩ B) = 3/5 × 2/4 = 6/20 = 3/10 = 0.3.
✓ P(both red) = 3/10 = 0.30. The events are dependent: taking the first marble changes how many red ones remain.
How Conditional Probability Connects to Dependence
Conditional probability is defined as:
P(A|B) probability of A given B
P(A ∩ B) probability of both
P(B) probability of B, must be > 0
Rearranging this gives the general multiplication rule: P(A ∩ B) = P(B) × P(A|B). When A and B are independent, P(A|B) = P(A), and the formula simplifies to P(A ∩ B) = P(A) × P(B).
That connection reveals exactly what independence means: knowing B occurred leaves P(A) unchanged. If instead knowing B occurred shifts P(A) up or down, the events are dependent.
Suppose P(A) = 0.4, P(B) = 0.5, and P(A ∩ B) = 0.2. Then P(A|B) = 0.2/0.5 = 0.4 = P(A). The events are independent. Now suppose P(A ∩ B) = 0.1 instead. Then P(A|B) = 0.1/0.5 = 0.2 ≠ P(A) = 0.4. The events are dependent.
How to Determine Whether Events Are Independent
Three methods work. Each is equivalent mathematically, but different situations make one more convenient than another.
Method 1: Multiplication test
Calculate P(A) × P(B). Compare the result to P(A ∩ B). If they match (within rounding), the events are independent. If they differ, the events are dependent.
This is the most direct method when all three probabilities are known.
Method 2: Conditional probability test
Compare P(A|B) with P(A). If they are equal, the events are independent. If they differ, the events are dependent. This is useful when you already know or can calculate the conditional probability.
Note: the relevant conditional probability must be defined, meaning P(B) must be greater than zero.
Method 3: Reasoning about the experimental setup
Ask whether the occurrence of one event physically or logically changes the situation for the other. A coin has no memory of previous flips. A deck of cards does have one fewer card after you draw from it without replacing.
This intuitive check is useful for identifying the structure of a problem, but the mathematical definition is what ultimately determines independence. Always verify with Method 1 or Method 2 when the answer is not obvious.
Decision Flowchart
How to Test Whether Events Are Independent
With Replacement vs Without Replacement
This is one of the most common sources of errors in probability problems.
With Replacement
- The selected item is returned before the next draw
- The population size stays the same
- The composition of the population stays the same
- Successive draws are generally independent
- Use P(A ∩ B) = P(A) × P(B)
Without Replacement
- The selected item is not returned
- The population size decreases by one
- The composition of the population changes
- Successive draws are generally dependent
- Use P(A ∩ B) = P(A) × P(B|A)
"With replacement" does not automatically guarantee independence, and "without replacement" does not automatically guarantee dependence. What matters is whether the events as defined satisfy P(A ∩ B) = P(A)P(B). Replacement is a setup that typically produces independence; it is not a definition of independence.
Probability Tree: Dependent Events Visualized
A probability tree for drawing two marbles without replacement from a bag containing 3 red (R) and 2 blue (B) marbles. Notice how the second-stage probabilities change depending on what was drawn first.
Drawing Two Marbles Without Replacement (3 Red, 2 Blue)
Second-stage probabilities (green = red marble, blue = blue marble) change depending on what was drawn first. This is what dependence looks like visually. All four branch products sum to 20/20 = 1. ✓
Notice that after drawing a red marble first, the probability of red on the second draw drops from 3/5 to 2/4. After drawing a blue marble first, the probability of red on the second draw rises from 3/5 to 3/4. That shift confirms dependence.
For more on building these, see the probability trees guide and the probability tree diagram tool.
Testing Independence from Given Probabilities
Sometimes you are given the probabilities directly and asked to determine independence. Here is the method applied to two contrasting cases.
Given P(A) = 0.4, P(B) = 0.5, P(A ∩ B) = 0.2. Are A and B independent?
Calculate P(A) × P(B). 0.4 × 0.5 = 0.20.
Compare with P(A ∩ B). P(A ∩ B) = 0.20. The values match.
✓ The events are independent. P(A)P(B) = P(A ∩ B) = 0.20.
Given P(A) = 0.4, P(B) = 0.5, P(A ∩ B) = 0.10. Are A and B independent?
Calculate P(A) × P(B). 0.4 × 0.5 = 0.20.
Compare with P(A ∩ B). P(A ∩ B) = 0.10 ≠ 0.20. The values differ.
Verify with conditional probability. P(A|B) = P(A ∩ B)/P(B) = 0.10/0.50 = 0.20 ≠ P(A) = 0.40. Confirmed dependent.
✗ The events are dependent. P(A)P(B) = 0.20 ≠ P(A ∩ B) = 0.10. Knowing B occurred cuts P(A) in half.
Independent vs Mutually Exclusive Events
For events with positive probabilities, mutually exclusive events are almost never independent. Confusing the two is one of the most frequent errors in probability.
| Concept | Independent Events | Mutually Exclusive Events |
|---|---|---|
| What it means | One event does not affect the probability of the other | The two events cannot both occur at the same time |
| Key formula | P(A ∩ B) = P(A)P(B) | P(A ∩ B) = 0 |
| Can they occur together? | Yes, and they sometimes do | No, by definition |
| Addition rule | P(A or B) = P(A) + P(B) - P(A)P(B) | P(A or B) = P(A) + P(B) |
| Example | Two separate coin tosses | Rolling even vs odd on one die |
To see why mutually exclusive events with positive probabilities are not independent, consider rolling a fair die once. Let A = rolling an even number (probability 3/6 = 1/2) and B = rolling an odd number (probability 3/6 = 1/2). These events cannot occur at the same time, so P(A ∩ B) = 0. But P(A) × P(B) = 1/2 × 1/2 = 1/4. Since 0 ≠ 1/4, the independence condition fails. The events are dependent: if you know A occurred, you know with certainty that B did not, which is the opposite of independence.
Learn more in the mutually exclusive events guide.
Common Mistakes
- Assuming separate events are always independent. Events from different trials are often independent, but not automatically. The mathematical condition must hold.
- Treating mutually exclusive as synonymous with independent. For events with positive probabilities, mutually exclusive events are dependent.
- Forgetting whether sampling is with or without replacement. This changes the denominator in every subsequent probability.
- Multiplying P(A) × P(B) for dependent events. This gives the wrong answer. Use P(A) × P(B|A) instead.
- Using the wrong denominator after removing an item. If 1 of 52 cards is removed, the next draw comes from 51 cards, not 52.
- Confusing P(A ∩ B) with P(A|B). P(A ∩ B) is the probability both occur. P(A|B) is the probability A occurs given B occurred. These are different quantities.
- Rounding intermediate steps too early. Carry full fractions through the calculation and round only the final answer.
- Assuming real-world events are independent without justification. Whether events are independent is a modeling assumption that should be stated and, where possible, tested.
Real-World Applications
Genetics
Mendelian inheritance models assume that alleles for different genes on different chromosomes are inherited independently (the law of independent assortment). Genes on the same chromosome may not be independent due to linkage.
Medical testing
Combining test results from separate diagnostic tests often assumes independence to calculate joint probabilities. Dependence between tests (e.g., both measure the same biomarker) changes how probabilities combine. See the guide on Bayes' theorem for how conditional probability applies here.
A/B testing
A/B tests assume that a user's behavior in one variant is independent of behavior in another. Contamination between groups breaks this assumption. The statistics behind A/B testing guide covers this in more depth.
Quality control
Testing whether consecutive items from a production line are defective. If defects come in runs due to a machine fault, successive defects are dependent. If faults are random and unrelated, the events may be modeled as independent.
Finance and risk
Portfolio diversification benefits rely on the assumption that asset returns are not perfectly correlated (not fully dependent). During market crises, correlations often rise, reducing diversification benefits. See portfolio diversification statistics.
Machine learning
Naive Bayes classifiers assume that features are conditionally independent given the class label. This assumption rarely holds exactly in real data but often produces good results in practice. See statistics for machine learning.
Practice Questions
A fair coin is tossed and a fair die is rolled. What is the probability of getting heads and rolling a 4?
A bag has 4 green and 6 yellow marbles. Two marbles are drawn without replacement. What is the probability that both are green?
Given P(A) = 0.6, P(B) = 0.3, and P(A ∩ B) = 0.18. Are A and B independent?
A standard deck of 52 cards. One card is drawn, noted, and replaced. Then a second card is drawn. What is the probability that both cards are hearts?
Given P(A) = 0.5, P(B) = 0.4, and P(A ∩ B) = 0.1. Are the events independent? Calculate P(A|B).
Independence for Three or More Events
When working with three or more events, pairwise independence does not guarantee mutual independence. Events A, B, and C are mutually independent only when all of the following hold:
- P(A ∩ B) = P(A)P(B)
- P(A ∩ C) = P(A)P(C)
- P(B ∩ C) = P(B)P(C)
- P(A ∩ B ∩ C) = P(A)P(B)P(C)
All four conditions must hold simultaneously. It is possible to construct examples where every pair is independent but the three events together are not mutually independent. This subtlety rarely appears in introductory courses but is worth knowing at the intermediate level.
For a deeper treatment of probability rules including the addition rule, see the probability rules guide.
Frequently Asked Questions
Independent events are events where the occurrence of one does not change the probability of the other. Dependent events are events where the occurrence of one does change the probability of the other. The mathematical test: if P(A ∩ B) = P(A)P(B), the events are independent. If P(A ∩ B) ≠ P(A)P(B), they are dependent.
P(A ∩ B) = P(A) × P(B). Equivalently, P(A|B) = P(A), meaning knowing B occurred does not change the probability of A.
P(A ∩ B) = P(A) × P(B|A), where P(B|A) is the probability of B given that A has occurred. The equivalent form is P(A ∩ B) = P(B) × P(A|B). Both give the same numerical result.
Calculate P(A) × P(B). If this equals P(A ∩ B), the events are independent. Alternatively, calculate P(A|B) and compare it to P(A). If they are equal, the events are independent.
No. For events with positive probabilities, mutually exclusive events are not independent. If A and B cannot both occur, then P(A ∩ B) = 0. But P(A)P(B) > 0. Since these are not equal, the independence condition fails.
Yes. A fair coin has no memory. The result of the first toss does not change the physical properties of the coin or the probability of any outcome on the second toss. P(H|first was H) = P(H) = 1/2.
Yes. Removing a card changes the composition of the remaining deck. The probability of drawing any particular card or type of card on the next draw is different from what it was before the first card was removed.
P(A and B), written P(A ∩ B), is the probability that both A and B occur. P(A|B) is the probability that A occurs given that B has already occurred. They are related by P(A|B) = P(A ∩ B) / P(B).
Replacement restores the original population before the next draw, which typically makes successive draws independent. It does not guarantee independence by definition; the mathematical condition P(A ∩ B) = P(A)P(B) must still hold. In practice, drawing with replacement from a fixed population does produce independent draws.
Yes. Dependent events can and do occur together. Dependence means that knowing one event occurred changes the probability of the other. It says nothing about whether the events can happen simultaneously. Mutually exclusive events are the category that cannot occur together.
Related Pages and Calculators
To continue exploring probability, these pages on Statistics Fundamentals are directly relevant:
Conditional Probability
The definition of P(A|B) and how it relates to joint and marginal probabilities.
Probability Rules
Addition, multiplication, complement, and general rules with examples.
Probability Trees
How to build and read probability trees for multi-stage experiments.
Mutually Exclusive Events
The definition and why mutual exclusivity differs from independence.
Bayes' Theorem
How conditional probability is used to update probabilities with new information.
Conditional Probability Calculator
Calculate P(A|B), P(A ∩ B), and related values interactively.
Probability Calculator
General probability calculations for basic and compound events.
Probability Tree Diagram Tool
Draw and calculate probability trees for dependent and independent events.
Explore our full collection of probability tools and calculators, including a conditional probability calculator, Bayes' theorem calculator, and probability trees.
Browse All Calculators