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.
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.
Add, take away, or start from 100%?
Three small puzzles from everyday life (invented). For each one, pick how to get the answer.
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.
0.40 + 0.30 − 0.12 = 0.58
Slide the hoops apart
Drag hoop B, or use the slider. A keeps its 40 and B its 30; only the overlap changes.
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ᶜ.
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.”
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.
Phrase 1 of 5
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.
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.
244 real tables
The restaurant tips data from T1.3: 244 tables recorded by one waiter [2]. Pick one table at random.
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.
Practice arcade
Five levels, a boss where you set the hoops to hit a target, and a lab where you choose your own counts.
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.
- 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.
- Bryant, P. G., & Smith, M. A. (1995). Practical data analysis: Case studies in business statistics. Irwin.
- Waskom, M. seaborn-data:
tips.csv. https://github.com/mwaskom/seaborn-data