The geometric random variable with parameter \(p\in\left(0,1\right)\) can be defined as the number of trials required to obtain a success
where the probability of success on each trial is \(p\) . Thus,