Lesson 4 of 4 · 18 min
Data analysis with AI: questions, charts and traps
A defined metric, a visible method and three traps: invented numbers, duplicating joins and averages.
In this lesson
- 1 Thirty eight percent of what?
- 2 Start with the question and the metric
- 3 Ask for the method along with the answer
- 4 Trap one: the invented number
- 5 Trap two: the join that duplicates
- 6 Trap three: the average that hides
- 7 Charts: check before you show
- 8 What to do now
Sources
- OpenAI, help article on data analysis (the tool writes and runs code; review code, outputs and assumptions)
- Kalai and others (2025), Why Language Models Hallucinate (training and evaluation reward guessing)
- pandas, Merge, join, concatenate and compare (joins on repeated keys produce every combination)
- NIST/SEMATECH e-Handbook of Statistical Methods, Measures of Location (mean, median and extreme values)
- Stanford Encyclopedia of Philosophy, Simpson's Paradox (includes the Berkeley admissions case)
Lessons are unavailable right now. Please try again later.