What can be said about the variance of the following quantity
$$ \frac{1}{n}\sum_{i=1}^n \left(\frac{f(x_i)}{\sum_{j=1}^nf(x_j)}-b\right)g(x_i) ? $$
Here, $b \in [0, 1]$, and the $x_i$s are i.i.d and $f(x) \in [0, +\infty]\; \forall x$.
In particular, for what $b$ is the variance minimized ?