Geometric distribution

From Wikipedia, the free encyclopedia

Template:Short description Script error: No such module "Distinguish".

Page Module:Infobox/styles.css has no content.Page Template:Infobox probability distribution/styles.css has no content.

Geometric
Probability mass function
Lua error in package.lua at line 80: module 'Module:InfoboxImage/data' not found.
Cumulative distribution function
Lua error in package.lua at line 80: module 'Module:InfoboxImage/data' not found.
Notation Geom(p)
Parameters 0<p1 success probability (real) 0<p1 success probability (real)
Support k trials where k={1,2,3,} k failures where k0={0,1,2,}
PMF (1p)k1p (1p)kp
CDF 1(1p)x for x1,
0 for x<1
1(1p)x+1 for x0,
0 for x<0
Mean 1p 1pp
Median

1log2(1p)

(not unique if 1/log2(1p) is an integer)

1log2(1p)1

(not unique if 1/log2(1p) is an integer)
Mode 1 0
Variance 1pp2 1pp2
Skewness 2p1p 2p1p
Excess kurtosis 6+p21p 6+p21p
Entropy (1p)log(1p)plogpp (1p)log(1p)plogpp
MGF pet1(1p)et,
for t<ln(1p)
p1(1p)et,
for t<ln(1p)
CF peit1(1p)eit p1(1p)eit
PGF pz1(1p)z p1(1p)z
Fisher information 1p2(1p) 1p2(1p)

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

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

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

The geometric distribution gives the probability that the first occurrence of success requires k independent trials, each with success probability p. If the probability of success on each trial is p, then the probability that the k-th trial is the first success is

Pr(X=k)=(1p)k1p

for k=1,2,3,4,

The above form of the geometric distribution is used for modeling the number of trials up to and including the first success. By contrast, the following form of the geometric distribution is used for modeling the number of failures until the first success:

Pr(Y=k)=Pr(X=k+1)=(1p)kp

for k=0,1,2,3,

The geometric distribution gets its name because its probabilities follow a geometric sequence. It is sometimes called the Furry distribution after Wendell H. Furry.[1]Template:Rp

Definition

The geometric distribution is the discrete probability distribution that describes when the first success in an infinite sequence of independent and identically distributed Bernoulli trials occurs. Its probability mass function depends on its parameterization and support. When supported on , the probability mass function is P(X=k)=(1p)k1p where k=1,2,3, is the number of trials and p is the probability of success in each trial.[2]Template:Rp

The support may also be 0, defining Y=X1. This alters the probability mass function into P(Y=k)=(1p)kp where k=0,1,2, is the number of failures before the first success.[3]Template:Rp

An alternative parameterization of the distribution gives the probability mass function P(Y=k)=(PQ)k(1PQ) where P=1pp and Q=1p.[1]Template:Rp

An example of a geometric distribution arises from rolling a six-sided die until a "1" appears. Each roll is independent with a 1/6 chance of success. The number of rolls needed follows a geometric distribution with p=1/6.

Properties

Memorylessness

Template:Main article The geometric distribution is the only memoryless discrete probability distribution.[4] It is the discrete version of the same property found in the exponential distribution.[1]Template:Rp The property asserts that the number of previously failed trials does not affect the number of future trials needed for a success.

Because there are two definitions of the geometric distribution, there are also two definitions of memorylessness for discrete random variables.[5] Expressed in terms of conditional probability, the two definitions are Pr(X>m+nX>n)=Pr(X>m), and Pr(Y>m+nYn)=Pr(Y>m),

where m and n are natural numbers, X is a geometrically distributed random variable defined over , and Y is a geometrically distributed random variable defined over 0. Note that these definitions are not equivalent for discrete random variables; Y does not satisfy the first equation and X does not satisfy the second.

Moments and cumulants

The expected value and variance of a geometrically distributed random variable X defined over is[2]Template:Rp E(X)=1p,var(X)=1pp2. With a geometrically distributed random variable Y defined over 0, the expected value changes into E(Y)=1pp, while the variance stays the same.[6]Template:Rp

For example, when rolling a six-sided die until landing on a "1", the average number of rolls needed is 11/6=6 and the average number of failures is 11/61/6=5.

The moment generating function of the geometric distribution when defined over and 0 respectively is[7][6]Template:Rp MX(t)=pet1(1p)etMY(t)=p1(1p)et,t<ln(1p) The moments for the number of failures before the first success are given by E(Yn)=k=0(1p)kpkn=pLin(1p)(for n0)

where Lin(1p) is the polylogarithm function.[8]

The cumulant generating function of the geometric distribution defined over 0 is[1]Template:Rp K(t)=lnpln(1(1p)et)The cumulants κr satisfy the recursionκr+1=qδκrδq,r=1,2,where q=1p, when defined over 0.[1]Template:Rp

Proof of expected value

Consider the expected value E(X) of X as above, i.e. the average number of trials until a success. The first trial either succeeds with probability p, or fails with probability 1p. If it fails, the remaining mean number of trials until a success is identical to the original mean - this follows from the fact that all trials are independent.

From this we get the formula:

E(X)=p+(1p)(1+E[X]),

which, when solved for E(X), gives:

E(X)=1p.

The expected number of failures Y can be found from the linearity of expectation, E(Y)=E(X1)=E(X)1=1p1=1pp. It can also be shown in the following way:

E(Y)=pk=0(1p)kk=p(1p)k=0(1p)k1k=p(1p)(k=0ddp[(1p)k])=p(1p)[ddp(k=0(1p)k)]=p(1p)ddp(1p)=1pp.

The interchange of summation and differentiation is justified by the fact that convergent power series converge uniformly on compact subsets of the set of points where they converge.

Summary statistics

The mean of the geometric distribution is its expected value which is, as previously discussed in § Moments and cumulants, 1p or 1pp when defined over or 0 respectively.

The median of the geometric distribution is log2log(1p)when defined over [9] and log2log(1p) when defined over 0.[3]Template:Rp

The mode of the geometric distribution is the first value in the support set. This is 1 when defined over and 0 when defined over 0.[3]Template:Rp

The skewness of the geometric distribution is 2p1p.[6]Template:Rp

The kurtosis of the geometric distribution is 9+p21p.[6]Template:Rp The excess kurtosis of a distribution is the difference between its kurtosis and the kurtosis of a normal distribution, 3.[10]Template:Rp Therefore, the excess kurtosis of the geometric distribution is 6+p21p. Since p21p0, the excess kurtosis is always positive so the distribution is leptokurtic.[3]Template:Rp In other words, the tail of a geometric distribution has more mass and decays slower than a Gaussian's.[11]

Entropy and Fisher's information

Entropy (geometric distribution, failures before success)

Entropy is a measure of uncertainty in a probability distribution. For the geometric distribution that models the number of failures before the first success, the probability mass function is:

P(X=k)=(1p)kp,k=0,1,2,

The entropy H(X) for this distribution is defined as:

H(X)=k=0P(X=k)lnP(X=k)=k=0(1p)kpln((1p)kp)=k=0(1p)kp[kln(1p)+lnp]=logp1pplog(1p)

The entropy increases as the probability p decreases, reflecting greater uncertainty as success becomes rarer.

Fisher's information (geometric distribution, failures before success)

Fisher information measures the amount of information that an observable random variable X carries about an unknown parameter p. For the geometric distribution (failures before the first success), the Fisher information with respect to p is given by:

I(p)=1p2(1p)

Proof:

  • The likelihood function for a geometric random variable X is: L(p;X)=(1p)Xp
  • The log-likelihood function is: lnL(p;X)=Xln(1p)+lnp
  • The score function (first derivative of the log-likelihood w.r.t. p) is: plnL(p;X)=1pX1p
  • The second derivative of the log-likelihood function is: 2p2lnL(p;X)=1p2X(1p)2
  • Fisher information is calculated as the negative expected value of the second derivative: I(p)=E[2p2lnL(p;X)]=(1p21pp(1p)2)=1p2(1p)

Fisher information increases as p decreases, indicating that rarer successes provide more information about the parameter p.

Entropy (geometric distribution, trials until success)

For the geometric distribution modeling the number of trials until the first success, the probability mass function is:

P(X=k)=(1p)k1p,k=1,2,3,

The entropy H(X) for this distribution is the same as that of version modeling trials until failure,

H(X)=logp1pplog(1p)

Fisher's information (geometric distribution, trials until success)

Fisher information for the geometric distribution modeling the number of trials until the first success is given by:

I(p)=1p2(1p)

Proof:

  • The likelihood function for a geometric random variable X is:
L(p;X)=(1p)X1p
  • The log-likelihood function is:
lnL(p;X)=(X1)ln(1p)+lnp
  • The score function (first derivative of the log-likelihood w.r.t. p) is:
plnL(p;X)=1pX11p
  • The second derivative of the log-likelihood function is:
2p2lnL(p;X)=1p2X1(1p)2
  • Fisher information is calculated as the negative expected value of the second derivative:

I(p)=E[2p2lnL(p;X)]=(1p21pp(1p)2)=1p2(1p)

General properties

  • The sum of r independent geometric random variables with parameter p is a negative binomial random variable with parameters r and p.[15] The geometric distribution is a special case of the negative binomial distribution, with r=1.
  • The geometric distribution is a special case of discrete compound Poisson distribution.[12]Template:Rp
  • The minimum of n geometric random variables with parameters p1,,pn is also geometrically distributed with parameter 1i=1n(1pi).[16]
  • Suppose 0 < r < 1, and for k = 1, 2, 3, ... the random variable Xk has a Poisson distribution with expected value rk/k. Then k=1kXk has a geometric distribution taking values in 0, with expected value r/(1 − r).[citation needed]
  • The exponential distribution is the continuous analogue of the geometric distribution. Applying the floor function to the exponential distribution with parameter λ creates a geometric distribution with parameter p=1eλ defined over 0.[3]Template:Rp This can be used to generate geometrically distributed random numbers as detailed in § Random variate generation.
  • If p = 1/n and X is geometrically distributed with parameter p, then the distribution of X/n approaches an exponential distribution with expected value 1 as n → ∞, sincePr(X/n>a)=Pr(X>na)=(1p)na=(11n)na=[(11n)n]a[e1]a=ea as n.More generally, if p = λ/n, where λ is a parameter, then as n→ ∞ the distribution of X/n approaches an exponential distribution with rate λ:Pr(X>nx)=limn(1λ/n)nx=eλx therefore the distribution function of X/n converges to 1eλx, which is that of an exponential random variable.[citation needed]
  • The index of dispersion of the geometric distribution is 1p and its coefficient of variation is 11p. The distribution is overdispersed.[1]Template:Rp

Statistical inference

The true parameter p of an unknown geometric distribution can be inferred through estimators and conjugate distributions.

Method of moments

Provided they exist, the first l moments of a probability distribution can be estimated from a sample x1,,xn using the formulami=1nj=1nxjiwhere mi is the ith sample moment and 1il.[17]Template:Rp Estimating E(X) with m1 gives the sample mean, denoted x¯. Substituting this estimate in the formula for the expected value of a geometric distribution and solving for p gives the estimators p̂=1x¯ and p̂=1x¯+1 when supported on and 0 respectively. These estimators are biased since E(1x¯)>1E(x¯)=p as a result of Jensen's inequality.[18]Template:Rp

Maximum likelihood estimation

The maximum likelihood estimator of p is the value that maximizes the likelihood function given a sample.[17]Template:Rp By finding the zero of the derivative of the log-likelihood function when the distribution is defined over , the maximum likelihood estimator can be found to be p̂=1x¯, where x¯ is the sample mean.[19] If the domain is 0, then the estimator shifts to p̂=1x¯+1. As previously discussed in § Method of moments, these estimators are biased.

Regardless of the domain, the bias is equal to

bE[(p̂mlep)]=p(1p)n

which yields the bias-corrected maximum likelihood estimator,[citation needed]

p̂mle=p̂mleb̂

Bayesian inference

In Bayesian inference, the parameter p is a random variable from a prior distribution with a posterior distribution calculated using Bayes' theorem after observing samples.[18]Template:Rp If a beta distribution is chosen as the prior distribution, then the posterior will also be a beta distribution and it is called the conjugate distribution. In particular, if a Beta(α,β) prior is selected, then the posterior, after observing samples k1,,kn, is[20]pBeta(α+n, β+i=1n(ki1)).Alternatively, if the samples are in 0, the posterior distribution is[21]pBeta(α+n,β+i=1nki).Since the expected value of a Beta(α,β) distribution is αα+β,[12]Template:Rp as α and β approach zero, the posterior mean approaches its maximum likelihood estimate.

Random variate generation

Script error: No such module "labelled list hatnote". The geometric distribution can be generated experimentally from i.i.d. standard uniform random variables by finding the first such random variable to be less than or equal to p. However, the number of random variables needed is also geometrically distributed and the algorithm slows as p decreases.[22]Template:Rp

Random generation can be done in constant time by truncating exponential random numbers. An exponential random variable E can become geometrically distributed with parameter p through E/log(1p). In turn, E can be generated from a standard uniform random variable U altering the formula into log(U)/log(1p).[22]Template:Rp[23]

Applications

The geometric distribution is used in many disciplines. In queueing theory, the M/M/1 queue has a steady state following a geometric distribution.[24] In stochastic processes, the Yule Furry process is geometrically distributed.[25] The distribution also arises when modeling the lifetime of a device in discrete contexts.[26] It has also been used to fit data including modeling patients spreading COVID-19.[27]

See also

References

Page Template:Reflist/styles.css has no content.

  1. ^ a b c d e f Page Module:Citation/CS1/styles.css has no content.Johnson, Norman L.; Kemp, Adrienne W.; Kotz, Samuel (2005-08-19). Univariate Discrete Distributions. Wiley Series in Probability and Statistics (1 ed.). Wiley. doi:10.1002/0471715816. ISBN 978-0-471-27246-5.
  2. ^ a b Page Module:Citation/CS1/styles.css has no content.Nagel, Werner; Steyer, Rolf (2017-04-04). Probability and Conditional Expectation: Fundamentals for the Empirical Sciences. Wiley Series in Probability and Statistics (1st ed.). Wiley. doi:10.1002/9781119243496. ISBN 978-1-119-24352-6.
  3. ^ a b c d e Page Module:Citation/CS1/styles.css has no content.Chattamvelli, Rajan; Shanmugam, Ramalingam (2020). Discrete Distributions in Engineering and the Applied Sciences. Synthesis Lectures on Mathematics & Statistics. Cham: Springer International Publishing. doi:10.1007/978-3-031-02425-2. ISBN 978-3-031-01297-6.
  4. ^ Page Module:Citation/CS1/styles.css has no content.Dekking, Frederik Michel; Kraaikamp, Cornelis; Lopuhaä, Hendrik Paul; Meester, Ludolf Erwin (2005). A Modern Introduction to Probability and Statistics. Springer Texts in Statistics. London: Springer London. p. 50. doi:10.1007/1-84628-168-7. ISBN 978-1-85233-896-1.
  5. ^ Page Module:Citation/CS1/styles.css has no content.Weisstein, Eric W. "Memoryless". mathworld.wolfram.com. Retrieved 2024-07-25.
  6. ^ a b c d e Page Module:Citation/CS1/styles.css has no content.Forbes, Catherine; Evans, Merran; Hastings, Nicholas; Peacock, Brian (2010-11-29). Statistical Distributions (1st ed.). Wiley. doi:10.1002/9780470627242. ISBN 978-0-470-39063-4.
  7. ^ Page Module:Citation/CS1/styles.css has no content.Bertsekas, Dimitri P.; Tsitsiklis, John N. (2008). Introduction to Probability. Optimization and Computation Series (2nd ed.). Belmont: Athena Scientific. p. 235. ISBN 978-1-886529-23-6.
  8. ^ Page Module:Citation/CS1/styles.css has no content.Weisstein, Eric W. "Geometric Distribution". MathWorld. Retrieved 2024-07-13.
  9. ^ Page Module:Citation/CS1/styles.css has no content.Aggarwal, Charu C. (2024). Probability and Statistics for Machine Learning: A Textbook. Cham: Springer Nature Switzerland. p. 138. doi:10.1007/978-3-031-53282-5. ISBN 978-3-031-53281-8.
  10. ^ Page Module:Citation/CS1/styles.css has no content.Chan, Stanley (2021). Introduction to Probability for Data Science (1st ed.). Michigan Publishing. ISBN 978-1-60785-747-1.
  11. ^ Page Module:Citation/CS1/styles.css has no content.Westfall, Peter (2014-08-11). "Kurtosis as Peakedness, 1905 – 2014. R.I.P." The American Statistician. 68. doi:10.1080/00031305.2014.917055.
  12. ^ a b c d Page Module:Citation/CS1/styles.css has no content.Lovric, Miodrag, ed. (2011). International Encyclopedia of Statistical Science (1st ed.). Berlin, Heidelberg: Springer Berlin Heidelberg. doi:10.1007/978-3-642-04898-2. ISBN 978-3-642-04897-5.
  13. ^ a b Page Module:Citation/CS1/styles.css has no content.Gallager, R.; van Voorhis, D. (March 1975). "Optimal source codes for geometrically distributed integer alphabets (Corresp.)". IEEE Transactions on Information Theory. 21 (2): 228–230. doi:10.1109/TIT.1975.1055357. ISSN 0018-9448.
  14. ^ Page Module:Citation/CS1/styles.css has no content.Lisman, J. H. C.; Zuylen, M. C. A. van (March 1972). "Note on the generation of most probable frequency distributions". Statistica Neerlandica. 26 (1): 19–23. doi:10.1111/j.1467-9574.1972.tb00152.x. ISSN 0039-0402.
  15. ^ Page Module:Citation/CS1/styles.css has no content.Pitman, Jim (1993). Probability. New York, NY: Springer New York. p. 372. doi:10.1007/978-1-4612-4374-8. ISBN 978-0-387-94594-1.
  16. ^ Page Module:Citation/CS1/styles.css has no content.Ciardo, Gianfranco; Leemis, Lawrence M.; Nicol, David (1 June 1995). "On the minimum of independent geometrically distributed random variables". Statistics & Probability Letters. 23 (4): 313–326. doi:10.1016/0167-7152(94)00130-Z. hdl:2060/19940028569. S2CID 1505801.
  17. ^ a b Page Module:Citation/CS1/styles.css has no content.Evans, Michael; Rosenthal, Jeffrey (2023). Probability and Statistics: The Science of Uncertainty (2nd ed.). Macmillan Learning. ISBN 978-1429224628.
  18. ^ a b Page Module:Citation/CS1/styles.css has no content.Held, Leonhard; Sabanés Bové, Daniel (2020). Likelihood and Bayesian Inference: With Applications in Biology and Medicine. Statistics for Biology and Health. Berlin, Heidelberg: Springer Berlin Heidelberg. doi:10.1007/978-3-662-60792-3. ISBN 978-3-662-60791-6.
  19. ^ Page Module:Citation/CS1/styles.css has no content.Siegrist, Kyle (2020-05-05). "7.3: Maximum Likelihood". Statistics LibreTexts. Retrieved 2024-06-20.
  20. ^ Template:Cite CiteSeerX
  21. ^ Page Module:Citation/CS1/styles.css has no content."3. Conjugate families of distributions" (PDF). Archived (PDF) from the original on 2010-04-08.
  22. ^ a b Page Module:Citation/CS1/styles.css has no content.Devroye, Luc (1986). Non-Uniform Random Variate Generation. New York, NY: Springer New York. doi:10.1007/978-1-4613-8643-8. ISBN 978-1-4613-8645-2.
  23. ^ Page Module:Citation/CS1/styles.css has no content.Knuth, Donald Ervin (1997). The Art of Computer Programming. Vol. 2 (3rd ed.). Reading, Mass: Addison-Wesley. p. 136. ISBN 978-0-201-89683-1.
  24. ^ Page Module:Citation/CS1/styles.css has no content.Daskin, Mark S. (2021). Bite-Sized Operations Management. Synthesis Lectures on Operations Research and Applications. Cham: Springer International Publishing. p. 127. doi:10.1007/978-3-031-02493-1. ISBN 978-3-031-01365-2.
  25. ^ Page Module:Citation/CS1/styles.css has no content.Madhira, Sivaprasad; Deshmukh, Shailaja (2023). Introduction to Stochastic Processes Using R. Singapore: Springer Nature Singapore. p. 449. doi:10.1007/978-981-99-5601-2. ISBN 978-981-99-5600-5.
  26. ^ Page Module:Citation/CS1/styles.css has no content.Gupta, Rakesh; Gupta, Shubham; Ali, Irfan (2023), Garg, Harish (ed.), "Some Discrete Parametric Markov–Chain System Models to Analyze Reliability", Advances in Reliability, Failure and Risk Analysis, Singapore: Springer Nature Singapore, pp. 305–306, doi:10.1007/978-981-19-9909-3_14, ISBN 978-981-19-9908-6, retrieved 2024-07-13{{citation}}: CS1 maint: work parameter with ISBN (link)
  27. ^ Page Module:Citation/CS1/styles.css has no content.Polymenis, Athanase (2021-10-01). "An application of the geometric distribution for assessing the risk of infection with SARS-CoV-2 by location". Asian Journal of Medical Sciences. 12 (10): 8–11. doi:10.3126/ajms.v12i10.38783. ISSN 2091-0576.

Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.