Hypothesis Testing for Causal Effects — Se Yoon Lee, Ph.D.

Choose an estimand, estimator, null value, alternative, and significance level. Then connect the estimate to its standard error, reference distribution, confidence interval, p-value, Type I error, and power—without confusing statistical evidence with causal validity.

Central question: If the target risk difference equaled the chosen null value, would the observed estimate be unusually far from that value relative to its estimated sampling uncertainty?
GRADUATE-LEVEL • NATIVE MATHML • INLINE SVG

Mathematical formulation

Estimand, null hypothesis, Wald statistic, p-values, matching confidence sets, Type I error, and power.

RISK-DIFFERENCE SCALE
Potential outcomes → marginal causal risk difference → point null
RDATE=E{Y(1)}E{Y(0)};H0:RD=RD0

Two-sided alternative

HA:RDRD0

Evidence can arise from either a sufficiently positive or sufficiently negative departure from the null.

Directional alternatives

HA:RD>RD0orRD<RD0

A one-sided direction should be scientifically justified and specified before seeing the estimate.

Observed versus causal contrast

E(Y|T=1)E(Y|T=0)RD

The crude comparison generally targets an association rather than the adjusted causal estimand.

1. Null reference distribution and observed test statistic

The shaded region is the rejection region for the selected alternative and α.

standard-normal density under H₀observed zcritical value
The reference curve is an approximation for the Wald statistic. It is not the distribution of the causal effect itself.

2. Interpretation of the current test

Statistical conclusion, effect magnitude, interval, estimand, and assumptions.

3. Effect estimate, null value, and confidence intervals

The matching Wald interval is shown separately from the lecture’s stored interval.

matching Wald intervallecture intervalestimatenull value

4. Confidence curve: p-value versus the hypothesized null

Move the null slider or inspect every possible point null on the same scale.

Wald p-value functionα thresholdcurrent null
For the matching Wald procedure, point-null values with p ≥ α form the corresponding confidence set.

5. Power curve under the selected standard error

Power is computed under the normal approximation while varying the true risk difference.

powerαassumed true RD
At the null, rejection probability is approximately α. Power rises when the true effect moves into the direction detected by the chosen test.

6. Repeated-sampling experiment

Simulate estimates from the working model \(\widehat{RD}\sim N(RD_{true},SE^2)\).

The simulation uses the currently selected standard error and test rule.
This simulation illustrates the working reference model. It does not diagnose confounding, poor overlap, model failure, or bootstrap validity.

7. Lecture results: crude and adjusted tests

Click a method to load its estimate, standard error, stored interval, and inferential interpretation.

MethodEstimate (pp)SE (pp)z for H₀: RD=0two-sided plecture 95% intervalSE source

8. Full-estimator bootstrap workflow for adjusted methods

The lecture’s adjusted p-values use a bootstrap standard error inside a normal/Wald test.

1
Resample unitsDraw n observed rows with replacement.
2
Refit nuisance modelsRefit the treatment and/or outcome model.
3
Recompute estimatorRebuild IPW, OR, or DR risk difference.
4
Estimate SEUse the standard deviation of successful bootstrap estimates.
5
Form Wald zz = (estimate − null)/bootstrap SE.
Important: refitting only the final arithmetic while holding nuisance fits fixed understates full-procedure uncertainty.

9. Four layers that must remain separate

Hypothesis testing occupies only one layer of a causal analysis.

Causal question

What would happen to the target population under smoking versus non-smoking?

Identification & estimation

Which assumptions and estimator connect observed data to the causal risk difference?

Statistical uncertainty

How far is the estimate from the null relative to sampling uncertainty?

Causal-validity uncertainty

How sensitive is the result to unmeasured confounding and other violations?

A small p-value in the statistical layer cannot repair a failure in the identification layer.

10. Hypothesis-testing checklist

Use this checklist before interpreting “significance” causally.

1. EstimandIs the test about a crude association or an adjusted causal estimand?
2. Null value and scaleIs the null defined on the RD, RR, log-RR, odds-ratio, or another scale?
3. Standard errorDoes uncertainty include all fitted nuisance components and estimation steps?
4. Reference approximationIs the Wald/normal approximation adequate, or is another procedure needed?
5. IdentificationAre consistency, exchangeability, and positivity plausible?
6. MagnitudeIs the estimated difference scientifically meaningful, not merely detectable?
7. DirectionWas a one-sided alternative justified and specified in advance?
8. SensitivityWhat happens under unmeasured confounding, poor overlap, or modeling changes?
9. ReportingReport estimate, interval, p-value, method, target, and assumptions together.

Export and inspect

All plots use resolution-independent inline SVG.