The PROB function in Google Sheets is a valuable statistical tool that enables users to determine the probability of a certain outcome within a specific range. By leveraging a dataset with corresponding probabilities, the PROB function helps quantify uncertainties in various scenarios, making it an essential tool for analysts, researchers, and decision-makers alike.
Syntax
PROB(array, probabilities, [low_limit], [high_limit])
- array: The range of numeric values for which you want to calculate the probability.
- probabilities: The corresponding probabilities that match each value in the array.
- low_limit (optional): The lower boundary of the range within which you want to calculate the probability. If omitted, the entire array is considered.
- high_limit (optional): The upper boundary of the range. If omitted, the probability is calculated for values greater than or equal to the low_limit.
Example #1
=PROB(A1:A5, B1:B5, 10, 20)
This function calculates the probability that a randomly selected value from the range A1:A5 lies between 10 and 20, using the probabilities listed in B1:B5. For instance, if the probabilities were 0.2 for 10, 0.5 for 15, and 0.3 for 25, the result might be 0.5, indicating a 50% likelihood within this range.
Example #2
=PROB(A1:A5, B1:B5, 0)
This example determines the probability that a randomly chosen value from A1:A5 is greater than or equal to 0. It considers all values in the provided array that meet this criterion. If the values had probabilities of 0.1, 0.4, and 0.5, the result could be 1.0, implying all values are above 0.
Example #3
=PROB(A1:A5, B1:B5, 15, 30)
This function computes the probability of selecting a value between 15 and 30 from the array A1:A5. Assuming the ranges contain appropriate probabilities, the result might be 0.7, reflecting a 70% chance of outcomes lying in that interval.
Error handling
- N/A: This error occurs if the size of the array and the probabilities do not match, indicating a data mismatch.
- VALUE!: This indicates that the parameters provided are of the wrong type, such as text instead of numbers.
- NUM!: This arises when the probabilities sum to a number other than 1.0, signaling incorrect probability values.