Geometric Distribution
A discrete random variable follows the Geometric distribution if it represents the number of trials required to obtain the first success in a sequence of independent Bernoulli trials. Formally, the Geometric distribution of a random variable is given by the PMF,
where each trial has a probability of success.The geometric distribution is the only discrete distribution that is memoryless, meaning that the probability of needing more than additional trials to get the first success is independent of the trials that have already been conducted. Formally,
showing that whether or not you start fresh or you have already had failures, the chance of needing more than additional trials remains the same.
Intuition
I honestly cannot help you if you don’t understand the PMF for the geometric distribution. There is a factor, which indicates that there is only a single success. It is self-descriptive.
However, when I first learned about the memoryless property (i.e. right now), I was confused. So let’s get through it together. We have as the number of initial (failed) trials, and as the sequential number of trials to get a single success. Then,
\mathbb{P}[X > k+m \mid X > k] &= \frac{\mathbb{P}[X > k+m \cap X > k]}{\mathbb{P}[X > k]} \\ &= \frac{\mathbb{P}[X > k+m]}{\mathbb{P}[X > k]} \\ &= \frac{(1-p)^{k+m}}{(1-p)^k} \\ &= (1-p)^m \\ &= \mathbb{P}[X > m]. \end{align}$$ where the tail probability of the Geometric random variable is given by $\mathbb{P}[X > x]=(1-p)^x$. # Properties #### (*Mean*) $\mathbb{E}[X \sim \text{Geom}(p)]=\frac{1}{p}$. We start by setting up our equation for solving the expectation using the [[2.6b.2 Tail Sum Formula|tail sum formula]] by saying that\begin{equation}
\begin{aligned}
\mathbb{P}[X \geq i] &= \sum^{\infty}{j=i}\mathbb{P}[X=j] \
&=\sum^{\infty}{j=i}p(1-p)^{j-1} \
&=\frac{p}{1-p}\sum^{\infty}_{j=i}(1-p)^{j} \
\end{aligned}
\end{equation}
\begin{equation}
\begin{aligned}
\mathbb{P}[X \geq i] &= \frac{p}{1-p}\sum^{\infty}_{j=i}(1-p)^{j} \
&= \frac{p}{1-p}\frac{(1-p)^i}{1-(1-p)} \
&= (1-p)^{i-1}
\end{aligned}
\end{equation}
\begin{equation}
\begin{aligned}
\mathbb{E}[X] &= \sum^{\infty}{i=1}\mathbb{P}[X \geq i] \
&= \sum^{\infty}{i=1}(1-p)^{i-1} \
&= \frac{(1-p)^{1-1}}{1-(1-p)} \
&= \frac{1}{p}
\end{aligned}
\end{equation}
\begin{equation}
\begin{aligned}
\mathbb{E}[X^2] &= \mathbb{E}[X(X-1)]+\mathbb{E}[X]-\mathbb{E}[X]^2
\end{aligned}
\end{equation}