Statistics/Distributions/Geometric
Contents |
Geometric Distribution[edit]
| Probability mass function |
|
| Cumulative distribution function |
|
| Parameters | success probability (real) |
|---|---|
| Support | ![]() |
| PMF | ![]() |
| CDF | ![]() |
| Mean | ![]() |
| Median | (not unique if is an integer) |
| Mode | ![]() |
| Variance | ![]() |
| Skewness | ![]() |
| Ex. kurtosis | ![]() |
| Entropy | ![]() |
| MGF | ,for ![]() |
| CF | ![]() |
There are two similar distributions with the name "Geometric Distribution".
- The probability distribution of the number X of Bernoulli trials needed to get one success, supported on the set { 1, 2, 3, ...}
- The probability distribution of the number Y = X − 1 of failures before the first success, supported on the set { 0, 1, 2, 3, ... }
These two different geometric distributions should not be confused with each other. Often, the name shifted geometric distribution is adopted for the former one. We will use X and Y to refer to distinguish the two.
Shifted[edit]
The shifted Geometric Distribution refers to the probability of the number of times needed to do something until getting a desired result. For example:
- How many times will I throw a coin until it lands on heads?
- How many children will I have until I get a girl?
- How many cards will I draw from a pack until I get a Joker?
Just like the Bernoulli Distribution, the Geometric distribution has one controlling parameter: The probability of success in any independent test.
If a random variable X is distributed with a Geometric Distribution with a parameter p we write its probability mass function as:

With a Geometric Distribution it is also pretty easy to calculate the probability of a "more than n times" case. The probability of failing to achieve the wanted result is
.
Example: a student comes home from a party in the forest, in which interesting substances were consumed. The student is trying to find the key to his front door, out of a keychain with 10 different keys. What is the probability of the student succeeding in finding the right key in the 4th attempt?

Unshifted[edit]
The probability mass function is defined as:
for 
Mean[edit]
Let q=1-p
We can now interchange the derivative and the sum.
Variance[edit]
We derive the variance using the following formula:
We have already calculated E[X] above, so now we will calculate E[X2] and then return to this variance formula:
Let q=1-p
We now manipulate x2 so that we get forms that are easy to handle by the technique used when deriving the mean.
We then return to the variance formula
This page may need to be
success probability (



(not unique if
is an integer)




,

for 
![\operatorname{E}[X] = \sum_i f(x_i) x_i = \sum_0^{\infin} p(1-p)^x x](http://upload.wikimedia.org/math/9/6/e/96e6df628a65af39f62f5ec54968be9b.png)
![\operatorname{E}[X] = \sum_0^{\infin}(1-q) q^x x](http://upload.wikimedia.org/math/7/4/9/74964b000d2d0873e926273b14051f2b.png)
![\operatorname{E}[X] = \sum_0^{\infin}(1-q)q q^{x-1} x](http://upload.wikimedia.org/math/e/6/9/e696c202efd18a4932e09bf3a2bb1e11.png)
![\operatorname{E}[X] = (1-q)q\sum_0^{\infin} q^{x-1} x](http://upload.wikimedia.org/math/8/7/f/87fa6e5bdec5086ac57cf4fd9b608fd3.png)
![\operatorname{E}[X] = (1-q)q\sum_0^{\infin} \frac{d}{dq}q^x](http://upload.wikimedia.org/math/c/9/a/c9a24083995805637eb31e9b620022d9.png)
![\operatorname{E}[X] = (1-q)q\frac{d}{dq}\sum_0^{\infin} q^x](http://upload.wikimedia.org/math/5/7/5/575cf0c88e693859e089762801637d2e.png)
![\operatorname{E}[X] = (1-q)q\frac{d}{dq}{1 \over 1-q}](http://upload.wikimedia.org/math/d/a/0/da0e28f993b70a81ede328e7e8721ae1.png)
![\operatorname{E}[X] = (1-q)q{1 \over (1-q)^2}](http://upload.wikimedia.org/math/1/2/b/12bb8159839a4b6d2be4100d636cdbd2.png)
![\operatorname{E}[X] = q{1 \over (1-q)}](http://upload.wikimedia.org/math/a/7/7/a778b3bb8ccac0fdcf3cadad10edd818.png)
![\operatorname{E}[X] = {(1-p) \over p}](http://upload.wikimedia.org/math/5/8/b/58bbdd94e59a3f497f46d0fcc205f8fe.png)
![\operatorname{Var}[X] = \operatorname{E}[X^2] - (\operatorname{E}[X])^2](http://upload.wikimedia.org/math/3/e/8/3e803794436c4345123d85f5891049cf.png)
![\operatorname{E}[X^2] = \sum_i f(x_i) \cdot x^2](http://upload.wikimedia.org/math/4/5/6/456171b06db4bf5499e9d41307028ef7.png)
![\operatorname{E}[X^2] = \sum_0^{\infin} p(1-p)^x x^2](http://upload.wikimedia.org/math/f/c/f/fcffb636b9a0e7769e345595d1b20353.png)
![\operatorname{E}[X^2] = \sum_0^{\infin} (1-q)q^x x^2](http://upload.wikimedia.org/math/f/9/7/f979f93fda4427d960b339df14287a61.png)
![\operatorname{E}[X^2] = (1-q)\sum_0^{\infin} q^x [(x^2-x)+x]](http://upload.wikimedia.org/math/3/6/9/3690757a51aa69119cfa232e5d7f6b02.png)
![\operatorname{E}[X^2] = (1-q)\left[\sum_0^{\infin} q^x (x^2-x)+\sum_0^{\infin}q^x x\right]](http://upload.wikimedia.org/math/b/c/f/bcffda512fa35f106b8ebb0659da6c54.png)
![\operatorname{E}[X^2] = (1-q)\left[q^2\sum_0^{\infin} q^{x-2} x(x-1)+q\sum_0^{\infin}q^{x-1} x\right]](http://upload.wikimedia.org/math/9/e/8/9e84be3eb8d8adb7b1ba79fb2ee789e9.png)
![\operatorname{E}[X^2] = (1-q)q\left[q\sum_0^{\infin} \frac{d^2}{(dq)^2}q^x+\sum_0^{\infin}\frac{d}{dq}q^x\right]](http://upload.wikimedia.org/math/b/5/9/b5943b00e346bb2fd58d4b2ee39ab0d2.png)
![\operatorname{E}[X^2] = (1-q)q\left[q\frac{d^2}{(dq)^2}\sum_0^{\infin} q^x+\frac{d}{dq}\sum_0^{\infin}q^x\right]](http://upload.wikimedia.org/math/5/0/2/502a328c3415789771d70dec8dbfe81f.png)
![\operatorname{E}[X^2] = (1-q)q\left[q\frac{d^2}{(dq)^2}{1 \over 1-q}+\frac{d}{dq}{1 \over 1-q}\right]](http://upload.wikimedia.org/math/6/f/4/6f4df2152e42301f62c0cb7cc340da2e.png)
![\operatorname{E}[X^2] = (1-q)q\left[q{2 \over (1-q)^3}+{1 \over (1-q)^2}\right]](http://upload.wikimedia.org/math/b/b/f/bbfef75a74a782a3db4ab2fb2ed4823f.png)
![\operatorname{E}[X^2] = {2q^2 \over (1-q)^2}+{q \over (1-q)}](http://upload.wikimedia.org/math/9/c/2/9c24bc562a11bf4ae9a54bbe25b817b3.png)
![\operatorname{E}[X^2] = {2q^2 +q(1-q) \over (1-q)^2}](http://upload.wikimedia.org/math/d/f/c/dfcdad45173ae308e71e3f734c5a659e.png)
![\operatorname{E}[X^2] = {q(q+1) \over (1-q)^2}](http://upload.wikimedia.org/math/6/f/8/6f82364c1372912263a32315d9caf8a6.png)
![\operatorname{E}[X^2] = {(1-p)(2-p) \over p^2}](http://upload.wikimedia.org/math/a/3/e/a3e6c4c1eb3f5665ce454ce66639913c.png)
![\operatorname{Var}[X] = \left[{(1-p)(2-p) \over p^2}\right] - \left({1-p \over p}\right)^2](http://upload.wikimedia.org/math/e/a/7/ea7fe67c5ad8769f116666be047db62a.png)
![\operatorname{Var}[X] = {(1-p) \over p^2}](http://upload.wikimedia.org/math/5/d/f/5df3b4f5d16fff849c197195e3bcadb4.png)