danny22.com

Labs

Stats Lab

Take the data of a group data platform and the numbers SQL Lab produces, and learn to decide whether those numbers can be trusted. Say with an interval how much a number wobbles, write down before an experiment starts what to collect and how much to confirm a difference, and when you cannot experiment, state the assumptions behind any causal claim. The goal is not memorizing formulas but the habit of checking by simulation whether a method actually delivers what it promises on this data.

Status
Updated 2026-11-17 KST · 1 of 1 units written. A one-page plan is written. The parts, unit counts, data and tools are not yet agreed and may change. There is no full unit list or unit text yet
Size
Planned as 7 parts and about 35 units (34 core, 1 advanced), each a 60 to 90 minute session. Units are numbered volume-part-chapter (V00-P01-C03); from V00-P01 on, the first unit of each part (C00) is that part's map
Audience
Analysts and data scientists who can read Python and SQL. Formulas appear only as far as they are needed: each effect is first shown by simulation, then explained with the math
Cases
Questions asked by the subsidiaries of the fictional holding company danny22.com: coupons and repeat purchases in retail, time-alternating experiments in mobility, headline tests in media, and holidays and prediction intervals in energy. Causal inference from observational data is taught with widely used classic public datasets. The subsidiaries and people are made up and unrelated to real companies
Data
Real public data. Only what public data cannot reveal the truth about (treatment effects, interference and the like) is filled with synthetic data that has a planted answer, and the planted effects are disclosed. Candidates include UCI Online Retail II, published online experiment records, Seoul public bike rental records and EIA-930 electricity demand; how much of each to use is not yet agreed
Language
The course material is written in Korean
Access
stats-lab.danny22.com, open to signed-in readers. Get in touch to request access

What you learn

  • Looking at and drawing distributions: summary statistics and heavy tails, exploratory charts, explanatory charts that read in both light and dark themes, and autocorrelation in time series.
  • Estimation and testing: sampling distributions and simulation design, intervals for means and proportions, the bootstrap, testing and multiple testing, and quantiles and prediction intervals.
  • Designing and reading experiments: experiment design and pre-registration, power and sample size, variance reduction (CUPED), units of analysis and sample ratio mismatch, peeking and sequential tests, and interference and switchbacks.
  • Causal inference from observational data: comparability and matching, difference-in-differences, synthetic control, regression discontinuity and instrumental variables, taught with classic public datasets.
  • Recording conclusions: analysis reports that lead with the conclusion, what small data can and cannot tell you, and keeping and reviewing experiment records.

What a unit contains

  • Theory: concepts, diagrams and numbers measured on this machine.
  • Notebook: data is cut down with SQL until it is small enough, and the rest is done in Python. A final check cell judges whether simulated interval coverage and error rates fall in the expected range, and whether hand-computed values match the library's.
  • Experiment record or analysis report: one file per experiment, with the plan pushed to the repository before the results, and reports that lead with the conclusion.

Parts

The course works from the top down. V00-P01 takes one business question all the way through extracting data, estimating with an interval, deciding and recording, to show what the rest is for; from V00-P02 it goes deeper in order: distributions, estimation, experiments, causal inference and reports. Data Lab builds the marts, SQL Lab produces the metrics, and this lab asks whether those numbers can be trusted.

PartWhat you learnUnits
V00-P00 Getting startedThe syllabus, where this lab sits on the common skeleton for data problem solving and what it leaves behind (experiment records, analysis reports), and the way of working (cut down with SQL, then Python; fixed seeds)3
V00-P01 A thin first passPulling "has the 30-day repeat purchase rate of new customers risen since last year?" from a gold mart, computing intervals for the rates and their difference, checking by simulation that the interval keeps its promise, and recording the judgment and its grounds in one record4
V00-P02 Distributions and chartsSummary statistics and heavy tails, exploratory charts, explanatory charts (readable in both themes), autocorrelation in time series5
V00-P03 Estimation and testingSampling distributions and simulation design, intervals for means and proportions, the bootstrap, testing and multiple testing, quantiles and prediction intervals6
V00-P04 ExperimentsExperiment design and pre-registration, power and sample size, variance reduction (CUPED), units of analysis and sample ratio mismatch, peeking and sequential tests, interference and switchbacks7
V00-P05 Causal inference from observational dataComparability and matching, difference-in-differences, synthetic control, regression discontinuity, instrumental variables. The advanced unit covers estimating heterogeneous effects7
V00-P06 Reports and recordsAnalysis reports that lead with the conclusion and what small data can say, keeping and reviewing experiment records3

The V00-P01 version has already been run. In UCI Online Retail II, the 30-day repeat purchase rate was 14.87% for new customers in 2010 and 17.45% for new customers in the first half of 2011. The 95% interval for the +2.59 point difference was [−0.50, +5.93], so the conclusion was to withhold judgment. A simulation at the same sample sizes showed this interval covering the true difference 0.9525 of the time.