I have the following question:
Thee are $1000$ independent random variables $X_{1},X_{2},\ldots,X_{1000}$, where $X_{i}$ is uniformly distributed on $[0,1)$. Furthermore, let $$ Y_{i} = \begin{cases} 0, & x_{i} < 0.5 \\ 1, & x_{i} \geq 0.5 \end{cases} \;. $$ How can I find the following state by the central limit theorem? $$ P\left( \left| \sum_{i=1}^{1000} X_i- \sum_{i=1}^{1000} Y_i \right| \ge 7 \right) \qquad\text{and}\qquad P\left( \sum_{i=1}^{1000} \left| X_i- Y_i \right| \ge 7 \right) $$ Thank you for any help.
I am going to assume that $\to 7$ is $ \ge t$ for some $t \ge 0$. Let $Z_i = X_i - Y_i$. Then, $Z_i = X_i - 1\{X_i \ge 0.5\}$, hence $$ \mathbb E Z_i = \mathbb E X_i - \mathbb P(X_i \ge 0.5) = 0.5 - 0.5 = 0. $$ and \begin{align} var(Z_i) = \mathbb E (Z_i^2) &= \mathbb E X_i^2 - 2\mathbb E X_i 1\{X_i \ge 0.5\} + \mathbb E 1\{X_i \ge 0.5\}\\ &= \int_0^1 x^2 dx - 2 \int_{0.5}^1 x dx + 0.5 =:v \end{align}
By CLT, we have $$ \mathbb P( |\sum_{i=1}^n Z_i \Big| \ge \sqrt{nv} t) \approx \mathbb P (|W| \ge \sqrt{nv} t) $$ where $W \sim N(0,1)$. You can proceed similarly for $\mathbb P(\sum_{i=1}^n |Z_i| \ge t)$, but note that $\mathbb E |Z_i| \neq 0$ in this case.