GeometryProbability2 of 5
Probability · 2

Independent and Dependent Events

When outcomes are equally likely, finding the probability of a single event is just counting outcomes, but we need a way to find the probability of two events happening in a row.

1

Independent Events: Pulling With Replacement

Suppose a bag holds 55 marbles (3 Red3\text{ Red} and 2 Blue2\text{ Blue}) and we want to find the probability of pulling a Red marble, putting it back in the bag, and then pulling a Red marble again.

Independent Events: Pulling With Replacement
3 Red3\text{ Red}
2 Blue2\text{ Blue}
Red\text{Red}
Red\text{Red}
put back\text{put back}
P(Red, then Red)=?P(\text{Red, then Red}) = \overall{\mathord{?}}
Text solution
First pull is RedThe full bag has 5\overall{5} equally likely marbles and 3\overall{3} of them are Red, which narrows us down to 35\overall{\frac{3}{5}} of all possible outcomes.
P(first Red)\displaystyle P(\text{first Red}) =35\displaystyle = \overall{\frac{3}{5}}
Put the marble back and pull a second RedBecause the first marble goes back into the bag, the bag is back to its original 3 Red\given{3\text{ Red}} marbles out of 5\given{5}.
P(second Red)\displaystyle P(\text{second Red}) =35\displaystyle = \given{\frac{3}{5}}
Take a fraction of a fraction for both pulls in a rowThe second pull is Red in 35\given{\frac{3}{5}} of the first pull's 35\overall{\frac{3}{5}} share, and taking a fraction of a fraction means multiplying.
P(Red, then Red)\displaystyle P(\text{Red, then Red}) =35×35\displaystyle = \overall{\frac{3}{5}} \times \given{\frac{3}{5}} =925\displaystyle = \overall{\frac{9}{25}}

So we pull two Red marbles in a row 925\overall{\frac{9}{25}} of the time, and because putting the first marble back left the second pull's fraction unchanged, the two pulls are independent events.

2

Dependent Events: Pulling Without Replacement

When we keep the first marble out of the bag instead of putting it back, the bag changes before the second pull. Two events are called dependent events when knowing that one happens changes the probability of the other. Using the same bag of 3 Red3\text{ Red} and 2 Blue2\text{ Blue} marbles, we want the probability of pulling Red and then Red without replacement.

Dependent Events: Pulling Without Replacement
3 Red3\text{ Red}
2 Blue2\text{ Blue}
pocket\text{pocket}
Red\text{Red}
Red\text{Red}
P(Red, then Red)=?P(\text{Red, then Red}) = \overall{\mathord{?}}
Text solution
First pull is RedThe bag starts full, with 3 Red\overall{3\text{ Red}} marbles out of 5\overall{5}.
P(first Red)\displaystyle P(\text{first Red}) =35\displaystyle = \overall{\frac{3}{5}}
Keep the Red marble out and pull a second RedAssuming the first pull was Red and stays out of the bag, the bag is down to 4\given{4} marbles and only 2\given{2} of them are Red.
P(second Red after first Red)\displaystyle P(\text{second Red after first Red}) =24\displaystyle = \given{\frac{2}{4}} =12\displaystyle = \given{\frac{1}{2}}
Take a fraction of a fraction and simplifyThe second Red pull takes 24\given{\frac{2}{4}} of the first pull's 35\overall{\frac{3}{5}} share.
P(Red, then Red)\displaystyle P(\text{Red, then Red}) =35×24\displaystyle = \overall{\frac{3}{5}} \times \given{\frac{2}{4}} =620\displaystyle = \overall{\frac{6}{20}} =310\displaystyle = \overall{\frac{3}{10}}

Keeping the first Red marble out drops the probability of getting two Reds in a row from 925\overall{\frac{9}{25}} (36%36\%) to 310\overall{\frac{3}{10}} (30%30\%).

Compare how the 35\overall{\frac{3}{5}} region from the first pull gets divided when you put the Red marble back versus when you keep it out:

The first pull stays the same, and the second pull's fraction changes only when keeping the first marble out changes what is left in the bag.
3

Probability Paths: One Marble of Each Color

In the first two problems, only one sequence of pulls worked (Red\text{Red}, then Red\text{Red}). Now we want the probability of pulling one marble of each color without replacement from the same bag of 3 Red3\text{ Red} and 2 Blue2\text{ Blue} marbles, which can happen in two different orders.

Probability Paths: One Marble of Each Color
3 Red3\text{ Red}
2 Blue2\text{ Blue}
pocket\text{pocket}
Red\firstorder{\text{Red}}
Blue\firstorder{\text{Blue}}
Blue\secondorder{\text{Blue}}
Red\secondorder{\text{Red}}
P(one of each color)=?P(\text{one of each color}) = \mathord{?}
Red\text{Red}
Blue\text{Blue}
Red then Blue:\htmlClass{lc-blue}{\text{Red then Blue:}}
620\htmlClass{lc-blue}{\dfrac{6}{20}}
Blue then Red:\htmlClass{lc-green}{\text{Blue then Red:}}
620\htmlClass{lc-green}{\dfrac{6}{20}}
Text solution
Find the fraction for the Red-then-Blue pathPulling Red first leaves 4\given{4} marbles in the bag, and both Blue marbles are still inside.
P(Red, then Blue)\displaystyle P(\firstorder{\text{Red, then Blue}}) =35×24\displaystyle = \firstorder{\frac{3}{5}} \times \given{\frac{2}{4}} =620\displaystyle = \firstorder{\frac{6}{20}}
Go back to the full bag and find the Blue-then-Red pathPulling Blue first leaves 4\given{4} marbles in the bag, with all 3 Red\given{3\text{ Red}} marbles still inside.
P(Blue, then Red)\displaystyle P(\secondorder{\text{Blue, then Red}}) =25×34\displaystyle = \secondorder{\frac{2}{5}} \times \given{\frac{3}{4}} =620\displaystyle = \secondorder{\frac{6}{20}}
Add the separate winning regionsBecause Red-then-Blue and Blue-then-Red are separate regions of the outcome square that both give one of each color, we add their shares together.
P(one of each color)\displaystyle P(\text{one of each color}) =620+620\displaystyle = \firstorder{\frac{6}{20}} + \secondorder{\frac{6}{20}} =1220\displaystyle = \frac{12}{20} =35\displaystyle = \frac{3}{5}

Wait to simplify until after you add the paths: every two-pull path from the same bag naturally gets the same denominator (5×4=205 \times 4 = 20), so leaving 620\frac{6}{20} unsimplified makes them easy to add right away. Across both orders combined, we get one marble of each color 35\frac{3}{5} of the time.

4

Conditional Probability Notation

To read and write probability problems in standard notation, we need symbols for "both events happen" and "one event happens assuming the other happens."

Conditional Probability Notation
AA
Red\text{Red}
35\overall{\dfrac{3}{5}}
BB
Red\text{Red}
24\given{\dfrac{2}{4}}
P(A and B)=?\overall{P(A \text{ and } B)} = \overall{\mathord{?}}

Multiplying along any two-step path is written as one compact rule, matched here to pulling Red (AA) and then Red (BB) without replacement:

P(A and B)=P(A∩B)⏟both happen(620)\displaystyle \underbrace{\overall{P(A \text{ and } B)} = \overall{P(A \cap B)}}_{\substack{\textstyle\text{both happen} \\[3pt] \textstyle (\overall{\tfrac{6}{20}})}} =P(A)⏟first fraction(35)⋅P(B∣A)⏟conditionalprobability:B given A(24)\displaystyle = \underbrace{\overall{P(A)}}_{\substack{\textstyle\text{first fraction} \\[3pt] \textstyle (\overall{\tfrac{3}{5}})}} \cdot \underbrace{\given{P(B|A)}}_{\substack{\textstyle\text{conditional} \\[2pt] \textstyle\text{probability:} \\[3pt] \textstyle B \text{ given } A \\[3pt] \textstyle (\given{\tfrac{2}{4}})}}

The symbol ∩\cap simply replaces the word "and," and the vertical bar in P(B∣A)\given{P(B|A)} is read "given": it means the probability of BB assuming AA happens, not BB divided by AA.

When AA and BB are independent, AA happening changes nothing for BB, so the conditional fraction is just the normal fraction for BB:

P(B∣A)\displaystyle \given{P(B|A)} =P(B)\displaystyle = \overall{P(B)}
5

Testing Independence in a Two-Way Table

When a problem gives survey counts in a table instead of a bag of marbles, we can't see whether a marble went back in. To check whether "Playing Sports" and "Playing an Instrument" are independent in this survey of 100100 students, we check whether knowing one happens changes the fraction for the other.

| | Plays Instrument | No Instrument | Total | | :--- | :---: | :---: | :---: | | Plays Sports | 1515 | 4545 | 6060 | | No Sports | 1010 | 3030 | 4040 | | Total | 2525 | 7575 | 100100 |

Testing Independence in a Two-Way Table
Instrument\text{Instrument}
Noinstrument\begin{matrix}\text{No}\\[-2pt]\text{instrument}\end{matrix}
Total\text{Total}
Sports\text{Sports}
1515
4545
6060
No sports\text{No sports}
1010
3030
4040
Total\text{Total}
2525
7575
100100
Independent?\text{Independent?}
Text solution
Find the normal fraction for the event among all surveyed studentsOut of all 100\overall{100} students in the table, 25\overall{25} play an instrument.
P(Instrument)\displaystyle P(\text{Instrument}) =25100\displaystyle = \overall{\frac{25}{100}} =14\displaystyle = \overall{\frac{1}{4}}
Find the conditional fraction inside the given groupLooking only at the row of 60\given{60} students who play sports, 15\given{15} of them play an instrument.
P(Instrument∣Sports)\displaystyle P(\text{Instrument} \mid \text{Sports}) =1560\displaystyle = \given{\frac{15}{60}} =14\displaystyle = \given{\frac{1}{4}}
Compare the two fractionsThe fraction inside the sports row is the same as the fraction among all surveyed students.
P(Instrument∣Sports)\displaystyle \given{P(\text{Instrument} \mid \text{Sports})} =P(Instrument)\displaystyle = \overall{P(\text{Instrument})} =14\displaystyle = \frac{1}{4}

Knowing a student plays sports does not change the 14\frac{1}{4} probability that they play an instrument, so "Playing Sports" and "Playing an Instrument" are independent events.

We can run the exact same check by seeing whether multiplying the two overall fractions gives the 15\overall{15} out of 100\overall{100} students who do both:

P(Sports)⋅P(Instrument)\displaystyle P(\text{Sports}) \cdot P(\text{Instrument}) =60100×25100\displaystyle = \overall{\frac{60}{100}} \times \overall{\frac{25}{100}} =15100\displaystyle = \overall{\frac{15}{100}} =P(Sports∩Instrument)\displaystyle = P(\text{Sports} \cap \text{Instrument})

See what happens to independence as you change how the 25\overall{25} instrument players are split between the sports and non-sports rows:

With 25 instrument players out of 100 students in all, playing sports and playing an instrument are independent only when 1/4 of the 60 athletes also play an instrument.
6

Summary

Here is how all the pieces fit together.

Lesson Recap
35\overall{\dfrac{3}{5}}
35\given{\dfrac{3}{5}}

Key concepts

Whenever two events happen in a row, you are taking a fraction of a fraction, so you multiply along the path:

P(A∩B)\displaystyle \overall{P(A \cap B)} =P(A)⋅P(B∣A)\displaystyle = \overall{P(A)} \cdot \given{P(B|A)}

Your only decision before writing the second fraction P(B∣A)\given{P(B|A)} is whether the first event changed the setup:

Independent (with replacement)

The first event changes nothing, so do not change the counts for the second fraction: keep P(B∣A)=P(B)\given{P(B|A)} = \overall{P(B)} (pulling two Reds with replacement from 3 Red,2 Blue3\text{ Red}, 2\text{ Blue} gives 35×35=925\overall{\frac{3}{5}} \times \given{\frac{3}{5}} = \overall{\frac{9}{25}}).

Dependent (without replacement)

Assume the first event just happened and update both how many are left in total and how many match what you want before writing P(B∣A)\given{P(B|A)} (pulling two Reds without replacement gives 35×24=620=310\overall{\frac{3}{5}} \times \given{\frac{2}{4}} = \overall{\frac{6}{20}} = \overall{\frac{3}{10}}).

One path vs. multiple winning paths

Add the probabilities of separate, non-overlapping winning paths ("Red then Blue or Blue then Red": 620+620=1220=35\firstorder{\frac{6}{20}} + \secondorder{\frac{6}{20}} = \frac{12}{20} = \frac{3}{5}). If only one specific order works ("Red, then Blue"), stop after multiplying that single path.

Testing independence in a table

Compare the whole-group fraction P(B)\overall{P(B)} against the fraction P(B∣A)\given{P(B|A)} inside one row or column (in the 100100-student survey, 25100=14\overall{\frac{25}{100}} = \overall{\frac{1}{4}} overall vs. 1560=14\given{\frac{15}{60}} = \given{\frac{1}{4}} among students who play sports). If the fraction stays the same, they are independent; if it changes, they are dependent.

7

Practice

1

A bag contains 4 Green marbles and 3 Yellow marbles. You pull one marble, put it back in the bag, and pull a second marble. What is the probability of pulling a Green marble and then a Yellow marble?

After the first pull is Green and goes back into the bag, how many total marbles and how many Yellow marbles are in the bag for the second pull?

First pull is GreenOut of 7\overall{7} marbles in the bag, 4\overall{4} are Green.
P(first Green)\displaystyle P(\text{first Green}) =47\displaystyle = \overall{\frac{4}{7}}
Put the marble back and pull YellowBe careful not to drop the total to 66 on the second pull (which gives 47×36=27\frac{4}{7} \times \frac{3}{6} = \frac{2}{7}): because you put the first marble back, all 7\given{7} marbles are still in the bag and 3\given{3} are Yellow.
P(second Yellow)\displaystyle P(\text{second Yellow}) =37\displaystyle = \given{\frac{3}{7}}
Multiply along the path
P(Green, then Yellow)\displaystyle P(\text{Green, then Yellow}) =47×37\displaystyle = \overall{\frac{4}{7}} \times \given{\frac{3}{7}} =1249\displaystyle = \overall{\frac{12}{49}}
2

A box contains 5 dark chocolates and 3 milk chocolates. You randomly pick one piece, eat it, and then pick a second piece. What is the probability of picking dark chocolate both times?

Assume the first piece you ate was dark chocolate: how many dark chocolates and how many total pieces are left in the box for your second pick?

First pick is dark chocolateThe full box holds 5\overall{5} dark chocolates out of 8\overall{8} total pieces.
P(first Dark)\displaystyle P(\text{first Dark}) =58\displaystyle = \overall{\frac{5}{8}}
Eat the first piece and pick a second dark chocolateDon't reuse 58\frac{5}{8} (which gives 2564\frac{25}{64}) or shrink only the denominator to 57\frac{5}{7} (which gives 2556\frac{25}{56}): eating a dark chocolate drops the dark chocolates to 4\given{4} and the total pieces to 7\given{7}.
P(second Dark∣first Dark)\displaystyle P(\text{second Dark} \mid \text{first Dark}) =47\displaystyle = \given{\frac{4}{7}}
Multiply along the path and simplify
P(Dark, then Dark)\displaystyle P(\text{Dark, then Dark}) =58×47\displaystyle = \overall{\frac{5}{8}} \times \given{\frac{4}{7}} =2056\displaystyle = \overall{\frac{20}{56}} =514\displaystyle = \overall{\frac{5}{14}}
3

A drawer holds 4 black socks and 2 white socks. You pull out two socks one after the other without putting the first one back. What is the probability of pulling one sock of each color?

Which two different orders of pulls both give you one black sock and one white sock?

Find the Black-then-White pathPulling one of the 4\firstorder{4} black socks out of 6\firstorder{6} leaves 5\given{5} socks in the drawer, with both white socks still inside.
P(Black, then White)\displaystyle P(\firstorder{\text{Black, then White}}) =46×25\displaystyle = \firstorder{\frac{4}{6}} \times \given{\frac{2}{5}} =830\displaystyle = \firstorder{\frac{8}{30}}
Find the White-then-Black pathDon't stop after the first path (which leaves you at 830=415\firstorder{\frac{8}{30}} = \firstorder{\frac{4}{15}}): pulling a white sock first and a black sock second is a second separate path that also gives one of each color.
P(White, then Black)\displaystyle P(\secondorder{\text{White, then Black}}) =26×45\displaystyle = \secondorder{\frac{2}{6}} \times \given{\frac{4}{5}} =830\displaystyle = \secondorder{\frac{8}{30}}
Add the two winning paths and simplify
P(one of each color)\displaystyle P(\text{one of each color}) =830+830\displaystyle = \firstorder{\frac{8}{30}} + \secondorder{\frac{8}{30}} =1630\displaystyle = \frac{16}{30} =815\displaystyle = \frac{8}{15}
4

For two events AA and BB, P(A)=35P(A) = \frac{3}{5}, P(B)=13P(B) = \frac{1}{3}, and P(B∣A)=12P(B|A) = \frac{1}{2}. Find P(A∩B){P(A \cap B)}, and state whether AA and BB are independent or dependent.

To find P(A∩B)P(A \cap B), which fraction gives the probability of BB when we know AA happens: P(B)P(B) or P(B∣A)P(B|A)?

Multiply the first fraction by the conditional second fractionBe careful not to multiply P(A)⋅P(B)=35×13=15\overall{P(A)} \cdot \overall{P(B)} = \frac{3}{5} \times \frac{1}{3} = \frac{1}{5}, because when we know AA happens, the probability of BB is P(B∣A)=12\given{P(B|A)} = \given{\frac{1}{2}}, not P(B)=13\overall{P(B)} = \overall{\frac{1}{3}}.
P(A∩B)\displaystyle \overall{P(A \cap B)} =P(A)⋅P(B∣A)\displaystyle = \overall{P(A)} \cdot \given{P(B|A)} =35×12\displaystyle = \overall{\frac{3}{5}} \times \given{\frac{1}{2}} =310\displaystyle = \overall{\frac{3}{10}}
Compare P(B∣A)\given{P(B|A)} with P(B)\overall{P(B)}Since P(B∣A)=12\given{P(B|A)} = \given{\frac{1}{2}} does not equal P(B)=13\overall{P(B)} = \overall{\frac{1}{3}}, knowing AA happened changes the probability of BB:
P(A∩B)\displaystyle \overall{P(A \cap B)} =310, Dependent\displaystyle = \overall{\frac{3}{10}}, \text{ Dependent}
5

A survey of 120 students records whether they walk to school and whether they bring lunch. Among the 40 students who walk to school, 15 bring lunch and 25 do not. Among the 80 students who do not walk, 45 bring lunch and 35 do not (for a total of 60 students who bring lunch and 60 who do not). Are "Walking to School" and "Bringing Lunch" independent or dependent events?

Compare the fraction of all 120120 students who bring lunch with the fraction of the 4040 walkers who bring lunch.

Find the overall fraction of students who bring lunch
P(Bring Lunch)\displaystyle P(\text{Bring Lunch}) =60120\displaystyle = \overall{\frac{60}{120}} =12\displaystyle = \overall{\frac{1}{2}}
Find the fraction of walkers who bring lunchBe careful not to divide the 15\given{15} walkers who bring lunch by all 120120 students (15120=18\frac{15}{120} = \frac{1}{8}): since we are given that the student walks, we divide by the 40\given{40} walkers.
P(Bring Lunch∣Walks)\displaystyle P(\text{Bring Lunch} \mid \text{Walks}) =1540\displaystyle = \given{\frac{15}{40}} =38\displaystyle = \given{\frac{3}{8}}
Compare the fractionsBecause 38≠12\given{\frac{3}{8}} \neq \overall{\frac{1}{2}}, knowing a student walks changes the probability that they bring lunch:
Dependent\displaystyle \text{Dependent}
6

In a school of 200 students, 80 students are in the band, and 50 of the 200 students speak a second language. If "Being in the Band" and "Speaking a Second Language" are independent events, how many band members speak a second language?

What fraction of the whole school speaks a second language, and what must that fraction be inside the group of 8080 band members if the events are independent?

Find the whole-school fraction who speak a second languageDon't divide the 50\language{50} language speakers by the 80\band{80} band members (5080=58\frac{50}{80} = \frac{5}{8}), because the 50\language{50} students come from the whole school of 200200.
P(Second Language)\displaystyle P(\text{Second Language}) =50200\displaystyle = \language{\frac{50}{200}} =14\displaystyle = \language{\frac{1}{4}}
Take that same fraction of the band groupBecause the events are independent, the band must have that exact same 14\language{\frac{1}{4}} share, and don't stop at the fraction 14\language{\frac{1}{4}} when the question asks for how many of the 80\band{80} band members speak a second language.
Band members speaking a second language\displaystyle \text{Band members speaking a second language} =14×80\displaystyle = \language{\frac{1}{4}} \times \band{80} =20\displaystyle = 20