Answer:
(a) From Neyman optimal allocation
n_{h}\propto N_{h}S_{h}
Let Rh be the relative standard deviation in stratum h and
n_{h}=\frac{N_{h}R_{h}}{\sum N_{h}R_{h}}n
THerefore, we allocate a stratified sample of 900 observations if we wanted to estimate the mean electricity consumption for all households in the city
(b)
p={35000*0.45+45000*0.25+10000*0.12}{90000}=0.3133
V_{prop}({p}_{str})={h=1}^{H}W_{h}^2(1-f_{h})\{p_{h}(1-p_{h})}{n_{h}}
where
H=3, W_{h}={N_{h}}/{N}, f_{h}={n}/{N}
Then
V_{prop}({p}_{str})= ( 1-{n}/{N} \right ){1}{n}/{h=1}^{3}W_{h}p_{h}(1-p_{h})
V_{prop}({p}_{str})= ( 1-{1}{100}\{1}{900} \{7}{18}*0.45*0.55+\{1}{2}*0.25*0.75 +\{1}{9}*0.12*0.88\]
V_{prop}(\{p}_{str})=0.000221907
V_{SRS}(\{p}_SRS)=\{N-n}{N-1}\{p(1-p)}{n}= ({90000-900}/{90000-1} \{0.3133*(1-0.3133)}{900}
V_{SRS}(\hat{p}_SRS)={N-n}/{N-1}\{p(1-p)}{n}=0.0002366
VSRS(pˆSRS)/Vprop(pˆstr) =1.06645