2
$\begingroup$

I have a model where I need to sample from $m$ elements without replacement, where each element exists exactly once. The element have different weights and the probability of an element being drawn is equal to the fraction of the element's weight relative to the sum of the weights of the remaining elements. In R a single draw would simply be:

m <- 4                  # number fo elements
w <- c(.4,.3,.2,.1)     # weights
n <- 3                  # number of draws
sample(seq_along(w), size = n, prob=w, replace=FALSE)

> [1]  3  1  2 

Simulating many draws and calculating the probability of occurrence of each element we get

v <- replicate(1e5, sample(seq_along(w), size = n, prob=w, replace=FALSE))
p.hat <- table(v) / sum(table(v))
p.hat

>
        1         2         3         4 
0.3075767 0.2902900 0.2526967 0.1494367 

What is the name of the resulting distribution and how could I calculate the results above without simulation?

PS. I stumbled across Wallenius' noncentral hypergeometric distribution but my knowledge in this field is too limited as to decide if this distribution is given or not.

$\endgroup$
2
  • $\begingroup$ Are you asking about the specific situation $m = 4$ and $n = 3$?Your population is size $m$. Sampling without replacement, you can draw at most $n = m$ elements. $\endgroup$ May 10, 2016 at 20:06
  • $\begingroup$ For a specific $m$ and $n$ would be fine. I would like to know the name of the resulting distribution, as I suspect that it might have been derived analytically somewhere, i.e. for the general case. $\endgroup$ May 11, 2016 at 9:46

1 Answer 1

2
$\begingroup$

I would not bother trying to come up with a name, or find this in the books. This is an example of a sampling distribution in finite population sampling, and that's about it. You can probably describe all the samples explicitly for a population this small, and derive all the probabilities (again, knowing exactly what your sampling scheme is), so you don't have to rely on sample() simulation.

Unequal probability sampling is very, very complicated. Brewer and Hanif (1983, https://books.google.com/books/about/Sampling_with_unequal_probabilities.html?id=SyPvAAAAMAAJ) listed about 50 methods. Their premise though is to come up with a method that guarantees (or at least closely approximates) the target probabilities of selection (which, as you have seen, aren't even remotely close in your simulation example).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.