Some automated sampling is done (by a computer) on a collection of $N$ identical items. The sampling process consists in keeping each item with a constant probability $\alpha$ and discarding it with a probability $1-\alpha$. Call $X$ the number of items that have been kept at the end of the process.
The expected value of $X$ is $\alpha N$. More precisely, $X$ has a binomial distribution $B(N,\alpha)$ given $N$. Most often $N$ is large enough to use a normal approximation $B(N,\alpha)\approx\mathcal{N}(\alpha N,\alpha(1-\alpha)N)$.
The data are events recorded on the Internet. $N$ is from a few hundreds to a several millions. I know the sampling rate is exactly $\alpha=\frac{1}{10}$.
Now two sampling processes are done independently from two populations $N_A$ and $N_B$ with the same known sampling rate $\alpha=\frac{1}{10}$. After sampling we have $X_A$ and $X_B$ items being kept respectively. For example, we may get something like: $X_A=1234, X_B=1322$. I want to test if the original populations are the same: I want to test the null hypothesis $N_A=N_B$.
How can I do ?
All I can observe is $X_A$ and $X_B$. I know for sure the sampling processes are independent (I'm not even sure this is important). I know the rate $\alpha$ is perfectly known.
Unlike most tests I've heard of (Kolmogorov-Smirnov, Fisher, $\chi^2$...) this is a test on raw counts and not on proportions (probabilities). That's why I struggle to find a standard technique.