Geometric distribution | Properties, proofs, exercises (2024)

by Marco Taboga, PhD

The geometric distribution is the probability distribution of the number of failures we get by repeating a Bernoulli experiment until we obtain the first success.

Geometric distribution | Properties, proofs, exercises (1)

Table of contents

  1. Intuition

  2. Definition

  3. Relation to the Bernoulli distribution

  4. Expected value

  5. Variance

  6. Moment generating function

  7. Characteristic function

  8. Distribution function

  9. The shifted geometric distribution

  10. Relation to the exponential distribution

  11. Solved exercises

    1. Exercise 1

Intuition

Consider a Bernoulli experiment, that is, a random experiment having two possible outcomes: either success or failure.

We repeat the experiment until we get the first success, and then we count the number Geometric distribution | Properties, proofs, exercises (2) of failures that we faced prior to recording the success.

Since the experiments are random, Geometric distribution | Properties, proofs, exercises (3) is a random variable.

If the repetitions of the experiment are independent of each other, then the distribution of Geometric distribution | Properties, proofs, exercises (4) is called geometric distribution.

Example If we toss a coin until we obtain head, the number of tails before the first head has a geometric distribution.

At the end of this lecture we will also study a slight variant of the geometric distribution, called shifted geometric distribution. The latter is the distribution of the total number of trials (all the failures + the first success).

In other words, if Geometric distribution | Properties, proofs, exercises (5) has a geometric distribution, then Geometric distribution | Properties, proofs, exercises (6) has a shifted geometric distribution.

Geometric distribution | Properties, proofs, exercises (7)

Definition

The geometric distribution is characterized as follows.

Definition Let Geometric distribution | Properties, proofs, exercises (8) be a discrete random variable. Let Geometric distribution | Properties, proofs, exercises (9). Let the support of Geometric distribution | Properties, proofs, exercises (10) be the set of non-negative integersGeometric distribution | Properties, proofs, exercises (11)We say that Geometric distribution | Properties, proofs, exercises (12) has a geometric distribution with parameter Geometric distribution | Properties, proofs, exercises (13) if its probability mass function isGeometric distribution | Properties, proofs, exercises (14)

The following is a proof that Geometric distribution | Properties, proofs, exercises (15) is a legitimate probability mass function.

Proof

The probabilities Geometric distribution | Properties, proofs, exercises (16) are well-defined and non-negative for any Geometric distribution | Properties, proofs, exercises (17) because Geometric distribution | Properties, proofs, exercises (18). We just need to prove that the sum of Geometric distribution | Properties, proofs, exercises (19) over its support equals Geometric distribution | Properties, proofs, exercises (20): Geometric distribution | Properties, proofs, exercises (21)where in step Geometric distribution | Properties, proofs, exercises (22) we have used the formula for geometric series.

Relation to the Bernoulli distribution

Remember that a Bernoulli random variable is equal to:

  • Geometric distribution | Properties, proofs, exercises (23) (success) with probability Geometric distribution | Properties, proofs, exercises (24);

  • Geometric distribution | Properties, proofs, exercises (25) (failure) with probability Geometric distribution | Properties, proofs, exercises (26).

The following proposition shows how the geometric distribution is related to the Bernoulli distribution.

Proposition Let Geometric distribution | Properties, proofs, exercises (27) be a sequence of independent Bernoulli random variables with parameter Geometric distribution | Properties, proofs, exercises (28). Then, for any integer Geometric distribution | Properties, proofs, exercises (29), the probability that Geometric distribution | Properties, proofs, exercises (30) for Geometric distribution | Properties, proofs, exercises (31) and Geometric distribution | Properties, proofs, exercises (32) isGeometric distribution | Properties, proofs, exercises (33)where Geometric distribution | Properties, proofs, exercises (34) is the probability mass function of a geometric distribution with parameter Geometric distribution | Properties, proofs, exercises (35).

Proof

Since the Bernoulli random variables are independent, we have thatGeometric distribution | Properties, proofs, exercises (36)

Expected value

The expected value of a geometric random variable Geometric distribution | Properties, proofs, exercises (37) isGeometric distribution | Properties, proofs, exercises (38)

Proof

It can be derived as follows:Geometric distribution | Properties, proofs, exercises (39)

Variance

The variance of a geometric random variable Geometric distribution | Properties, proofs, exercises (40) isGeometric distribution | Properties, proofs, exercises (41)

Proof

Let us first derive the second moment of Geometric distribution | Properties, proofs, exercises (42):Geometric distribution | Properties, proofs, exercises (43)Now, we can use the variance formula:Geometric distribution | Properties, proofs, exercises (44)

Moment generating function

The moment generating function of a geometric random variable Geometric distribution | Properties, proofs, exercises (45) is defined for any Geometric distribution | Properties, proofs, exercises (46):Geometric distribution | Properties, proofs, exercises (47)

Proof

This is proved as follows:Geometric distribution | Properties, proofs, exercises (48)where the series in step Geometric distribution | Properties, proofs, exercises (49) converges only if Geometric distribution | Properties, proofs, exercises (50)that is, only ifGeometric distribution | Properties, proofs, exercises (51)By taking the natural log of both sides, the condition becomesGeometric distribution | Properties, proofs, exercises (52)

Characteristic function

The characteristic function of a geometric random variable Geometric distribution | Properties, proofs, exercises (53) isGeometric distribution | Properties, proofs, exercises (54)

Proof

The proof is similar to the proof for the mgf:Geometric distribution | Properties, proofs, exercises (55)

Distribution function

The distribution function of a geometric random variable Geometric distribution | Properties, proofs, exercises (56) isGeometric distribution | Properties, proofs, exercises (57)

Proof

For Geometric distribution | Properties, proofs, exercises (58), Geometric distribution | Properties, proofs, exercises (59), because Geometric distribution | Properties, proofs, exercises (60) cannot be smaller than Geometric distribution | Properties, proofs, exercises (61). For Geometric distribution | Properties, proofs, exercises (62), we haveGeometric distribution | Properties, proofs, exercises (63)

The shifted geometric distribution

As we have said in the introduction, the geometric distribution is the distribution of the number of failed trials before the first success.

The shifted geometric distribution is the distribution of the total number of trials (all the failures + the first success).

In other words, if Geometric distribution | Properties, proofs, exercises (64) has a geometric distribution, then Geometric distribution | Properties, proofs, exercises (65)has a shifted geometric distribution.

It is then simple to derive the properties of the shifted geometric distribution.

It expected value isGeometric distribution | Properties, proofs, exercises (66)

Its variance isGeometric distribution | Properties, proofs, exercises (67)

Its moment generating function is, for any Geometric distribution | Properties, proofs, exercises (68):Geometric distribution | Properties, proofs, exercises (69)

Its characteristic function isGeometric distribution | Properties, proofs, exercises (70)

Its distribution function isGeometric distribution | Properties, proofs, exercises (71)

Relation to the exponential distribution

The geometric distribution is considered a discrete version of the exponential distribution.

Suppose that the Bernoulli experiments are performed at equal time intervals.

Then, the geometric random variable Geometric distribution | Properties, proofs, exercises (72) is the time (measured in discrete units) that passes before we obtain the first success.

Contrast this with the fact that the exponential distribution is used to model the time elapsed before a given event occurs when time is continuous.

From a mathematical viewpoint, the geometric distribution enjoys the same memoryless property possessed by the exponential distribution:

  • in the exponential case, the probability that the event happens during a given time interval is independent of how much time has already passed without the event happening;

  • in the geometric case, the probability that the event happens at a given point in (discrete) time is not dependent on what happened before; in fact, the Bernoulli experiment performed at each point in time is independent of previous trials.

Solved exercises

Below you can find some exercises with explained solutions.

Exercise 1

On each day we play a lottery in which the probability of winning is Geometric distribution | Properties, proofs, exercises (73).

What is the expected value of the number of days that will elapse before we win for the first time?

Solution

Each time we play the lottery, the outcome is a Bernoulli random variable (equal to 1 if we win), with parameter Geometric distribution | Properties, proofs, exercises (74). Therefore, the number of days before winning is a geometric random variable with parameter Geometric distribution | Properties, proofs, exercises (75). Its expected value isGeometric distribution | Properties, proofs, exercises (76)

How to cite

Please cite as:

Taboga, Marco (2021). "Geometric distribution", Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. Online appendix. https://www.statlect.com/probability-distributions/geometric-distribution.

Geometric distribution | Properties, proofs, exercises (2024)
Top Articles
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 5869

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.