Cheat sheets

Statistics / Chapter 4

Inference for Quantitative Data: Means

Cheat sheet

Mean conditions and t

  • For independent samples, E(Xˉ)=μE(\bar X)=\mu SD(Xˉ)=σ/nSD(\bar X)=\sigma/\sqrt n When population SD is unknown, estimate SE=s/nSE=s/\sqrt n
  • Check design, independent observational units and the 10% guideline when relevant. For small samples inspect the population/sample shape and outliers; larger samples tolerate some skew but do not excuse severe outliers automatically.
  • One-sample t has df=n−1df=n-1 under normal independent sampling. Smaller df gives heavier tails; critical values also depend on confidence level.

One mean and paired differences

  • Interval: xˉ±t∗s/n\bar x\pm t^*s/\sqrt n Test: t=(xˉ−μ0)/(s/n)t=(\bar x-\mu_0)/(s/\sqrt n) Specify the alternative, calculate the matching tail probability, and interpret the population mean in context.
  • For matched pairs, define one difference per pair in a stated order. Analyze dˉ\bar d using sd/ns_d/\sqrt n and df=n−1df=n-1 where n counts pairs. Inspect the distribution of differences and independence across pairs.
  • A mean interval does not predict a corresponding percentage of individual observations. Pairing by itself does not eliminate time/order confounding in an uncontrolled before/after study.

Two independent means

  • SE=s12/n1+s22/n2SE=\sqrt{s_1^2/n_1+s_2^2/n_2} Independent variances add even though the means are subtracted. Check conditions separately for both groups.
  • Welch interval: (xˉ1−xˉ2)±t∗SE(\bar x_1-\bar x_2)\pm t^*SE Test: t=((xˉ1−xˉ2)−Δ0)/SEt=((\bar x_1-\bar x_2)-\Delta_0)/SE usually with Δ0=0\Delta_0=0
  • Welch degrees of freedom: df=(s12/n1+s22/n2)2(s12/n1)2/(n1−1)+(s22/n2)2/(n2−1)df=\dfrac{(s_1^2/n_1+s_2^2/n_2)^2}{(s_1^2/n_1)^2/(n_1-1)+(s_2^2/n_2)^2/(n_2-1)} Software may report a noninteger value; do not substitute paired df or automatically pool variances.
  • Keep group order and units explicit. Random selection supports population inference; randomized treatment assignment supports causal interpretation within the study’s scope.

Simulation and power

  • Simulate the null, preserve the sampling/assignment mechanism and sample sizes, calculate the same statistic, and count outcomes at least as extreme (including ties) according to the alternative.
  • Estimated p-value = qualifying simulations / repetitions. Zero qualifying outcomes in a finite run does not mean the true tail probability is zero; report resolution and use any formal Monte Carlo correction consistently.
  • At a specified alternative, power =1−β=1-\beta Holding other features fixed, lowering alpha reduces Type I error but generally reduces power. Larger samples, larger true effects and lower variability generally improve power.
  • A significant effect can be practically small. A non-significant result can reflect low power; report an estimate and its uncertainty where useful.

Select the procedure

  • Categorical outcome: proportion methods or chi-square for categorical association/distribution comparison. Quantitative outcome: mean methods. Decide whether groups are independent or paired before choosing a formula.
  • An interval estimates a parameter; a test evaluates a specified claim. For a compatible two-sided test and confidence interval using the same method, a null value outside the 1−alpha interval is rejected at alpha.
  • Do not automatically equate an unpooled two-proportion interval with a pooled-null test: their standard errors differ. Assumptions, method and sidedness must match.

Diagrams

t and normal references
t distributions with 9 and 29 degrees of freedom compared with the standard normal. All are centered at zero. Smaller df gives heavier tails; central 95% critical values are about 2.262, 2.045 and 1.960 respectively.
t distributions with 9 and 29 degrees of freedom compared with the standard normal. All are centered at zero. Smaller df gives heavier tails; central 95% critical values are about 2.262, 2.045 and 1.960 respectively. Source
Power under a specified alternative
Illustrative normal model with SD 1. Reject for an estimate above 1.645, giving null right-tail area 0.05. Under a mean-2 alternative, highlighted rejection probability is about 0.639. The remaining alternative area is Type II error probability.
Illustrative normal model with SD 1. Reject for an estimate above 1.645, giving null right-tail area 0.05. Under a mean-2 alternative, highlighted rejection probability is about 0.639. The remaining alternative area is Type II error probability. Source

Sign in