InverseCDF
The quantile function: the such that .
Typed signatures
| Type | Package | Applies |
|---|---|---|
(distribution, real) -> real | statistics | always |
Details
- Generic over every distribution this package's CDF can evaluate numerically, old or new — including compute-engine's own natives.
Median(dist)is the exact quantile at where one exists: a closed form for the common continuous laws, and for a discrete law with rational parameters the least whose CDF reaches , decided in exact arithmetic. Other laws stay unevaluated;InverseCDF(dist, 1/2)gives the numeric value.
Plot
argument dist of type distribution has no control
Examples
Basic #
The median of a standard normal is 0 — bisection lands within double precision of it (deterministic, since the bisection is unseeded and non-random).
live ↗InOut
Unlike the numeric InverseCDF, a discrete median is exact: the least whose CDF reaches , decided in exact arithmetic
live ↗InOut
About
| Examples | 3 |
|---|---|
| Checked against | Wolfram Language 2 agree |
See also: CDF, SurvivalFunction, Median