Your quick reference
Describing data
- Mean is pulled by outliers; median is not. Skewed data, report the median.
- Right skew often pulls the mean above the median; left skew often pulls it below. This is a tendency, not a universal theorem.
- IQR = Q3 - Q1. Outlier if below Q1 - 1.5×IQR or above Q3 + 1.5×IQR.
- s2 = ∑(x-x̄)2/(n-1). The n-1 is Bessel's correction; dividing by n underestimates.
Normal distribution
- z = (x - μ)/σ
- 68-95-99.7 within 1, 2, 3 standard deviations
- Standard normal has μ = 0, σ = 1
Sampling distributions
Central Limit Theorem: for independent, identically distributed observations with finite variance, the standardized sample mean approaches a normal distribution as n grows. Mean = μ; standard error = σ/√n. Strong skew or heavy tails may need much more than 30 observations.
Under these assumptions, quadrupling the sample size halves the standard error, not necessarily the observed estimation error.
Confidence intervals
- Mean, σ unknown: x̄ ± t*(s/√n), df = n-1
- Proportion: p̂ ± z*√(p̂(1-p̂)/n)
- z* = 1.645 (90%), 1.96 (95%), 2.576 (99%)
Use independent random observations. A t interval needs approximately normal sample means; the proportion interval needs sufficiently many successes and failures (commonly at least 10 each).
A 95% CI does not mean 95% probability the parameter is in this interval. It means 95% of intervals built this way would contain it. This distinction is worth marks.
Hypothesis testing
- State H0 and Ha. H0 always has the equals.
- Check the conditions of the chosen test: study design, independence, distribution shape or success/failure counts as appropriate.
- Compute the test statistic.
- Find p, compare to α.
- p ≤ α: reject H0. Otherwise fail to reject.
Never "accept H0". Absence of evidence is not evidence of absence.
Test statistics
| One mean | t = (x̄-μ0)/(s/√n) |
| One proportion | z = (p̂-p0)/√(p0(1-p0)/n) |
| Two means | t = (x̄1-x̄2)/√(s12/n1+s22/n2) |
| Chi-square | χ2 = ∑(O-E)2/E |
The two-means formula is for independent groups testing a zero mean difference (Welch test). A paired design tests within-pair differences. Proportion tests check counts under H0; chi-square tests require adequate expected counts.
Errors and power
- Type I: rejecting a true H0. Probability = α.
- Type II: failing to reject a false H0. Probability = β.
- Power = 1 - β. Rises with larger n, larger effect size, larger α.
With the same design, sample size and effect, lowering α generally reduces Type I error and increases Type II error.
Regression
- ŷ = b0 + b1x
- r ranges -1 to 1; in simple linear regression with an intercept, r2 is the fraction of sample variation in y explained by the fitted model
- Residual = observed - predicted. Patterned residuals suggest the linear model or its assumptions need review.
- Correlation is not causation, and r only measures LINEAR association.