Geometric Distribution

Use the geometric distribution to model the number of trials until the first success.

๐ŸŽฏโญ INTERACTIVE LESSON

Try the Interactive Version!

Learn step-by-step with practice exercises built right in.

Start Interactive Lesson โ†’

Geometric Distribution

Geometric Setting

A random variable XX follows a geometric distribution if:

  • Each trial has exactly two outcomes (success/failure)
  • Trials are independent
  • The probability of success pp is the same on each trial
  • The variable counts the number of trials until the first success

Notation: XโˆผGeometric(p)X \sim \text{Geometric}(p)

The key difference from binomial: geometric has no fixed number of trials.

Geometric Probability

The probability that the first success occurs on the kkth trial:

P(X=k)=(1โˆ’p)kโˆ’1โ‹…p,k=1,2,3,โ€ฆP(X = k) = (1-p)^{k-1} \cdot p, \quad k = 1, 2, 3, \ldots

Interpretation: Fail kโˆ’1k-1 times, then succeed.

Mean and Standard Deviation

ฮผX=E(X)=1p\mu_X = E(X) = \frac{1}{p}

ฯƒX=1โˆ’pp\sigma_X = \frac{\sqrt{1-p}}{p}

Interpretation of the mean: On average, it takes 1p\frac{1}{p} trials to get the first success.

Cumulative Probabilities

P(Xโ‰คk)=1โˆ’(1โˆ’p)kP(X \leq k) = 1 - (1-p)^k

P(X>k)=(1โˆ’p)kP(X > k) = (1-p)^k

This is useful: the probability that you have to wait more than kk trials is simply (1โˆ’p)k(1-p)^k.

Calculator

  • geometpdf(pp, kk): Probability of first success on trial kk
  • geometcdf(pp, kk): Probability of first success on or before trial kk

Shape

The geometric distribution is always skewed right โ€” most of the probability is concentrated on small values of XX.

Example

A baseball player has a batting average of .300 (probability of a hit). What's the probability his first hit comes on his 3rd at-bat?

P(X=3)=(0.7)2(0.3)=0.147P(X = 3) = (0.7)^2(0.3) = 0.147

What's the expected number of at-bats until his first hit?

E(X)=10.3โ‰ˆ3.33ย at-batsE(X) = \frac{1}{0.3} \approx 3.33 \text{ at-bats}

AP Tip: Remember that geometric distributions count the trial number OF the first success (including the success), not the number of failures before the first success.

๐Ÿ“š Practice Problems

No example problems available yet.