Hybrid· R

One Trial, Many Trials

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.

Statistics · Alexis Diamond♥ 00 comments

Interactive

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.

Statistics · Alex Korablev♥ 00 comments

Interactive

What is Truth?

A conceptual companion on logical sentences, tautologies, contradictions, consistency, and why R's == is not logical equivalence.

Computer science · Alex Korablev♥ 00 comments

Interactive

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".

Computer science · Alex Korablev♥ 00 comments

Interactive

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.

Statistics · Alexis Diamond♥ 00 comments

Interactive

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.

Statistics · Alexis Diamond♥ 00 comments

Coding· R

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.

Statistics · Alexis Diamond♥ 00 comments

Coding· R

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.

Statistics · Alexis Diamond♥ 00 comments

Interactive

lalonde

Statistics · Alexis Diamond♥ 00 comments

Interactive

selection bias

Statistics · Alexis Diamond♥ 00 comments

Interactive

sutva violation

Statistics · Alexis Diamond♥ 00 comments

Coding· Python

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.

Statistics · Alexis Diamond♥ 00 comments

Coding· R

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.

Statistics · Alexis Diamond♥ 00 comments

Interactive

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.

Statistics · Alexis Diamond♥ 00 comments