Why no defiers? The Wald ratio and the draft lottery
Concept: Monotonicity in LATE
Statistics · Alexis Diamond0 comments
What Settles and What Doesn't
Flip a fair coin up to 10,000 times in 20 runs: the share of heads settles at 0.5 while the heads-minus-tails gap keeps growing, which is why the gambler's fallacy fails. Then a Cauchy running mean that never settles.
Concept: Law of Large Numbers
Statistics · Alexis Diamond0 comments
Turn the V dial: predictor weights in synthetic control
Concept: Predictor Weights V
Statistics · Alexis Diamond0 comments
The Net and the Interval: hypothesis tests, confidence intervals and multiple comparisons in R
Concept: Multiple Comparisons Correction
Statistics · Alexis Diamond0 comments
The Internship Sprint: random assignment with unequal probabilities
Concept: Local Average Treatment Effect
Economics · Alexis Diamond0 comments
The draft lottery as an encouragement
Students use a simulated cohort of men born in 1950 and the 1969 draft lottery to see why the veteran-versus-non-veteran gap misleads. They then compute an instrumental-variables estimate and discover that it is the effect of serving for compliers only.
Concept: Instrumental variables and LATE
Economics · Alexis Diamond0 comments
The Balance Point
The lesson's wheel game as a probability distribution with a fulcrum at its expected value: a penalty dial moves the balance point, 1,000 spins land on it, and students find the penalty that makes the game fair.
Concept: Expected Value
Statistics · Alexis Diamond0 comments
Real, or Big? A difference of means and its effect size in R
Concept: Cohen's d effect size
Statistics · Alexis Diamond0 comments
Racquetball, One Rally at a Time
Debrief of the pre-class racquetball simulation: step through one game as a two-state machine, fix the R model, rerun it with dials against the exact 82.6%, and decide how sure 1,000 simulated games can make you.
Concept: Monte Carlo Simulation Error
Statistics · Alexis Diamond0 comments
Praise or Yell?
Daniel Kahneman's flight-instructor story, made interactive: landings get worse after praise and better after yelling, even when neither does anything. Students run a simulated flight school (skill plus luck, a luck dial, a coin-flip fair test that reveals yelling's real effect), try Kahneman's coin-toss demonstration, and apply regression to the mean to a case of their own.
Concept: Regression to the Mean
Statistics · Alexis Diamond0 comments
Measured in Standard Errors: z-scores and t-statistics
A quick reminder of the sampling distribution of the mean (SE = σ/√n), z-scores for a single value and for a sample mean, and the t-statistic: why using s for σ thickens the tails, df = n − 1, and when to use t instead of z.
Concept: z-scores and t-statistics
Statistics · Alexis Diamond0 comments
How Tight Is the Bunch?
Students predict what happens to the scatter of sample means when n goes from 9 to 36, then click through samples of 1 to 100 exam scores and watch 1,000 sample means bunch tighter: the standard error is SD ÷ √n, and about 68% and 95% of sample means fall within 1 and 2 standard errors.
Concept: Standard Error of the Mean
Statistics · Alexis Diamond0 comments
How Surprising Is 496 Grams? (pre-class): what a p-value means
Shorter, more conceptual pre-class version of How Surprising Is 496 Grams?: predict, simulate the world of the null hypothesis in one short R edit, then say what the p-value means and decide at α = 0.05.
Concept: P-value Meaning
Statistics · Alexis Diamond0 comments
How Surprising Is 496 Grams? Hypothesis tests and p-values in R
Concept: P-value
Statistics · Alexis Diamond0 comments
Did the Queenpin Reduce Violence?
Groups investigate a 2026 synthetic-control study claiming a woman cartel leader reduced visible violence: they read the claim, run placebo, leave-one-out and backdating checks on the authors' own data, and find the headline homicide result reverses when one comparison cartel is dropped.
Concept: Synthetic Control Method · 1 more
Political science · Alexis Diamond0 comments
Catch the Mean (pre-class): confidence intervals for a mean in R
Pre-class version of Catch the Mean: where sample means land, a 95% confidence interval for a mean wait time, and a prediction and R calculation of the 99% interval. Three short R edits with hints.
Concept: Confidence Interval for a Mean · 1 more
Statistics · Alexis Diamond0 comments
Angry or weary? Sensitivity analysis in Darfur
Concept: Robustness Value
Statistics · Alexis Diamond0 comments
A Line That Predicts Earnings
Groups guess 1975 earnings from 1974 earnings in the lalonde data, fit lm(re75 ~ re74) in R, read the intercept and slope, separate variables from parameters, then judge the line by its RMSE against guessing the average.
Concept: Simple Linear Regression
Statistics · Alexis Diamond0 comments
R together: is this coin fair?
Groups write and run R together in the browser: simulate coin flips, then use read.csv, aggregate and binom.test on a class dataset to judge whether a coin is fair.
Concept: Testing whether a coin is fair, in R
Statistics · Alexis Diamond0 comments
Five Forces in Action
Breakout groups predict the profitability of a fast-growing fictional meal-kit market, sort eight facts into the five forces, then set the dials and watch the profit left to the industry shrink while growth barely matters.
Concept: Porter's Five Forces
Business and finance · Torsten Doering0 comments
Reading the jump (pre-class): regression discontinuity at age 21
A 15-minute pre-class version of a regression discontinuity tour built on Carpenter and Dobkin's (2009) drinking-age data. Students predict the jump at 21, size it under different windows and curve shapes, compare it with the naive difference of averages, and separate what the design supports from what it does not.
Concept: Regression discontinuity design
Statistics · Alexis Diamond0 comments
Real, or Big? (pre-class): testing a difference of means
Shorter pre-class version of Real, or Big?: read two outbreak data sets, test the gap between two pesticide means in one short R edit, and see why the 95% interval for the gap leaves out 0 exactly when the p-value is below 0.05.
Concept: Two-sample t test
Statistics · Alexis Diamond0 comments
Rawls and AI: what political liberalism asks of AI governance
Concept: Rawlsian Political Liberalism
Philosophy · Margaret Jenkins0 comments
Movers and Fakers: what an alignment-faking test can and cannot tell you
Concept: Partial Identification of Recall
Statistics · Alexis Diamond0 comments
Area, Not Height: the normal curve in R
Concept: Normal Probability as Area
Statistics · Alexis Diamond0 comments
Averages Pile Up: building a sampling distribution in R
Take 10,000 random samples of 30 from a skewed population in R, average each one, and watch the averages pile into a narrow bell around μ: the sampling distribution of the mean, its standard error σ/√n, and how its shape depends on n.
Concept: Sampling Distribution of the Mean · 2 more
Statistics · Alexis Diamond0 comments
How Large Is Large Enough?
Five populations (bell, flat, skewed, two-peaked, Cauchy) and a sample-size dial: sample means turn bell-shaped fast for symmetric populations, slowly for skewed ones, and never for the Cauchy, which has no mean or SD.
Concept: Central Limit Theorem
Statistics · Alexis Diamond0 comments
Does the Shape Matter?
A pre-class poll, made interactive: one draw lands far from the mean; is a second sample's mean of 31 likely closer, whatever the population's shape? Students switch between Normal, skewed, two-peaked, flat and heavy-tailed populations and sample sizes from 1 to 100, and see that averaging washes out the shape unless the population has no finite SD.
Concept: Sample Mean Convergence
Statistics · Alexis Diamond0 comments
Lucky, or Protected?
Three crew members with antibodies escaped a virus that infected 103 of the other 117 aboard a fishing trawler. Step by step, students model "just luck" two ways, a hat of names and weighted coins, compute the chance all three escape by multiplying fractions and by the multiplication rule, and check the hat model by simulation in R.
Concept: Null Hypothesis Probability
Statistics · Alexis Diamond0 comments
Build a Binomial
Sixteen admitted students who each accept with probability 0.7: n, p and k sliders build the binomial, shade P(X ≤ k), and show when the shape is lopsided; one run of the trials shows the Bernoullis being counted.
Concept: Binomial Distribution
Statistics · Alexis Diamond0 comments
Disjoint Is Not Independent
On the 36-outcome grid for two dice, groups test whether events overlap, compare P(A and B) with P(A) × P(B), discover that disjoint events can never be independent, and hunt for a pair that overlaps yet is independent.
Concept: Disjoint versus Independent Events
Statistics · Alexis Diamond0 comments
The Midnight Fact-Check
A fact-check desk has until midnight to rate a mayor's claim that equal household incomes mean equal pay. A census table on workers per household shows when a proxy variable tracks what it stands for, and when the same number means different things.
Concept: Proxy Variables
Statistics · Alexis Diamond0 comments
The Positive Test
A COVID test that catches 95% of cases, 1,000 test-takers and a slider for how common COVID is: when 2% have it, a positive result means only 16%. Counting, not formulas, untangles confusion of the inverse.
Concept: Positive Predictive Value
Statistics · Alexis Diamond0 comments
Who voted for peace? Sensitivity analysis in Colombia
Concept: Sensitivity Analysis
Statistics · Alexis Diamond0 comments
Who Took the Hint? What a monitorability score can and cannot see
An AI model answers a quiz question with and without a hint. Comparing the two shows how many answers the hint changed, but not how often the model used the hint, and the usual monitorability score checks only the first. Sliders show how a monitor can miss half of the hint use and still score 0.95, why a falling score can mean the model stopped writing about the hint rather than stopped using it, and which numbers a report needs so readers can tell the difference.
Concept: Monitorability and causal inference
Statistics · Alexis Diamond0 comments
Sort the LaLonde Columns
Groups sort the 12 lalonde columns into nominal, ordinal, discrete and continuous, then see which summaries each type allows (a 0/1 column's mean is a share) and classify a new 5-point satisfaction scale.
Concept: Types of Variables · 1 more
Statistics · Alexis Diamond0 comments
Matching and genetic matching: ten questions
Concept: Genetic Matching · 2 more
Statistics · Alexis Diamond0 comments
Subclassification on the Titanic
Concept: Subclassification
Statistics · Alex Korablev0 comments
Unconfoundedness, common support, and which effect you want
Concept: Unconfoundedness and Common Support
Statistics · Alex Korablev0 comments
Confounder, collider, or neutral? Choosing controls on the Titanic
Concept: Bad controls and colliders
Statistics · Alex Korablev0 comments
Same estimator, four ways to assign treatment
Concept: Treatment Assignment Mechanism
Statistics · Alex Korablev0 comments
Why 95%? Finding the Herd Immunity Threshold for Measles
Groups predict how much vaccination stops measles, then run a seeded 400-person outbreak model to see why the threshold depends on how many people one case infects. They compare measles with a flu-like disease and break the model with an imperfect vaccine and clustered neighbourhoods.
Concept: Herd immunity threshold
Medicine and health · Cheryl Moy0 comments
Seven Types of Induction — Skeleton Forms
Students sort nine skeleton argument forms into Wilkins's seven types of induction, after predicting whether all induction runs from particular to general. This revision removes the word "authority" from the authority form so its name no longer gives it away, and darkens the muted text to pass contrast.
Concept: Types of induction
Philosophy · Alexis Diamond0 comments
Turn the V dial: District 13 (one page)
Concept: Synthetic Control Predictor Weights
Statistics · Alexis Diamond0 comments
Do These Two Mutants Break the Same Gene?
Run a simulated C. elegans screen: four recessive mutants all give a vulval-less worm. Cross them in pairs, read the complementation table, sort the mutants into genes, then see how a dominant allele misleads the test.
Concept: Complementation test
Biology · Jon Wilkins0 comments
The Beach on the Hill: isostasy and the rising land
Why is there a beach 286 m up a Swedish hillside? Students float crust on the mantle, find a mountain's root in one line of Python, melt an ice sheet and watch the land rise for thousands of years, and discover why the mantle must be solid yet flow.
Concept: Isostasy
Earth and environmental science · Alexis Diamond0 comments
A treaty to stop superintelligence: MIRI’s draft agreement on one page
Concept: Compute Thresholds in AI Governance
Political science · Alexis Diamond0 comments
Favorite learning techniques: three hearts each
Concept: Effective Learning Techniques · 1 more
Education · Alexis Diamond0 comments
Brazil and Switzerland
Rodrik's teaser, run on 2024 WID data for 195 countries. Students predict the winner, then find that the answer reverses as the percentile narrows and reverses again before tax.
Concept: Income distribution comparisons
Economics · Alexis Diamond0 comments
Read “Utopia” twice: connotation in Szymborska's poem
A group reads Szymborska's "Utopia" twice, tagging the connotation of words, then compares how the ending changes the beginning. The "move on" guard now protects readers who are marking words as well as those typing.
Concept: Connotation in poetry
Literature and the arts · Alexis Diamond0 comments
Who Stops the Spread? Herd Immunity in a Virus Model
Students predict how many people a measles-like virus infects when half the population is vaccinated, then run an agent-based contagion model and a coverage sweep. They find that the unvaccinated stay infected until coverage nears 1 - 1/R0, compare measles with two COVID-19 presets, and break the result with clustered unvaccinated pockets.
Concept: Model assumptions and prediction
Medicine and health · Cheryl Moy0 comments
Exclusive or in R
Three short R exercises on one connective, exclusive or: predict what xor(P, Q) gives in each row of a truth table, build XOR from AND, OR and NOT, then find the row where inclusive OR and XOR disagree.
Stands on its own; differs from Truth in R: A short workbook on exclusive or (XOR) alone, not the full nine-cell Truth in R lesson.
Concept: Exclusive or
Philosophy · Alexis Diamond0 comments
Selection Bias Lives in Y(0)
Ten units, with treatment targeted at those with the highest X. Turn the dials for how X shifts baseline outcomes and treatment effects, and see when the naive comparison equals the ATT, and how selection bias and the ATT–ATC gap move.
Concept: Selection Bias
Statistics · Alexis Diamond0 comments
The LaLonde Problem: regression with and without a randomized control group
Choose a control group (the NSW experiment's randomized controls or 15,992 survey respondents) and the predictors in lm(), and see whether regression recovers the experimental effect of job training on 1978 earnings.
Concept: LaLonde Problem
Statistics · Alexis Diamond0 comments
Four Units, Three Worlds: when does a unit have exactly two potential outcomes?
Flip treatment assignments for four units in three worlds (SUTVA holds, interference, hidden versions of treatment) and see when each unit stops having just two potential outcomes.
Concept: Stable Unit Treatment Value Assumption
Statistics · Alexis Diamond0 comments
Scavenger Hunt: King Tomz Wittenberg (2000)
Students read the model's expected probability of voting by age for one hypothetical person, with confidence bars, and learn the curve is about a person you define while the bars show uncertainty in the model. Pinned curves and the break-it toggle are now shared state, so teammates see the same page.
Concept: Expected values in logistic regression
Statistics · Alexis Diamond0 comments
Which Effect Does the Regression Estimate? Controlling for a confounder and the ATE, ATT and ATC
A hundred farmers, an irrigation pump, and the coefficient you get when you control for wealth: does the regression estimate the ATE, ATT or ATC? This revision makes every control shared state so breakout teammates see the same screen.
Concept: Regression weights and ATE/ATT/ATC
Statistics · Alexis Diamond0 comments
Pierre, the aspirin and the party: what is “the effect”?
Concept: Potential Outcomes
Statistics · Alexis Diamond0 comments
Rent control, modelled with utility: who gains, who loses, and when
Concept: Rent Control Effects
Economics · Alexis Diamond0 comments
Do dogs make their owners happier? Four study designs, one town
Concept: Observational vs Experimental Studies
Statistics · Alexis Diamond0 comments
Checking balance, then searching for it: you are the genetic algorithm
Concept: Covariate Balance Matching
Statistics · Alexis Diamond0 comments
Average effect or quantile effect? ATT vs. QTET for the treated
Concept: Quantile Treatment Effect for Treated
Statistics · Alexis Diamond0 comments
Same average wait, same experience? Quantile treatment effects in Uber's ETA experiment
Concept: Quantile Treatment Effects
Statistics · Alexis Diamond0 comments
Quantity or Variety — the Suspect Eliminator
Concept: Enumerative vs Eliminative Induction
Philosophy · Alexis Diamond0 comments
Kidney Stones and Simpson’s Paradox
Concept: Simpson's Paradox
Statistics · Alexis Diamond0 comments
Bootstrapping Breakfast: how a child builds a concept
Concept: Concept Bootstrapping
Psychology · Alexis Diamond0 comments
Strength and Reliability — Arguments C, D, E
Sort Wilkins's donkey arguments, then turn the dials to see that strength and reliability are separate. Both are now judged against your own bar for action: "strong enough" or "not strong enough", "reliable enough" or "not reliable enough".
Concept: Strength and reliability
Philosophy · Alexis Diamond0 comments
The Two Lenses — Argument H
Concept: Deductive vs Inductive Arguments
Philosophy · Alexis Diamond0 comments
Ten Fallacies to Avoid — Skeleton Forms
Concept: Informal Fallacies
Philosophy · Alexis Diamond0 comments
One Trial, Many Trials (remix)
Students run a simulated tutoring experiment again and again, and see that any single RCT estimate misses the true effect while the average of many lands on it. They also see the spread of estimates shrink with the square root of n. Interactive dials drive R code cells, and students then complete the key calculations themselves.
Concept: Unbiased estimator
Statistics · Alexis Diamond0 comments
Truth in Python
Prototype for CS50: a Python version of the CS350 Lesson 3 workbook Truth in R. Students write OR, AND and NOT in Python, see how parentheses change the order Python works out a sentence, build the conditional from the connectives Python provides, then build truth tables with itertools.product and test De Morgan's law, asking what == over a whole table establishes that == at a single row cannot.
Concept: Truth tables and equivalence
Philosophy · Alexis Diamond0 comments
Truth in R
CS350 Lesson 3: a nine-cell R workbook for an introductory deductive-logic session. Students write OR, AND and NOT in R, see how parentheses change the order R works out a sentence, build the conditional from the connectives R provides, then build truth tables with expand.grid and test De Morgan's law, asking what == over a whole table establishes that == at a single row cannot.
Concept: Logical Connectives in R
Philosophy · Alexis Diamond0 comments
Who Gets Cleaned Out?
Students design, step by step and without code, the logic for removing controls who live with a treated person in an individually randomized experiment: choosing the essential column, building test data that would catch a bug, ordering an algorithm, and writing the Boolean filter. Then they apply it to a simulated population and discover that the cleaning selects the control group on household size, trading interference for selection bias, before comparing better designs.
Concept: Selection Bias from Data Cleaning
Statistics · Alexis Diamond0 comments
Do Random Events Cluster?
Students test Pinker's claim that random events cluster through a star-field game, coin-flip streaks, sample-size histograms and a kidney-stone Simpson's paradox case.
Concept: Randomness and clustering
Statistics · Alex Korablev0 comments
What is Truth?
A conceptual companion on logical sentences, tautologies, contradictions, consistency, and why R's == is not logical equivalence.
Concept: Logical sentences and equivalence
Computer science · Alex Korablev0 comments
The Complexity of Negation
A formal-logic companion on negating sentences precisely: connectives, a truth-table builder, De Morgan's laws and the meaning of "unless".
Concept: De Morgan's laws
Computer science · Alex Korablev0 comments
Rich and Poor Farmers: What Does Regression Recover?
A Coding workbook in R. Students simulate 100 farmers with both potential outcomes, compute the naïve gap, ATE, ATT, ATC and selection bias, then see that a regression with a control matches none of them while an interaction model does. A final part contrasts confidence and prediction intervals.
Concept: Regression and causal estimands
Statistics · Alexis Diamond0 comments
Lord's Paradox: Two Statisticians, One Dataset
Two statisticians analyse the same six students' weights and reach opposite conclusions. Students compute both analyses in R and then work out what each one assumes about the missing counterfactual.
Concept: Lord's paradox
Statistics · Alexis Diamond0 comments
Python together: simulating coin flips
Groups write and run Python together in the browser: simulate coin flips, find streaks, and use pandas on a class dataset to judge whether a coin is fair.
Concept: Simulating randomness with Python
Statistics · Alexis Diamond0 comments
The Logistic Squeeze (remix)
A logistic regression is a straight line on the logit scale, squeezed through the logistic function into a probability. This version adds a comprehension question and a reflection question at the bottom, each with a text box whose answer is captured in state, and fixes a colour-contrast failure.
Concept: Logistic regression coefficients
Statistics · Alexis Diamond0 comments