pgeom() — Cumulative geometric

The chance your first win comes within q misses or fewer.

pgeom(q, prob, lower.tail = TRUE)

Key idea

Definition

misses counted up to
chance of success each try
chance the first win comes by then

In plain words

Hoping for a six soon? pgeom tells you the chance you get it within the first few rolls.

Where you'd use it

Worked example 7

A fair coin (prob = 0.5). The chance of your first heads within 2 misses or fewer is 0.875.

Frequently asked questions

What does pgeom give?
P(X ≤ k) failures before the first success — mind the 0-based count.