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