Loading…

Expected value of a geometric distribution

What is the expected value of a geometric distribution, and how can it be derived from the geometric probability mass function for both common definitions of the random variable?

Subject: Statistics Chapter: Discrete Random Variables and Their Probability Distributions Topic: Mean of Discrete Random Variable Answer included
expected value of a geometric distribution geometric distribution mean of geometric distribution expected value probability mass function Bernoulli trials infinite series geometric series
Accepted answer Answer included

The expected value of a geometric distribution depends on which geometric random variable definition is used. Both versions model repeated independent Bernoulli trials with constant success probability \(p\), where \(0 \lt p \lt 1\).

Two standard parameterizations
  • Trials-until-success version: \(X \in \{1,2,3,\dots\}\) is the number of trials needed to get the first success. \[ P(X=k)=p \cdot (1-p)^{k-1}. \]
  • Failures-before-success version: \(W \in \{0,1,2,\dots\}\) is the number of failures before the first success. \[ P(W=w)=p \cdot (1-p)^w. \]

Result: expected value of a geometric distribution

\(\mathbb{E}[X]\) \(1/p\) \(\mathbb{E}[W]\) \((1-p)/p\)

The two means differ by exactly 1 because \(X=W+1\). Therefore, \[ \mathbb{E}[X]=\mathbb{E}[W]+1. \]

Derivation for \(X\): number of trials until first success

By definition, \[ \mathbb{E}[X]=\sum_{k=1}^{\infty} k \cdot P(X=k)=\sum_{k=1}^{\infty} k \cdot p \cdot (1-p)^{k-1}. \] Let \(q=1-p\). Then \[ \mathbb{E}[X]=p \cdot \sum_{k=1}^{\infty} k \cdot q^{k-1}. \]

Use the geometric series identity (valid for \(|q| \lt 1\)): \[ \sum_{k=0}^{\infty} q^k=\frac{1}{1-q}. \] Differentiate both sides with respect to \(q\): \[ \sum_{k=1}^{\infty} k \cdot q^{k-1}=\frac{1}{(1-q)^2}. \]

Substitute into the expectation: \[ \mathbb{E}[X]=p \cdot \frac{1}{(1-q)^2}. \] Since \(1-q=1-(1-p)=p\), it follows that \[ \mathbb{E}[X]=p \cdot \frac{1}{p^2}=\frac{1}{p}. \]

Derivation for \(W\): number of failures before first success

Since \(W=X-1\), \[ \mathbb{E}[W]=\mathbb{E}[X]-1=\frac{1}{p}-1=\frac{1-p}{p}. \] This agrees with the direct summation from \(P(W=w)=p \cdot (1-p)^w\) as well.

Worked example (numerical expected value)

If \(p=0.20\), then the expected value of a geometric distribution (trials-until-success) is \[ \mathbb{E}[X]=\frac{1}{0.20}=5. \] Interpreted in context: on average, 5 trials are needed to obtain the first success when each trial succeeds with probability 0.20.

Definition Support PMF Expected value
\(X\): trials until first success \(\{1,2,3,\dots\}\) \(P(X=k)=p \cdot (1-p)^{k-1}\) \(\mathbb{E}[X]=1/p\)
\(W\): failures before first success \(\{0,1,2,\dots\}\) \(P(W=w)=p \cdot (1-p)^w\) \(\mathbb{E}[W]=(1-p)/p\)

Visualization: PMF bars and the mean \(1/p\)

Geometric distribution PMF and the expected value 1/p 0.0 0.1 0.2 0.3 1 2 3 4 5 6 7 8 9 10 \(\mathbb{E}[X]=1/p\approx 3.33\) \(k\) (trial on which the first success occurs), with \(p=0.30\) \(P(X=k)\)
Bars show \(P(X=k)=p \cdot (1-p)^{k-1}\) for \(k=1,\dots,10\) when \(p=0.30\). The dashed line marks the expected value of a geometric distribution \(\mathbb{E}[X]=1/p\approx 3.33\), which lies between integers because the mean is an average, not necessarily a possible outcome.

Common related quantity (often reported)

The variance is frequently paired with the expected value: \[ \mathrm{Var}(X)=\frac{1-p}{p^2} \quad \text{and} \quad \mathrm{Var}(W)=\frac{1-p}{p^2}. \] The standard deviation is the square root of variance.

Assumptions behind the geometric model

  • Trials are independent.
  • Each trial has the same success probability \(p\).
  • The first success ends the count, creating a geometric waiting-time distribution.
Vote on the accepted answer
Upvotes: 0 Downvotes: 0 Score: 0
Community answers No approved answers yet

No approved community answers are published yet. You can submit one below.

Submit your answer Moderated before publishing

Plain text only. Your name is required. Links, HTML, and scripts are blocked.

Fresh

Most recent questions

109 questions · Sorted by newest first

Showing 1–10 of 109
per page
  1. Mar 5, 2026 Published
    Formula of the Variance (Population and Sample)
    Statistics Numerical Descriptive Measures Measures of Dispersion for Ungrouped Data
  2. Mar 5, 2026 Published
    Mean Median Mode Calculator (Formulas, Interpretation, and Example)
    Statistics Numerical Descriptive Measures Measures of Central Tendency for Ungrouped Data
  3. Mar 4, 2026 Published
    How to Calculate Standard Deviation in Excel (STDEV.S vs STDEV.P)
    Statistics Numerical Descriptive Measures Measures of Dispersion for Ungrouped Data
  4. Mar 4, 2026 Published
    Suppose T and Z Are Random Variables: How T Relates to Z in the t Distribution
    Statistics Estimation of the Mean and Proportion Estimation of a Population Mean σ Not Known the T Distribution
  5. Mar 4, 2026 Published
    What Does R Squared Mean in Statistics (Coefficient of Determination)
    Statistics Simple Linear Regression Coefficient of Determination
  6. Mar 3, 2026 Published
    Box and Plot Graph (Box Plot) Explained
    Statistics Numerical Descriptive Measures Box and Whisker Plot
  7. Mar 3, 2026 Published
    How to Calculate a Z Score
    Statistics Continuous Random Variables and the Normal Distribution Standardizing a Normal Distribution
  8. Mar 3, 2026 Published
    How to Calculate Relative Frequency
    Statistics Organizing and Graphing Data Organizing and Graphing Quantitative Data
  9. Mar 3, 2026 Published
    Is zero an even number?
    Statistics Numerical Descriptive Measures Measures of Central Tendency for Ungrouped Data
  10. Mar 3, 2026 Published
    Monty Hall Paradox (Conditional Probability Explained)
    Statistics Probability Marginal and Conditional Probabilities
Showing 1–10 of 109
Open the calculator for this topic