{
  "id": "enwiki-001344635775",
  "slug": "bernoulli-sampling",
  "title": "Bernoulli sampling",
  "qid": "",
  "lead": "In the theory of finite population sampling, Bernoulli sampling is a sampling process where each element of the population is subjected to an independent Bernoulli trial which determines whether the element becomes part of the sample. An essential property of Bernoulli sampling is that all elements of the population have equal probability of being included in the sample. Bernoulli sampling is therefore a special case of Poisson sampling. In Poisson sampling each element of the population may have a different probability of being included in the sample. In Bernoulli sampling, the probability is equal for all the elements. Because each element of the population is considered separately for the sample, the sample size is not fixed but rather follows a binomial distribution.",
  "body": "In the theory of finite population sampling, Bernoulli sampling is a sampling process where each element of the population is subjected to an independent Bernoulli trial which determines whether the element becomes part of the sample. An essential property of Bernoulli sampling is that all elements of the population have equal probability of being included in the sample. Bernoulli sampling is therefore a special case of Poisson sampling. In Poisson sampling each element of the population may have a different probability of being included in the sample. In Bernoulli sampling, the probability is equal for all the elements. Because each element of the population is considered separately for the sample, the sample size is not fixed but rather follows a binomial distribution. ==Example== The most basic Bernoulli method generates n random variates to extract a sample from a population of n items. Suppose you want to extract a given percentage pct of the population. The algorithm can be described as follows: for each item in the set generate a random non-negative integer R if (R mod 100) k \\approx n \\cdot p , which is more and more likely as n grows. In fact, It is possible to calculate the probability of obtaining a sample size of k by the Binomial distribution: f(k,n,p) = \\binom{n}{k}p^k(1-p)^{n-k} On the left this function is shown for four values of n and p=0.2 . In order to compare the values for different values of n , the k 's in abscissa are scaled from \\left[0, n\\right] to the unit interval, while the value of the function, in ordinate, is multiplied by the inverse, so that the area under the graph maintains the same value —that area is related to the corresponding cumulative distribution function. The values are shown in logarithmic scale. On the right the minimum values of n that satisfy given error bounds with 95% probability. Given an error, the set of k 's within bounds can be described as follows: K_{n, p} = \\left\\{ k \\in \\N: \\left\\vert \\frac k n - p \\right\\vert The probability to end up within K is given again by the binomial distribution as: \\sum_{k \\in K} f(k, n, p). The picture shows the lowest values of n such that the sum is at least 0.95. For p = 0.0 and p = 1.00 the algorithm delivers exact results for all n 's. The p 's in between are obtained by bisection. Note that, if 100 \\cdot p is an integer percentage, \\mathrm{error} = 0.005 , guarantees that 100 \\cdot k/n = 100 \\cdot p . Values as high as n = 38400 can be required for such an exact match. ==See also== Poisson sampling Bernoulli trial Bernoulli process Sampling design ==References== ==External links== Faster Random Samples With Gap Sampling",
  "categories": [
    "23603337",
    "26220375",
    "27424731"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1344635775",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1774110921.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001344635775",
    "type": "webpage",
    "title": "Bernoulli sampling",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/bernoulli-sampling",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          16
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          16
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001344635775",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1344635775",
    "note": "Immutable snapshot enwiki-001344635775"
  }
}