Hypergeometric Distribution Calculator

Negative hypergeometric distribution calculator

–

Expected draws
–
Std. dev.
–
Most likely T
–
Possible T
–

Where the successes sit on average

Expected successr-th successDraw t

Distribution of the number of draws

In selected regionP(T ≤ t)

Click a bar to set t.

How negative hypergeometric distribution calculator works?

The negative hypergeometric distribution calculator takes N, K and the wanted number of successes r, then returns the probability that the r-th success arrives on draw t, along with the expected number of draws, the standard deviation and the most likely draw.

  1. Population NTotal items, for example 52 cards.
  2. Successes KItems that count as a success, for example 4 aces.
  3. Successes wanted rStop at the r-th success, for example the first ace (r = 1).
  4. Draw number tAsk about T = t, T ≤ t, T < t, T ≥ t or T > t.
  5. ResultsProbability, mean, deck map and the distribution of T.
How the negative hypergeometric distribution calculator works
Deck map: average ace positions in 52 cards10.621.231.842.4card 1card 52
The 4 aces split the 48 other cards into 5 gaps of 9.6 cards on average; the first ace sits at card 10.6.

Negative hypergeometric distribution formula

The negative hypergeometric distribution formula is P(T = t) = C(t − 1, r − 1) · C(N − t, K − r) / C(N, K), for t from r to N − K + r.

P(T = t)=C(t − 1, r − 1)×C(N − t, K − r)÷C(N, K)
E[T] = r(N + 1)/(K + 1)
Var(T) = r(N − K)(N + 1)(K + 1 − r) / ((K + 1)²(K + 2))
  • C(t − 1, r − 1)Ways to place r − 1 successes in the first t − 1 draws
  • C(N − t, K − r)Ways to place the other K − r successes after draw t
  • C(N, K)Ways to place all K successes among the N positions

Negative hypergeometric distribution calculator FAQ

What is a negative hypergeometric distribution?

The negative hypergeometric distribution gives the probability that the r-th success appears on draw t, drawing without replacement from N items that hold K successes. It counts draws, where the hypergeometric distribution counts successes in a fixed number of draws.

What is the formula for the negative hypergeometric distribution?

P(T = t) = C(t − 1, r − 1) · C(N − t, K − r) / C(N, K), for t from r to N − K + r. The mean is r(N + 1)/(K + 1).

On average, which card is the first ace in a shuffled deck?

The first ace in a 52-card deck appears on card 10.6 on average, from 1 · 53 / 5. The standard deviation is 8.24 cards, the top card is an ace with probability 0.0769, and the first ace shows up within 10 cards 58.7% of the time.

What is the difference between negative hypergeometric and negative binomial distribution?

The negative hypergeometric distribution draws without replacement, and the negative binomial distribution draws with replacement at a constant p. With r = 1 and replacement, the negative binomial distribution becomes the geometric distribution.