Lecture 26 — Counting and Probability in Data

Position in the course

This is lecture 26 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 15 and 26's own sibling — counting and probability basics

Assumed fluencies:

Preparation task: Flip a coin 20 times, record runs of heads; bring the longest run.

Detailed topic outline

Core (mandatory):

  1. frequencies and estimation
  2. independence and its failures
  3. conditional probability
  4. false positives and base rates

Extension (optional enrichment):

  1. streaks and waiting times
  2. simulation cross-checks

Case sequence

CaseTitleDifficulty
cs-101The Late Bus FrequencyBeginner
cs-102The Double-Click QuestionFoundational
cs-103The Grid Decision ReviewIntermediate
cs-137The Backup WindowAdvanced
cs-104The Streak SimulationExpert

Display each case full-screen from the student page (cases cs-101–cs-104); instructor pages cs-101–cs-104 under case-studies/instructor/ hold the full solutions, reveal guides, and discussion prompts. Applied additions cs-137 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-101): 5-minute attempt, then discussion and reveal
30–50Case 2 (cs-102): same rhythm
50–70Case 3 (cs-103): same rhythm, harder case
70–75Break
75–100Case 4 (cs-104): 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: Double-click question (cs-102): two coins, independence assumed, then the dependency trap exposed with real paired flips.

Classroom activities

#ActivityMinutesFormat and prompt
1Coin-run statistics620 real flips per pair; runs of heads pooled on the board and compared with theory.
2Base-rate theatre8A rare-disease scenario with volunteers as 1 positive among 99 negatives; PPV is experienced.
3Independence test5Paired vs unpaired events classified with reasons.

Board plan

Instructor explanation notes

Reading the room. Probability is taught as calibrated intuition: frequencies first, formulas second. The base-rate theatre activity is the emotional core — book the volunteers early.

Running the reveal. cs-104's streak simulation links back to lecture 15's birthday complement and forward to lecture 29's estimation.

Lecture focus. One sentence to repeat verbatim: Frequencies calibrate intuition; base rates humble it.

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. Convert the late-bus frequency table (cs-101) to estimated probabilities; check they sum to 1.
  2. List the 4 outcomes of two double-clicks (cs-102); mark which assume independence.
  3. Compute the decision review's PPV (cs-103) with base rate 2% by hand.

Enrichment (optional):

Formative assessment

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

  1. What is a base rate and what does it do to PPV? Expected: prior prevalence; low base rates collapse PPV even with good tests
  1. When may two events not be multiplied? Expected: when they are dependent — cs-102's paired clicks
  1. What did simulation add to the streak question? Expected: an empirical check that the counting was right

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