Suppose $\frac{1}{n}\sum_{i=1}^n\{f(X_i) - \hat{f}_n(X_i)\}^2$ and $\frac{1}{n}\sum_{i=1}^n\{g(X_i) - \hat{g}_n(X_i)\}^2$ are $O_p(a^2_n)$ for some sequence $a_n$ such that $a_n = O(n^{-r}$) where $r > 1/4$.
Suppose $Y_i$ is a binary 0/1 random variable, $f(\cdot)$ is bounded between -1 and 1, (i.e., $-1 \leq f(X_i) \leq 1$ for any $X_i$) and $g(\cdot)$ is bounded between 0 and 1 (i.e., $0 \leq g(X_i) \leq 1$ for any $X_i$). Observations $i = 1, \ldots, n$ are i.i.d, and $\hat{f}_n(\cdot)$ and $\hat{g}_n(\cdot)$ are estimators obtained from these observations.
What is the big $O_p$ for
$$\frac{1}{n}\sum_{i=1}^n [(f(X_i) - \hat{f}_n(X_i))g(X_i) + (\hat{f}_n(X_i) - Y_i)(g(X_i) - \hat{g}_n(X_i))]^2?$$
Expanding the square, we get a sum of 3 terms:
\begin{align*} &\frac{1}{n}\sum_{i=1}^n [(f(X_i) - \hat{f}_n(X_i))g(X_i) + (\hat{f}_n(X_i) - Y_i)(g(X_i) - \hat{g}_n(X_i))]^2\\ &=\frac{1}{n}\sum_{i=1}^n \{f(X_i) - \hat{f}_n(X_i)\}^2g^2(X_i)+2(f(X_i) - \hat{f}_n(X_i))g(X_i)(\hat{f}_n(X_i) - Y_i)(g(X_i) - \hat{g}_n(X_i)) + (\hat{f}_n(X_i) - Y_i)^2(g(X_i) - \hat{g}_n(X_i))^2 \end{align*}
Term 1: $\frac{1}{n}\sum_{i=1}^n \{f(X_i) - \hat{f}_n(X_i)\}^2g^2(X_i)$
Since $g(X_i)$ is bounded, and $\frac{1}{n}\sum_{i=1}^n\{f(X_i)-\hat{f}_n(X_i)\}^2$ is $O_p(a^2_n)$, then Term 1 is $O_p(a^2_n)$.
Term 2: $\frac{2}{n}\sum_{i=1}^n (f(X_i) - \hat{f}_n(X_i))g(X_i)(\hat{f}_n(X_i) - Y_i)(g(X_i) - \hat{g}_n(X_i))$
Since $g(X_i) \leq 1$ and $|\hat{f}_n(X_i) - Y_i| \leq 2$, then we have
\begin{align*} &\frac{2}{n}\sum_{i=1}^n (f(X_i) - \hat{f}_n(X_i))g(X_i)(\hat{f}_n(X_i) - Y_i)(g(X_i) - \hat{g}_n(X_i))\\ &\leq C \sqrt{\left(\frac{1}{n}\sum_{i=1}^n \{f(X_i)-\hat{f}_n(X_i)\}^2\right)\left(\frac{1}{n}\sum_{i=1}^n \{g(X_i) - \hat{g}_n(X_i)\}^2\right)}\\ &= O_p(a^2_n) \end{align*} where $C$ is some positive constant, and the inequality holds by Cauchy-Schwarz.
Term 3: $\frac{1}{n}\sum_{i=1}^n (\hat{f}_n(X_i) - Y_i)^2(g(X_i) - \hat{g}_n(X_i))^2$
Since $|\hat{f}_n(X_i) - Y_i| \leq 2$
$$\frac{1}{n}\sum_{i=1}^n (\hat{f}_n(X_i) - Y_i)^2(g(X_i) - \hat{g}_n(X_i))^2 \leq \frac{4}{n}\sum_{i=1}^n (g(X_i) - \hat{g}_n(X_i))^2 = O_p(a^2_n)$$
Altogether, we have
\begin{align*} &\frac{1}{n}\sum_{i=1}^n [(f(X_i) - \hat{f}_n(X_i))g(X_i) + (\hat{f}_n(X_i) - Y_i)(g(X_i) - \hat{g}_n(X_i))]^2\\ &= O_p(a^2_n) + O_p(a^2_n) + O_p(a^2_n)\\ &= O_p(a^2_n) \end{align*}
Is the above correct? I'm not very sure about Term 2 and Term 3 particularly with respect to factoring out $\hat{f}_n(X_i)-Y_i$.