random.logLogistic

random.logLogistic, function

def pure random.logLogistic(alpha: number, beta: number): number

Draws a sample from a log-logistic distribution with scale alpha and shape beta. Both parameters must be strictly positive.

Example

montecarlo 10000 with
  x = random.logLogistic(0.5, 2)
  sample avgX = avg(x)

show scalar "Average sample" with avgX

This outputs the following scalar:

Average sample
0.7746239
User Contributed Notes
0 notes + add a note