Worked Example: n = 10, r = 3, p = 0.5, Z = 1.96, Margin of Error = ±5%
Compute combinations, permutations, p-value, and required survey sample size.
- Permutations P(10,3) = 10 × 9 × 8 = 720; Combinations C(10,3) = 720 ÷ 6 = 120.
- Two-tailed p-value at Z = 1.96 is p = 0.0500.
- Cochran sample size at 95% confidence (±5% margin, p=0.5) = (3.8416 × 0.25) ÷ 0.0025 = 385 respondents.
Result: nCr = 120, nPr = 720, p-value = 0.0500, and required sample size = 385.
Mathematics & Statistics · Probability & Inferential Statistics
Permutations, Combinations, Probability, Sample Size & P-Value Calculator: inputs, method, and how to read the result
Compute nCr, nPr, binomial probability, normal p-values from Z-scores, and 95% confidence sample size.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- Total Items / Trials (n): Total population set size or Bernoulli trials.
- Items Chosen / Successes (r): Subset size selected or number of successes (r ≤ n).
- Single-Trial Success Probability (p): Probability p ∈ (0,1) for binomial & sample-size calculation.
- Test Z-Statistic (For P-Value): Standard normal Z-score (e.g. 1.96 corresponds to p = 0.05 two-tailed).
What the calculation includes
With the default values shown, Combinations C(10,3), Permutations P(10,3) & P-Value is nCr = 120 • nPr = 720. The calculation follows Combinatorics, Binomial PMF, Normal CDF & Cochran Sample Size; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing Total Items / Trials (n) from 10 to 11 changes Combinations C(10,3), Permutations P(10,3) & P-Value (nCr = 120 • nPr = 720) to Combinations C(11,3), Permutations P(11,3) & P-Value (nCr = 165 • nPr = 990). This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Sampling without replacement for nCr/nPr; infinite population Cochran formula for sample size.
- Factorial calculation is bounded at n ≤ 170.
Scope: Global Statistical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: Statistics & Standard Deviation Calculator, Scientific Calculator, Fraction, Mixed Number, GCF, LCM & Prime Factorization Calculator.