Skip to contents

The parameters of S(alpha, beta, scale, loc) for invert_chf(): with beta 1 or -1 its one power tail is inverted along a tilted line, with abs(beta) < 1 it is split into its two totally skewed halves, each inverted along its own tilted line and convolved. At alpha = 2 it is the normal with variance 2 scale^2. For alpha < 2, P(X > x) ~ tail_constant * x^-alpha and P(X < -x) ~ left_tail_constant * x^-alpha.

Usage

stable_distribution(
  alpha,
  beta,
  scale = 1,
  loc = 0,
  parameterization = "S1",
  ptr = NULL
)

Arguments

alpha

The index of stability, in (0, 2].

beta

The skewness, in [-1, 1].

scale

Positive.

loc

The location, read in parameterization.

parameterization

"S1" (Nolan's S1, scipy's default) or "S0".

ptr

Internal.

Value

A stable_distribution with properties alpha, beta, scale, loc (S1), loc0 (S0), tail_constant, left_tail_constant, mean and prob_above_loc; stable_add() and its siblings give its algebra.

Examples

s <- stable_distribution(1.5, 1, 2)
s@tail_constant
#> [1] 1.128379
d <- invert_chf(s, log2 = 12)
d@report$tilt_right
#> [1] 10.93976