Priority labels: ImportantNeutralLess important show where to spend revision time.
The one-sample t-test for a meanImportant
To test a claim μ = μ₀, standardise the sample mean with the estimated standard error. The reference model is Student's t with n − 1 degrees of freedom.
Conditions are those of the t-interval: independence (randomisation, 10%) and a nearly Normal population, judged more strictly as n shrinks. State hypotheses about μ before looking at the data.
| Alternative | p-value | TI-84 |
|---|---|---|
| μ ≠ μ₀ | 2 × P(Tₙ₋₁ > |t|) | 2·tcdf(|t|, 1E99, df) |
| μ > μ₀ | P(Tₙ₋₁ > t) | tcdf(t, 1E99, df) |
| μ < μ₀ | P(Tₙ₋₁ < t) | tcdf(−1E99, t, df) |
A shortcut for the whole test: STAT ▸ TESTS ▸ 2:T-Test. Beware the unexpected direction: if H_A says "greater" but the sample mean falls below μ₀ (say z = −0.8), the one-sided p-value is large, about 0.79 — no evidence in the claimed direction.
One-sided versus two-sided in practiceImportant
For z = 1.64 a two-sided test gives p ≈ 0.10, while an upper one-sided test gives p ≈ 0.05. The one-sided test puts all of α in one tail, which makes rejection easier but only in the chosen direction. Choose before the data arrive.
Intervals and tests agreeImportant
A C% interval corresponds to a two-sided test at α = 1 − C/100: 95% ↔ 0.05, 99% ↔ 0.01, 90% ↔ 0.10. If μ₀ sits inside the interval you fail to reject; outside, you reject. A one-sided test at α = 0.05 matches a 90% interval, because 5% sits in each tail of that interval.
Example: a 95% interval of [35.59, 54.93] contains 40, so H₀: μ = 40 is not rejected at α = 0.05. The interval also tells you the range of plausible values, which the test alone does not.
The paired t-testImportant
When each observation in one condition is naturally linked to one in the other (before/after on the same unit, twins, the same person rating two products), work with the differences. Pairing removes unit-to-unit variation, so it usually gains power over an unpaired analysis.
- Hypotheses concern the mean difference μ_d, typically H₀: μ_d = 0.
- All conditions apply to the differences: independent pairs, random sample, near-Normal differences (histogram of the dᵢ).
- Interval: d̄ ± t*ₙ₋₁·s_d/√n.
The TI-84 has no separate paired test: put the columns in L1 and L2, define L3 = L1 − L2, and run T-Test on L3 with μ₀ = 0. In R use t.test(after, before, paired = TRUE).
The significance level αImportant
α is the cut-off you commit to before seeing the p-value. The 0.05 convention is a tradition, not a law of nature, and a p-value of 0.049 is hardly different from 0.051. Choosing α afterwards to obtain the verdict you wanted is manipulation. Statistical software often marks results with stars: “.” for p ≤ 0.10, “*” for p ≤ 0.05, “**” for p ≤ 0.01 and “***” for p ≤ 0.001.
Type I and Type II errorsImportant
| H₀ true | H₀ false | |
|---|---|---|
| Reject H₀ | Type I error (probability α) | Correct: power = 1 − β |
| Fail to reject H₀ | Correct | Type II error (probability β) |
A Type I error is a false alarm (convicting an innocent person); a Type II error is a miss (letting a guilty person go). α is whatever you set. β is harder: it depends on the true parameter, so you evaluate it for a specific, meaningful alternative. For a fixed sample, lowering α raises β. The only way to reduce both is to collect more data.
Effect size and practical importanceImportant
Statistical significance (p < α) says the data clash with H₀. Practical significance asks whether the difference is big enough to matter. With a large sample a trivial gap can be significant; with a small one a large gap can be missed. Report the p-value together with the observed effect (ȳ − μ₀) and an interval.
PowerImportant
| Change | Effect on power |
|---|---|
| Larger sample size | Up (narrower sampling distribution) |
| Larger true effect | Up (the two distributions separate) |
| Larger α | Up, at the price of more Type I errors |
| Smaller σ | Up |
| One-sided instead of two-sided | Up, in the pre-chosen direction |
Studies are often planned for 80% or 90% power; the target is a scientific and financial decision, since more power means a bigger sample.
A power calculation
Test H₀: μ = 50 against H_A: μ > 50 with σ = 8, n = 36 and α = 0.05. What is the power if the true mean is 53?
Standard deviation of ȳ
Rejection cut-off under H₀
Probability of exceeding it when μ = 53
Power ≈ 73%, so β ≈ 27%. Try n = 60 in the lab: power climbs above 90%.
PitfallsImportant
- Cherry-picking α or the tail after seeing results.
- Multiple testing. With k independent tests at α = 0.05 the chance of at least one false positive is 1 − 0.95ᵏ — about 64% for k = 20.
- Absence of evidence is not evidence of absence. A non-significant result may just mean low power.
- Treating 0.05 as a magic border instead of reading the p-value and interval together.
R toolboxNeutral
Key takeaways
- One-sample and paired t-tests are the same machine: t = (estimate − null) / SE with n − 1 df.
- Two-sided tests match C% intervals; one-sided tests match 90%-type intervals.
- α = P(Type I); power = 1 − β grows with n, effect size and α; only more data cuts both errors.