A permutation test p-value by hand
You test whether a "treatment" tweak beats "control" on four measurements. Two units got the treatment and two got control, with values
The two treatment units are the ones that scored and . Your test statistic is the sum of the treatment group's values (larger favors treatment). To get an exact one-sided p-value, you consider every way to split the four numbers into two groups of two.
What is the one-sided permutation p-value?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Permutation p-value with unequal group sizesA two-sided permutation p-valuePermutation p-value when the split is not the most extremePermutation p-value with three-versus-three groupsThe permutation test, inference by reshuffling labels
All questions →