Suppose $X_1,....,X_n$ are $iid$ random variables and for each of them $Variance(X_i)= \sigma^2$. $a_1...a_n$ are also real numbers and $\sum_{i=1}^n a_i = 1$ If $S = \sum_{i=1}^na_iX_i$, prove $var(S)$ is minimum if $a_i = 1/n, \ i=1,...,n$
So i did following:
$Var(S) = \sum_{i=1}^na_i^2Var(X_i) + 2\sum_{i<j}a_ia_jcov(X_i, X_j)$
I'm not sure how to take this from here. Any ideas?