English translation
Set parameters
The geometric distribution models how long we must wait until the first success. It is appropriate for “waiting time” problems—not for counting how many successes occur within a fixed number of trials.
I distinguish between the binomial and geometric distributions as follows:
- The binomial distribution asks how many successes occur in a fixed number of trials.
- The geometric distribution asks on which trial the first success occurs.
The geometric distribution is a discrete probability distribution that describes the number of independent Bernoulli trials needed until the first success occurs. In other words, it answers the question: “On which trial does the first success happen?” This makes it especially well-suited for modeling “waiting time” scenarios.
Definition of the Geometric Distribution
Let the random variable denote the trial number on which the first success occurs in a sequence of independent, identical Bernoulli trials, where each trial succeeds with probability . Then follows a geometric distribution with parameter , denoted .
To identify whether a scenario follows a geometric distribution, first verify that:
- Each trial is independent;
- The success probability remains constant across trials; and
- The question concerns the position (trial number) of the first success.
Probability Mass Function (PMF)
The probability mass function (PMF) of the geometric distribution is:
Here, represents the probability that the first success occurs on the -th trial.
Cumulative Distribution Function (CDF)
The cumulative distribution function (CDF) is given by:
Key Properties of the Geometric Distribution
The geometric distribution possesses several important properties that aid both theoretical understanding and practical application:
Content like “Geometric Distribution Among Common Probability Distributions” can easily get lost in details. First, follow the main conceptual thread illustrated in the diagram—then return to the text to verify the context, inputs, outputs, and decision criteria.
-
Expected Value (Mean):
- The expected value of is .
Variance:
- The variance of is .
These properties make the geometric distribution highly useful in real-world applications such as:
- Determining how many times a fair coin must be flipped before observing the first “heads”.
- Modeling the number of customers arriving at a service counter until the first one receives successful service.
Application Examples
Coin-Flipping Example
Suppose you flip a fair coin, where the probability of heads (“success”) is . You wish to know the number of flips required until the first heads appears. By definition, the random variable representing this count follows .
Computing Probabilities
We compute the probability that the first heads occurs on the -th flip:
For :
For :
These results indicate the probabilities that the first success occurs on the first or third trial, respectively.
Computing Expectation and Variance
- For the coin-flipping scenario, the expected value is:
This means that, on average, two flips are needed to observe the first heads.
- The variance is:
This indicates that observed numbers of flips will fluctuate around the mean of 2, with a variance of 2.
Python Example
Below is a simple Python example demonstrating how to compute and visualize the PMF of a geometric distribution:
import numpy as np
import matplotlib.pyplot as plt
# Set parameters
p = 0.5
k = np.arange(1, 21) # Trial numbers from 1 to 20
# Compute geometric PMF
pmf = (1 - p) ** (k - 1) * p
# Plot the distribution
plt.bar(k, pmf)
plt.xlabel('Trial Number (k)')
plt.ylabel('Probability P(X=k)')
plt.title('Geometric Distribution (p=0.5)')
plt.xticks(k)
plt.show()
In this code, we set and compute the probability that the first success occurs on each of the first 20 trials. The resulting probabilities are visualized using a bar chart.
After studying “Geometric Distribution Among Common Probability Distributions”, try adapting it to a scenario of your own—pay close attention to whether the inputs, processing logic, and outputs align coherently.
To apply “Geometric Distribution Among Common Probability Distributions” to your own task, start by narrowing the scope—focus on validating just one critical decision point.
Summary
The geometric distribution is a fundamental probability distribution used to model waiting-time phenomena and enjoys wide practical applicability. Having explored its definition, key properties, and concrete examples, we are now better equipped to apply it effectively to real-world problems.
In the next section, we will delve deeper into computing expectations of random variables and further examine their relationship with variance—strengthening our foundational understanding of probability theory, especially as applied to practical problems.
Continue