What is the formula of the expected value of a geometric random variable?
2 Answers
If you have a geometric distribution with parameter
Explanation:
expected value
For example, if
hope that helped
Explanation:
Where
Note that
So, the expected value is given by the sum of all the possible trials occurring:
E(X)=∞∑k=1k(1−p)k−1p
E(X)=p∞∑k=1k(1−p)k−1
E(X)=p(1+2(1−p)+3(1−p)2+4(1−p)3+⋯)
In my view, the previous step and the following step are the trickiest bits of algebra in this whole process. Pay close attention to how the
E(X)=p(∞∑k=1(1−p)k−1+∞∑k=2(1−p)k−1+∞∑k=3(1−p)k−1+⋯)
Note that
E(X)=p(11−(1−p)+1−p1−(1−p)+(1−p)21−(1−p)+⋯)
E(X)=1+(1−p)+(1−p)2+⋯
Which is another geometric series:
E(X)=11−(1−p)
E(X)=1p
So, the expected number of trials is