tables
get_non_exceedance_table(data)
Generate a non-exceedance probability table from empirical data.
This function calculates the empirical percent-point function (PPF) from the provided data and returns it as a pandas DataFrame. The PPF, also known as the quantile function, represents the inverse of the cumulative distribution function (CDF), mapping probability values to data values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
ndarray
|
An array of data points from which to compute the empirical PPF. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
A DataFrame containing the non-exceedance probabilities and corresponding data values.
The columns of the DataFrame correspond to the fields of the |
Notes
- The non-exceedance probability,
p, represents the probability that a randomly selected value from the distribution will be less than or equal to a given value. - This function is particularly useful in risk analysis, where non-exceedance probabilities are used to understand the likelihood of different cost outcomes.
Example
Example usage of get_non_exceedance_table:
data = np.array([1000, 2000, 3000, 4000, 5000]) non_exceedance_table = get_non_exceedance_table(data) print(non_exceedance_table)
This might output a DataFrame where each row represents a specific quantile and the corresponding data value at that quantile.