The GAMMALN function in Google Sheets returns the natural logarithm (base e) of the Gamma function evaluated at a given value. It's frequently used in advanced statistical and probability calculations where working with logarithms avoids overflow from very large Gamma function results. Dive into our comprehensive guide to master its application.
Parameters
value: A positive number for which to calculate the natural log of the Gamma function.
Step-by-Step Tutorial
- Calculating the log-Gamma of a value:
- Example:
=GAMMALN(5) - Result:
3.1780...(the natural log of Gamma(5), which equals 4! = 24)
- Example:
Use Cases and Scenarios
- Probability Distributions: Compute components of gamma, beta, and chi-squared distribution formulas without overflow issues.
- Statistical Modeling: Support maximum likelihood calculations that rely on log-Gamma terms.
- Combinatorics: Approximate factorials of large numbers via the relationship between the Gamma function and factorials.
Related Functions
GAMMA: Returns the value of the Gamma function evaluated at a specified value.EXP: Returns Euler's number, e, raised to a power.
Related Articles
No related articles available for the GAMMALN function.