Discrete random variable

Geometric distribution

The geometric distribution 𝑋 ∼Geom(𝑝) describes the number of failures of independent Bernoulli trials with success probability 𝑝 before the first success. #m/def/prob It has the probability mass function

ℙ(𝑋=𝑥)=(1−𝑝)𝑥𝑝=𝑞𝑥𝑝

for 𝑥 ∈ℕ0.

Proof

Let 𝑌𝑖 ∼Bern⁡(𝑝) be independent for 𝑖 ∈ℕ. Then

ℙ(𝑋=𝑥)=ℙ({𝑋𝑥+1=1}∩𝑥⋂𝑖=1{𝑋𝑖=0})=ℙ(𝑋𝑥+1=1)𝑥∏𝑖=1ℙ(𝑋𝑖=0)=𝑝(1−𝑝)𝑥

as claimed.

This is related to the Negative binomial distribution, which is the sum of i.i.d. geometric variables.

Properties

Let 𝑋 ∼Geom(𝑝) and 𝑞 =1 −𝑝

  1. Expectation: 𝔼⁡[𝑋] =𝑞𝑝
  2. Variance: Var⁡[𝑋] =𝑞𝑝2
  3. Moment-generating function:
𝑀𝑋:(−∞,−ln⁡𝑞)→ℝ:𝑡↦𝑝1−𝑞e𝑡
Proof of 1

Invoking the expansion for a geometric series

𝔼⁡[𝑋]=∞∑𝑥=0𝑥ℙ(𝑥=𝑥)=∞∑𝑥=0𝑥(1−𝑝)𝑥𝑝=(1−𝑝)𝑝∞∑𝑥=0𝑥(1−𝑝)𝑥−1=(1−𝑝)𝑝∞∑𝑥=0−𝑑𝑑𝑝[(1−𝑝)𝑥]=(𝑝−1)𝑝𝑑𝑑𝑝∞∑𝑥=0(1−𝑝)𝑥=(𝑝−1)𝑝𝑑𝑑𝑝11(1−𝑝)=(𝑝−1)𝑝𝑑𝑑𝑝𝑝−1=(1−𝑝)𝑝−1

as claimed, proving ^P1.

Alternately we may invoke conditional expected value. Let 𝑆 denote the event that the first trial is successful. Then noting that (𝑋 ∣𝑆) ∼𝑋 +1, we have

𝔼⁡[𝑋]=𝔼⁡[𝑋∣𝑆]𝑝+𝔼⁡[𝑋∣𝑆𝑐]𝑞=𝔼⁡[1+𝑋]𝑞=𝑞(1+𝔼⁡[𝑋])

whence

𝔼⁡[𝑋]=𝑞𝑝

proving ^P1.


#state/develop | #lang/en | #SemBr