relative_spread
relative_spread(predictions, y)Spread of bootstrap predictions at each probe point, relative to the spread of the data.
std(predictions) / std(y), per probe point. Dividing by the scatter of the observed response, rather than by the size of the mean prediction, makes the measure independent of where the response’s zero is: a signal in dB that sits near 0, or one with a large constant offset, is judged on the same footing.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| predictions | np.ndarray | Bootstrap predictions, shape (n_boot, n_probes). |
required |
| y | np.ndarray | The observed responses. If their standard deviation is zero, 1 is used instead. | required |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | np.ndarray: Relative spread at each probe point, shape (n_probes,). |