What the relationship means
Geometric requires independent identical trials with 0<p≤1. Hypergeometric requires an equiprobable sample without replacement and integer counts, with support max(0,n−N+K)≤k≤min(K,n). Gamma is continuous with α,θ>0. The calculator limits N to 1000 and Erlang k to integers from 1 through 30; it is not a general distribution library.
The binomial coefficient counts subsets in the hypergeometric calculation. A binomial distribution instead suits independent trials with fixed p, such as sampling with replacement. Expectation helps compare models but does not replace a full distribution. In particular, continuous gamma density is not a directly readable percentage for one waiting time.
Derive it step by step
The geometric distribution combines preceding independent failures with one success. The hypergeometric counts equiprobable subsets of a finite population. Gamma density normalizes a power times an exponential; with integer shape, its Erlang special case describes sums of independent exponential waiting times having the same scale.
- Geometric: T counts the first-success trial from 1. T=k requires k−1 failures followed by one success, giving P(T=k)=(1−p)^(k−1)p.
- Hypergeometric: K of N objects are marked and n are sampled without replacement. Favorable subsets number C(K,k)·C(N−K,n−k), out of C(N,n) total subsets.
- Gamma: for shape α>0 and scale θ>0, f(x)=x^(α−1)e^(−x/θ)/(Γ(α)θ^α), x>0. Substitution u=x/θ verifies normalization with the gamma integral.
- Keep summaries separate: E(T)=1/p; E(H)=nK/N; E(G)=αθ and Var(G)=αθ2. For integer Erlang shape α=k, Γ(k)=(k−1)!; only this integer gamma special case appears in the calculator.
Visualize the model
Continuous Erlang density, not point probability
Free with a Quanta account. Your download stays ready after registration.
Two worked examples
Two different discrete experiments
- Given
- Author calculation: first, independent trials with p=1/4; second, N=20,K=7,n=5 without replacement.
- Find
- Calculate first success on trial 3 and exactly two marked draws separately.
Geometric: two failures and a success give (3/4)2·1/4=9/64=0.140625. E(T)=4.
Hypergeometric: C(7,2)=21, C(13,3)=286 and C(20,5)=15504.
Thus P(H=2)=6006/15504=1001/2584≈0.387383901 and E(H)=5·7/20=1.75.
Result: The results concern different experiments and must not be forced into the same power-of-p formula.
Check: Without replacement the conditional success chance changes, despite a fixed initial K/N.
Erlang waiting time and density
- Given
- Author model: three independent exponential waiting stages with scale θ=2 s; x=4 s.
- Find
- Calculate density, mean and variance.
α=k=3 and Γ(3)=2. Density is x2e^(−x/2)/(23·2).
At x=4 s, the prefactor becomes 1/s; f(4)=e−2 s−1≈0.135335283 s−1.
E(G)=3·2=6 s; Var(G)=3·22=12 s2.
Result: The number 0.135335283 is density per second, not probability of exactly 4 s.
Check: Integrate density over a time interval to obtain its probability.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Limits and result checks
Software may count geometric failures from 0 rather than trials from 1; translate between these conventions. For gamma, rate β=1/θ differs from scale θ. With 0<α<1, density diverges at the origin; at α=1 it equals 1/θ, and for α>1 it is zero. The bounded Erlang calculator handles its boundaries explicitly and does not claim arbitrary gamma shape or a hidden cumulative distribution function.
- Trials and failures are confused. Specify the starting value and shift T=F+1.
- Without-replacement sampling is automatically treated as binomial. The exact finite-population sample is hypergeometric.
- Gamma rate is entered as scale. Check β=1/θ and units before calculating.
Five exercises with solutions
Calculate · Foundation
N=6,K=2,n=2 without replacement. Calculate P(H=1).
Show hint
C(2,1)C(4,1)/C(6,2).
Learning goal: Count hypergeometric subsets
Show solution and calculation
P(H=1)=2·4/15=8/15≈0.533333333.
This counts equiprobable unordered pairs.
Rearrange · Application
A gamma distribution has mean 6 s and variance 12 s2. Find scale θ and shape α.
Show hint
Variance divided by mean gives θ.
Learning goal: Recover gamma parameters from moments
Show solution and calculation
θ=12/6=2 s and α=6/2=3.
Equivalently α=62/12=3.
Shape is dimensionless; scale has a time unit.
Interpret · Application
Software reports three failures before first success. Which T corresponds to trial counting?
Show hint
Count the successful trial too.
Learning goal: Translate the geometric count convention
Show solution and calculation
T=4.
With F counting failures, T=F+1, so P(F=3)=(1−p)3p=P(T=4).
Their expectations also differ by 1.
Error analysis · Application
For gamma shape 3 and rate β=2 s−1, a mean of 6 s is calculated. What is wrong?
Show hint
θ=1/β.
Learning goal: Do not swap rate and scale
Show solution and calculation
Rate was used as scale. θ=0.5 s and E(G)=α/β=3/2=1.5 s.
Variance is α/β2=0.75 s2.
Even the unit of α·β would not be time.
Transfer · Challenge
Erlang k=3, θ=2 min,x=4 min. What are the mean and density in second-based units?
Show hint
θ=120 s,x=240 s; divide per-minute density by 60.
Learning goal: Scale density under a unit change
Show solution and calculation
E(G)=360 s.
Density is e−2/60 s−1≈0.002255588054 s−1.
Numeric density changes with the time unit, while probability of the same time interval remains unchanged.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 8, 2026
- R stats: The Geometric Distribution
- R stats: The Hypergeometric Distribution
- R stats: The Gamma Distribution
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a full article with model limits, independently calculated examples, five exercise paths and source references.
Cite this reference page
Quanta. Geometric, Hypergeometric, and Gamma Distributions. Updated November 8, 2026. https://quanta-study.de/en/formula-sheet/referenz-verteilungen-geometrisch-hypergeometrisch-gamma
When citing a specific scientific statement, also cite the specialist source linked to that statement.