I'm having trouble understanding this proof from a textbook for the bias of the mean estimator using ratio estimation.
How does $$\frac 1 {\bar{x_u}}[BV(\bar{x})-\operatorname{Cov}(\bar{x},\bar{y}) = \left(1 - \frac n N \right) \frac 1 {n\bar{x}_u}(BS_x^2-RS_xS_y) \text{ ?}$$
where:
$S_x$ and $S_y$ are the population standard deviations, $B = \frac{\bar{y}_u}{\bar{x}_u}$ and $R$ is the population correlation coefficient
