An R-distributed (symmetric beta) continuous random variable.
As an instance of the rv_continuous class, rdist 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.
Methods
rvs(c, loc=0, scale=1, size=1, random_state=None)
Random variates.
pdf(x, c, loc=0, scale=1)
Probability density function.
logpdf(x, c, loc=0, scale=1)
Log of the probability density function.
cdf(x, c, loc=0, scale=1)
Cumulative distribution function.
logcdf(x, c, loc=0, scale=1)
Log of the cumulative distribution function.
sf(x, c, loc=0, scale=1)
Survival function (also defined as 1-cdf, but sf is sometimes more accurate).
logsf(x, c, loc=0, scale=1)
Log of the survival function.
ppf(q, c, loc=0, scale=1)
Percent point function (inverse of cdf — percentiles).
for \(-1 \le x \le 1\), \(c > 0\). rdist is also called the
symmetric beta distribution: if B has a beta distribution with
parameters (c/2, c/2), then X = 2*B - 1 follows a R-distribution with
parameter c.
This distribution includes the following distribution kernels as
special cases:
c = 2: uniform
c = 3: `semicircular`
c = 4: Epanechnikov (parabolic)
c = 6: quartic (biweight)
c = 8: triweight
The probability density above is defined in the "standardized" form. To shift
and/or scale the distribution use the loc and scale parameters.
Specifically, rdist.pdf(x,c,loc,scale) is identically
equivalent to rdist.pdf(y,c)/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: