Unit 4, lesson 42

Probability and Two-Way Tables

How to find a probability as favorable outcomes over the correct total, read two-way tables, use complements and unions without double counting, and compute probability from area.

  • Theory part 83
  • Practice part 84
  • Data and Probability

Theory, part 83

Practice, part 84

A teacher pulls one name out of a hat holding the names of all 3030 students in a class. Nobody knows whose name comes out, yet everyone can say how likely it is that it belongs to someone who plays soccer. Probability turns that sense of “how likely” into a number between 00 and 11. On the SAT the hard part is rarely the division. It is choosing the right group to divide by.

Key terms

Sample space

Definition The sample space of a random process is the set of all its possible outcomes, listed so that every run of the process gives exactly one of them.

In plain words The sample space is the full list of everything that could happen, with nothing left out and nothing listed twice.

Example Rolling one fair six-sided die has the sample space {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}. Rolling two dice and recording both numbers has 6⋅6=366 \cdot 6 = 36 outcomes, such as (1,4)(1, 4) and (4,1)(4, 1), which count as different outcomes because the dice are different.

Event

Definition An event is a set of outcomes, that is, a subset of the sample space. The event occurs when the outcome of the process belongs to that set.

In plain words An event is a description such as “the roll is even”, together with the outcomes that fit it.

Example For one die, the event “the roll is even” is {2,4,6}\{2, 4, 6\} and the event “the roll is greater than 44” is {5,6}\{5, 6\}. The outcome 66 belongs to both events.

Probability

Definition The probability P(A)P(A) of an event AA is a number with 0≤P(A)≤10 \le P(A) \le 1, where P(A)=0P(A) = 0 for an impossible event and P(A)=1P(A) = 1 for a certain one. When the sample space SS has finitely many outcomes that are all equally likely,

P(A)=outcomes in Aoutcomes in S.P(A) = \frac{\text{outcomes in } A}{\text{outcomes in } S}.

This counting formula needs equally likely outcomes. A random choice of one person from a group, made so that each person has the same chance, gives equally likely outcomes, and then the formula counts people.

In plain words When every outcome has the same chance, probability is favorable over total. Any answer below 00 or above 11 means a mistake.

Example For one fair die the probability of an even roll is 36=12\frac{3}{6} = \frac{1}{2}. Now roll two fair dice and add them. The possible sums are 22 through 1212, eleven values, but the answer for a sum of 77 is not 111\frac{1}{11}, since the sums are not equally likely. Count the 3636 equally likely ordered pairs instead. Six of them, from (1,6)(1, 6) to (6,1)(6, 1), give 77, so

P(sum is 7)=636=16,P(\text{sum is } 7) = \frac{6}{36} = \frac{1}{6},

while only (1,1)(1, 1) gives a sum of 22, so that probability is 136\frac{1}{36}.

Relative frequency

Definition If a process is observed nn times and an event occurs kk of those times, the relative frequency of the event is kn\frac{k}{n}. Relative frequency from data is used as an estimate of the probability of the event, and in a table of counts it is the probability for a random choice from the people or items counted.

In plain words Relative frequency is “how often it happened” divided by “how many tries”. With lots of tries it is a reasonable stand in for the probability.

Example A factory inspects 400400 bolts and finds 66 defective. The relative frequency of a defect is

6400=0.015.\frac{6}{400} = 0.015.

Using that rate, about 0.015⋅5000=750.015 \cdot 5000 = 75 bolts in a batch of 5,0005{,}000 are expected to be defective. That is an estimate, not a promise.

Two-way table

Definition A two-way table counts a group by two categorical variables at once. Each row is a category of one variable, each column is a category of the other, each inner cell counts the members in both its row and its column, and the row totals, column totals and grand total add the cells. For a member chosen at random from the whole group, the probability of a cell or a row or a column is its count divided by the grand total.

In plain words A two-way table sorts everyone into exactly one inner cell. Before dividing, decide which total is the reference group the question describes.

Example A school surveyed 200200 students in grades 1111 and 1212 about whether they play a musical instrument.

InstrumentNo instrumentTotal
Grade 111142427878120120
Grade 1212181862628080
Total6060140140200200

One of the 200200 students is chosen at random. The probability that the student plays an instrument is 60200=310\frac{60}{200} = \frac{3}{10}, and the probability that the student is in grade 1212 and plays an instrument is 18200=9100\frac{18}{200} = \frac{9}{100}. A question that picks only among grade 1212 students has a different reference group, the 8080 students in that row, and belongs to Conditional Probability.

Complement

Definition The complement of an event AA, written AcA^c or “not AA”, is the set of all outcomes in the sample space that are not in AA. Since AA and its complement do not overlap and together make up the whole sample space,

P(not A)=1−P(A).P(\text{not } A) = 1 - P(A).

In plain words Either the event happens or it does not. Sometimes the “does not” side is much easier to count.

Example In the instrument table, the probability that a randomly chosen student does not play an instrument is

1−310=710,1 - \frac{3}{10} = \frac{7}{10},

which matches the column total 140200\frac{140}{200}. For three fair coins, the probability of at least one head is 1−18=781 - \frac{1}{8} = \frac{7}{8}, since the only outcome with no heads is all three tails.

Union

Definition The union of events AA and BB, written A∪BA \cup B or ”AA or BB”, is the event that AA occurs, BB occurs, or both occur. For any two events,

P(A or B)=P(A)+P(B)−P(A and B).\begin{aligned} P(A \text{ or } B) &= P(A) + P(B) \\[0.4em] &\quad - P(A \text{ and } B). \end{aligned}

The overlap is subtracted once because it was counted in both P(A)P(A) and P(B)P(B). When AA and BB cannot happen together, the rule shrinks to P(A)+P(B)P(A) + P(B).

In plain words “Or” includes the people who belong to both groups, but each of them must be counted only once.

Example In the instrument table, find the probability that a randomly chosen student is in grade 1212 or plays an instrument. There are 8080 grade 1212 students and 6060 players, and 1818 students are both, so

80+60−18200=122200=61100.\frac{80 + 60 - 18}{200} = \frac{122}{200} = \frac{61}{100}.

Adding 80+60=14080 + 60 = 140 without the subtraction would count those 1818 students twice. As a check, the cells in the union are 42+18+62=12242 + 18 + 62 = 122.

Uniform area probability

Definition If a point is chosen uniformly at random from a region of positive area, meaning that equal areas within the region are equally likely to contain it, then the probability that it lands in a subregion RR is

P(point in R)=area of Rtotal area.P(\text{point in } R) = \frac{\text{area of } R}{\text{total area}}.

In plain words With a random point, area plays the role of counting. The bigger the share of the picture, the bigger the chance.

Example A square board is 88 inches on each side, and a circle of radius 22 inches is painted on it. A dart lands at a uniformly random point of the board. The probability that it lands inside the circle is

π⋅2282=4π64=π16,\frac{\pi \cdot 2^2}{8^2} = \frac{4\pi}{64} = \frac{\pi}{16},

which is about 0.1960.196. As long as the whole circle lies on the board, its position does not matter, only its area.

Check yourself

  1. Of 150150 people surveyed, 6464 own a dog, 4545 own a cat and 2020 own both. If one of the 150150 people is chosen at random, what is the probability that the person owns a dog or a cat? (A) 109150\frac{109}{150} (B) 89150\frac{89}{150} (C) 69150\frac{69}{150} (D) 20150\frac{20}{150}
Show the answer

The correct choice is (B). By the union rule the count is 64+45−20=8964 + 45 - 20 = 89, so the probability is 89150\frac{89}{150}. Choice (A) adds 6464 and 4545 and counts the 2020 owners of both pets twice. Choice (C) leaves out the people who own both, but “or” includes them. Choice (D) is the probability of owning both.

  1. One of the 240240 people at a concert is chosen at random. The probability that the person holds a student ticket is 0.350.35. How many of the 240240 people do not hold a student ticket?
Show the answer

The answer is 156156. The probability of not holding a student ticket is 1−0.35=0.651 - 0.35 = 0.65, and 0.65⋅240=1560.65 \cdot 240 = 156. The tempting answer 8484 is the number of people who do hold a student ticket.

  1. A circle with radius 55 is drawn inside a square with side length 1010, touching all four sides. A point is chosen uniformly at random inside the square. What is the probability that the point lies outside the circle? (A) π4\frac{\pi}{4} (B) 1−π41 - \frac{\pi}{4} (C) 1−π101 - \frac{\pi}{10} (D) 4−ππ\frac{4 - \pi}{\pi}
Show the answer

The correct choice is (B). The circle’s area is 25π25\pi and the square’s area is 100100, so the probability of landing inside the circle is 25π100=π4\frac{25\pi}{100} = \frac{\pi}{4} and the complement is 1−π41 - \frac{\pi}{4}, about 0.2150.215. Choice (A) is the probability of landing inside. Choice (C) uses the circumference 10π10\pi in place of the area. Choice (D) divides the area outside the circle, 100−25π100 - 25\pi, by the circle’s area 25π25\pi instead of by the square’s area, so it compares the two parts rather than the part with the whole.

How this lesson connects