T2.2 Events and the addition law Start ★ 0
T2.2Playlist 2A, episode 2

40% plus 30% makes…?

Last time, a probability was a share of a crowd. Today: two events at once. When can you just add their probabilities, and when does adding count someone twice? Guess first.

Builds on: T2.1, T1.3Leads to: T2.3
0Last time: events

An event is a group

In T2.1 an event was a group of outcomes, and with equally likely outcomes P = count ÷ total. Here are 100 of Lina’s customers from last week (invented). Pick one at random.

40 + 30 = 70, but only 58 customers take a topping. Adding the two counts someone twice. The next scenes show who.
Brought back: events and P = count ÷ total, from T2.1.
pearls   jelly

1Three doors

Add, take away, or start from 100%?

Three small puzzles from everyday life (invented). For each one, pick how to get the answer.

0 of 3
Just add when nothing is shared. When something is shared, adding counts it twice. For “not”, start from the whole and take away.
2The two hoops

Who gets counted twice?

The box is all 100 customers: the sample space. Hoop A holds the 40 who take pearls, hoop B the 30 who take jelly. Count A, then B.

The 12 customers in both hoops were counted twice. Take them away once: 40 + 30 − 12 = 58.
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
0.40 + 0.30 − 0.12 = 0.58

3Twist

Slide the hoops apart

Drag hoop B, or use the slider. A keeps its 40 and B its 30; only the overlap changes.

12

4Outside the hoop

Everything outside

Every customer is either in A or outside it, never both and never neither. So the outside is 1 minus the inside: the complement of A, written Aᶜ.

P(Aᶜ) = 1 − P(A)

!Trap

Never together, so the rest?

Lina’s 40 Saturday cups from T1.2 (invented). A cup has one flavor, so mango and taro never happen together. Kai says: “P(taro) = 1 − P(mango) = 1 − 0.35 = 0.65.”

Mutually exclusive describes the overlap and nothing more. It doesn’t say the two events fill the whole box (that’s a complement), and it doesn’t say they are unrelated. In T2.3 you will see that two hoops that never overlap are as tied as events can be.
5Symbols

Read the symbols

The book writes “or” as ∪ (union) and “and” as ∩ (intersection). “Or” includes both. Aᶜ is everything outside A. Match each phrase to its symbol; the hoops shade your answer.

0 of 5
∪ collects: everyone in A, in B, or in both. ∩ keeps only the overlap. ᶜ flips to the outside.

Phrase 1 of 5

6Tile floor

From crosstab to tile floor

T1.3’s table of Lina’s 40 Saturday cups (invented), by who bought and which flavor. Divide every count by 40: each cell becomes a share of the whole. Tap a cell, a row total or a column total.

A cell is a joint probability: two things at once. A row or column total is a marginal probability: it sits in the margin and adds up its cells.
Brought back: the crosstab and its margins (T1.3). Instrument: the tile floor. New today; it returns in T2.3 and T2.4.

6Tile floor

Add on the floor

Pick a row and a column. Their tiles light up. The tile where they cross is lit once, but it sits in both totals, so the addition law takes it away once.

7Real data

244 real tables

The restaurant tips data from T1.3: 244 tables recorded by one waiter [2]. Pick one table at random.

8Name it

Name what you did

Each card is something you already did on this page. Tap a card, then its name. The book’s symbols and formulas appear as you match.

0 of 7
One formula does most of the work: P(A ∪ B) = P(A) + P(B) − P(A ∩ B). The complement and the mutually exclusive case are its shortcuts.
9Practice

Practice arcade

Five levels, a boss where you set the hoops to hit a target, and a lab where you choose your own counts.

10Remember

Six things to remember, and one trap

Sources and textbook links

The complement, union, intersection, addition law, mutually exclusive events, and joint and marginal probabilities follow chapter 4 of the course textbook [1]. The 244 restaurant tables are the tips data [2], also used in T1.3; the counts on this page were checked against the copy distributed with the seaborn library [3]. Lina’s customers, toppings, cups and the three puzzles are invented.

  1. Anderson, D. R., Sweeney, D. J., Williams, T. A., Camm, J. D., & Cochran, J. J. (2015). Statistiques pour l’économie et la gestion (5e éd., traduction de la 7e édition américaine d’Essentials of Statistics for Business and Economics par C. Borsenberger). De Boeck Supérieur. Chapitre 4.
  2. Bryant, P. G., & Smith, M. A. (1995). Practical data analysis: Case studies in business statistics. Irwin.
  3. Waskom, M. seaborn-data: tips.csv. https://github.com/mwaskom/seaborn-data