©
Extraction without replacement with subgroups
  Extracts a sample without replacement considering given subgroups.
2024.May.17 08:17:38
N Lot size ("deck" size, see below). •
m No. of subgroups (no. of "suits"). •
n Sample size. •
.Seed Seed for random (repeatability). •

Extracts a random sample without replacement (to prevent repetition) from N different items (the "lot"), with values i = 1..N, considering that the lot is constituted of m subgroups, each of size Sk, k = 1..m, and, of course, ∑k Sk = N. Here, these sizes are calculated at random (to spare the user giving them).

An analogy to make the concept clearer is a certain deck of cards with, for example: N = 35 cards and m = 6 suits, with sizes S = (8, 13, 0, 5, 9), which add up to the desired total, N.

In the application in this Plate, only the sample size, n, is prescribed. A further constraint might be extracting at least one item (or a fraction) from each subgroup.

The procedure is a generalization of the classical extraction of a sample without replacement.

References: Plate: WithoutReplaceSub

• Google "sampling without replacement"

• 1912-01-19: Kantorovich, Leonid Vitalyecich (1986-04-07).

 
 
Valid HTML 4.01! IST http://web.ist.utl.pt/~mcasquilho/compute/com/Fx-extractworeplace.php
Created: 2012-01-19 — Last modified: 2012-01-21