Geometric Distribution¶
The geometric random variable with parameter p∈(0,1) can be defined as the number of trials required to obtain a success where the probability of success on each trial is p . Thus,
p(k;p)=(1−p)k−1pk≥1F(x;p)=1−(1−p)⌊x⌋x≥1G(q;p)=⌈log(1−q)log(1−p)⌉μ=1pμ2=1−pp2γ1=2−p√1−pγ2=p2−6p+61−p.
M(t)=pe−t−(1−p)
Implementation: scipy.stats.geom