Explain the difference between Type I and Type II errors in hypothesis testing.
Instruction: Provide definitions for both Type I and Type II errors and give an example of each.
Updated
Official answer
A Type I error rejects a true null hypothesis. A Type II error fails to reject a false null hypothesis. Failing to reject does not establish that the null is true.
For a feature experiment, define the null as no difference in the pre-specified user-level outcome. A Type I error reports evidence of a difference when no difference exists. A Type II error misses a real difference. Use a directional alternative only when that direction was justified in the test design.
The significance level, alpha, controls the Type I error rate under the test's assumptions. Beta is the Type II error probability at a particular alternative effect; power is 1 - beta. There is no single power value for every possible true effect. Holding sample size and other conditions fixed, a stricter rejection threshold generally sacrifices power.
Before collecting data, choose the meaningful effect, analysis unit, sample size and analysis plan. More independent observations can increase power, but repeated unadjusted testing or changing the hypothesis after inspecting results can undermine the error guarantees. A non-significant result may simply be too imprecise; report the effect estimate and uncertainty.
Assessment: Distinguish the true state from the decision, identify the effect at which power is evaluated, and avoid interpreting a p-value as the probability that the null is true.
Related Questions
-
easy
-
easy
-
medium
-
medium
-
medium
-
medium