4.9.20 · D5Probability Theory & Statistics

Question bank — Hypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II)

1,769 words8 min readBack to topic

Reminders of the words we lean on, all built in the parent:

  • = the boring "no effect" claim we assume true; = the claim we hunt evidence for.
  • = the false-alarm rate we choose in advance; = how surprising this data is if holds.
  • Type I = reject a true ; Type II = fail to reject a false ; power .

True or false — justify

A small p-value proves the null hypothesis is false.
False. A small only says the data is surprising if holds; it is , not , so it can never "prove" false — a rare fluke under a true produces small exactly of the time.
If , there is a chance the null is true.
False. is computed assuming is already true; it says nothing about the probability of . Turning into is the prosecutor's fallacy — you'd need Bayesian Inference and a prior to talk about .
A result with is meaningfully stronger evidence than one with .
False in any real sense. The line is a chosen convention, not a law of nature; the two data sets are almost identical, so treating one as "significant" and the other as "not" is an artefact of a hard threshold.
Failing to reject means we have proven is true.
False. "Fail to reject" means the evidence wasn't strong enough to convict — often just small or low power. Absence of evidence is not evidence of absence; we say "insufficient evidence," never "proven."
Lowering from to makes the test better in every way.
False. A stricter pushes the critical cutoff farther out, cutting false alarms but raising (Type II errors), so you miss more real effects. It's a trade, not a free upgrade — only larger improves both.
The alternative hypothesis can contain the equality (e.g. ).
False. always carries the equality because we need one specific value to compute the sampling distribution and the p-value. states , , or .
Power depends on how far the true mean actually is from .
True. The bigger the real effect, the more the alternative sampling distribution shifts away from , so more of it lands past the critical cutoff and power rises. See Statistical Power & Sample Size.
Increasing sample size shrinks both and .
False for , true for . is a value we choose, so doesn't touch it; but larger shrinks the Standard Error, narrowing both distributions so drops at the same .
A confidence interval and a two-tailed test at always agree about .
True. Rejecting at is equivalent to falling outside the confidence interval — they are two views of the same standardized distance.

Spot the error

"We got , so there's a chance our effect is real."
The error is reading as the probability the effect exists. is conditional on ; the probability the effect is real needs a prior and Bayesian machinery. Rejecting is a decision, not a probability statement about reality.
"Our test wasn't significant, so the drug has no effect."
Confuses "fail to reject" with "proven no effect." A null result may just reflect low power or small ; the true effect could be real but too small for this test to catch.
" means at most of all my published rejections are false discoveries."
— conditional on the null being true. The share of your rejections that are wrong (the false discovery rate) also depends on how often is actually true, which alone never tells you.
"The data leaned high, so I'll switch to a right-tailed test to get significance."
Choosing the tail after seeing the data doubles your real false-alarm rate — you effectively test both directions while claiming one. The direction must be fixed before looking at the data.
"We used with a sample of and treated it as standard normal."
When is unknown and estimated by , the statistic follows a Student t-distribution with degrees of freedom, not . For small its heavier tails matter; using understates the p-value.
"We ran separate tests at and one came out significant, so we found something."
With independent true nulls you expect about one false positive by chance (). A single hit out of many tests is exactly the false-alarm rate at work, not a discovery — you need a multiple-comparison correction.
"Our huge sample gave , so the effect is large and important."
A tiny p-value from a massive can flag a trivially small effect — statistical significance is not practical significance. Large shrinks the standard error so even a microscopic difference from becomes "detectable."

Why questions

Why must always contain the equality rather than an inequality?
Because we need one exact value () to pin down a specific sampling distribution and compute the p-value; an inequality like names infinitely many distributions and gives us nothing to standardize against.
Why do we double the tail probability for a two-tailed p-value?
"As or more extreme" in a two-sided test means far in either direction, so both symmetric tails count as evidence — hence .
Why does the test statistic divide by the standard error instead of the standard deviation ?
We're judging how far the sample mean sits from , and varies with spread (the Standard Error), not . Dividing by SE gives a unit-free count of "how many standard errors away."
Why does the Central Limit Theorem let us use the normal distribution even when the raw data isn't normal?
The CLT says the sampling distribution of approaches normal as grows, regardless of the population's shape — so the standardized statistic is approximately standard normal even for skewed data.
Why can't we ever "accept" the null hypothesis?
Because the test is designed only to detect deviations, not confirm their absence; a non-significant result is consistent with and with many small real effects we lacked power to see. We can only fail to find enough evidence to reject.
Why is a Type I error controlled directly but a Type II error is not?
We choose as the cutoff, so we set the Type I rate by design. depends on the unknown true effect size, , and together, so it emerges rather than being dialed in directly.
Why does making a test more powerful usually require more data rather than just a lower ?
Lowering actually reduces power. Power grows by separating the two sampling distributions and narrowing them — a larger shrinks the standard error and does both, whereas only moves the cutoff.

Edge cases

If the observed sample mean lands exactly on , what is the two-tailed p-value?
, so . The data is the least surprising possible under — you never reject.
What happens to the t-statistic's distribution as ?
The Student t-distribution with degrees of freedom converges to the standard normal, because becomes a near-perfect estimate of and the extra tail-uncertainty vanishes.
If you set to eliminate all false alarms, what happens to your ability to detect real effects?
The critical cutoff moves to infinity, so you can never reject — Type I error is zero but and power is zero. You've built a test that always acquits, useless for finding anything.
If you set , what does the test do?
You reject for any data whatsoever; power is but every true null is falsely rejected. The two extremes ( and ) show why is a deliberate compromise.
For a one-sided right-tailed test, what if the sample mean falls below ?
The evidence points opposite to , so and . You cannot reject — a result contradicting your alternative can never support it.
What if two different analysts pick and on the same data with ?
The first rejects , the second fails to reject — both correct given their chosen risk tolerance. The p-value is fixed by the data; the verdict depends on the threshold each chose beforehand.
As the true effect size shrinks toward zero, what happens to the power of a fixed test?
Power falls toward . When there's essentially no effect, the alternative distribution sits almost on top of , so the only rejections are the false alarms occurring at rate .

Recall One-line self-check

Cover every answer above; if any verdict came out as a bare "true/false" with no reason, you haven't earned it yet — the reasoning is the concept.