We recommend reading this documentation on pkgdown which renders math nicely.
https://pkg.mitchelloharawild.com/distributional/reference/dist_geometric.html
In the following, let \(X\) be a Geometric random variable with
success probability prob = \(p\). Note that there are multiple
parameterizations of the Geometric distribution.
Support: \(\{0, 1, 2, 3, ...\}\)
Mean: \(\frac{1-p}{p}\)
Variance: \(\frac{1-p}{p^2}\)
Probability mass function (p.m.f):
$$
P(X = k) = p(1-p)^k
$$
Cumulative distribution function (c.d.f):
$$
P(X \le k) = 1 - (1-p)^{k+1}
$$
Moment generating function (m.g.f):
$$
E(e^{tX}) = \frac{pe^t}{1 - (1-p)e^t}
$$
Skewness:
$$
\frac{2 - p}{\sqrt{1 - p}}
$$
Excess Kurtosis:
$$
6 + \frac{p^2}{1 - p}
$$