Lecture 25 — Thinking with Data

Position in the course

This is lecture 25 of 32. It belongs to the course arc described in the course outline and uses the standard interactive case method: display, attempt (5 minutes), discuss, reveal, name the technique.

Learning objectives

By the end of this lecture students can do all three under time pressure, which is what the four cases exercise.

Prerequisite knowledge

Before this lecture: Lectures 09 and 13 — aggregation and dictionaries

Assumed fluencies:

Preparation task: Tally one week of your own screen time by app category.

Detailed topic outline

Core (mandatory):

  1. questions before queries
  2. aggregation on real-shaped data
  3. distributions, not just averages
  4. rates, per-capita and cohort views

Extension (optional enrichment):

  1. bias in collection
  2. from answer to decision

Case sequence

CaseTitleDifficulty
cs-097The Canteen Queue LogBeginner
cs-098Screen Time by CohortFoundational
cs-099The Churn StoryIntermediate
cs-139The Attendance FrameIntermediate
cs-100The Survey SkewExpert

Display each case full-screen from the student page (cases cs-097–cs-100); instructor pages cs-097–cs-100 under case-studies/instructor/ hold the full solutions, reveal guides, and discussion prompts. Applied additions cs-139 extend the session as optional extra attempts or homework; they share the lecture's theme but teach an applied, real-world angle.

Timing plan (120 minutes)

MinutesSegment
0–10Framing: where this fits; recall of the previous lecture
10–30Case 1 (cs-097): 5-minute attempt, then discussion and reveal
30–50Case 2 (cs-098): same rhythm
50–70Case 3 (cs-099): same rhythm, harder case
70–75Break
75–100Case 4 (cs-100): same rhythm, hardest case
100–115Synthesis: name the techniques; misconceptions check
115–120Exit questions, homework, next-lecture preview

Timing flexes with the room: if a case ignites the class, let the discussion run and compress the synthesis; if the attempts stall, harvest partial attempts rather than extending the clock.

Worked examples

Instructor demonstration to open the lecture: Canteen queue log (cs-097): pose three questions first, then show how each dictates a different aggregation.

Classroom activities

#ActivityMinutesFormat and prompt
1Question surgery7A vague request is sharpened into three answerable data questions with named aggregates.
2Distribution sketch6Three datasets' shapes sketched from five-number summaries only.
3Cohort flip5One overall trend reverses within cohorts (Simpson preview); the class finds the hidden variable.

Board plan

Instructor explanation notes

Reading the room. Block IV opens with data discipline: questions before computations. Every case asks 'what decision does this answer serve?' — that framing is the DS habit.

Running the reveal. Beginners thrive here; strong coders must be prevented from jumping to code. The five-minute attempts are answered on paper today, deliberately.

Lecture focus. One sentence to repeat verbatim: The question picks the computation, not the reverse.

Common misconceptions

Each case's instructor page lists the specific wrong turn to expect; the reveal should address it by name.

Student practice exercises

Core:

  1. Answer three sharpened questions on the canteen log (cs-097) with named aggregation patterns.
  2. Sketch the screen-time distribution (cs-098) from a five-number summary; mark the skew.
  3. Compute week-over-week churn (cs-099) for provided counts and say which week is worst and why.

Enrichment (optional):

Formative assessment

Exit questions (choose one; answer on a card in 60 seconds):

  1. Why state the decision before the computation? Expected: the decision determines which aggregate is meaningful
  1. Why is the average alone dangerous in cs-098? Expected: distributions with the same mean differ; skew hides in the shape
  1. What made cs-100's survey skew? Expected: voluntary response — collection bias, not analysis error

Cards are skimmed before the next lecture; three answers become the framing. Persistent wrong answers route students to the review stations of lecture 16 or to office hours.

Homework and preparation

Learning-outcome mapping

Differentiation