Dependence (Statistical) Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Dependence (Statistical).

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

Two events are statistically dependent when knowing one event occurred changes the probability of the other — formally, P(BA)P(B)P(B|A) \neq P(B), meaning the events share information.

Knowing AA happened tells you something about BB—they're connected.

Read the full concept explanation →

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: Two events are dependent when P(BA)P(B)P(B|A)\neq P(B) — learning AA happened shifts BB's probability.

Common stuck point: The procedure for dependence (statistical) is the easy part; the trap is multiplying P(A)×P(B)P(A)\times P(B) for dependent events. Asking "Does knowing the first event occurred change the probability of the second?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Does knowing the first event occurred change the probability of the second?

Worked Examples

Example 1

medium
A bag has 5 red and 3 blue balls. Two balls are drawn without replacement. Find P(both red)P(\text{both red}) using the multiplication rule for dependent events.

Answer

P(both red)=5140.357P(\text{both red}) = \frac{5}{14} \approx 0.357

First step

1
Event A = first ball is red: P(A)=58P(A) = \frac{5}{8}

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Unlock answer keys One Family plan — every worked solution, all subjects

Example 2

hard
Disease test: P(disease)=0.05P(\text{disease}) = 0.05. Test positive given disease: P(+D)=0.90P(+|D) = 0.90. Test positive given no disease: P(+Dc)=0.10P(+|D^c) = 0.10. Find P(D+)P(D \cap +) and P(Dc+)P(D^c \cap +).

Example 3

medium
A box has 33 defective and 77 good items. Two are picked without replacement. Find P(both defective)P(\text{both defective}).

Example 4

medium
A bag has 55 red and 55 blue marbles. Without replacement, find P(red then blue)P(\text{red then blue}).

Example 5

hard
P(A)=0.5P(A) = 0.5, P(BA)=0.6P(B \mid A) = 0.6, P(BAc)=0.2P(B \mid A^c) = 0.2. Find P(B)P(B) using the law of total probability.

Example 6

challenge
Roll two dice. Are the events 'sum is 7' and 'first die is 3' independent?

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
A deck of 52 cards. Find P(drawing two aces in a row)P(\text{drawing two aces in a row}) without replacement.

Example 2

hard
Verify whether smoking and lung cancer are dependent using the following: P(cancer)=0.06P(\text{cancer}) = 0.06, P(cancersmoker)=0.15P(\text{cancer}|\text{smoker}) = 0.15. What does this tell us about the relationship?

Example 3

easy
If P(B)=0.4P(B)=0.4 but P(BA)=0.4P(B\mid A)=0.4 as well, are AA and BB dependent?

Example 4

easy
If P(BA)=0.7P(B\mid A)=0.7 and P(B)=0.4P(B)=0.4, are AA and BB dependent?

Example 5

easy
For independent events, P(AB)=P(A)×P(B)P(A\cap B)=P(A)\times P(B). If P(A)=0.5P(A)=0.5, P(B)=0.2P(B)=0.2 and they are independent, find P(AB)P(A\cap B).

Example 6

easy
Are successive flips of a fair coin dependent or independent?

Example 7

easy
Drawing two cards WITHOUT replacement: is the second draw dependent on the first?

Example 8

easy
Rain and carrying umbrellas are statistically dependent. Does rain CAUSE umbrellas to exist?

Example 9

easy
For dependent events, the joint probability is P(A)×P(BA)P(A)\times P(B\mid A). If P(A)=0.5P(A)=0.5 and P(BA)=0.6P(B\mid A)=0.6, find P(AB)P(A\cap B).

Example 10

easy
If P(A)=0.3P(A)=0.3, P(B)=0.5P(B)=0.5, P(AB)=0.15P(A\cap B)=0.15, are AA and BB independent?

Example 11

medium
P(A)=0.4P(A)=0.4, P(B)=0.5P(B)=0.5, P(AB)=0.3P(A\cap B)=0.3. Are AA and BB independent? Show the check.

Example 12

medium
P(A)=0.6P(A)=0.6 and P(AB)=0.18P(A\cap B)=0.18. Find P(BA)P(B\mid A).

Example 13

medium
A bag has 5 red and 5 blue marbles. Drawing two without replacement, find P(both red)P(\text{both red}).

Example 14

medium
Knowing a person owns a raincoat raises the probability they own an umbrella. Is this dependence, causation, or both, and why?

Example 15

medium
If AA and BB are independent with P(A)=0.5P(A)=0.5, P(B)=0.5P(B)=0.5, find P(AB)P(A\cup B).

Example 16

medium
Why is using P(A)×P(B)P(A)\times P(B) wrong for two dependent draws from a small bag?

Example 17

medium
A card is drawn. Event AA: it is red. Event BB: it is a heart. Are AA and BB independent? Use P(BA)P(B\mid A) vs P(B)P(B).

Example 18

medium
Two fair dice are rolled. Event AA: first die is even. Event BB: second die is 5. Are AA and BB independent?

Example 19

medium
If AA and BB are independent with P(A)=0.3P(A)=0.3 and P(B)=0.5P(B)=0.5, find P(AB)P(A\cap B) and P(BA)P(B\mid A).

Example 20

challenge
P(A)=0.7P(A)=0.7, P(B)=0.6P(B)=0.6, P(AB)=0.88P(A\cup B)=0.88. Determine P(AB)P(A\cap B) and whether A,BA,B are independent.

Example 21

challenge
A jar has 3 defective and 7 good items. Two are inspected without replacement. Find P(at least one defective)P(\text{at least one defective}).

Example 22

challenge
Given P(A)=0.5P(A)=0.5, P(BA)=0.8P(B\mid A)=0.8, P(BAc)=0.2P(B\mid A^c)=0.2, find P(B)P(B) using the law of total probability.

Example 23

easy
If P(A)=0.4P(A) = 0.4, P(B)=0.5P(B) = 0.5, and P(AB)=0.20P(A \cap B) = 0.20, are AA and BB independent?

Example 24

easy
P(A)=0.5P(A) = 0.5 and P(BA)=0.7P(B \mid A) = 0.7. Find P(AB)P(A \cap B).

Example 25

easy
A bag has 44 red and 66 green balls. Draw one, replace it, draw another. Are the draws dependent?

Example 26

easy
P(A)=0.6P(A) = 0.6, P(AB)=0.24P(A \cap B) = 0.24. Find P(BA)P(B \mid A).

Example 27

medium
P(A)=0.3P(A) = 0.3, P(B)=0.4P(B) = 0.4, P(AB)=0.58P(A \cup B) = 0.58. Find P(AB)P(A \cap B) and decide independence.

Example 28

medium
Roll a fair die. Let AA = 'outcome is even' and BB = 'outcome 3\le 3'. Are AA and BB independent?

Example 29

medium
Draw two cards without replacement from a 5252-card deck. Find P(first is king and second is queen)P(\text{first is king and second is queen}).

Example 30

medium
In a study, P(exercise)=0.4P(\text{exercise}) = 0.4 and P(exercisehealthy)=0.7P(\text{exercise} \mid \text{healthy}) = 0.7. Are exercise and being healthy dependent?

Example 31

medium
P(AB)=0.18P(A \cap B) = 0.18, P(A)=0.6P(A) = 0.6, P(B)=0.3P(B) = 0.3. Are AA and BB independent?

Example 32

medium
Roll a fair die twice. Let AA = 'first roll is 66' and BB = 'sum is 1010'. Find P(AB)P(A \cap B), P(A)P(A), P(B)P(B), and decide dependence.

Example 33

medium
In a population, P(smoker)=0.2P(\text{smoker}) = 0.2 and P(smokercancer)=0.5P(\text{smoker} \mid \text{cancer}) = 0.5. Are smoking and cancer statistically dependent?

Example 34

hard
A test has sensitivity P(+D)=0.95P(+\mid D) = 0.95 and specificity P(Dc)=0.90P(-\mid D^c) = 0.90, with disease prevalence P(D)=0.02P(D) = 0.02. Find P(D+)P(D \mid +).

Example 35

hard
A jar contains 22 red, 33 blue, and 55 green balls. Two are drawn without replacement. Find P(same color)P(\text{same color}).

Example 36

hard
A factory has two machines: M1M_1 produces 60%60\% of parts with 2%2\% defect rate; M2M_2 produces 40%40\% with 5%5\% defect rate. Find P(M1defective)P(M_1 \mid \text{defective}).

Example 37

hard
Three urns. Urn 1: 2 red, 3 blue. Urn 2: 4 red, 2 blue. Urn 3: 1 red, 5 blue. Pick an urn uniformly, then a ball. Find P(red)P(\text{red}).

Example 38

hard
AA and BB are independent with P(A)=0.4P(A) = 0.4, P(B)=0.5P(B) = 0.5. Find P(AB)P(A \cup B) and P(ABc)P(A \cap B^c).

Example 39

challenge
A spam filter flags 80%80\% of spam and 5%5\% of non-spam. Prior P(spam)=0.4P(\text{spam}) = 0.4. Find P(spamflagged)P(\text{spam} \mid \text{flagged}).

Background Knowledge

These ideas may be useful before you work through the harder examples.

probabilityindependent events