| ExponentialR | R Documentation |
An exponential distribution in regression parameterization with mean mu.
ExponentialR(mu = 1)
mu |
mean of the distribution (default |
We recommend reading this documentation on https://zeileis.github.io/distributions3/, where the math will render with additional detail and much greater clarity.
In the following, let X be an Exponential random variable with
regression parameterization with mean mu = \mu.
For computing densities, probabilities, quantiles, etc., the
distribution is reparameterized internally to use the
rate \lambda = 1/\mu as in the classic Exponential() distribution.
Support: x \in (0, \infty)
Mean: \mu
Variance: \mu^2
Probability density function (p.d.f):
f(x) = \frac{1}{\mu} e^{-\frac{1}{\mu} x}
An ExponentialR object.
Other continuous distributions:
Beta(),
Cauchy(),
ChiSquare(),
Erlang(),
Exponential(),
FisherF(),
Frechet(),
GEV(),
GPareto(),
Gamma(),
Gumbel(),
LogNormal(),
Logistic(),
Normal(),
RevWeibull(),
SinhArcsinh(),
StudentsT(),
Tukey(),
Uniform(),
Weibull()
set.seed(27)
X <- ExponentialR(2)
X
mean(X)
variance(X)
skewness(X)
kurtosis(X)
random(X, 10)
pdf(X, 2)
log_pdf(X, 2)
cdf(X, 4)
quantile(X, 0.7)
cdf(X, quantile(X, 0.7))
quantile(X, cdf(X, 7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.