Inverse Gaussian Distribution Functions
Source:R/inverse_gaussian_distribution.R
inverse_gaussian_distribution.Rd
Functions to compute the probability density function, cumulative distribution function, and quantile function for the Inverse Gaussian distribution.
Usage
inverse_gaussian_pdf(x, mu, lambda)
inverse_gaussian_lpdf(x, mu, lambda)
inverse_gaussian_cdf(x, mu, lambda)
inverse_gaussian_lcdf(x, mu, lambda)
inverse_gaussian_quantile(p, mu, lambda)
Value
A single numeric value with the computed probability density, log-probability density, cumulative distribution, log-cumulative distribution, or quantile depending on the function called.
See also
Boost Documentation for more details on the mathematical background.
Examples
# Inverse Gaussian distribution with mu = 3, lambda = 4
inverse_gaussian_pdf(2, 3, 4)
#> [1] 0.2524295
inverse_gaussian_lpdf(2, 3, 4)
#> [1] -1.376623
inverse_gaussian_cdf(2, 3, 4)
#> [1] 0.4512408
inverse_gaussian_lcdf(2, 3, 4)
#> [1] -0.7957542
inverse_gaussian_quantile(0.5, 3, 4)
#> [1] 2.202698