Processing math: 100%

Geometric Probabilities Distributions Examples

The geometric probability distribution is used in situations where we need to find the probability P(X=x) that the xth trial is the first success to occur in a repeated set of trials.
The random variable X associated with a geometric probability distribution is discrete and therefore the geometric distribution is discrete.

Geometric Probability Formula

If the trials are
1) independent
2) each trial have only two possible mutually exclusive outcomes: success or failure
3) the probability of a success at each trial is p and is constant
4) the probability of a failure at each trial is 1p (probability of complement) and is constant
We have a geometric probability distribution and the probability P(X=x) that the the xth trial is a success is given by
P(X=x)=(1p)x1p, forx=1,2,3,...


Explanation of the formula
In order to have a first success at the xth trial, the first x1 trials must be failures each occurring with a probability 1p.
The probability of having x1 successive failures is given by product rule (1p)×(1p)×(1p)...=(1p)x1
The xth trial must be a success occurring with a probability p

We then use the product rule to write the formula: P(X=x)=(1p)x1p given above.

The mean of the geometric distribution is
μ=1p
The variance of the geometric distribution is
σ2=1pp2
The standard deviation of the geometric distribution is
σ=1pp2



Geometric Distribution Examples with Detailed Solutions

Example 1
A fair coin is tossed.
a) What is the probability of getting a tail at the 5th toss?
b) Find the mean μ and standard deviation σ of the distribution?
c) Use excel or google sheets to plot the probabilities from x=1 to x=10.

Solution to Example 1
a)
Let "getting a tail" be a "success". For a fair coin, the probability of getting a tail is p=1/2 and "not getting a tail" (failure) is 1p=11/2=1/2
For a fair coin, it is reasonable to assume that we have a geometric probability distribution.
Getting a tail at the 5th toss implies getting "no tail" (failure) for the first 4 tosses and a success at the 5th toss. Hence
P(X=5)=(11/2)4(1/2)=(1/2)5=1/32=0.03125.
b)
μ=1/0.5=2
σ=1pp2=0.50.52=1.41
c)
The distribution of the geometric probability distribution for p=0.5
P(X=x)=(0.5)x10.5, forx=1,2,3,...10


is shown below below.
All calculations and graphs were made using a google sheet.

geometric probability distribution for p = 0.5
The distribution given above may be written as
P(X=x)=(0.5)x10.5=0.5x
It is an exponential distribution with base 0.5 and because the base is less than 1, it decreases exponentially.
The sum of the first 10 terms of the probability distribution was also computed using the same google sheet and it is equal to
10x=1P(X=x)=0.9990234375
As the number of terms in the above sum increases, the sum approaches 1.



Example 2
In a large population of adults, 45% have a post secondary degree.
If people are selected at random from this population,
a) what is the probability that the third person selected is the first one that has a post secondary degree?
b) what is the probability that the first person with a post secondary degree is randomly selected on or before the 4th selection?

Solution to Example 2
a)
Let "having post secondary degree" be a "success". If a person from this population is selected at random, the probability of "having post secondary degree" is p=45%=0.45 and "not having post secondary degree" (failure) is 1p=10.45=0.55
Selecting a person from a large population is a trial and these trials may be assumed to be independent. This is a geometric probability problem. Hence
P(X=3)=(10.45)2(0.45)=0.1361.
b)
On or before the 4th is selected means either the first, second, third or fourth person. The probability may be written as
P(X4)=P(X=1)+P(X=2)+P(X=3)+P(X=4)
Substitute by the formula P(X=x)=(10.45)x10.45 to write
P(X4)=(10.45)110.45+(10.45)210.45+(10.45)310.45+(10.45)410.45=0.9085



Sums of the terms of a Geometric sequence

As seen above, the geometric probability distribution is given by P(X=x)=(1p)x1p


Express P(X=x) for x=1,2,....,n.. to obtain
P(X=1)=p,P(X=2)=(1p)p,P(X=3)=(1p)2p....P(X=n)=(1p)n1p
We note that the above are the terms of a geometric sequence hence the name of geometric probability distribution.

We need to find a formula for the finite and infinite sums of a the terms of a geometric sequence which will be used to answer the questions in the examples below and write closed form formulas that are easy to use.
The finite sum S of the terms of a geometric sequence with first term a1 and nth term an=a1rn1 and common ratio r is given by
S=nx=1a1rx1=a1+a1r+a1r2+...a1rn1
Multiply the left and right hand terms to obtain
Sr=a1r+a1r2+a1r3+...a1rn
Subtract Sr from S
SSr=(a1+a1r+a1r2+...a1rn1)(a1r+a1r2+a1r3+...a1rn)
Simplify
SSr=a1a1rn
Factor S out on the left side
S(1r)=a1a1rn
Solve for the sum S to find the formula
S=nx=1a1rx1=a1(1rn)1r,r1

For r<1 and the sum is infinite, we have S=x=1a1rx1=a11r



Example 3
The trials of a probability experiment satisfy the conditions for a geometric distribution with a probability of success p, find the probability that
a) a success occurs on or before the nth trial.
b) a success occurs before the nth trial.
c) a success occurs on or after the nth trial.
d) a success occurs after the nth trial.

Solution to Example 3
a)
P(Xn)=nx=1P(X=x)=nx=1(1p)x1p
The above is a finite sum of a geometric sequence with the first term a1=p and the nth term an=(1p)n1p and the common ratio 1p. Hence
P(Xn)=p(1(1p)n)1(1p)=1(1p)n

b)
P(X<n)=n1x=1P(X=x)=n1x=1(1p)x1p
The above is a finite sum of a geometric sequence with the first term a1=p and the common ratio 1p. Hence
P(X<n)=p(1(1p)n1)1(1p)=1(1p)n1

c)
Using the probability of the complement
P(Xn)=1P(X<n)=1(1(1p)n1)=(1p)n1

d)
Using the probability of the complement
P(X>n)=1P(Xn)=1(1(1p)n)=(1p)n



Example 4
A company makes tools such that 99% of these tools are not defective.
Tools are selected at random and tested,
a) what is the probability that the second selected tool is the first to be non defective?
b) what is the probability that the first non defective tool is randomly selected on or before the second selection?
c) what is the probability that the first non defective tool is randomly selected after the 10th selection?

Solution to Example 4
a)
Let "a non defective tool" be a "success" with p=99%=0.99.
P(X=2)=(10.99)21(0.99)=0.0099.
b)
On or before the second selection means: P(X2)
Substitute n by 2 and p by 0.99 in the formula P(Xn)=1(1p)n obtained in example 3 above.
P(X2)=1(10.99)2=0.9999

c)
After the 10th selection means: P(X>10)
Substitute n by 10 and p by 0.99 in the formula P(X>n)=(1p)n obtained in example 3 above.
P(X>10)=(10.99)10=10200

More References and links

Poisson Probability Distribution Calculator
Binomial Probabilities Examples and Questions
Geometric Sequences and Sums
addition rule of probabilities
multiplication rule of probabilities
probability questions
classical formula for probability
mutually exclusive events