pbinom() — Cumulative binomial

The chance of getting q wins or fewer.

pbinom(q, size, prob, lower.tail = TRUE)

Key idea

Definition

successes counted up to
number of trials (size)
chance of success each trial

Where you'd use it

Frequently asked questions

Does pbinom include k?
Yes — pbinom(k) = P(X ≤ k). For P(X < k) use pbinom(k − 1).
How do I get P(at least k)?
Use pbinom(k − 1, lower.tail = FALSE), which is P(X ≥ k).