Method · Statistics Library

Probability calculator (distribution tables)

The probability calculator gives probabilities and critical values for the normal, t, chi-square, F, binomial, Poisson, uniform and exponential distributions: the chance of falling below, above, between or outside given values, or the value that cuts off a given probability, with no data column needed.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

Statistics textbooks end with tables: the z table, the t table, the chi-square and F tables. The calculator replaces them for any parameters. Pick the distribution, type its parameters, and ask either for a probability (below x, above x, between a and b, outside a and b) or for the value with a given probability below or above it.

Two everyday uses: a p-value from a test statistic and a critical value. For a two-sided z or t test, the p-value is twice the probability above the statistic's size without its sign (above 2.1 for z = −2.1 as well as for z = 2.1). For a one-sided test it is the probability in the direction of the alternative: above the statistic for 'greater', below it for 'less'. For a chi-square or F statistic, which is never negative, it is the probability above the statistic. A two-sided critical value at level α is the value with probability α/2 above it.

For a binomial or Poisson count, which takes whole numbers only, the card includes the end values: below x is 'at most x', above x is 'at least x', and between a and b includes both a and b. Finding a value works the other way round for the upper tail: 'the value with probability p above it' counts only the values strictly above it. For 10 fair coin flips, the chance of at least 5 heads is 0.623, and 5 is the value with probability 0.377 above it (6 or more heads).

Practitioner explanation

Probabilities come from scipy's cdf and sf (the tail function is used directly, so small upper tails keep their precision); quantiles from ppf and isf. Discrete quantiles follow R: smallest x with P(X ≤ x) ≥ p, or smallest x with P(X > x) ≤ p for the upper tail, with R's 64-epsilon relative tolerance so a p equal to a cumulative probability returns that value. A non-whole x for a discrete X is rounded the way that leaves the event unchanged (P(X ≤ 2.5) = P(X ≤ 2), P(X ≥ 2.5) = P(X ≥ 3)).

The card shows the answer at four decimals ("< 0.0001" rather than 0 for a tiny tail) and keeps at least six digits in the statistics and the export table. The chart shades the region on the density or the probability bars. It runs no test (the badge reads "descriptive"), and the assistant never runs it unasked. The worked example agrees with pbinom(7, 10, 0.5) − pbinom(2, 10, 0.5) in R 4.5.3.

When to use it

Consider it when

You need a value from a distribution table: a normal probability, a t, chi-square or F critical value, a p-value from a test statistic, or a binomial or Poisson probability.

Use caution when

To describe or test your own data (use Descriptive Statistics, a distribution fit or a hypothesis test); the calculator is exact for the distribution entered, not for data that may not follow it.

Formulas and symbols

Probabilities of a region

P(X≤x)=F(x),P(X≥x)=1−F(x−),P(a≤X≤b)=F(b)−F(a−)P(X \le x) = F(x),\quad P(X \ge x) = 1 - F(x^-),\quad P(a \le X \le b) = F(b) - F(a^-)

F the cumulative distribution function; x⁻ means 'just below x', which matters only for a discrete X (F(x⁻) = F(⌈x⌉ − 1)).

Quantile (value with probability p below)

qp=min⁡{x:F(x)≥p}q_p = \min\{x : F(x) \ge p\}

For a continuous X this is the x with F(x) = p.

Alternatives

  • Distribution Fitting (Distribution Fitting). You want to know which distribution your data follow before using its probabilities.
  • Power & Sample Size (Power & Sample Size). You want power or a sample size, not a single probability.

Worked example

Scenario

Ten fair coin flips; probability of 3 to 7 heads, both ends included.

Result

P(3 ≤ X ≤ 7) = 0.890625 for the binomial with n = 10, p = 0.5.

Interpretation

About 89% of runs of ten fair flips give between 3 and 7 heads.

Dataset: none

Common misconceptions

Misconception

For a binomial, P(X < 3) and P(X ≤ 3) are the same.

Correction

They differ by P(X = 3): a binomial takes whole numbers only, so P(X < 3) = P(X ≤ 2). They are equal only for a continuous distribution.

Misconception

The normal-table probability applies to my data because I used their mean and SD.

Correction

It applies only as far as the data follow a normal distribution; check the shape with a histogram or a Q-Q plot first.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6 Probability Distributions, NIST/SEMATECH (2012).