GAMMA.INV function
The GAMMA.INV function in Excel is used to calculate the inverse of the Gamma distribution’s cumulative distribution function (CDF). Essentially, it provides the value of the random variable for a given cumulative probability in the Gamma distribution. This function is helpful when you want to find the value of that corresponds to a specific cumulative probability for a Gamma distribution with known shape and scale parameters.
Syntax:
GAMMA.INV(probability, alpha, beta)
Arguments:
- probability: The cumulative probability associated with the desired value of the random variable. This value must be between 0 and 1 (exclusive). It represents the cumulative probability that the random variable will be less than or equal to the value you’re solving for.
- alpha: The shape parameter (also called or ) of the Gamma distribution. This value must be greater than 0.
- beta: The scale parameter of the Gamma distribution. This value must also be greater than 0.
How It Works:
- The
GAMMA.INVfunction calculates the value for which the cumulative probability equals the specified probability. - In other words, it answers the question: “What value of corresponds to a given cumulative probability in the Gamma distribution?”
- This is the inverse operation of calculating the CDF (which gives the cumulative probability for a given ).
Formula for the Inverse Gamma Distribution:
The Gamma distribution’s CDF is given by:
The GAMMA.INV function solves for such that:
Where is the cumulative distribution function for the Gamma distribution.
Examples:
- Example 1: Find the Value of for a Given Cumulative Probability Suppose you want to find the value of such that the cumulative probability for a Gamma distribution with shape parameter and scale parameter is 0.75. Use the following formula:
=GAMMA.INV(0.75, 2, 2)This will return the value of corresponding to the cumulative probability of 0.75 in the Gamma distribution.
- Example 2: Another Probability with Different Parameters If you want to find the value of for a cumulative probability of 0.95 with a Gamma distribution where and :
=GAMMA.INV(0.95, 3, 1)This will return the value of corresponding to a cumulative probability of 0.95.
Key Points:
- Inverse function: The
GAMMA.INVfunction is the inverse of the Gamma CDF, so it helps you find the value of the random variable for a given cumulative probability. - Shape and scale parameters: As with other Gamma distribution functions, the results depend on the shape (alpha) and scale (beta) parameters, which control the shape and spread of the distribution.
- Probability must be between 0 and 1: The
probabilityargument must be between 0 and 1, exclusive. A probability of 0 represents the minimum possible value of , and a probability of 1 represents the maximum possible value.
Use Cases:
- Quantiles: Use
GAMMA.INVto find specific quantiles (values) for the Gamma distribution. For example, it can help determine the time by which a certain percentage of events will occur. - Risk Analysis: It is useful in risk analysis when you need to determine the value at a specific cumulative probability in the context of the Gamma distribution.
- Reliability Engineering: In fields like reliability engineering,
GAMMA.INVcan be used to find the time by which a certain proportion of systems will fail, given a Gamma-distributed failure rate.
Example in Context:
Suppose you’re performing survival analysis and want to find the time by which 90% of items have failed in a process modeled by a Gamma distribution. If the shape parameter () is 4 and the scale parameter () is 5, you can use GAMMA.INV to calculate this time:
=GAMMA.INV(0.9, 4, 5)
This would return the time corresponding to the 90th percentile of the Gamma distribution.
Notes:
- The
GAMMA.INVfunction assumes the Gamma distribution has the shape and scale parameters defined. If you’re using a Gamma distribution with rate (instead of scale), you may need to adjust the parameters accordingly. - This function is useful in fields such as statistics, engineering, and finance, where the Gamma distribution is commonly applied for modeling waiting times, resource allocation, or other phenomena.