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.
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)
- Open in Notebook.
- Set n (trials), p (success probability), and k (successes).
- Compute PMF and CDF.
- Use binominv to find the smallest k with CDF ≥ target probability.
- 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)