Geometric Distribution

AS · S1 · 3 min

The geometric distribution counts how many trials are needed to get the first success, when each trial succeeds independently with probability pp. Unlike the binomial, the number of trials is not fixed, and the variable has no upper limit.

The model

Key result

X∼Geo⁡(p)X \sim \operatorname{Geo}(p) when independent trials each succeed with probability pp and XX is the number of the trial on which the first success occurs.

P(X=r)=(1−p)r−1p,r=1,2,3,…P(X = r) = (1 - p)^{r - 1}p, \qquad r = 1, 2, 3, \ldotsP(X>r)=(1−p)r,P(X≤r)=1−(1−p)r,E(X)=1pP(X > r) = (1 - p)^r, \qquad P(X \leq r) = 1 - (1 - p)^r, \qquad E(X) = \frac{1}{p}

The variance is not in the syllabus.

The formula reads "r−1r - 1 failures, then a success". P(X>r)P(X > r) is just "the first rr trials all fail", which makes cumulative probabilities a one-line calculation.

Basic probabilities

A fair die is thrown until a six appears. Find the probability that the first six is (a) on the 4th throw; (b) after the 3rd throw; (c) within the first 5 throws.

Solution

X∼Geo⁡(16)X \sim \operatorname{Geo}\left(\tfrac{1}{6}\right).

(a) (56)3⋅16=0.0965\left(\tfrac{5}{6}\right)^3 \cdot \tfrac{1}{6} = 0.0965. (b) (56)3=0.579\left(\tfrac{5}{6}\right)^3 = 0.579. (c) 1−(56)5=0.5981 - \left(\tfrac{5}{6}\right)^5 = 0.598.

Expected number of trials

A darts player hits the bullseye with probability 0.150.15 on each throw. How many throws are expected to be needed to hit it, and what is the probability it takes more than the expected number?

Solution

E(X)=10.15=6.67E(X) = \dfrac{1}{0.15} = 6.67 throws. P(X>6)=0.856=0.377P(X > 6) = 0.85^6 = 0.377 (using the whole number 66; P(X>7)=0.321P(X > 7) = 0.321).

Between two values

X∼Geo⁡(0.3)X \sim \operatorname{Geo}(0.3). Find P(3≤X≤6)P(3 \leq X \leq 6) and P(X=4∣X>2)P(X = 4 \mid X > 2).

Solution

P(3≤X≤6)=P(X>2)−P(X>6)=0.72−0.76=0.49−0.1176=0.372P(3 \leq X \leq 6) = P(X > 2) - P(X > 6) = 0.7^2 - 0.7^6 = 0.49 - 0.1176 = 0.372.

P(X=4∣X>2)=P(X=4)P(X>2)=0.73×0.30.72=0.21P(X = 4 \mid X > 2) = \dfrac{P(X = 4)}{P(X > 2)} = \dfrac{0.7^3 \times 0.3}{0.7^2} = 0.21. (This is P(X=2)P(X = 2): the process has no memory.)

Finding p

For X∼Geo⁡(p)X \sim \operatorname{Geo}(p), P(X=2)=0.21P(X = 2) = 0.21. Find the possible values of pp, and the value of E(X)E(X) in each case.

Solution

(1−p)p=0.21⇒p2−p+0.21=0⇒(p−0.3)(p−0.7)=0(1 - p)p = 0.21 \Rightarrow p^2 - p + 0.21 = 0 \Rightarrow (p - 0.3)(p - 0.7) = 0.

p=0.3p = 0.3: E(X)=3.33E(X) = 3.33. p=0.7p = 0.7: E(X)=1.43E(X) = 1.43.

Binomial or geometric?

Question asksModel
how many successes in nn trialsB(n,p)B(n, p)
on which trial the first success occursGeo⁡(p)\operatorname{Geo}(p)
whether the first success is within rr trialsGeo⁡(p)\operatorname{Geo}(p), P(X≤r)P(X \leq r)
Choosing the model

Calls to a helpline are answered within 10 seconds with probability 0.40.4, independently. (a) Find the probability that of 8 calls exactly 3 are answered in time. (b) Find the probability that the first call answered in time is the 3rd call.

Solution

(a) B(8,0.4)B(8, 0.4): (83)(0.4)3(0.6)5=56×0.064×0.07776=0.279\binom{8}{3}(0.4)^3(0.6)^5 = 56 \times 0.064 \times 0.07776 = 0.279.

(b) Geo⁡(0.4)\operatorname{Geo}(0.4): 0.62×0.4=0.1440.6^2 \times 0.4 = 0.144.

Watch out

XX starts at 11, not 00: the first success cannot happen on the "zeroth" trial. P(X≤r)=1−(1−p)rP(X \leq r) = 1 - (1 - p)^r, with the power rr, not r−1r - 1.

Exam tip

State the model and parameter, X∼Geo⁡(0.15)X \sim \operatorname{Geo}(0.15), then use P(X>r)=(1−p)rP(X > r) = (1 - p)^r for cumulative questions rather than adding terms. Examiners accept either, but the single-power method avoids arithmetic slips.

Practice

Question
  1. X∼Geo⁡(0.25)X \sim \operatorname{Geo}(0.25). Find P(X=3)P(X = 3), P(X≤3)P(X \leq 3) and P(X>5)P(X > 5).
  2. A coin is biased so that P(head)=0.6P(\text{head}) = 0.6. Find the expected number of tosses to get the first head, and the probability that the first head is on an even-numbered toss.
  3. P(X>2)=0.64P(X > 2) = 0.64 for a geometric variable. Find pp and P(X=1)P(X = 1).
  4. Seeds germinate independently with probability 0.80.8. Find the probability that the first seed to fail is the 5th seed planted.
Answers
  1. 0.752×0.25=0.1410.75^2 \times 0.25 = 0.141; 1−0.753=0.5781 - 0.75^3 = 0.578; 0.755=0.2370.75^5 = 0.237.
  2. 10.6=1.67\tfrac{1}{0.6} = 1.67; P(even)=0.4(0.6)+0.43(0.6)+⋯=0.241−0.16=27P(\text{even}) = 0.4(0.6) + 0.4^3(0.6) + \cdots = \dfrac{0.24}{1 - 0.16} = \tfrac{2}{7}.
  3. (1−p)2=0.64⇒p=0.2(1 - p)^2 = 0.64 \Rightarrow p = 0.2; P(X=1)=0.2P(X = 1) = 0.2.
  4. "Success" is failing to germinate, p=0.2p = 0.2: 0.84×0.2=0.08190.8^4 \times 0.2 = 0.0819.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action