Skip to content
tryhardprep
All lessons

Probability and conditional probability

14 minute read · 9 sections

Read first: Math: how the section works, Desmos basics for the test

0 of 9 sectionsSections

What the questions look like

Almost every one of these questions says “selected at random.” The last line usually reads like one of these:

  • “If one of these students is selected at random, what is the probability of selecting a student who plays a sport?”
  • The same question with “given that the student is a senior” added at the end
  • “How many of these students play a sport?”, after the question has given you a probability

The counts come from a table, a list of numbers, or a description in a sentence or two. On a A question where you type your own answer instead of picking one of four.Read the lesson, the question ends with “(Express your answer as a decimal or fraction, not as a percent.)”

A probability is the number of picks that fit the description over the number of picks you could make. If 12 of the 30 songs on a playlist are covers, the probability of picking a cover is 1230=25\frac{12}{30}=\frac{2}{5}. It always comes out from 0 to 1, so an answer of 12 is a count that never got divided.

There's nothing to graph in these questions. Choosing the top and bottom of the fraction happens on paper. After that, Desmos can do the arithmetic.

Out of which group?

Here are the 80 tickets sold for a school play.

TicketMatineeEveningTotal
Adult203050
Child161430
Total364480

If one of these tickets is selected at random, what is the probability of selecting a child ticket, given that the ticket is for the matinee?

Read to the end before you touch the table. “Given that the ticket is for the matinee” means you're only picking from matinee tickets, so every evening ticket is out.

  1. Keep only the matinee column. These 36 tickets are the only ones you can pick.

    20+16=3620+16=36
  2. In that column, count the child tickets.

    1616
  3. Put the matinee total on the bottom and the child count on top.

    1636\frac{16}{36}
  4. Divide the top and bottom by 4.

    =49=\frac{4}{9}

The top number always comes from inside the bottom group. Here the 16 child matinee tickets sit inside the 36 matinee tickets, so the fraction makes sense.

When the last line changes, the bottom can change too. Here are four questions about the same table.

The question asks forBottomAnswer
a child ticketall 803080=38\frac{30}{80}=\frac{3}{8}
a child matinee ticketall 801680=15\frac{16}{80}=\frac{1}{5}
a child ticket, given matinee36 matinee1636=49\frac{16}{36}=\frac{4}{9}
a matinee ticket, given child30 child1630=815\frac{16}{30}=\frac{8}{15}

A question about a child matinee ticket (or a ticket that's “child and matinee”) points at one cell, 16. Nothing in it rules out any tickets, though, so you're still picking from all 80.

Trap: The condition read backward

815\frac{8}{15} is a choice on the “child, given matinee” question. It has the right top, 16, over the 30 child tickets, which answers “matinee, given child.”

What to do: Say the question as “Out of the matinee tickets, how many are child tickets?” The group after “out of” goes on the bottom.

Trap: The grand total on the bottom

15\frac{1}{5} is a choice on the same question. It puts the right 16 over all 80 tickets, as if the evening tickets could still be picked.

What to do: If the question says “given that” or names a smaller group to pick from, the grand total in the corner of the table can't be your bottom.

A group named at the start of the question works the same as “given that.”

Do this
Read “If one of the matinee tickets is selected at random” as the group, and put 36 on the bottom.
Not this
Wait for the words “given that” before you shrink the bottom.

The question names the group before it names the ticket you want, so you're already picking only from matinee tickets. The answer is 16/36 again.

Conditions that cover several rows

When the condition covers more than one row, add those rows to get the bottom. This table covers every pair of shoes in a store, and every price is a whole number of dollars. It gives each cell as a share of all the pairs instead of a count, so the grand total is 1.00. You work it the same way.

PriceOn saleFull priceTotal
Under $250.230.080.31
$25 to $590.160.260.42
$60 or more0.070.200.27
Total0.460.541.00

If one of these pairs is selected at random, which of the following is closest to the probability that it's on sale, given that it costs less than $60?

  1. Keep the under-$25 row and the $25 to $59 row. A $60 pair doesn't count, so the last row is out. Add the two totals for the bottom.

    0.31+0.42=0.730.31+0.42=0.73
  2. In those two rows, add the on-sale shares for the top.

    0.23+0.16=0.390.23+0.16=0.39
  3. Divide, and round only at the end.

    0.390.73≈0.53\frac{0.39}{0.73}\approx0.53

You don't need to turn the shares into counts first.

Whether a $60 pair counts comes down to the wording of the condition.

WordingDoes 60 count?
at least 60, 60 or moreYes
more than 60, greater than 60No
at most 60, 60 or fewerYes
less than 60, fewer than 60No

A band labeled “40 to 60” adds nothing to “more than 60,” since even its top value, 60, isn't more than 60.

Trap: Only part of the range

0.380.38 is the $25 to $59 row alone, 0.160.42\frac{0.16}{0.42}. It leaves out the pairs under $25, which also cost less than $60.

What to do: Write down every row the wording covers before you add, and test the boundary number itself: does a $60 pair count?

A table of shares still needs the condition's total on the bottom.

Do this
Divide 0.39 by 0.73, the share of pairs that cost less than $60.
Not this
Stop at 0.39, since the table already gives shares.

0.39 is a share of every pair in the store. The question asks for a share of only the pairs that cost less than $60.

A condition can have a “not” in it. “Given that it doesn't cost $60 or more” keeps the same two rows. You can also get there by subtracting the $60-or-more row: 1.00−0.27=0.731.00-0.27=0.73 on the bottom and 0.46−0.07=0.390.46-0.07=0.39 on top. Make both subtractions, or the top still counts pairs you've ruled out.

Now try one with counts in place of shares.

Worked example
100%
Strand counts by material and length in meters. Columns are less than 20, 20 to less than 40, at least 40, and Total; rows are Hemp: 8, 10, 12, 30; Flax: 14, 8, 10, 32; Cotton: 14, 12, 12, 38; Total: 36, 30, 34, 100.

At a rope walk, Salim prepares strands of three materials to be twisted into ropes. He sorts each strand into exactly one length category. The table gives the numbers of strands by material and length, in meters. One of these strands will be selected at random.

What is the probability of selecting a hemp strand, given that its length is at least 20 meters?

  1. A

    1150\frac{11}{50}

  2. B

    1132\frac{11}{32}

  3. C

    617\frac{6}{17}

  4. D

    1115\frac{11}{15}

Show the answer
  • A

    1150\frac{11}{50}

    Using 22100=1150\frac{22}{100}=\frac{11}{50} puts all 100100 strands in the The bottom number of a fraction, like the 4 in 3/4.Read the lesson. The condition “at least 20 meters” limits the denominator to the 6464 strands that meet that condition.

  • B

    1132\frac{11}{32}

    Correct answer

    The length condition includes the “20 to less than 40 meters” and “At least 40 meters” columns, which contain 30+34=6430+34=64 strands. Of these, 10+12=2210+12=22 are hemp, so the How likely something is, written as a number from 0 to 1, like 1/2 for heads on a coin flip.Read the lesson is 2264=1132\frac{22}{64}=\frac{11}{32}.

  • C

    617\frac{6}{17}

    Using 1234=617\frac{12}{34}=\frac{6}{17} counts only the strands at least 4040 meters long in both the The top number of a fraction, like the 3 in 3/4.Read the lesson and The bottom number of a fraction, like the 4 in 3/4.Read the lesson. This leaves out the “20 to less than 40 meters” category, which also satisfies “at least 20 meters.”

  • D

    1115\frac{11}{15}

    Using 2230=1115\frac{22}{30}=\frac{11}{15} reverses the condition: it gives the How likely something is, written as a number from 0 to 1, like 1/2 for heads on a coin flip.Read the lesson that a strand is at least 2020 meters long given that it is hemp. The stated condition restricts the selection to strands at least 2020 meters long.

Solution

“Given that its length is at least 20 meters” restricts the possible selections to the “20 to less than 40 meters” and “At least 40 meters” columns. Add their totals to get 30+34=6430+34=64 eligible strands.

In the hemp row, those columns contain 10+12=2210+12=22 strands. Divide the number of eligible hemp strands by the total number of eligible strands: 2264=1132\frac{22}{64}=\frac{11}{32}.

When you have to build the table

Sometimes there's no table, just a description. Build a small table yourself before you write the fraction.

A bakery made 6 trays of 15 muffins and 4 trays of 12 scones. By noon it had sold 2 trays of muffins and 1 tray of scones. If one of the items left is selected at random, what is the probability that it's a scone?

  1. Muffin trays left.

    6−2=46-2=4
  2. Scone trays left.

    4−1=34-1=3
  3. Muffins left: 4 trays of 15.

    4×15=604\times15=60
  4. Scones left: 3 trays of 12.

    3×12=363\times12=36
ItemTrays leftItems left
Muffin460
Scone336
  1. Add the items left. That's the group you're picking from.

    60+36=9660+36=96
  2. The scones left go on top.

    3696\frac{36}{96}
  3. Divide the top and bottom by 12.

    =38=\frac{3}{8}

Trap: Counting trays, or the wrong group

37\frac{3}{7} counts trays: 3 of the 7 trays left hold scones, but a muffin tray holds more items than a scone tray. And 48138=823\frac{48}{138}=\frac{8}{23} counts every muffin and scone baked, including the ones already sold.

What to do: Turn trays into items first. Then check that the bottom counts only the items you can still pick.

To count a set of whole numbers, divide. Of the whole numbers from 1 to 90, 90÷3=3090\div3=30 are multiples of 3, so the probability of picking one is 3090=13\frac{30}{90}=\frac{1}{3}.

Watch for a total that's then split into parts. “A cooler holds 20 bottles of juice, 12 apple and 8 grape, plus 15 bottles of water” describes 35 bottles. The 12 and the 8 are the same 20 juice bottles, so adding 20, 12, 8 and 15 counts every juice bottle twice. The probability of an apple juice is 1235\frac{12}{35}.

Not and neither

Slow down at “not,” “neither,” “other than” and “outside.” Each one changes which picks count. Of the 80 play tickets, 36 are for the matinee. For a ticket that's not for the matinee, take those 36 out and count what's left.

  1. Take the 36 matinee tickets out of all 80.

    80−36=4480-36=44
  2. Put what's left over all 80.

    4480\frac{44}{80}
  3. Divide the top and bottom by 4.

    =1120=\frac{11}{20}

That's the same as 1−36801-\frac{36}{80}.

Trap: The “not” dropped

3680=920\frac{36}{80}=\frac{9}{20} is the probability of a matinee ticket, the very tickets the question rules out. It and the right answer add to 1.

What to do: Once you have an answer, ask whether it counts the tickets that are left or the ones you took out.

“Neither A nor B” means not A and not B, so both groups come out.

A drawer holds 50 socks: 9 red, 5 green, 21 black and the rest gray. If one sock is selected at random, what is the probability that it's neither black nor gray?

  1. A sock that's neither black nor gray is red or green. Count those.

    9+5=149+5=14
  2. Put them over all 50 socks.

    1450\frac{14}{50}
  3. Divide the top and bottom by 2.

    =725=\frac{7}{25}

That's quicker than taking both colors out of 50, since you'd have to work out the gray count first.

Trap: Half the “neither”

2950\frac{29}{50} takes out the 21 black socks and leaves the gray ones in. 3650=1825\frac{36}{50}=\frac{18}{25} counts the black and gray socks, the ones the question rules out. And 14 alone is a count.

What to do: Take out every group named after “neither” and after “nor,” then count what's left.

Two “nots” can come together. This table sorts 70 jackets.

SizeHoodNo hoodTotal
Small112738
Large191332
Total304070

For a jacket that's not large and doesn't have a hood, turn each “not” into what's left. Not large means small, and no hood means the no-hood column. The only cell that's both is small with no hood, 27, so the probability is 2770\frac{27}{70}. Adding all 38 small jackets to all 40 no-hood jackets gives 78, more jackets than there are, because the 27 got counted twice.

Worked example
100%
Table of 86 instrument cases by contents and protective packing. Sensor units: 12 with air pillows, 14 with kraft paper, 9 with foam sleeves, and 13 with molded pulp, for 48 total. Tool units: 8, 11, 8, and 11, respectively, for 38 total. Column totals are 20, 25, 17, and 24.

Quentin packed 8686 instrument cases into a shipping crate. Each case contains either a sensor unit or a tool unit and uses exactly one type of protective packing. The table shows the distribution of the cases.

If one of these cases is selected at random, what is the probability of selecting a case that uses neither a foam sleeve nor molded pulp?

  1. A

    4186\frac{41}{86}

  2. B

    4586\frac{45}{86}

  3. C

    2586\frac{25}{86}

  4. D

    6986\frac{69}{86}

Show the answer
  • A

    4186\frac{41}{86}

    This adds the 1717 foam-sleeve cases and 2424 molded-pulp cases, giving the How likely something is, written as a number from 0 to 1, like 1/2 for heads on a coin flip.Read the lesson of selecting one of the excluded packing types. The question asks for the complement of that event.

  • B

    4586\frac{45}{86}

    Correct answer

    The qualifying cases use air pillows or kraft paper, so their count is 20+25=4520+25=45. Out of 8686 total cases, the How likely something is, written as a number from 0 to 1, like 1/2 for heads on a coin flip.Read the lesson is 4586\frac{45}{86}.

  • C

    2586\frac{25}{86}

    This counts only the 2525 kraft-paper cases. It omits the 2020 air-pillow cases, which also use neither a foam sleeve nor molded pulp.

  • D

    6986\frac{69}{86}

    This removes only the 1717 foam-sleeve cases from the total. The 2424 molded-pulp cases must also be removed.

Solution

A case that uses neither a foam sleeve nor molded pulp must use air pillows or kraft paper. The table shows 2020 air-pillow cases and 2525 kraft-paper cases, so the number that satisfy the condition is

20+25=4520+25=45. There are 8686 cases in all. Therefore, the How likely something is, written as a number from 0 to 1, like 1/2 for heads on a coin flip.Read the lesson is

4586\frac{45}{86}. The fraction cannot be reduced because 4545 and 8686 have no common factor greater than 11.

A or B

Here's the ticket table again.

TicketMatineeEveningTotal
Adult203050
Child161430
Total364480

If one ticket is selected at random, what is the probability that it's a child ticket or a matinee ticket? “Or” counts a ticket that's either one, or both.

  1. Add the child total and the matinee total.

    30+36=6630+36=66
  2. The 16 child matinee tickets are in both totals. Take them out once.

    66−16=5066-16=50
  3. Put it over all 80 tickets.

    5080\frac{50}{80}
  4. Divide the top and bottom by 10.

    =58=\frac{5}{8}

To check, count the cells that fit: 20 adult matinee, 16 child matinee and 14 child evening make 50. As a grid-in, enter 5/8 or .625.

Written with P( )P(\ ) for “the probability of,” the rule looks like this.

Probability of A or B

P(A or B)=P(A)+P(B)−P(A and B)P(A\text{ or }B)=P(A)+P(B)-P(A\text{ and }B)

Trap: Overlap counted twice

6680\frac{66}{80} adds the two totals and leaves the 16 child matinee tickets in twice.

What to do: After you add the two totals, subtract the cell they share. Or count each cell that fits once.

When nothing can be in both groups, there's nothing to subtract. A soccer team scored 1, 0, 2, 1, 3, 0, 1, 4, 2, 1, 0 and 1 goals in its 12 games. Tally each value: 0 shows up three times and 1 shows up five times. A game can't end with both 0 and 1 goals, so the probability of picking a game with 0 or 1 goals is 3+512=812=23\frac{3+5}{12}=\frac{8}{12}=\frac{2}{3}.

Worked example
100%
Table: Concert merchandise sales. Columns: Item; Before show; Intermission; After show; Total. Rows: T-shirt: 13, 17, 11, 41; Poster: 8, 12, 11, 31; Total: 21, 29, 22, 72.

Cyrus recorded the merchandise sales at a concert. Each sale was for exactly one type of item and occurred during exactly one of the three time periods shown.

If one of these sales is selected at random, what is the probability that the sale was for a poster or occurred before the show? (Express your answer as a decimal or fraction, not as a percent.)

Show the answer

Accepted answers: 11/18, .6111

Solution

There are 31 poster sales and 21 sales before the show. The 8 posters sold before the show appear in both counts, so subtract them once: 31+21−8=4431+21-8=44. Divide by all 72 sales: 4472=1118=0.6111…\frac{44}{72}=\frac{11}{18}=0.6111\ldots. A response of 1318\frac{13}{18} adds 31+2131+21 without subtracting the 8 sales counted in both groups. A response of 4431\frac{44}{31} uses the union count of 44 but divides by the 31 poster sales instead of all 72 sales. A response of 718\frac{7}{18} finds the How likely something is, written as a number from 0 to 1, like 1/2 for heads on a coin flip.Read the lesson that a sale was neither for a poster nor before the show.

Note that 11/1811/18 and .6111.6111 are examples of ways to enter a correct answer.

From a probability to a count

Some questions give you a probability and ask how many. The count is the probability times the total.

A ferry carried 600 vehicles, and each was a car, a van or a motorcycle. Of these, 30 were motorcycles. If one vehicle is selected at random, the probability that it's a van is 0.15. How many of the vehicles were cars?

  1. Turn the van probability into a count: multiply by the total.

    0.15×600=900.15\times600=90
  2. Add the vans and the motorcycles.

    90+30=12090+30=120
  3. Every vehicle is in one of the three groups, so the cars are the rest.

    600−120=480600-120=480

Trap: The leftover from one number

510 takes only the vans out, 600−90600-90, and leaves the motorcycles in with the cars. 90 is 0.15×6000.15\times600, the number of vans.

What to do: Turn every group you're given into a count, then take them all out of the total.

Trap: A count handed in as a probability

480600=0.80\frac{480}{600}=0.80 is the probability of a car, and the question asks how many. And dividing, 600÷0.15=4,000600\div0.15=4{,}000, gives more vehicles than the ferry carried.

What to do: Reread the last line. “How many” asks for a count, so multiply by the total. “What is the probability” asks for a fraction or a decimal.

Matching the choices

Say 6 of the 15 mugs on a shelf are blue. The probability of picking a blue one is 615\frac{6}{15}, which reduces to 25\frac{2}{5}.

Write your answer in the form the choices use.

Do this
If all four choices are over 15, pick 6/15.
Not this
Decide your work is wrong because 2/5 isn't there.

6/15 and 2/5 are the same number. If your answer is missing, reduce it or divide it out before you redo the work.

A grid-in takes up to five characters for a positive answer. Enter a fraction or a decimal, never a percent.

Right
For 712\frac{7}{12}, enter 7/12, .5833 or 0.583.
Wrong
For 712\frac{7}{12}, enter 58.3% or 0.58.

A percent sign isn't allowed, and 0.58 stops before the box is full, so it isn't precise enough.

If Desmos shows a long decimal, the small round fraction button on the result row turns it into a fraction that may fit the box. The grid-in lesson covers entry rules in more detail.

Practice

Before you start each one, find the group you're picking from and write its total on the bottom. Then check that everything you count on top is inside that group.

Try it

5 questions on this skill, with every choice explained.

Start the drill

Next steps