As an instance of the rv_continuous class, tukeylambda object inherits from it
a collection of generic methods (see below for the full list),
and completes them with details specific for this particular distribution.
Expected value of a function (of one argument) with respect to the distribution.
median(lam, loc=0, scale=1)
Median of the distribution.
mean(lam, loc=0, scale=1)
Mean of the distribution.
var(lam, loc=0, scale=1)
Variance of the distribution.
std(lam, loc=0, scale=1)
Standard deviation of the distribution.
interval(confidence, lam, loc=0, scale=1)
Confidence interval with equal areas around the median.
Notes
A flexible distribution, able to represent and interpolate between the
following distributions:
Cauchy (\(lambda = -1\))
logistic (\(lambda = 0\))
approx Normal (\(lambda = 0.14\))
uniform from -1 to 1 (\(lambda = 1\))
tukeylambda takes a real number \(lambda\) (denoted lam
in the implementation) as a shape parameter.
The probability density above is defined in the "standardized" form. To shift
and/or scale the distribution use the loc and scale parameters.
Specifically, tukeylambda.pdf(x,lam,loc,scale) is identically
equivalent to tukeylambda.pdf(y,lam)/scale with
y=(x-loc)/scale. Note that shifting the location of a distribution
does not make it a "noncentral" distribution; noncentral generalizations of
some distributions are available in separate classes.
Alternatively, the distribution object can be called (as a function)
to fix the shape, location and scale parameters. This returns a "frozen"
RV object holding the given parameters fixed.
Freeze the distribution and display the frozen pdf: