Is 1-sample Kolmogorov–Smirnov test a special case of 2-sample one?

180 Views Asked by At

I'm reading Kolmogorov–Smirnov test from Wikipedia.

  1. One-sample case

enter image description here enter image description here

  1. Two-sample case

enter image description here

I try to deduce the one-sample test from two-sample test by choosing $m$ and the second sample $(Y_1,\ldots,Y_m)$ such that $$D_{n, m}=\sup _{x}\left|F_{1, n}(x)-F_{2, m}(x)\right| = D_{n}=\sup _{x}\left|F_{n}(x)-F(x)\right|$$

I'm unable to make $F_{2, m}= F$. Could you please elaborate on how to do so? Thank you so much!