Sample | ybar 1 | ybar 2 | ybar_st | ybar_st - Ybar |
0; 4,6,11 | 0 | 7 | 3.5 | -0.5 |
1; 4,6,11 | 1 | 7 | 4 | 0 |
2; 4,6,11 | 2 | 7 | 4.5 | 0.5 |
Sample | ybar 1 | ybar 2 | ybar_st | ybar_st - Ybar |
0,1; 4,6 | 0.5 | 5 | 2.75 | -1.25 |
0,1; 4,11 | 0.5 | 7.5 | 4 | 0 |
0,1; 6,11 | 0.5 | 8.5 | 4.5 | 0.5 |
0,2; 4,6 | 1 | 5 | 3 | -1 |
0,2; 4,11 | 1 | 7.5 | 4.25 | 0.25 |
0,2; 6,11 | 1 | 8.5 | 4.75 | 0.75 |
1,2; 4,6 | 1.5 | 5 | 3.25 | -0.75 |
1,2; 4,11 | 1.5 | 7.5 | 4.5 | 0.5 |
1,2; 6,11 | 1.5 | 8.5 | 5 | 1 |
For optimal allocation wi is given by [Wi S / sqrt(ci)] / [ W1 S / sqrt(c1) + W2 S / sqrt(c2) ] which simplifies to [Wi / sqrt(ci)] / [ W1 / sqrt(c1) + W2 / sqrt(c2) ]. The variance of the stratified estimate is then S^2 [W1 sqrt(c1) +W2 sqrt(c2) ] [ W1 / sqrt(c1) + W2 / sqrt(c2) ] / n. Now n=C/(c1 w1 + c2 w2) simplifies to n = C [ W1 / sqrt(c1) + W2 / sqrt(c2) ] / [W1 sqrt(c1) + W2 sqrt(c2) ] and the variance becomes S^2 [W1 sqrt(c1) +W2 sqrt(c2) ]^2 / C Taking the ratio of these two variance formulae the C and S terms cancel and we are left with [c1 W1 + c2 W2]/ [W1 sqrt(c1) +W2 sqrt(c2) ]^2. If W1=W2 then both are 1/2 and the formula is 2(c1+c2)/(sqrt(c1)+sqrt(c2))^2 so just plug in c2 = 2 c1 and c2 = 4 c1.
For part b you must minimize n=n1+n2 subject to S1^2 / n1 + S2^2/n2 = (0.1)^2. The solution is found from the Neyman allocation formula with W1=W2=1 (because the constraint is a special case of the allocation constraint formula with w1=W2=1) and so n1/n = S1/(S1+S2) = 1/3. Put n1=n/3 and n2=2n/3 in the variance formula and solve for n.