STA632 Assignment Solution by Pin
STA632 Assignment Solution by Pin
Spring 2024
Answer:1
To estimate the Mean Square Error (MSE) of the ratio estimator Y^R\hat{Y}_RY^R for the area
under paddy harvested with combine in the entire district, we can use the following formula:
where:
Given data:
● N=420N = 420N=420
● n=18n = 18n=18
First, calculate the total area under paddy (∑xi\sum x_i∑xi) and the total area harvested with
combine (∑yi\sum y_i∑yi) for the sampled villages.
The ratio RRR of the total area harvested with combine to the total area under paddy in the
sampled villages is approximately 0.8820.8820.882.
The estimated Mean Square Error (MSE) of the ratio estimator Y^R\hat{Y}_RY^R is
approximately 62.50362.50362.503.
Answer 2
To tackle this problem, we need to follow the given steps for both parts:
Given data:
Yi Zi
0.16 1
0.22 2
0.13 3
0.25 4
0.14 5
0.10 6
Here, Yi represents the variable of interest and Zi represents the size measure.
Under SRSWR, each element can be chosen more than once. The possible samples of size two
are:
(0.16, 0.16), (0.16, 0.22), (0.16, 0.13), (0.16, 0.25), (0.16, 0.14), (0.16, 0.10),
(0.22, 0.16), (0.22, 0.22), (0.22, 0.13), (0.22, 0.25), (0.22, 0.14), (0.22, 0.10),
(0.13, 0.16), (0.13, 0.22), (0.13, 0.13), (0.13, 0.25), (0.13, 0.14), (0.13, 0.10),
(0.25, 0.16), (0.25, 0.22), (0.25, 0.13), (0.25, 0.25), (0.25, 0.14), (0.25, 0.10),
(0.14, 0.16), (0.14, 0.22), (0.14, 0.13), (0.14, 0.25), (0.14, 0.14), (0.14, 0.10),
(0.10, 0.16), (0.10, 0.22), (0.10, 0.13), (0.10, 0.25), (0.10, 0.14), (0.10, 0.10)
The Hansen-Hurwitz estimator for a sample y1,y2,…,yny_1, y_2, \ldots, y_ny1,y2,…,yn taken
with replacement is given by: Y^HH=1n∑i=1nyipi\hat{Y}_{HH} = \frac{1}{n} \sum_{i=1}^n \
frac{y_i}{p_i}Y^HH=n1∑i=1npiyi where pip_ipi is the probability of selecting the iii-th unit.
Since the sampling is with replacement, the probability of selecting any unit is equal, i.e.,
pi=1Np_i = \frac{1}{N}pi=N1 where NNN is the total number of units.
For our case, n=2n = 2n=2 and N=6N = 6N=6, so pi=16p_i = \frac{1}{6}pi=61.
To implement this in R:
Zi = c(1, 2, 3, 4, 5, 6)
# Number of samples
set.seed(123)
for (i in 1:num_samples) {
mean_of_means
By running this code, you will get the mean of the means of the samples selected using PPS
sampling.