Gamma Distribution
The following functions are associated with the gamma equation:
Click to copy this expression
dgamma(x, s)—Returns the probability density for value x.
pgamma(x, s)—Returns the cumulative probability distribution for value x.
qgamma(p, s)—Returns the inverse cumulative probability distribution for probability p.
rgamma(m, s)—Returns a vector of m random numbers having the gamma distribution.
Arguments
x is a scalar or vector of real values, x > 0. To allow integration and other operations over this argument, values outside of the stated range are allowed, but they produce a 0 result.
s is a real shape parameter, s > 0.
p is a real probability, 0 ≤ p ≤ 1.
m is an integer, m > 0.
All arguments are unitless numbers.
* 
In previous versions of PTC Mathcad Prime, units were allowed in the arguments of the random numbers distribution function. Starting with PTC Mathcad Prime 10.0.0.0, all arguments are unitless. This change was made to align the behavior of the random distribution function to other probability distribution functions. If your arguments used units, make sure to adjust them for maintaining a correct scaling.
Was this helpful?