compute_pod_spectrum
compute_pod_spectrum(
poi_col,
nuisance_col=None,
slice_values=None,
n_threshold_points=100,
bandwidth_ratio=None,
model_override='auto',
force_degree=None,
nuisance_dists=None,
nuisance_bounds=None,
)Pre-calculates a spectrum of PoD curves across a range of signal thresholds.
Takes the same settings as pod(). Afterwards pod() calls with these settings, n_boot=0 and a threshold inside the observed signal range interpolate from the spectrum instead of integrating. plot_pod_vs_threshold() also reads it. Existing self.pod_results and self.model_results are kept; if there were none, they hold the (unbootstrapped) analysis at the median signal.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| poi_col | list | str | The parameter(s) of interest, as in pod(). |
required |
| nuisance_col | list | str | None | Parameters integrated out, as in pod(). |
None |
| slice_values | dict | None | Values of the sliced parameters, as in pod(). |
None |
| n_threshold_points | int | Number of thresholds, evenly spaced between the smallest and largest observed signal. | 100 |
| bandwidth_ratio, model_override, force_degree, nuisance_dists, nuisance_bounds | As in pod(). |
required |
Returns
| Name | Type | Description |
|---|---|---|
| Dict | Dict[str, Any] | thresholds (n_threshold_points,), pod_matrix (grid points x |
| Dict[str, Any] | thresholds) and mean_curve. |
Examples
spec = study.compute_pod_spectrum(poi_col="Length")
study.plot_pod_vs_threshold()