Geometric Distribution
Definition 1
For , the discrete probability distribution that follows the probability mass function as shown above, is called the Geometric Distribution.
- Take special care with the domain and the formula as there are two definitions used.
Basic Properties
Moment Generating Function
- [1]:
Mean and Variance
- [2]: If then
Sufficient Statistic and Maximum Likelihood Estimator
- [3]: Suppose a random sample is given. The sufficient statistic and maximum likelihood estimator for are as follows.
Theorems
Memorylessness
- [a]: If then
Generalization to Geometric Distribution
- [b]: If and then
Explanation
Relation with Exponential Distribution
The geometric distribution is interested in how many trials it takes to achieve success with probability . Its probability mass function represents the probability of failing times with probability before finally succeeding with probability . This characteristic allows it to be seen as the discretization of exponential distribution.
Naming
The distribution is called the geometric distribution because its probability mass function has the form of a geometric sequence. If we set , , we get a familiar formula with . Indeed, when computing the moment-generating function, the formula for a geometric series appears.
Proof
[1]
When , according to the formula for a geometric series,
■
[2]
■
[3]
■
[a]
Deduced using conditional probability.
■
[b]
Deduced using the moment generating function.
■
Code
Below is a Julia code that shows the probability mass function of the geometric distribution as a gif.
@time using LaTeXStrings
@time using Distributions
@time using Plots
cd(@__DIR__)
x = 0:20
P = collect(0.01:0.01:0.5); append!(P, reverse(P))
animation = @animate for p ∈ P
scatter(x, pdf.(Geometric(p), x),
color = :black, markerstrokecolor = :black,
label = "p = $(rpad(p, 4, '0'))", size = (400,300))
xlims!(0,20); ylims!(0,0.3); title!(L"\mathrm{pmf\,of\,Geo}(p)")
end
gif(animation, "pmf.gif")
Hogg et al. (2013). Introduction to Mathematical Statistics (7th Edition): p145. ↩︎