Suppose I have some random variable $X$ taking values in $[a, b]$ with unknown distribution (I am happy to assume the distribution is smooth, though it would be nice to not have to). I have a function $F(t)$ which takes a value in $[a, b]$ and returns a random variable on $[0, 1]$ such that $E(F(t)) = P(X <= t)$. $F$ is 'expensive to compute' so I want to invoke it as few times as possible. The set $\{F(s)\}$ may be assumed to be independent. I would like to use $F$ to construct estimators of $E(X)$ and $Var(X)$. Ideally they'd be unbiased estimators, but I don't actually care that much as long as they're reasonably accurate. An obvious approach is to divide up $[a, b]$ into a grid $x_1, \ldots, x_m$, sample $F(x_i)$ enough times to get a good estimate of $E(F(x_i)) = P(X \leq x_i)$ and use this to get an approximation to the expectations. This is quite expensive, and seems to ignore a bunch of available information (like the fact that $P(X \leq x_i)$ is monotonic increasing, or the fact that $P(X \leq x - \epsilon)$ is probably still a pretty good estimate for $P(X \leq x)$). An approach that I *think* works better is to use the fact that $E(X) = \int\limits_a^b P(X \geq x) dx$. So $E(\frac{1}{n}\sum 1 - F(x_i)) = \frac{1}{n} \sum P(X \geq x_i)$ can also be used as an estimate, and I think this requires fewer samples for accuracy, however I'm not really sure how accurate this is. So, basically I'm wondering what the best approach is for trading off accuracy / number of samples. Any suggestions? Pointers to keywords and/or literature that might have bearing on this are also appreciated as I haven't been able to find much.