quantile

quantile(r: ranvar) 🡒 number, pure function

Returns the quantile of the ranvar; the smallest $k$ such as $\mathbf{P}[X \leq k] \geq \tau$.

Example:

table T = with
  [| as Tau |]
  [|  0.1 |]
  [|  0.5 |]
  [|  0.75 |]
  [|  0.99 |]

show table "" a1b4 with
  T.Tau
  quantile(poisson(3), T.Tau)
User Contributed Notes
0 notes + add a note