Let $X_{1}, X_{2}, \ldots, X_{n}$ be iid with the distribution $N\left(\theta, \sigma^{2}\right),-\infty<\theta<\infty$. Prove that a necessary and sufficient condition that the statistics $Z=\sum_{1}^{n} a_{i} X_{i}$ and $Y=\sum_{1}^{n} X_{i}$, a complete sufficient statistic for $\theta$, are independent is that $\sum_{1}^{n} a_{i}=0$