1

There are 1 best solutions below

0
On

In the first exercise, your random variable is a count of things, represented by a binomial, $Y \sim B(n, p)$ and hence $Var(Y) = np(1-p)$.

In the second exercise, the random variable is a proportion of things, which is equal to the count (a binomial) divided by the number of trials, i.e. $\hat{P} = \frac{Y}{n}$. And since $n$ is a constant, we can write $Var(\hat{P}) = Var(\frac{Y}{n}) = \frac{1}{n^2}Var(Y) = \frac{1}{n^2}np(1-p) = \frac{p(1-p)}{n}$.