Experimental design and hypothesis tests
Reason about comparisons, uncertainty and evaluation design.
Use an independent test set or paired evaluation design for comparing systems.
Interview questions
Choose a question to reveal its answer.
01EasyCoreWhat is a null hypothesis?
Answer
What is a null hypothesis?
Reference hypothesis tested against observed evidence.
Start from the assumption that a model change has no effect.
import numpy as np
rng = np.random.default_rng(42)
diff = np.array([0.1, 0.0, 0.2, -0.1])
means = rng.choice(diff, (1000,len(diff)), replace=True).mean(axis=1)
print(np.quantile(means,[.025,.975]))Illustrative paired bootstrap; small samples can yield unreliable uncertainty estimates.
02EasyCoreWhat does an alternative hypothesis represent?
Answer
What does an alternative hypothesis represent?
Competing claim about the parameter or distribution.
Test whether a new model improves mean accuracy.
03EasyCoreWhy choose a significance level before testing?
Answer
Why choose a significance level before testing?
Preselected upper bound on Type I error probability under the null for a valid test.
Choose alpha before analyzing experimental results.
04MediumHigh priorityWhat is a Type II error?
Answer
What is a Type II error?
Failure to reject a false null hypothesis.
Miss an improvement that truly exists.
05MediumHigh priorityWhat determines the power of a statistical test?
Answer
What determines the power of a statistical test?
Probability of rejecting the null under a specified alternative.
Estimate whether a study can detect a meaningful effect.
06MediumWhy report effect sizes as well as significance?
Answer
Why report effect sizes as well as significance?
Quantitative magnitude of a difference or relationship.
Report the absolute F1 gain rather than only significance.
07MediumWhen should you use paired model comparisons?
Answer
When should you use paired model comparisons?
Compares measurements linked to the same units or examples.
Evaluate two classifiers on identical held-out cases.
08MediumHow does bootstrapping estimate uncertainty?
Answer
How does bootstrapping estimate uncertainty?
Resamples observations with replacement to approximate a sampling distribution under appropriate assumptions.
Estimate uncertainty in an accuracy difference by resampling test examples.
09HardWhy correct for multiple hypothesis tests?
Answer
Why correct for multiple hypothesis tests?
Conducting many tests increases false-positive risk unless controlled.
Correct for comparing many independent model variants.
10HardWhy randomize experimental assignments?
Answer
Why randomize experimental assignments?
Allocates experimental units using a random mechanism to reduce systematic group differences.
Randomize users into two product variants.
Priority and difficulty are editorial study recommendations.
Technical reference: Documentation / paper ↗
Try a few practice questions
Explore the questions before creating a free account.