BMSC 700 · Introduction to Biomedical Research · Guest lecture

Thinking Statistically

An introduction to biostatistics for biomedical researchers

Zhiling Gu
University of South Carolina School of Medicine
Wednesday, October 21, 2026
Keys: ← → navigate · T contents · F fullscreen · B blank · ? help
Opening

Three mice, p = 0.03. How much would you bet on it?

A new compound is given to 3 mice, with 3 controls. At day 21 the treated tumors are smaller, on average by a third. The t-test says p = 0.03.

Your PI says: write it up.

How much can this result tell us?

A
Strong evidence: it is significant
B
Some evidence; I want more context
C
A 50% chance the drug works
D
Too few mice to trust any result
E
I need the design and effect interval

The p-value alone cannot settle this. Ask about the design, independent units, effect and interval, analysis choices, and supporting evidence.

We have a reported result. Reconstruct the question, design, data and analysis needed to interpret it.
The full study cycle

The life cycle of a study

A scientific question guides each decision. The result informs the next question.

StageDecisionWhat you carry forward
01 QuestionWhat do we want to learn?Population, outcome and target quantity
02 DesignWhat evidence could answer it?Units, allocation, n and analysis plan
03 Prepare & exploreWhat did we actually measure?Traceable data and diagnostic plots
04 AnalyzeWhat do the data support?Effect estimates and uncertainty
05 EvaluateHow well does the conclusion hold up?Checks, limitations and independent evidence
06 Communicate & iterateWhat should others know or study next?A transparent report and a new question
Return to earlier stages when needed. Plan validation before collecting data. Record when observations change the question or analysis.
Inspired by Yu & Barter, Veridical Data Science, ch. 2. Adapted here for biomedical experiments and statistical inference.
Section 01

Question

What do we want to learn?

01 · Question

Four purposes of biostatistics

Describe

What patterns and variation are in the data?

Tumor-volume distributions, plots, group summaries.

Estimate

How large is an effect, and how uncertain is it?

Differences, rates, regression estimates and intervals.

Infer causes

What would change if we gave the treatment?

Randomized experiments and causal assumptions.

Predict

What will happen to a new patient or sample?

Risk models, statistical learning and validation on new data.

Across all four: study design, sampling, measurement, uncertainty and transparent reporting.

Frameworks: frequentist and Bayesian inference. Tool families: regression, survival analysis, longitudinal and multilevel models, high-dimensional methods.

The purpose determines the design and what counts as validation. Today we follow a treatment-effect question. Shmueli (2010), To Explain or to Predict?
01 · Question

A treatment effect and a prediction answer different questions

Causal question

Would giving the compound reduce tumor volume?

Output: an estimated treatment effect and its uncertainty.

Prediction question

Which new mouse will have a large tumor at day 21?

Output: a prediction from baseline features for a new animal.

Plan evidence and validation for each question

Causal: credibility of the treatment effect

  • Design: randomize, or justify how confounding will be controlled; prespecify the effect and analysis.
  • Check: plan sensitivity analyses for missing outcomes and plausible assumption violations.
  • Confirm: replicate in new animals; compare effect sizes and uncertainty.

Prediction: performance in new cases

  • Split: reserve test data before exploration; keep each animal's measurements in one partition.
  • Train: fit preprocessing, select features and tune models within training data only.
  • Evaluate: check held-out error and calibration; use new sites or times when relevant.
Predictive accuracy does not establish a causal effect. Causal assumptions need design justification and sensitivity checks.
01 · Question

A question becomes a design before it becomes a test

Does the compound reduce mean tumor volume at day 21?

Target and comparison

Mice represented by this tumor model and protocol. Compare treatment with a concurrent control.

Outcome and estimand

Tumor volume in mm³ at day 21. Target quantity: mean treated minus mean control volume.

Units and allocation

Assign treatment to individual mice. Randomize across batches and blind outcome measurement.

Planning values

For this example, a 150 mm³ reduction matters. Assume between-mouse SD 120 mm³. We will choose n for a proposed study.

More animals reduce sampling noise. They do not remove systematic measurement error, confounding or selection bias.

Pre-specify exclusions and how deaths or missing day-21 measurements will be handled. A missing outcome can change the question you actually answer.

Section 02

Design

What evidence could answer the question?

02 · Design

Treat the mouse? Thirty neurons from three mice is n = 3

–
p with neurons as n (30 vs 30)
–
p with mice as n (3 vs 3)
–
false-positive rate, neurons as n
–
false-positive rate, mice as n
  • The experimental unit is independently assigned and treated: here the mouse; in other designs, a litter, cage or well.
  • Technical repeats estimate measurement noise; they do not add independent biological sources.
  • Fix: summarize within animal, or model cells within animals. Plan enough independent animals; a mixed model cannot create replication.
In the wildWells can be experimental units if independently assigned and treated. Shared donors, preparations and days still matter: three wells do not create three independent biological sources (Lazic et al. 2018).
Simulation: 3 mice per group, 10 neurons each, no true drug effect. Mice differ from each other (SD 25), neurons within a mouse vary less (SD 10). Dots: neurons. Bars: mouse means.Lazic 2010
02 · Design

Convenience allocation can bias groups before treatment

–
baseline activity, treated
–
baseline activity, control
  • Randomize treatment allocation; balance or randomize processing order, cage position and measurement. Convenience allocation can favor particular animals.
  • Blind outcome assessment where feasible: use coded samples and a separate allocation list. Expectations can influence scoring, measurement and exclusions.
  • Conceal the upcoming allocation; pre-specify exclusions before unblinding.
  • Some meta-research links absent or unreported safeguards with larger effects (Macleod et al. 2008; Hirst et al. 2014). Report what was done, by whom and when.
set.seed(2026)
sample(rep(c("Treated","Control"), each = 10))

Example: 20 individually assigned mice, 10 per arm. Save the seed, list and assignment process; use blocks when needed.

In the wildIn an ALS mouse study, eight compounds showed no survival benefit when retested at previously reported doses/routes under improved designs (Scott et al. 2008). The study did not isolate the contribution of each safeguard.
Simulation: 20 mice; the first ten caught are assumed to be least active. Randomization balances measured and unmeasured baseline factors in expectation, not necessarily in one small experiment.
02 · Design

Confounding: the trend can reverse when you ignore a lurking variable

DrugNo drug
Men81 / 87 (93%)234 / 270 (87%)
Women192 / 263 (73%)55 / 80 (69%)
Everyone273 / 350 (78%)289 / 350 (83%)

Illustrative recovery rates: the treated group has higher recovery within each sex, but lower recovery overall because the group proportions differ. These associations alone do not establish a treatment effect.

  • Usual suspects: processing batch or day, sex, litter, cage, age, site, operator, instrument.
  • Fixes: randomize and block treatment across batches; record covariates. Pre-specify adjustment using the causal question, not every available variable.
In the wildAn analysis of human cell-line data found that apparent population differences in gene expression were strongly confounded with processing year (Akey et al. 2007). Running controls on Monday and treated samples on Friday creates the same design problem.
Left: simulated data with two batches. Right: illustrative Simpson's paradox table after Pearl, as used by Peña (2024). A reversal alone does not tell us which adjustment is causally appropriate.
02 · Design

Before collecting data: simulate the proposed design

–
observed difference, mm³
–
p-value, explained in analysis
  • In this simulation the drug reduces mean volume by 150 mm³, from 500 to 350. We generate new mice under the same assumptions.
  • Two sources of noise: biological variation between animals and measurement error.
  • With more mice per group, the estimated difference varies less from one experiment to the next.
Independent normal outcomes: control mean 500 mm³, treated mean 350 mm³, SD 120 in each group. Dots: mice; bars: means. Difference = treated − control.
02 · Design

The sampling distribution: how estimates vary

0
samples drawn
–
SD of the sample means
–
theory: SD / √n
SE of a mean = SD / √n for independent observations from the same population. Four times n halves this standard error.
  • This population is skewed. As n grows, the distribution of sample means becomes more nearly normal: the central limit theorem.
  • One study gives one estimate. A statistical model lets us estimate its sampling uncertainty; independence and other assumptions matter.
Left: population of 20,000 simulated mice, mean 500 mm³, SD 120, and the current sample. Right: means of all samples drawn so far.
02 · Design

Choosing α sets both decision regions

Derived cut-off: c = −1.645. Reject if Z < c; otherwise do not reject.

–
α: false positive rate
–
β: miss Δ = −150 mm³
–
power = 1 − β

Δ = μtreated − μcontrol.
For this power calculation: H₀: Δ = 0; Ha: Δ = −150 mm³.
350 − 500 = −150: treated tumors are smaller on average.

Do not reject H₀
Reject H₀
H₀: Δ = 0
No false alarm
probability 1 − α
Type I, false positive
probability α
Ha: Δ = −150 mm³
Type II, false negative
probability β
Correct
power = 1 − β
  • Choose α before examining outcomes. For this test, it determines c and both decision regions.
  • At fixed effect, n and SD, lower α moves c farther left and raises β. At fixed α, more mice improve power.
  • The one-sided test looks for Δ < 0. Rejecting H₀ does not establish exactly −150; non-rejection does not establish zero.
One-sided normal test, known SD 120 mm³. Z = (treated − control) / SE; c = Φ⁻¹(α). Gray: H₀, Δ = 0. Blue: specified Hₐ, Δ = −150 mm³. At α = 5%, c ≈ −1.645.
02 · Design

What power is, and how it is calculated

Δ = −150 mm³ · SD 120 mm³ · one-sided α = 0.05
–
typical standard error, mm³
–
lower critical t
–
power

Δ = μtreated − μcontrol.
H₀: Δ = 0; Ha: Δ = −150 mm³ for planning.

Power = P(reject H₀ | Δ = −150, model and design). The one-sided test looks for Δ < 0.

Four ingredients

  1. The planning effect: Δ = 350 − 500 = −150 mm³, a 30% reduction
  2. The noise: SD 120 mm³ between mice, from a pilot or the literature
  3. The prespecified rule: one-sided α = 0.05
  4. n per group: vary it while holding the other inputs fixed
n <- 3; df <- 2*n - 2
pt(qt(0.05, df), df,
   ncp = -150/(120*sqrt(2/n)))
# power = 0.356
Same one-sided direction as slide 14. Gray: H₀, Δ = 0. Blue: specified Hₐ, Δ = −150 mm³. Estimated SD gives a t-test with 2n − 2 degrees of freedom.
02 · Design

Justify sample size for the question you want to answer

IACUC and the 3Rs

  • Replacement, Reduction, Refinement.
  • Match n to the study aim. A study too small for its stated aim risks wasting animals and resources.
  • Protocols must state how the numbers were derived.

NIH rigor and reproducibility

  • Explain the design and how it can answer the question.
  • For a power calculation: target effect, SD and source, α, power, analysis, and anticipated attrition.
  • Justify the smallest meaningful effect scientifically. Check how uncertain SD assumptions change n.

Tools

  • G*Power, free, point and click.
  • R: power.t.test(), power.prop.test(), package pwr.
  • For clustered or longitudinal designs, simulate or ask a statistician.
Proposed confirmatory study: “For a minimum meaningful reduction of 150 mm³ and SD 120 mm³, 9 evaluable mice per group provide at least 80% power using a one-sided pooled t-test at α = 0.05. Allowing 15% attrition, we plan 11 per group: round up 9 / 0.85.” State the SD source, design, exclusions, and software used.
PitfallSmall pilots help assess feasibility and variability, but both SD and effect estimates can be unstable. Do not base the target effect only on a promising small pilot.
02 · Design

A useful consultation starts before data collection

“To consult the statistician after an experiment is finished is often merely to ask him to conduct a post mortem examination. He can perhaps say what the experiment died of.” R. A. Fisher, 1938

What to bring to the consultation

  • The scientific question in one sentence
  • The primary outcome and how it is measured
  • A sketch of the design: units, groups, time points, batches
  • The smallest effect that would matter, and a source for the SD
  • Constraints: animals, budget, time, ethics

Using AI tools without getting burned

  • Useful for: drafting code and suggesting methods or assumptions to verify
  • Your responsibility: the question, design, assumptions and interpretation
  • Never paste identifiable patient data
  • Verify every number it gives you; keep prompts in the analysis log
Section 03

Prepare & explore

What did we actually measure?

03 · Prepare & explore

Show the data: the bars look the same, the experiments are not

Underlying data
  • Summary bars hide the distribution and influential observations.
  • Plot each observation and its group mean. Formal uncertainty intervals come next.
  • Show pairing or nesting. Investigate unusual values and record any changes (Weissgerber et al. 2015).
Separate plotting demonstration: two constructed groups of 12. All four datasets have identical means and SEMs. The dots reveal the shapes those summaries hide.
03 · Prepare & explore

Audit missing and unusual observations

Three hypothetical records from the day-21 tumor-volume study.

RecordWhat the audit findsWhat to do
M04: 4,800 mm³The original measurement log says 480 mm³.Correct the verified transcription error. Preserve the raw entry and log the correction.
M09: no day-21 valueThe mouse died on day 18.Record the death and its timing. A day-21 volume after death is undefined; do not enter zero or silently drop the mouse.
M12: 1,100 mm³The source agrees; measurement checks pass and the mouse meets eligibility rules.Retain the valid observation. Assess its influence and report sensitivity results alongside the primary analysis.
Report the flow: numbers randomized, measured and analyzed in each group, with reasons for missing measurements and exclusions.
Teaching records, not collected data. Sources: ARRIVE 2.0, item 3b; VDS, Ch. 4; ICH E9(R1).
03 · Prepare & explore

From exploratory plots to analysis decisions

A pattern suggests a question or check; it does not choose the analysis for us.

What the plot showsWhat to askNext step
Two clustersDo batch, sex or measurement time explain the pattern?Label known factors and investigate. Shape alone does not establish responder groups.
A verified influential observationHow much does the estimate depend on this observation?Report justified sensitivity analyses alongside the primary estimate and its uncertainty.
A skewed distributionIs the target a mean difference in mm³ or a proportional effect?Check model assumptions. A log-scale comparison changes the effect being estimated.
Repeated or nested observationsWhich measurements share a mouse, cage or site?Keep IDs and links visible; account for dependence in the analysis.
Use the prespecified analysis as a reference. Document and justify changes; do not choose them by the smallest p-value.

Handoff to analysis: a traceable dataset, a defined effect, an analysis plan and documented exploratory questions.

Preparation and exploration are iterative. Sources: VDS, Ch. 4 and Ch. 5; Weissgerber et al. 2015.
03 · Prepare & explore

Where the variability lives in your own data

Hypothetical measurements · Each dot is one observation; A, B and C identify independent biological samples.

Mice

Tumor volume

Tumor volume Two caliper measurements of the same tumor on each of three mice. Hypothetical values: A: 180, 188; B: 245, 253; C: 330, 342. Volume (mm³) 150 250 350 A B C Mouse

Repeat readings are close; different mice vary more.

3 mice · 6 readings

qPCR

Ct values

Ct values Technical triplicates from each of three independent donor samples. Hypothetical values: A: 22.0, 22.2, 22.1; B: 23.9, 24.1, 24.0; C: 21.0, 21.2, 21.1. Ct (cycles) 21 22 23 24 A B C Donor sample

Triplicates agree within a sample; samples differ.

3 donors · 9 reactions

Clinic

Blood pressure

Blood pressure Three successive seated systolic blood-pressure readings per patient. Hypothetical values: A: 136, 130, 128; B: 151, 146, 144; C: 126, 124, 125. Systolic BP (mmHg) 120 140 160 A B C Patient

Repeated readings vary within each patient.

3 patients · 9 readings

Microscopy

Cells per field

Cells per field Three non-overlapping fields of equal area per independent tissue specimen. Hypothetical values: A: 14, 20, 26; B: 17, 22, 27; C: 20, 29, 35. Cell count 10 20 30 40 A B C Specimen

Fields vary within a specimen; clustering can add spread.

3 specimens · 9 fields

Flow cytometry

Percent positive

Percent positive Matched aliquots from each of three donor samples assayed on two days. Hypothetical values: A: 12, 15; B: 18, 20; C: 25, 29. Positive cells (%) 10 20 30 A B C Day 1 Day 2 Lines = donors A–C

Each donor reads higher on day 2. Check for run effects.

3 donors · 6 aliquots

Ask: what varies within a biological unit, and what varies between units?
More readings can reduce measurement noise; more independent units address biological variation.
Section 04

Analyze

What do the data support, and how uncertain are we?

04 · Analyze

Define the population and effect you want to estimate

A separate two-sided analysis example

  • Illustrative dataset: 10 mice randomly allocated per group; tumor volume at day 21
  • Illustrative result: 388 vs 500 mm³; difference −112 mm³, pooled SD 120
  • Target: the average treatment effect in mice represented by this model and these study conditions
Estimation
How big is the effect, and how uncertain are we? → confidence interval
Testing
How unusual is this result under a no-effect model? → p-value

Random allocation supports a treatment comparison. Generalizing to other strains, laboratories or patients needs additional evidence.

04 · Analyze

SD, SEM or CI? Three bars, three different questions

SD describes between-animal spread. Increasing n estimates that spread more stably; it does not automatically make the population less variable.
SEM estimates the standard error of the mean: s/√n for independent observations. At fixed variability, it decreases in proportion to 1/√n.
95% CI for a normal-population mean is mean ± t × SEM. Here n = 10: the half-width is 2.262 × SEM; total width is twice that.
Same 10 mice in each panel. Identify the bar and n in every legend. CI coverage depends on the model; assess a group difference with its own CI or test, not by eye from overlap.
04 · Analyze

A 95% confidence interval: the dance of 100 experiments

0
miss the truth, this run of 100
0
include 0, “not significant”, this run
–
capture the truth, 10,000 experiments
  • Each line is one full experiment, 10 vs 10 mice, and its 95% CI for the true difference.
  • 95% describes the procedure: under its assumptions, about 95% of intervals from repeated studies contain the true effect.
  • The number of misses varies between runs. Here, larger n narrows the intervals while long-run coverage remains about 95%.
  • Read one CI as a range of effects compatible with the data and model, not a 95% probability for this fixed effect.
Truth: −150 mm³. Independent normal data, common SD 120; central 95% pooled t intervals (two-sided inference). Blue captures the truth; red misses.After Cumming (2014)
04 · Analyze

A p-value compares your result with a no-effect model

–
two-sided p-value
–
observed t: standard errors from zero

Δ = μtreated − μcontrol (mean tumor volume, mm³).
H₀: Δ = 0 versus Ha: Δ ≠ 0 (two-sided).

Under H₀ and the test model, p is the probability of a statistic at least as extreme as observed: count both tails.

PitfallWhat a p-value is not

  • The probability that the null hypothesis is true
  • The probability that you are wrong
  • The probability the result will replicate
  • A measure of how big or how important the effect is
  • A sharp boundary: 0.049 and 0.051 give very similar evidence

“P-values do not measure the probability that the studied hypothesis is true.” American Statistical Association, 2016

Separate two-sided worked example: pooled two-sample t-test: n = 10 per group, observed pooled SD 120 mm³, SE ≈ 54 mm³, 18 degrees of freedom. Independent normal outcomes and equal variances assumed.
04 · Analyze

Effect size vs. effect significance

  • A. Includes zero and a meaningful benefit. The data are inconclusive about benefit; they do not establish no effect.
  • B. Excludes zero and supports a benefit larger than the pre-specified meaningful effect.
  • C. Excludes zero, but the estimated benefit is smaller than the meaningful threshold.
  • D. Wide enough to include benefit and harm: the estimate is too imprecise for this decision.
Pitfall“Not significant” is not “no effect”. Decide the smallest effect that matters biologically before you collect data. Then report the estimate and its interval, and let the reader see where it falls.
Illustrative estimates for tumor volume. Dashed line: a 150 mm³ reduction, the pre-specified smallest meaningful benefit used throughout this example. Negative values favor treatment.
04 · Analyze · Worked biomedical examples

Let the question and study design guide the method

Start with what is measured, who is independent, and which comparison answers the question.

Biomedical questionDesign / outcomeMethod and useful estimate
Do two sleep drugs differ in the same patients?Paired continuous measurementsPaired t-test
Mean within-person difference
Does tooth development differ across vitamin C doses?Three independent groups;
continuous outcome
ANOVA + planned contrasts
Specified difference in means
Does treatment improve infection clearance?Independent groups;
binary outcome
Fisher’s exact / χ² test
Difference in response probabilities
Does treatment lower blood pressure after accounting for baseline?Continuous outcome +
baseline measurement
Regression / ANCOVA
Adjusted mean difference
Does maintenance therapy prolong remission?Time to relapse;
some follow-up is censored
Kaplan–Meier + log-rank
Remission curve and comparison
How does the relapse rate compare during follow-up?Time-to-event regressionCox regression
Hazard ratio, with assumptions
For each example: define H₀ and Hₐ, show observations, estimate the effect, and check assumptions. All six worked examples use two-sided comparisons.
04 · Analyze · Same people, two measurements

Paired t-test: compare within each patient

Do two sleep drugs produce different mean increases in sleep? Historical data: 10 patients received both.

Each line = one patientAnalyze 10 differences-2-200224466Patient 1; drug 1: 0.7 hoursPatient 1; drug 2: 1.9 hoursPatient 2; drug 1: -1.6 hoursPatient 2; drug 2: 0.8 hoursPatient 3; drug 1: -0.2 hoursPatient 3; drug 2: 1.1 hoursPatient 4; drug 1: -1.2 hoursPatient 4; drug 2: 0.1 hoursPatient 5; drug 1: -0.1 hoursPatient 5; drug 2: -0.1 hoursPatient 6; drug 1: 3.4 hoursPatient 6; drug 2: 4.4 hoursPatient 7; drug 1: 3.7 hoursPatient 7; drug 2: 5.5 hoursPatient 8; drug 1: 0.8 hoursPatient 8; drug 2: 1.6 hoursPatient 9; drug 1: 0.0 hoursPatient 9; drug 2: 4.6 hoursPatient 10; drug 1: 2.0 hoursPatient 10; drug 2: 3.4 hoursPatient 1; drug 2 − drug 1: 1.2 hoursPatient 2; drug 2 − drug 1: 2.4 hoursPatient 3; drug 2 − drug 1: 1.3 hoursPatient 4; drug 2 − drug 1: 1.3 hoursPatient 5; drug 2 − drug 1: 0.0 hoursPatient 6; drug 2 − drug 1: 1.0 hoursPatient 7; drug 2 − drug 1: 1.8 hoursPatient 8; drug 2 − drug 1: 0.8 hoursPatient 9; drug 2 − drug 1: 4.6 hoursPatient 10; drug 2 − drug 1: 1.4 hoursMean difference 1.58 hours; 95% CI 0.70 to 2.46 hoursDrug 1Drug 2IndividualMean + 95% CIExtra sleep vs. control (hours)Drug 2 − drug 1 (hours)

The independent units are 10 patients. Pairing retains the link between each person’s measurements.

Question and hypothesis

d = extra sleep on drug 2 − drug 1.
H₀: μd = 0 vs. Ha: μd ≠ 0.

Estimated difference

+1.58 hours

95% CI: +0.70 to +2.46 hours
Paired t-test: t(9) = 4.06; p = 0.0028.

Drug 2 is associated with a larger mean increase in sleep in these paired data.

Check the design and differences

Independent patients; approximately normal differences for this small sample. Consider order and carryover in a crossover design.

Real data: R datasets::sleep; Cushny & Peebles (1905), Student (1908). Reanalysis shown; two-sided test and CI.
04 · Analyze · Three independent groups

ANOVA: do the mean responses differ across doses?

Vitamin C and tooth development: 30 guinea pigs, 3 doses, one delivery method (ascorbic acid).

Each dot = one guinea pig; bar = group mean010203040Odontoblast length (dataset units)0.5 mg/day; animal 1; length 4.20.5 mg/day; animal 2; length 11.50.5 mg/day; animal 3; length 7.30.5 mg/day; animal 4; length 5.80.5 mg/day; animal 5; length 6.40.5 mg/day; animal 6; length 100.5 mg/day; animal 7; length 11.20.5 mg/day; animal 8; length 11.20.5 mg/day; animal 9; length 5.20.5 mg/day; animal 10; length 77.980.5n = 101 mg/day; animal 1; length 16.51 mg/day; animal 2; length 16.51 mg/day; animal 3; length 15.21 mg/day; animal 4; length 17.31 mg/day; animal 5; length 22.51 mg/day; animal 6; length 17.31 mg/day; animal 7; length 13.61 mg/day; animal 8; length 14.51 mg/day; animal 9; length 18.81 mg/day; animal 10; length 15.516.771n = 102 mg/day; animal 1; length 23.62 mg/day; animal 2; length 18.52 mg/day; animal 3; length 33.92 mg/day; animal 4; length 25.52 mg/day; animal 5; length 26.42 mg/day; animal 6; length 32.52 mg/day; animal 7; length 26.72 mg/day; animal 8; length 21.52 mg/day; animal 9; length 23.32 mg/day; animal 10; length 29.526.142n = 10Vitamin C dose (mg/day), ascorbic acid only

One animal = one observation. Use the animal-level outcome, not each cell as an independent replicate.

Overall ANOVA

H₀: μ0.5 = μ1 = μ2
Ha: at least one mean differs.
F(2, 27) = 67.07; p = 3.36 × 10⁻¹¹.

ANOVA alone does not identify which doses differ or how much.

Specific contrast: high − low dose

Δ = μ2 − μ0.5
H₀: Δ = 0 vs. Ha: Δ ≠ 0.

+18.16 units

95% CI: +14.94 to +21.38 units.

Illustrative unadjusted contrast. Prespecify comparisons; correct for multiplicity across a family of tests.

Assumptions: independent animals; approximately normal errors with common variance. Check residuals and unequal spread.

Real data: R datasets::ToothGrowth, VC subset; Crampton (1947). Length uses the dataset’s recorded scale. Reanalysis shown.
04 · Analyze · Choosing a method

Binary outcomes: χ² or Fisher’s exact test

Illustrative trial: does a new antimicrobial increase culture clearance at day 14?

Treatment7/12 = 58%Control1/12 = 8%Filled = culture-negative · open = culture-positiveDifference in response probability (percentage points)-20020406080Treatment − control; dot = estimate, line = 95% CI

Design: 24 participants randomized, 12 per group; one day-14 result each.

H₀: πT = πC
Ha: πT ≠ πC (two-sided).
π = probability of culture clearance.

Estimated increase: 50 percentage points
95% CI: 12.2 to 73.4 points.
Fisher’s exact p = 0.027.

Under H₀, expected clearances are only 4 per group. For this small sample, plan to use Fisher’s exact test; the chi-square approximation may be unreliable.

Method choice: χ² uses a large-sample approximation; Fisher conditions on the margins. Both require independent participants. Paired binary outcomes need a paired method, such as McNemar’s test.

Constructed teaching data. CI: Newcombe’s unpaired Wilson method. Fisher test · Difference CI.
04 · Analyze · Choosing a method

Regression / ANCOVA: compare at the same baseline

Illustrative trial: does treatment lower week-8 blood pressure, accounting for baseline?

Week-8 systolic BP (mmHg)100110120130140150140150160170180-7.1 mmHgBaseline systolic BP (mmHg)TreatmentControlLines = fitted means

Design: 40 participants randomized, 20 per group. Baseline BP is measured before treatment.

ANCOVA = linear regression
Week-8 BP ~ treatment + baseline BP.

H₀: βT = 0 versus Ha: βT ≠ 0.
βT = adjusted treatment − control difference in mean BP.

Adjusted difference: -7.1 mmHg
95% CI: -10.7 to -3.5.
Two-sided p < 0.001.

At the same baseline BP, the fitted treatment mean is 7.1 mmHg lower. Baseline adjustment can improve precision.

Plan and check: prespecify baseline covariates; assess linearity, common slopes, residual variation and independence. A baseline association is not itself a causal effect.

Constructed teaching data. OLS 95% CI, df = 37. FDA (2023): baseline covariate adjustment.
04 · Analyze · Time-to-event outcomes

Survival analysis: how long does remission last?

Acute myeloid leukemia (AML), 23 randomized patients: maintenance = additional chemotherapy to prolong remission.

Kaplan–Meier estimates of remaining in remission Actual AML data: 11 maintained and 12 nonmaintained patients. Step curves show the first 50 weeks; tick marks indicate censoring. Numbers at risk are provided at zero, ten, twenty, thirty, forty and fifty weeks. All data, including one maintained patient censored at week 161, are used for the analyses. Estimated probability of remaining in remission 0.00 0.25 0.50 0.75 1.00 0 10 20 30 40 50 Weeks since remission (first 50 weeks shown) Maintenance (n = 11) No maintenance (n = 12) At risk Maint. 11 10 7 5 3 1 No maint. 12 8 6 4 2 0

Kaplan–Meier curves

Drops occur at observed relapse times. A tick marks follow-up ending without an observed relapse.

Log-rank comparison

H₀: SM(t) = SN(t) for all t.
Hₐ: the remission curves differ.

χ²(1) = 3.40; p = 0.065

Suggestive separation, with substantial uncertainty. At α = 0.05, we do not reject H₀.

Censoring means “not observed after this time,” not “never relapses.”

Use follow-up time and event status together. Kaplan–Meier estimation assumes independent censoring within each group.
Historical preliminary data (Oct. 1974): R boot::aml / survival::aml. All data used; one maintenance follow-up ends at week 161, outside the plot.
04 · Analyze · Time-to-event outcomes

Cox regression: estimate the relative relapse hazard

Same 23 AML patients: maintenance chemotherapy (to prolong remission) vs. no maintenance chemotherapy.

Cox model relapse hazard ratio, maintenance versus no maintenance Hazard ratio 0.4003, with 95 percent Wald confidence interval from 0.1468 to 1.0918, on a logarithmic axis. The confidence interval crosses the null value of one. Relapse hazard: maintenance / no maintenance HR = 0.40 95% CI 0.15–1.09 HR = 1 0.1 0.2 0.5 1 2 Lower relapse hazard Higher relapse hazard Hazard ratio (logarithmic axis)

Hazard: instantaneous relapse rate among those still in remission.

Proportional hazards model

hM(t) = hN(t) × exp(β)

H₀: β = 0 (HR = 1).
Hₐ: β ≠ 0 (HR ≠ 1).

Estimate: 60% lower relapse hazard with maintenance, assuming a constant hazard ratio.

Uncertainty: the interval includes HR = 1. The data remain compatible with no difference.

Two-sided Wald p = 0.074.
Group-only model; Efron handling of tied event times.

Check proportional hazards. HR = 0.40 does not mean a 60% lower probability of relapse by a fixed week. Cox models can also include baseline prognostic variables.
Data: R boot::aml / survival::aml. Method: survival::coxph; unadjusted maintenance / no-maintenance contrast, 95% Wald CI.
04 · Analyze

Multiple testing correction: dependent GWAS tests

For each variant j: H0j: βj = 0 versus Haj: βj ≠ 0 (two-sided).
βj: adjusted association with systolic blood pressure (SBP), in mmHg per additional effect allele.

Highlight: Y-axis:
Variant: hover near a point or click / tap
Position: – p: –

Hover or tap to inspect. With plot focused, ← / → select adjacent displayed variants; ↑ / ↓ jump 100. Last details stay visible.

m = – variant tests

Full SBP file, including known regions:

–
variants with
p < 0.05
–
variants with
p < 5 × 10⁻⁸

Bonferroni: reject H0j if
pj < 0.05 / m ≈ –.
With valid null p-values, P(any false rejection) ≤ 5%, even with dependence.

Why dependent? Linkage disequilibrium (LD) correlates nearby variants and their tests. Many significant variants may mark one locus.

Common GWAS cutoff: 5 × 10⁻⁸.
This differs from 0.05 / m for this file.

113 novel loci across SBP, DBP and pulse pressure after grouping and novelty filtering. Counters count variants, including known regions.
Keaton et al., 2024 · GCST90310294, GRCh37 · Up to 1,028,980 European-ancestry participants. Plot thinned; counts use all valid autosomal records. Figure 1 shows novel loci across three traits. Association does not establish causality.
Section 05

Evaluate

How well does the conclusion hold up?

05 · Evaluate

Does the conclusion hold up?

Check the calculation, analysis choices and sensitivity to which subjects were sampled.

CheckWhat to doWhat it tells you
Computational reproducibilityRun the recorded code on the same data and recover the reported results.Someone can reproduce the calculation.
Assumptions and stabilityCompare defensible choices for missing data, outliers and covariates; check model and design.How sensitive the conclusion is to reasonable choices.
Random-split sensitivityIf data are large enough, randomly split independent subjects and repeat the same analysis in each subset.Compare effect sizes and CIs across splits. Each subset must retain useful precision.
Independent evidenceTest the planned claim in new subjects or settings. For prediction, assess untouched data.Whether the conclusion extends to the relevant new evidence.
Keep each animal’s or donor’s measurements together. Report all planned splits; repeated splits reuse subjects and are stability checks, not independent replications.

Reserve a confirmation holdout before outcome-driven selection or tuning. Stable results alone do not establish causality.

Stability and evaluation: Yu & Barter, Veridical Data Science, ch. 1. A new hypothesis returns us to the question and design stages.
05 · Evaluate

Stage 2: plan and run the follow-up

Stage 1 · Preliminary experiment (hypothetical): 20 outcome/timepoint tests in treated and control mice → day-21 tumor volume has the smallest p = 0.01 and is chosen for follow-up.

  1. Fix the target: day-21 tumor volume; Δ = μtreated − μcontrol.
    Prespecify H₀: Δ ≥ 0 versus Ha: Δ < 0. Negative Δ means smaller tumors with treatment.
  2. Plan n: meaningful Δ = −150 mm³; plausible SD 120 mm³. One-sided α = .05, 80% power → 9 evaluable/group; enroll 11/group for 15% attrition.
  3. Lock the protocol: randomize and blind; fix exclusions, missing-data rules, the pooled t-test and stopping at the planned n before examining follow-up outcomes.
  4. Run the follow-up: use new treated and control mice for the primary confirmation. Report the effect, CI and all planned results; show preliminary and follow-up results separately.
Large-data alternative: reserve a confirmation subset before screening. Choose the outcome in discovery data, then test it once in the untouched subset.
Combining stages is possible with compatible experiments and inference accounting for selection/adaptation. See “Reusing preliminary data” in the appendix. Bell et al. 2018; Bauer et al. 2016.
Section 06

Communicate & iterate

What should others know, and what should we study next?

06 · Communicate & iterate

Three mice, p = 0.03: what would you ask next?

Reconstruct the study life cycle before interpreting the result.

  1. Question: which outcome, time point, population and meaningful effect?
  2. Design: independent units, randomized allocation, blinding and planned n?
  3. Prepare & explore: what do the observations, missingness and exclusions show?
  4. Analyze: what is the estimated effect and CI; which comparisons were tested?
  5. Evaluate: what was selected after inspection, and what independent evidence exists?
  6. Communicate & iterate: what remains uncertain, and what study would resolve it?
A defensible conclusion reports what the data support, what remains uncertain, and what evidence would resolve it.
06 · Communicate & iterate

Additional considerations: sites and populations

Before pooling data, ask what differs—and which population the result should inform.

ConsiderationWhat to check or plan
Site effectsLabs or hospitals differ in equipment, staff and participants. Randomize within sites when possible; record site and examine differences.
Protocol effectsTiming, sample handling, assay version and dose can change outcomes or measurements. Standardize procedures, record deviations and balance groups across batches.
Data harmonizationAlign definitions, units, coding and measurement times before pooling. Keep original values and mappings; preserve meaningful biological differences.
Mixed-effects modelsCombine fixed effects (e.g., treatment) with random effects (e.g., site-specific baseline levels) to model clustering. Add subject effects for repeated measurements when appropriate.
Population representationDefine the target population. Check coverage of age, sex, ancestry and disease severity—or strain and sex in mice. Identify gaps and assess generalization.
Design comes first: all treated subjects from site A and all controls from site B? These data alone cannot distinguish treatment from site.
Fortier et al. (2017), data harmonization · Bates et al. (2015), mixed-effects models · Dahabreh et al. (2019), target-population inference.
06 · Communicate & iterate

The next study begins here

1

Question. Define what you want to learn and the effect that matters.

2

Design. Plan independent units, allocation, measurement and n before collecting data.

3

Prepare & explore. Keep data traceable, plot observations and document choices.

4

Analyze. Estimate the effect and uncertainty with methods suited to the design.

5

Evaluate. Check assumptions and sensitivity, then seek relevant independent evidence.

6

Communicate & iterate. Report the evidence and limitations. Turn unresolved questions into the next study.

What decision in your own study
needs attention before the next experiment?

Questions & discussion

Appendix · Optional discussion

References and further reading

Yu B, Barter RL. Veridical Data Science. MIT Press, 2024. Chapters 1–2, 4–5. vdsbook.com. Life-cycle organization, data preparation and exploration; adapted for biomedical experiments and inference.

Akey JM, Biswas S, Leek JT, Storey JD. On the design and analysis of gene expression studies in human populations. Nat Genet 2007;39:807–808.

Begley CG, Ellis LM. Raise standards for preclinical cancer research. Nature 2012;483:531–533.

Benjamini Y, Hochberg Y. Controlling the false discovery rate. J R Stat Soc B 1995;57:289–300.

Bennett CM, Baird AA, Miller MB, Wolford GL. Neural correlates of interspecies perspective taking in the post-mortem Atlantic salmon. J Serendipitous Unexpected Results 2010;1:1–5.

Bell ML, Whitehead AL, Julious SA. Guidance for using pilot studies to inform the design of intervention trials with continuous outcomes. Clin Epidemiol 2018;10:153–157.

Button KS et al. Power failure: why small sample size undermines the reliability of neuroscience. Nat Rev Neurosci 2013;14:365–376.

Collins FS, Tabak LA. Policy: NIH plans to enhance reproducibility. Nature 2014;505:612–613.

Cumming G. The new statistics: why and how. Psychol Sci 2014;25:7–29.

Errington TM et al. Investigating the replicability of preclinical cancer biology. eLife 2021;10:e71601.

Freedman LP, Cockburn IM, Simcoe TS. The economics of reproducibility in preclinical research. PLoS Biol 2015;13:e1002165.

Fisher RA. Presidential address, First Indian Statistical Congress. Sankhyā 1938;4:14–17.

Gelman A, Carlin J. Beyond power calculations: assessing Type S and Type M errors. Perspect Psychol Sci 2014;9:641–651.

Gigerenzer G, Gaissmaier W, Kurz-Milcke E, Schwartz LM, Woloshin S. Helping doctors and patients make sense of health statistics. Psychol Sci Public Interest 2007;8:53–96.

NHGRI–EBI GWAS Catalog. Genome-wide association studies and the common genome-wide significance threshold. ebi.ac.uk/gwas. Accessed 19 October 2026.

Keaton JM et al. Genome-wide analysis in over 1 million individuals of European ancestry yields improved polygenic risk scores for blood pressure traits. Nat Genet 2024;56:778–791. doi:10.1038/s41588-024-01714-w. GWAS Catalog GCST90310294.

Hirschhorn JN, Lohmueller K, Byrne E, Hirschhorn K. A comprehensive review of genetic association studies. Genet Med 2002;4:45–61.

Hirst JA et al. The need for randomization in animal trials: an overview of systematic reviews. PLoS ONE 2014;9:e98856.

Ioannidis JPA. Why most published research findings are false. PLoS Med 2005;2:e124.

Kahneman D. Thinking, Fast and Slow. Farrar, Straus and Giroux, 2011 (the flight-instructor story).

Kriegeskorte N, Simmons WK, Bellgowan PSF, Baker CI. Circular analysis in systems neuroscience: the dangers of double dipping. Nat Neurosci 2009;12:535–540.

Lee JD, Sun DL, Sun Y, Taylor JE. Exact post-selection inference, with application to the lasso. Ann Stat 2016;44:907–927.

Landis SC et al. A call for transparent reporting to optimize the predictive value of preclinical research. Nature 2012;490:187–191.

Lazic SE, Clarke-Williams CJ, Munafò MR. What exactly is “N” in cell culture and animal experiments? PLoS Biol 2018;16:e2005282.

Shmueli G. To Explain or to Predict? Stat Sci 2010;25:289–310.

Lazic SE. The problem of pseudoreplication in neuroscientific studies. BMC Neurosci 2010;11:5.

Macleod MR et al. Evidence for the efficacy of NXY-059 in experimental focal cerebral ischaemia is confounded by study quality. Stroke 2008;39:2824–2829.

Morton V, Torgerson DJ. Effect of regression to the mean on decision making in health care. BMJ 2003;326:1083–1084.

Pearl J, Mackenzie D. The Book of Why. Basic Books, 2018 (Simpson's paradox example).

Peña EA. Basic Statistical Ideas for Biomedical Researchers (2024) and Logic of Statistical Inference (2025). BMSC 700 guest lectures.

Perrin S. Preclinical research: make mouse studies work. Nature 2014;507:423–425.

Percie du Sert N et al. The ARRIVE guidelines 2.0. PLoS Biol 2020;18:e3000410.

Polack FP et al. Safety and efficacy of the BNT162b2 mRNA Covid-19 vaccine. N Engl J Med 2020;383:2603–2615.

Prinz F, Schlange T, Asadullah K. Believe it or not: how much can we rely on published data on potential drug targets? Nat Rev Drug Discov 2011;10:712.

Scott S et al. Design, power, and interpretation of studies in the standard murine model of ALS. Amyotroph Lateral Scler 2008;9:4–15.

Simmons JP, Nelson LD, Simonsohn U. False-positive psychology. Psychol Sci 2011;22:1359–1366.

Vaux DL, Fidler F, Cumming G. Replicates and repeats: what is the difference and is it significant? EMBO Rep 2012;13:291–296.

Wasserstein RL, Lazar NA. The ASA statement on p-values. Am Stat 2016;70:129–133.

Weissgerber TL et al. Beyond bar and line graphs: time for a new data presentation paradigm. PLoS Biol 2015;13:e1002128.

Appendix · Optional discussion

Appendix

Optional discussion: preliminary data and confirmation, optional stopping, power, method selection and further examples.

Appendix · Optional discussion

Peeking: plan the stopping rule before testing

–
false positives, fixed n = 30, test once
–
false positives, test after each +3 per group

Repeated looks change the procedure

“Add three more mice if p > 0.05; stop if p < 0.05” gives repeated chances to cross the threshold under the null.

Choose before collecting confirmation data

  • A fixed sample size with one planned final test, or
  • A valid sequential design with planned looks, stopping boundaries and appropriate inference.
An interim look can be legitimate. The testing and interval procedures must account for the stopping rule.
Null simulation: test at 6 mice per group, then after each additional 3, up to 30 per group. The comparison concerns an unadjusted p < 0.05 stopping rule.
Appendix · Optional discussion

Selection and selective inference

Why fix the target before examining fresh outcomes?

P-hacking and double dipping

P-hacking: choose analyses or reported results because their p-values are favorable, without accounting for the search.

Double dipping: use data to construct a feature or group, then assess it using the same information as if construction and assessment were independent.

Separate gene example: select genes with the largest treated–control increases, then test the group difference in their average expression using the same samples. The score was constructed to separate those samples.

Account for the selection rule

Selective inference: tests and CIs account for how the outcome or model was selected.

Return to the pilot: day-21 tumor volume had the smallest p = 0.01 among 20 outcome/timepoint tests.

A conditional method asks: under H₀, how unusual is the result among datasets where the same screen selects day 21?

Simpler familywise safeguard: for these 20 valid tests, Bonferroni gives 20 × 0.01 = 0.20. This is not a conditional selective p-value or a correction for the gene score.

Exploration is useful. Confirm the chosen question in independent data, or use inference that accounts for the documented selection process.
Kriegeskorte et al. (2009), circular analysis · Simmons et al. (2011), analysis flexibility · Lee et al. (2016), selective inference.
Appendix · Optional discussion

Can preliminary data contribute to confirmation?

The answer depends on how the observations influenced the question and analysis.

RouteWhat to doWhat to watch
New experimentUse the pilot to plan; test the chosen question in new independent units.Report stages separately. Pooling a selected pilot with new data needs justification.
Untouched holdoutReserve whole animals, donors or participants before selection or tuning.Keep outcomes untouched. Splitting after inspection does not undo selection.
Inference that allows reuseMatch the method to the selection rule or planned interim adaptation.Tests and CIs need appropriate adjustment. Preregistration cannot erase prior selection.
All data already exploredDescribe the search and findings; plan independent confirmation.Keep claims exploratory when suitable adjusted inference is unavailable.
Design the follow-up: choose a meaningful effect; examine plausible SDs and attrition; fix the outcome/time, contrast, exclusions, analysis, multiplicity and stopping rule.
Kriegeskorte et al. 2009; Lee et al. 2016; Bell et al. 2018. Selective inference and adaptive designs solve different problems; neither is a universal correction.
Appendix · Optional discussion

What a reviewer, and a reader, looks for in your methods

In the methods and results

  • n per group, and what n counts: animals, litters, wells, cells
  • How allocation was randomized and who was blinded, where applicable
  • The pre-specified primary outcome and analysis; any deviations
  • Missing data and exclusions, with reasons and pre-specified rules
  • Effect with CI; numerical p when relevant; method, assumptions and rationale
  • Which error bar, in every legend
  • Software and version; code and data where possible

Checklists that editors use

ARRIVE 2.0 · animal studiesCONSORT · trialsSTROBE · observationalMIQE · qPCRPRISMA · reviews
ARRIVE Essential 10
  1. Study design
  2. Sample size
  3. Inclusion and exclusion criteria
  4. Randomisation
  5. Blinding
  6. Outcome measures
  7. Statistical methods
  8. Experimental animals
  9. Experimental procedures
  10. Results

Many reporting requirements begin with decisions made before data collection.

Percie du Sert et al. 2020 (ARRIVE 2.0). NIH evaluates rigor in applicable grant mechanisms; follow the current funding opportunity and application instructions.
Appendix · Optional discussion

The cost of getting it wrong

6 of 53
selected landmark cancer studies whose key findings Amgen reported confirming
Begley & Ellis 2012
~1 in 4
of 67 Bayer drug-target projects fully consistent with the published findings
Prinz et al. 2011
46%
of 112 assessed effects met at least 3 of 5 replication criteria in selected cancer studies
Errington et al. 2021
$28B
annual US preclinical spending associated with irreproducibility in a 2015 model-based estimate
Freedman et al. 2015

Eight ALS treatments put to the test again

Scott et al. (2008) retested eight compounds previously reported to help SOD1 ALS mice, using improved study designs. They found no survival benefit at the previously reported doses and routes, including for riluzole. This result concerns those regimens in that mouse model.

Sex, litter, transgene copy number and unrelated deaths can distort survival comparisons. Design and model limitations can create misleading efficacy signals. Better design makes the evidence more informative.

These are selected studies and different definitions of replication, not a field-wide failure rate. ALS: Scott et al. 2008. Rigor: Landis et al. 2012; Collins & Tabak 2014.
Appendix · Optional discussion

How many mice would you ask IACUC for?

  • You want 80% power: an 80% chance of detecting the effect if it is real.
  • Effect worth detecting: 150 mm³, 500 → 350. Noise: SD 120 mm³. Rule: p < 0.05, one-sided.
  • You have just seen: 3 per group gives 36%, 6 per group gives 64%.

Standardized effect d = 150 / 120 = 1.25, a large standardized difference; biological importance depends on context.

Mice per group?

A
3 per group
B
6 per group
C
9 per group
D
20 per group
E
40 per group

About 9 per group. Even for an effect this large, n = 3 gives only about a one-in-three chance of seeing it.

Appendix · Optional discussion

Power by brute force: simulate 1,000 experiments

Repeated studies under one specified true effect. One-sided test for a reduction. Magnitude exaggeration: mean absolute significant estimate divided by the true magnitude. Gelman & Carlin 2014.
–
Power, 1 − β
experiments with p < 0.05
–
Missed-effect rate, β
experiments that do not reject
–
Mean significant estimate
mm³; true effect −150
–
Magnitude exaggeration
among significant: mean |estimate| / 150
  • The hit rate is the power. With 3 per group it is about 36%, the same number the calculation gave.
  • If we select only significant results, their effects are exaggerated on average. Low power warns about this selection; it does not tell us whether one result is true.
Independent normal groups, SD 120; true effect −150 mm³. One-sided α = 0.05, treated − control. Blue: reject H₀ for reduction. Gray: do not reject. Histogram compares all estimates with the selected significant estimates.
Appendix · Optional discussion

Power for every n: where 80% lands

d = reduction magnitude / SD; signed effect is −d × SD
–
per group for 80% power
–
power with 3 per group
–
power with 10 per group
  • Power depends on effect size, variability, α, n and design. Better measurement or blocking can reduce unexplained variation.
  • With other inputs fixed, halving the target effect requires roughly four times as many independent units.
  • For 80% power here: power.t.test(delta = 150, sd = 120, power = 0.8, alternative = "one.sided") gives n ≈ 8.68; round up to 9 per group.
  • Approximation: n ≈ 12.37 / d² per group for 80% power and one-sided α = 0.05. Use the t calculation for small n; examine uncertain SD values.
Equal-size, independent normal groups with equal variances; one-sided α = 0.05. Standardized effects are useful for calculation; biological importance depends on context. 80% is a planning choice, not a guarantee.
Appendix · Optional discussion

Which method? Start with the question, outcome and design

OutcomeTwo independent groupsTwo paired or matchedThree or more independent groupsRelationship with a continuous predictorAdjusting for covariates or repeated measures
Continuous; target: meant-test (Welch)Paired t-testANOVA or Welch ANOVA; planned contrastsPearson correlation, linear regressionANCOVA, linear mixed model
Ordinal or skewed; target mattersMann–WhitneySigned-rank* or sign testKruskal–WallisSpearman correlationOrdinal, rank-based or robust models; transforms change the scale
Binary, yes or noChi-square, Fisher exactMcNemarChi-squareLogistic regressionLogistic regression, GEE
CountsPoisson or negative-binomial regression; rates need exposure offsets; repeated counts need models for clustering
Time to event, with censoringLog-rank test, Kaplan–MeierMatched/stratified survival analysisLog-rankCox regressionCox; frailty or cluster methods
Design first: what effect or prediction do you want? Identify independent units, pairing, repeated measures and clusters. Plot the data.
Assumptions affect validity and power. Rank tests also have assumptions. *Signed-rank needs symmetric paired differences; ranks do not generally compare means or medians.
Report an interpretable effect and CI, the method and a numerical p-value when relevant. This table lists starting points; it is not an automatic selector.
Appendix · Optional discussion

Regression to the mean: selected extremes tend to move inward

–
baseline mean, selected
–
follow-up mean, no treatment
–
“change”
  • When measurements include transient variation, extreme values tend to be less extreme on repeat measurement, on average.
  • Where it bites: selecting patients with extreme screening values, uncontrolled pre/post studies, or choosing “responders” from noisy measurements.
  • Fix: a concurrent randomized control selected the same way. Pre-specify the between-arm comparison; baseline-adjusted analysis (ANCOVA) is often efficient.
In the wildSelecting patients for a high screening value can produce a lower follow-up mean without treatment. An uncontrolled before–after change cannot separate this from efficacy (Morton & Torgerson 2003).
Simulation: 300 mice measured twice with no intervention, test–retest correlation 0.5. Each line connects one animal's baseline to its follow-up.Galton 1886
Appendix · Optional discussion

Medical screening: 1,000 people

One diagnostic test per person. Assume prevalence 0.4%, sensitivity 80% and specificity 90%.
Among people with a positive test, what fraction have the condition?

A
less than 1%
B
1% to 10%
C
10% to 50%
D
50% to 80%
E
80% or more
Answer B, about 3%. With prevalence 0.4%, sensitivity 80% and specificity 90%, expect 3.2 true positives and 99.6 false positives: 3.2 / 102.8 ≈ 3.1%. The tree shows expected counts, illustrating why the base rate matters.
Teaching assumptions, not clinical test-performance estimates. The tree shows expected counts; actual samples vary. Positive predictive value depends on prevalence, sensitivity and specificity.After Gigerenzer
Appendix · Optional discussion

Research findings: 1,000 hypothesis tests

Each test addresses one hypothesis and may involve many subjects.

Assumptions for this research example

InputAssumed value
Fraction with a real effect10% (100 tests)
Fraction with no effect90% (900 tests)
Power for each real effect20%
False-positive rate for each true null5%
Unadjusted significance rulep < 0.05

Among significant results, what fraction correspond to real effects?

Expected: 20 true and 45 false discoveries.
20 / (20 + 45) ≈ 31% under this model.

Hypothetical assumptions chosen for this research portfolio. The result is not a probability for a particular study from its exact p-value. After Ioannidis 2005.
1 / 43

Contents · Appendix below · Esc to close

    → Space next step or slide
    ← previous
    Home End first and last slide
    T table of contents
    F fullscreen
    B blank screen
    P print view (then File → Print to PDF)
    Esc close overlays