Binomial Distribution (PMF/CDF/Inverse) — Notebook Template

Compute binomial probabilities for k successes in n trials with success probability p. Includes PMF, CDF, and inverse.

stats binomial probability
All templates

What this template does

This is a ready-to-run GetCalcMaster Notebook starter. Open it into Notebook, run once with defaults, then tweak inputs and keep your assumptions next to the math.

How to use it (recommended)

  1. Open in Notebook.
  2. Set n (trials), p (success probability), and k (successes).
  3. Compute PMF and CDF.
  4. Use binominv to find the smallest k with CDF ≥ target probability.
  5. Sanity check: CDF should be non-decreasing in k.
Tip: When a result matters, verify it twice: a unit check + a second method (graph/estimate).

Preview (first cells)

This preview is for readability. The full template loads into Notebook when you click Open.

TEXT
# Binomial Distribution

Functions:
- `binompmf(k, n, p)`
- `binomcdf(k, n, p)`
- `binominv(q, n, p)`

Interpretation: n independent trials, each success prob p.
MATH
n = 20
MATH
p = 0.4
MATH
k = 7
MATH
pmf = binompmf(k, n, p)
MATH
cdf = binomcdf(k, n, p)