Suppose I have a population of size N
(N is large, say a million), and I take a simple random sample of size 100. Denote the units in the sample as $u_1$, ... $u_{100}$.
I also know additional information about each $u_i$: an auxilary variable $x_i$. It is a catagorial variable (in my application, it's actually some user_id). Now I compute a subset
of the sample in the way described in the following bullet point. My question is: is this subset
still a simple random sample?
- we randomly add units from the sample to the subset until a desired number (e.g. 10) of unique x value is added to the subset. In python-style pseudo code, the procedure is the following:
subset = []
for i in range(100):
if number_of_unique_x_value_in(subset) < 10:
subset.append( (u[i],x[i]) )
else:
break
return subset
For example, suppose the catagorial variable $x$ have only 50 possible values, there must be some $u$ in the 100-unit sample having the same $x$ value. The above procedure keep adding units to the subset until the subset reaches 10 unique $x$ values, and therefore the size of subset
can be some number greater than 10.
That's end of the question, but in case you are interested --
Why I ask this question: in my application, I need to send a sample of internet users' e-commerce product reviews to human labelers every week, in order to estimate the mean of some variable of interest among all products. However, the human labelers have limited budget --- they can only label some amount of users ever week (not some amount of reviews). And therefore I have to "trim" the simple random sample in the above way in order to not go over that amount (in our example, it's 10). I want to know if such a trimmed sample is still a simple random sample, because I am using the formula for simple random sample to estimate the mean.
Thanks!