Qm

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

1,2,3,8.1, \quad 2, \quad 3, \quad 8.

The two treatment units are the ones that scored 33 and 88. 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

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. 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 →