UNPKG

@stdlib/stats

Version:

Standard library statistical functions.

36 lines (25 loc) 687 B
{{alias}}( r, p ) Returns the excess kurtosis of a negative binomial distribution. If provided `NaN` as any argument, the function returns `NaN`. If provided a `r` which is not a positive number, the function returns `NaN`. If provided a success probability `p` outside of `[0,1]`, the function returns `NaN`. Parameters ---------- r: integer Number of failures until experiment is stopped. p: number Success probability. Returns ------- out: number Kurtosis. Examples -------- > var v = {{alias}}( 100, 0.2 ) ~0.061 > v = {{alias}}( 20, 0.5 ) ~0.325 See Also --------