Geometric distribution

Jump to: navigation, search
Geometric
Probability mass function
200px
Cumulative distribution function
200px
Parameters <math>0< p \leq 1</math> success probability (real)
Support <math>k \in \{1,2,3,\dots\}\!</math>
Probability mass function (pmf) <math>(1 - p)^{k-1}\,p\!</math>
Cumulative distribution function (cdf) <math>1-(1 - p)^k\!</math>
Mean <math>\frac{1}{p}\!</math>
Median <math>\left\lceil \frac{-\log(2)}{\log(1-p)} \right\rceil\!</math> (not unique if <math>-\log(2)/\log(1-p)</math> is an integer)
Mode 1
Variance <math>\frac{1-p}{p^2}\!</math>
Skewness <math>\frac{2-p}{\sqrt{1-p
Excess kurtosis {{{kurtosis}}}
Entropy {{{entropy}}}
Moment-generating function (mgf) {{{mgf}}}
Characteristic function {{{char}}}
\!</math>|
 kurtosis   =<math>6+\frac{p^2}{1-p}\!</math>|
 entropy    =<math>-\frac{1-p}{p}\ln(1-p)-\ln p\!</math>|
 mgf        =<math>\frac{p\,e^t}{1-(1-p) e^t}\!</math>|
 char       =<math>\frac{pe^{it}}{1-q\,e^{it}}\!</math> (where <math>q = 1-p</math>)|

}}

In probability theory and statistics, the geometric distribution is either of two discrete probability distributions:

  • the probability distribution of the number X of Bernoulli trials needed to get one success, supported on the set { 1, 2, 3, ...}, or
  • the probability distribution of the number Y = X − 1 of failures before the first success, supported on the set { 0, 1, 2, 3, ... }.

Which of these one calls "the" geometric distribution is a matter of convention and convenience.

These two different geometric distributions should not be confused with each other. Often, the name shifted geometric distribution is adopted for the latter one (distribution of the number Y); however, to avoid ambiguity, it is considered wise to indicate which is intended, by mentioning the range explicitly.

If the probability of success on each trial is p, then the probability that k trials are needed to get one success is

<math>\Pr(X = k) = (1 - p)^{k-1}\,p\,</math>

for k = 1, 2, 3, ....

Equivalently, if the probability of success on each trial is p, then the probability that there are k failures before the first success is

<math>\Pr(Y=k) = (1 - p)^k\,p\,</math>

for k = 0, 1, 2, 3, ....

In either case, the sequence of probabilities is a geometric sequence.

For example, suppose an ordinary die is thrown repeatedly until the first time a "1" appears. The probability distribution of the number of times it is thrown is supported on the infinite set { 1, 2, 3, ... } and is a geometric distribution with p = 1/6.

Moments and cumulants

The expected value of a geometrically distributed random variable X is 1/p and the variance is (1 − p)/p2:

<math>\mathrm{E}(X) = \frac{1}{p},
\qquad\mathrm{var}(X) = \frac{1-p}{p^2}.</math>

Equivalently, an expected value of the geometrically distributed random variable Y is <math>(1-p)/p</math>, and its variance is <math>(1-p)/p^2</math>:

<math>\mathrm{E}(Y) = \frac{1-p}{p},
\qquad\mathrm{var}(Y) = \frac{1-p}{p^2}.</math>

Let <math>\mu = (1-p)/p</math> be the expected value of Y. Then the cumulants <math>\kappa_n</math> of the probability distribution of Y satisfy the recursion

<math>\kappa_{n+1} = \mu(\mu+1) \frac{d\kappa_n}{d\mu}.</math>

Parameter estimation

For both variants of the geometric distribution, the parameter p can be estimated by equating the expected value with the sample mean. This is the method of moments, which in this case happens to yield maximum likelihood estimates of p.

Specifically, for the first variant let <math>k_1,\dots,k_n</math> be a sample where <math>k_i \geq 1</math> for <math>i=1,\dots,n</math>. Then p can be estimated as

<math>\widehat{p} = \left(\frac1n \sum_{i=1}^n k_i\right)^{-1}. \!</math>

In Bayesian inference, the Beta distribution is the conjugate prior distribution for the parameter p. If this parameter is given a Beta(αβ) prior, then the posterior distribution is

<math>p \sim \mathrm{Beta}\left(\alpha+n,\ \beta+\sum_{i=1}^n (k_i-1)\right). \!</math>

The posterior mean <math>\mathrm{E}[p]</math> approaches the maximum likelihood estimate <math>\widehat{p}</math> as α and β approach zero.

In the alternative case, let <math>k_1,\dots,k_n</math> be a sample where <math>k_i \geq 0</math> for <math>i=1,\dots,n</math>. Then p can be estimated as

<math>\widehat{p} = \left(1 + \frac1n \sum_{i=1}^n k_i\right)^{-1}. \!</math>

The posterior distribution of p given a Beta(αβ) prior is

<math>p \sim \mathrm{Beta}\left(\alpha+n,\ \beta+\sum_{i=1}^n k_i\right). \!</math>

Again the posterior mean <math>\mathrm{E}[p]</math> approaches the maximum likelihood estimate <math>\widehat{p}</math> as α and β approach zero.

Other properties

<math>G_X(s) = \frac{s\,p}{1-s\,(1-p)}, \!</math>
<math>G_Y(s) = \frac{p}{1-s\,(1-p)}, \quad |s| < (1-p)^{-1}. \!</math>
  • Like its continuous analogue (the exponential distribution), the geometric distribution is memoryless. That means that if you intend to repeat an experiment until the first success, then, given that the first success has not yet occurred, the conditional probability distribution of the number of additional trials does not depend on how many failures have been observed. The die one throws or the coin one tosses does not have a "memory" of these failures. The geometric distribution is in fact the only memoryless discrete distribution.
  • Among all discrete probability distributions supported on {1, 2, 3, ... } with given expected value μ, the geometric distribution X with parameter p = 1/μ is the one with the largest entropy.
  • The geometric distribution of the number Y of failures before the first success is infinitely divisible, i.e., for any positive integer n, there exist independent identically distributed random variables Y1, ..., Yn whose sum has the same distribution that Y has. These will not be geometrically distributed unless n = 1; they follow a negative binomial distribution.
  • The decimal digits of the geometrically distributed random variable Y are a sequence of independent (and not identically distributed) random variables. For example, the hundreds digit D has this probability distribution:
<math>\Pr(D=d) = {q^{100d} \over {1 + q^{100} + q^{200} + \cdots + q^{900}}},</math>
where q = 1 − p, and similarly for the other digits, and, more generally, similarly for numeral systems with other bases than 10. When the base is 2, this shows that a geometrically distributed random variable can be written as a sum of independent random variables whose probability distributions are indecomposable.

Related distributions

<math>Z = \sum_{m=1}^r Y_m</math>
follows a negative binomial distribution with parameters r and p.
  • If Y1,...,Yr are independent geometrically distributed variables (with possibly different success parameters <math>p^{(m)}</math>), then their minimum
<math>W = \min_{m} Y_m\,</math>
is also geometrically distributed, with parameter p given by
<math>1-\prod_{m}(1-p^{(m)}).</math>
  • Suppose 0 < r < 1, and for k = 1, 2, 3, ... the random variable Xk has a Poisson distribution with expected value rk/k. Then
<math>\sum_{k=1}^\infty k\,X_k</math>
has a geometric distribution taking values in the set {0, 1, 2, ...}, with expected value r/(1 − r).

External links

de:Geometrische Verteilungit:Variabile casuale geometrica

he:התפלגות גאומטרית nl:Geometrische verdelingnov:Geometriki distributionefi:Geometrinen jakauma sv:Geometrisk fördelning


Navigation WikiDoc | WikiPatient | Popular pages | Recently Edited Pages | Recently Added Pictures

Table of Contents In Alphabetical Order | By Individual Diseases | Signs and Symptoms | Physical Examination | Lab Tests | Drugs

Editor Tools Become an Editor | Editors Help Menu | Create a Page | Edit a Page | Upload a Picture or File | Printable version | Permanent link | Maintain Pages | What Pages Link Here
There is no pharmaceutical or device industry support for this site and we need your viewer supported Donations | Editorial Board | Governance | Licensing | Disclaimers | Avoid Plagiarism | Policies
Linked-in.jpg
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
In other languages