Function Logistic(Location, Scale)

Logistic

The function Logistic draws a random value from a logistic distribution.

Logistic(
         Location,    ! (optional) numerical expression
         Scale        ! (optional) numerical expression
         )

Arguments

Location

A scalar numerical expression.

Scale

A scalar numerical expression \(> 0\).

Return Value

The function Logistic returns a random value drawn from a logistic distribution with mean Location and scale Scale.

Graph

../../_images/logistic.png

A graph with:

  • a histogram for 1.000.000 experiments of drawing from distribution Logistic(3,4), and

  • the DistributionDensity for Logistic(3,4)

Example

The code:

option seed := 1234 ;
_p_draw := Logistic( 0, 10 )  ;
_p_pointDensity := DistributionDensity( Logistic( 0, 10 ), 3 );

block where listing_number_precision := 6 ;
        display _p_draw, _p_pointDensity ;
endblock ;

will produce

_p_draw := -21.717284 ;
_p_pointDensity := 0.024446 ;

in the listing file.

References