Dulranga's Notes
Semester 3MathematicsApplied StatisticsDistributions

Geometric Distribution

This is a special case of Negative Binomial Distribution. Here we only consider the failures till we get the first success.

So this is Negative Binomial Distribution with r=1r=1

geometric.png

1. The Core Idea

Imagine you are trying to roll a 6 on a standard die. You roll again and again until you finally see a 6, and then you stop instantly.

  • Success (11) happens with probability pp
  • Failure (00) happens with probability q=1−pq = 1 - p

If all trials are XX, we will have x−1x-1 times of failures before getting the success.

X∼Geometric(p)X \sim \text{Geometric}(p)

XX - Number of Trials till we get the first success

PMF

P(X=x)=(1−p)x−1pP(X = x) = (1 - p)^{x - 1} p

Properties

Expected Value:

E[X]=1pE[X] = \frac{1}{p}

If success is 10%10\%, in average it takes 10.1=10\frac{1}{0.1}=10 trials in average.

Variance:

Var(X)=1−pp2\text{Var}(X) = \frac{1 - p}{p^2}

Memoryless!

Why called geometric?

This comes from the geometric series in mathematics. Not any circles or triangles.

A geometric sequence is something which has each next term multiplied by a common factor rr

S={a,  ar,  ar2,  ar3,  ar4,… }S= \{a, \; ar, \; ar^2, \; ar^3, \; ar^4, \dots \}
Trial (x)Probability P(X=x)
1pp
2p(1−p)p(1 - p)
3p(1−p)2p(1 - p)^2
4p(1−p)3p(1 - p)^3
  • The first term is a=pa = p
  • The common ratio is r=(1−p)r = (1 - p)

Because total probability must equal 11, summing these probabilities relies directly on the classic infinite geometric series formula:

Sn=a1(1−rn)1−rS_n = \frac{a_1(1 - r^n)}{1 - r} ∑y=1∞P(Y=y)=p+p(1−p)+p(1−p)2+⋯=p1−(1−p)=pp=1\sum_{y=1}^{\infty} P(Y = y) = p + p(1-p) + p(1-p)^2 + \dots = \frac{p}{1 - (1 - p)} = \frac{p}{p} = 1

On this page