pyhgf.math.binary_surprise_finite_precision#
- pyhgf.math.binary_surprise_finite_precision(value: Array | ndarray | bool_ | number | bool | int | float | complex, expected_mean: Array | ndarray | bool_ | number | bool | int | float | complex, expected_precision: Array | ndarray | bool_ | number | bool | int | float | complex, eta0: Array | ndarray | bool_ | number | bool | int | float | complex = 0.0, eta1: Array | ndarray | bool_ | number | bool | int | float | complex = 1.0) Array [source]#
Compute the binary surprise with finite precision.
- Parameters:
- value
The observed value.
- expected_mean
The expected probability of observing category 1.
- expected_precision
The precision of the underlying normal distributions.
- eta0
The first possible value.
- eta1
The second possible value.
- Returns:
- surprise
The binary surprise under finite precision.