Same tables, two percents
Two columns side by side raise a new question: do they move together? Guess first: you will see your answer again later.
Do they move together?
Three everyday pairs. Labels with labels go into a grid. Amounts with amounts become dots, the dot crowd of T1.2 with a second number. Press each button.
One cup, two questions
For each of her 40 Saturday cups, Lina wrote two labels: the flavor, and who bought it.
Read the crosstab
Tap any number inside the table. Its row and its column light up.
Which 100%?
Real data: the 244 restaurant tables from T1.2. Rows: the day. Columns: was there a smoker at the table?
“Of whom?” finds the 100%
Read the question and find the group after “of” or “among”. That group is your whole, your 100%.
Tables by day and smoker (counts)
Better in every group, worse overall?
Lina’s two delivery helpers, Sam and Kai, made 120 deliveries each last month (invented numbers). Who is on time more often?
Why it flips
Rain makes every delivery harder, and Kai did most of the rainy ones. Move the slider to change how many of Kai’s 120 deliveries were in the rain.
One dot per day
For 10 summer days Lina wrote the top temperature and the cups she sold (invented). Each day becomes one dot: across for temperature, up for cups.
Drag the dots
Grab any dot and move it, with a finger, a mouse, or the arrow keys. The trendline is redrawn each time.
The line is fitted by least squares. You will build it yourself in T8.1.
Which way, and how tight?
Slide from one end to the other. Watch the cloud tilt, then tighten.
Straight or curved?
Direction is not the whole story. Some clouds bend. Pick a cloud, then lay a straight line on it.
Read a real scatter
The 244 restaurant tables again: total bill across, tip up. Read it in four steps.
Together is not because
On 12 summer days, Lina’s cups and the sunburn cases at the beach clinic rose together (invented). Does bubble tea cause sunburn?
Cups sold and sunburn cases, one dot per day
Name what you did
Each card is something your hand already did on this page. Tap a card, then tap its name.
Which picture for two variables?
Pick two columns. Follow the path to their picture.
Practice arcade
Six levels, a boss where you build the cloud, and a scatter lab.
Six things to remember, and one trap
Sources and textbook links
Crosstabulation, row and column percentages, Simpson’s paradox, and the scatter diagram with a trendline follow chapter 2 of the course textbook. Reading a scatter by direction, form, strength and outliers follows Moore, Notz and Fligner, chapter 4. The 244 restaurant tables are real data. Lina’s cups, delivery helpers, summer days and sunburn figures, the practice clouds (typing speed, home energy use) and the generated dot clouds are invented for teaching. The kidney-stone and chocolate figures are real and come from the cited papers. “In French” labels give common French statistical vocabulary, not quotations from the book.
- 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 2.
- Bryant, P. G., & Smith, M. (1995). Practical data analysis: Case studies in business statistics. Irwin. Dataset “tips” (244 tables), as distributed with the R package reshape2 and the seaborn-data repository: https://github.com/mwaskom/seaborn-data
- Charig, C. R., Webb, D. R., Payne, S. R., & Wickham, J. E. (1986). Comparison of treatment of renal calculi by open surgery, percutaneous nephrolithotomy, and extracorporeal shockwave lithotripsy. British Medical Journal (Clinical Research Ed.), 292(6524), 879–882. https://doi.org/10.1136/bmj.292.6524.879
- Julious, S. A., & Mullee, M. A. (1994). Confounding and Simpson’s paradox. BMJ, 309(6967), 1480–1481. https://doi.org/10.1136/bmj.309.6967.1480
- Messerli, F. H. (2012). Chocolate consumption, cognitive function, and Nobel laureates. New England Journal of Medicine, 367(16), 1562–1564. https://doi.org/10.1056/NEJMon1211064
- Moore, D. S., Notz, W. I., & Fligner, M. A. (2013). The basic practice of statistics (6th ed.). W. H. Freeman. Chapter 4, Scatterplots and correlation.
- Simpson, E. H. (1951). The interpretation of interaction in contingency tables. Journal of the Royal Statistical Society, Series B, 13(2), 238–241.