How to summarise a variable so that it answers a manager’s question: counts for categories, centre and spread for numbers, percentiles for promises, and the three pictures every analyst draws first: histograms, box plots and time-series plots.
Slides¶
Present full screen Download the PDF
Click or tap the slide to move forward, its left edge to go back; the arrow keys work too.
Reading¶
Describing Data for Decisions works through the Qahwa House service study with code you can run: every summary on the slides, the skew of the waiting times, the branches side by side, the weekly and hourly patterns, and how a percentile turns into a service promise.
Lab 3: Exploratory analysis with Plotly¶
In 2025 Qahwa House timed one order in five in its four branches. The manager wants to print “served within N minutes” on the menu boards. You summarise the waiting times by branch, explore them with interactive Plotly charts, and recommend a value of N, and what must change before the promise can hold everywhere.
Open the lab, then use its Open in Colab button.
Data: qahwa
_service _2025 .csv (32,982 timed orders). The notebook downloads it by itself. Submit before the next lab session. The solutions are for checking your work afterwards.
Next week¶
Relationships in data: crosstabs, pivot tables, correlation and causation, Simpson’s paradox, and your first Streamlit app.