utility#
Utility functions for Bayesian optimization.
Key Concepts:#
- Samples:
A PyTensor tensor variable (
pt.TensorVariable
) representing samples drawn from the posterior distributions of the model outputs. These samples capture the uncertainty in the model predictions and are essential for computing expected utilities and risk measures in Bayesian optimization.
- Budgets:
A PyTensor tensor variable representing a set of monetary budgets allocated to different assets, investments, or channels. Each element corresponds to the budget for a specific option in the optimization process.
Functions
|
Calculate adjusted Value at Risk (AVaR) score. |
|
Compute the average response of the posterior predictive distribution. |
|
Calculate the Conditional Value at Risk (CVaR) at a specified confidence level. |
|
Calculate the Diversification Ratio of a portfolio to evaluate risk distribution. |
|
Calculate the mean tightness score. |
|
Calculate the entropy of a portfolio's asset weights to assess diversification. |
|
Calculate the Risk-Adjusted Return on Capital (RAROC). |
|
Calculate the Sharpe Ratio. |
|
Calculate the absolute distance between the mean and the quantiles. |
|
Calculate the Value at Risk (VaR) at a specified confidence level. |