Step 4 of 6 in Statistics & Probability
Statistical Inference
Estimation, confidence, hypothesis testing, and their misreadings. Citation needed
The whole, before the parts
Inference runs probability backwards: instead of asking what data a known process would produce, it asks what processes could plausibly have produced the data in hand. The single idea that carries it is the sampling distribution — treat your summary statistic as one draw from the distribution of summaries that repeated sampling would give, and both of the field's tools, the confidence interval and the hypothesis test, fall out as readings of that one distribution. Most famous misuses of statistics are misreadings of these two tools, so the misreadings are part of the subject. Citation needed
Terminology and core concepts
-
Population, sample, parameter, statistic
The population is everything you want to know about; the sample is the part you actually measured; a parameter is a number describing the population, and a statistic is a number computed from the sample to estimate it. Citation needed
- Is the true average height of all adults a parameter or a statistic?
- a parameter Citation needed
- Is your sample's mean a parameter or a statistic?
- a statistic Citation needed
- Which of the two is random across repeated sampling?
- the statistic Citation needed
- What makes a sample representative?
- being drawn at random from the population Citation needed
- Why does a huge biased sample stay biased?
- size repeats the bias; it does not dilute it Citation needed
-
Sampling distribution and standard error
The sampling distribution of a statistic is the distribution it would have over endless repeated samples; its standard deviation is called the standard error, and for a mean of n independent draws it is σ/√n — with the central limit theorem making the shape approximately normal. Citation needed
- What varies in the sampling distribution's imagined repetitions?
- the sample, hence the statistic Citation needed
- What is a standard error?
- the standard deviation of a statistic Citation needed
- What is the standard error of a mean of n independent draws?
- σ/√n Citation needed
- What does quadrupling n do to the standard error of the mean?
- halves it Citation needed
- Why is the sample mean's distribution roughly normal even for skewed data?
- the central limit theorem Citation needed
-
Confidence intervals
For an approximately normal estimate, a rough 95% confidence interval is the estimate ± 2 standard errors; the procedure covers the true parameter in 95% of repeated samples. The 95% describes the procedure, not any one interval — a computed interval either contains the parameter or does not. Citation needed
- What is the rough recipe for a 95% interval for a mean?
- sample mean ± 2 standard errors Citation needed
- What does the 95% apply to?
- the procedure over repeated samples Citation needed
- Is "95% chance the parameter is in this interval" a correct reading?
- no — the parameter is fixed, not random Citation needed
- What does a wide interval tell you?
- the data settle little Citation needed
- With other conditions fixed, how does more data usually affect interval width?
- it narrows the interval Citation needed
-
Hypothesis testing
A test asks whether the data are too surprising to sit comfortably with the null hypothesis: compute how many standard errors the observed statistic sits from the null's prediction, and reject the null if the discrepancy is beyond what chance plausibly gives. Citation needed
- Which hypothesis does a test assume while computing?
- the null Citation needed
- What is the test statistic, in standard-error terms?
- observed minus null value, over the standard error Citation needed
- What does failing to reject the null establish?
- nothing — absence of evidence, not evidence of absence Citation needed
- What is the significance level α?
- the surprise threshold chosen before testing Citation needed
- What is the conventional, and arbitrary, value of α?
- 0.05 Citation needed
-
Reading a p-value
The p-value is the probability, computed under the null, of data at least this extreme; it is not the probability the null is true, and a small p-value indicates a discrepancy with that model, not a large or important effect. Citation needed
- Under which hypothesis is the p-value computed?
- the null Citation needed
- Is p = 0.03 the probability the null is true?
- no — it conditions the wrong way Citation needed
- Does p = 0.001 mean a big effect?
- no — a tiny effect with huge n can give it Citation needed
- Is p = 0.06 versus p = 0.04 a meaningful difference?
- not by that threshold alone; the estimates and uncertainty matter Citation needed
- Does a p-value plus a prior determine P(null | data)?
- no; a Bayesian analysis needs likelihood models for the hypotheses Citation needed
-
Two errors and power
A Type I error rejects a true null (rate α); a Type II error misses a real effect (rate β); power = 1 − β is the chance of detecting an effect that is really there, and it is bought with sample size, effect size, or a looser α. Citation needed
- What is a Type I error?
- rejecting a null that is true Citation needed
- What is a Type II error?
- failing to reject a null that is false Citation needed
- What is power?
- the probability of detecting a real effect Citation needed
- What does an underpowered study's null result mean?
- little — it likely could not have detected the effect Citation needed
- What happens to power as sample size grows?
- it rises Citation needed
- What does tightening α from 0.05 to 0.01 do to power?
- lowers it Citation needed
-
Significance is not importance
Statistical significance means a result passes a chosen test threshold under its assumptions. It does not measure practical importance. Report the estimated effect and its uncertainty rather than relying on the threshold alone. Citation needed
- What does "statistically significant" literally mean?
- the p-value meets the chosen significance threshold Citation needed
- A drug lowers blood pressure 0.2 mmHg, p < 0.001 with n = 500,000; important?
- no — detectable but clinically trivial Citation needed
- Which report conveys effect size, the p-value or the interval?
- the interval Citation needed
- Can an effect be important but not significant?
- yes — in a small, noisy study Citation needed
-
Multiple comparisons and selective reporting
Test twenty true nulls at α = 0.05 and about one will "succeed" by chance; running many tests and reporting only the winners manufactures findings, which is why hypotheses must be declared before the data are peeked at and all tests counted. Citation needed
- Expected false positives from 100 true nulls at α = 0.05?
- about 5 Citation needed
- What is p-hacking?
- trying analyses until one crosses 0.05 Citation needed
- What does the Bonferroni correction do for m tests?
- tests each at α/m Citation needed
- What is publication bias?
- significant results get published, nulls do not Citation needed
- What is preregistration for?
- fixing the hypotheses before seeing the data Citation needed
Problems that prove it
-
A coin is flipped 400 times and lands heads 230 times. Test whether the coin is fair.
Drills: the full test — null, standard error, test statistic, verdict.
Derivation steps
- Null: p = 0.5, predicting 200 heads.
- Standard deviation of the count under the null: √(400 × 0.5 × 0.5) = 10.
- Test statistic: (230 − 200)/10 = 3.
- Three standard errors out; the two-sided p-value is about 0.003.
- Far beyond α = 0.05 surprise: reject fairness.
Citation needed
-
Explain what is wrong with: "p = 0.04, so there is a 96% chance our treatment works."
Drills: the canonical p-value misreading.
Derivation steps
- The p-value is P(data this extreme | null true).
- The quoted claim is about P(treatment works | data) — the reversed conditional.
- Reversing a conditional requires Bayes' rule and a prior; none was used.
- If effective treatments are rare a priori, the real P(works | data) can be far below 96%.
Citation needed
Sources
- David Freedman, Robert Pisani, and Roger Purves, Statistics — the box-model account of standard errors and tests.
- David Spiegelhalter, The Art of Statistics — inference and its misreadings for working readers.
- Larry Wasserman, All of Statistics — the compact formal statement of everything here.
Learning path
Continue through Statistics & Probability in order, using the concepts above to connect this topic to the next.