LibraryStatistics & Data Science
Statistics & Data ScienceAn interactive textbook

Statistics and Data Science for Researchers

Statistics for researchers who refuse to p-hack.

From probability axioms to causal inference, Bayesian analysis, and ML for researchers, all in the browser, all reproducible.

Start reading Begins with 0.1 Why probability? Axioms and Kolmogorov
From Section 3.1, Exact vs asymptotic CIsComputed as the page loads

What a confidence interval actually covers

The exact chance that a nominal 95% interval for a proportion from 30 trials contains the true p: the total binomial probability of the counts, among the 31 possible, whose interval contains it. The Wald interval, the estimate plus or minus 1.96 standard errors, covers p = 0.05 only 78% of the time and averages 87% across p; Wilson's score interval averages 95%.
13
parts
95
sections
110
interactive figures
568
learning objectives

What you will learn

  1. Probability from Kolmogorov to the CLT, with live simulation widgets
  2. Estimation theory: MLE, Cramér-Rao bound, bootstrap from first principles
  3. Hypothesis testing without p-hacking: FWER, FDR, equivalence testing, preregistration
  4. Linear and generalised linear models with full diagnostic toolkit
  5. Causal inference: DAGs, IV, RDD, DiD, propensity scores, sensitivity analysis
  6. Bayesian methods: conjugacy, Metropolis, Gibbs, HMC, posterior predictive checks
  7. ML for researchers: calibration, fairness, double ML, causal forests
  8. Six real-research capstones from RCT design to reproducibility audit
  9. All in-browser, all reproducible, all open-data

Designed for

Research-track scientists, graduate students, and working analysts who need to do statistics correctly, not just compute it. Equally useful for self-taught analysts who skipped formal statistics training and want a defensible foundation.

Read the full introduction

Thirteen parts that take a reader who knows arithmetic and a little algebra all the way to confident, defensible statistical practice. Part 0 builds probability from Kolmogorov's axioms through the central limit theorem. From there: estimation theory, hypothesis testing without the p-hacking pathologies, confidence intervals you can defend, linear and generalised linear models, the causal-inference toolkit (DAGs, IV, RDD, DiD, propensity), Bayesian methods (Metropolis, Gibbs, HMC), resampling and nonparametrics, ML done with research-grade care (calibration, fairness, double ML), six real research capstones, a per-part quiz bank with final exam, and a master research-analyst workflow card.

Contents

13 parts · 95 sections · 110 interactive figures
IProbabilityPart 0 · 10 sections
IIClassical inferenceParts 1 to 3 · 23 sections
IIIModels and causesParts 4 to 6 · 22 sections
IVBeyond the classicalParts 7 to 9 · 21 sections
VPracticeParts 10 to 12 · 19 sections
Statistics and Data Science for Researchers is one of 15 free interactive textbooks on OgbonLab.Every figure is computed in your browser.