1: \begin{abstract}
2: Measuring the effect of peers on individual outcomes is a challenging problem, in part because individuals often select peers who are similar in both observable and unobservable ways.
3: Group formation experiments avoid this problem by randomly assigning individuals to groups and observing their responses; for example, do first-year students have better grades when they are randomly assigned roommates who have stronger academic backgrounds?
4: Standard approaches for analyzing these experiments, however, are heavily model-dependent and generally fail to exploit the randomized design.
5: In this paper, we extend methods from randomization-based testing under interference to group formation experiments.
6: The proposed tests are justified by the randomization itself, require relatively few assumptions, and are exact in finite samples.
7: We first develop procedures that yield valid tests for arbitrary group formation designs.
8: We then derive sufficient conditions on the design such that the randomization test can be implemented via simple random permutations.
9: We apply this approach to two recent group formation experiments and
10: implement the proposed method in the new \texttt{RGroupFormation} R package.
11:
12:
13: \medskip
14:
15: \noindent {\it Keywords:} Causal inference; Conditional randomization test; Exact $p$-value; Non-sharp null hypothesis; Orbit-Stabilizer Theorem
16: \end{abstract}
17: