I have encountered a challenging task: I have a bunch of uniform random variables "trying" to pass a certain threshold, and another bunch trying to pass a different threshold, and I need to estimate the difference of the number of successes.
I'll now make it formal.
Settings
Let $n,m\ge 1$ be integers, $a,b\in(0,1)$. For each $i\in[n]$, let $X_i\sim\mathcal{U}([0,1])$ and for each $j\in[m]$ let $Y_j\sim\mathcal{U}([0,1])$. Finally, let $A=\sum_i \mathbf{1}_{X_i\ge a}$ and $B=\sum_j \mathbf{1}_{Y_j\ge b}$.
Simple Question
What is the probability that the first "group" will have at least as many successes as the second group? That is, what is $\mathbb{P}(A\ge B)$?
Difficult Question
What can I say about the moments of $A-B$? At least: what can I say about its mean and variance?
Tests
I've done a few tests. For $a=b=x$ and $m=n$, the function $f_n(x)=\mathbb{P}(A\ge B)$ seems to get its minimum around $x=0.5$, and $f_n(0.5)$ is about $0.75$ for low $n$, and tend to $0.5$ with $n\to\infty$. It also looks like the shape of $f_n(x)$ is sort of parabolic for low $n$, and is tending towards a constant function $f(x)=0.5$ with $n\to\infty$.