The BETA.INV function in Google Sheets is a valuable tool for statistical analysis, particularly when dealing with probability distributions. It computes the inverse of the cumulative beta distribution, allowing users to determine the value associated with a specified probability. This function is particularly useful in fields such as finance, quality control, and other areas that require probabilistic modeling.
Syntax
BETA.INV(probability, alpha, beta, [A], [B])
- probability: A numeric value between 0 and 1 that represents the probability for which you want to find the inverse beta distribution.
- alpha: A positive parameter that defines the shape of the beta distribution.
- beta: A positive parameter that also defines the shape of the beta distribution.
- A: (Optional) The lower bound of the distribution; default is 0 if omitted.
- B: (Optional) The upper bound of the distribution; default is 1 if omitted.
Example #1
=BETA.INV(0.5, 2, 5)
This function calculates the inverse beta distribution for a probability of 0.5, with shape parameters alpha = 2 and beta = 5. The result returned is approximately 0.1667.
Example #2
=BETA.INV(0.75, 3, 2, 0, 10)
In this case, the function returns the value for a probability of 0.75 with shape parameters alpha = 3 and beta = 2, within the range of 0 to 10. The result is roughly 5.25.
Example #3
=BETA.INV(0.2, 4, 6, 1, 3)
Here, the inverse beta distribution is calculated for a probability of 0.2, using alpha = 4 and beta = 6, constrained between 1 and 3. The returned value is approximately 1.67.
Error handling
- NUM!: This error indicates that the provided probability is not between 0 and 1 or that alpha or beta parameters are not positive. Check that the values are within the specified ranges.
- DIV/0!: This error occurs if the parameters are invalid when dividing during computation. Ensure that ‘alpha’ and ‘beta’ are positive numbers.
- VALUE!: This error signifies that one of the inputs is of the wrong type, such as text instead of a number. Confirm all parameters are numeric.